From c6e87eafc17ff02482506f93485e47d200a289b9 Mon Sep 17 00:00:00 2001 From: Noah Dietz Date: Thu, 16 Jul 2026 18:28:14 +0000 Subject: [PATCH] feat(agentidentity): onboard v1 and v1beta API versions --- gapic-libraries-bom/pom.xml | 9 +- java-agentidentity/.repo-metadata.json | 16 + java-agentidentity/README.md | 203 + .../google-cloud-agentidentity-bom/pom.xml | 55 + .../google-cloud-agentidentity/pom.xml | 126 + .../v1/AuthProviderServiceClient.java | 3670 +++++++++++ .../v1/AuthProviderServiceSettings.java | 477 ++ .../agentidentity/v1/gapic_metadata.json | 81 + .../cloud/agentidentity/v1/package-info.java | 43 + .../v1/stub/AuthProviderServiceStub.java | 198 + .../stub/AuthProviderServiceStubSettings.java | 1271 ++++ ...rpcAuthProviderServiceCallableFactory.java | 115 + .../v1/stub/GrpcAuthProviderServiceStub.java | 963 +++ ...sonAuthProviderServiceCallableFactory.java | 103 + .../stub/HttpJsonAuthProviderServiceStub.java | 1555 +++++ .../cloud/agentidentity/v1/stub/Version.java | 27 + .../v1beta/AuthProviderServiceClient.java | 3672 +++++++++++ .../v1beta/AuthProviderServiceSettings.java | 478 ++ .../agentidentity/v1beta/gapic_metadata.json | 81 + .../agentidentity/v1beta/package-info.java | 43 + .../v1beta/stub/AuthProviderServiceStub.java | 200 + .../stub/AuthProviderServiceStubSettings.java | 1272 ++++ ...rpcAuthProviderServiceCallableFactory.java | 117 + .../stub/GrpcAuthProviderServiceStub.java | 966 +++ ...sonAuthProviderServiceCallableFactory.java | 105 + .../stub/HttpJsonAuthProviderServiceStub.java | 1558 +++++ .../agentidentity/v1beta/stub/Version.java | 27 + .../reflect-config.json | 2306 +++++++ .../reflect-config.json | 2306 +++++++ ...AuthProviderServiceClientHttpJsonTest.java | 1990 ++++++ .../v1/AuthProviderServiceClientTest.java | 1761 +++++ .../v1/MockAuthProviderService.java | 59 + .../v1/MockAuthProviderServiceImpl.java | 403 ++ .../cloud/agentidentity/v1/MockIAMPolicy.java | 59 + .../agentidentity/v1/MockIAMPolicyImpl.java | 127 + .../cloud/agentidentity/v1/MockLocations.java | 59 + .../agentidentity/v1/MockLocationsImpl.java | 105 + ...AuthProviderServiceClientHttpJsonTest.java | 1990 ++++++ .../v1beta/AuthProviderServiceClientTest.java | 1761 +++++ .../v1beta/MockAuthProviderService.java | 59 + .../v1beta/MockAuthProviderServiceImpl.java | 403 ++ .../agentidentity/v1beta/MockIAMPolicy.java | 59 + .../v1beta/MockIAMPolicyImpl.java | 127 + .../agentidentity/v1beta/MockLocations.java | 59 + .../v1beta/MockLocationsImpl.java | 105 + .../pom.xml | 45 + .../v1/AuthProviderServiceGrpc.java | 2488 +++++++ .../pom.xml | 45 + .../v1beta/AuthProviderServiceGrpc.java | 2520 +++++++ java-agentidentity/pom.xml | 70 + .../clirr-ignored-differences.xml | 80 + .../pom.xml | 41 + .../cloud/agentidentity/v1/AccessSummary.java | 3171 +++++++++ .../agentidentity/v1/AccessSummaryName.java | 230 + .../v1/AccessSummaryOrBuilder.java | 455 ++ .../cloud/agentidentity/v1/ApiKeyParams.java | 609 ++ .../v1/ApiKeyParamsOrBuilder.java | 58 + .../cloud/agentidentity/v1/AuthProvider.java | 5792 ++++++++++++++++ .../agentidentity/v1/AuthProviderName.java | 230 + .../v1/AuthProviderOrBuilder.java | 572 ++ .../v1/AuthProviderServiceProto.java | 774 +++ .../agentidentity/v1/AuthProviderType.java | 239 + .../cloud/agentidentity/v1/Authorization.java | 2046 ++++++ .../agentidentity/v1/AuthorizationName.java | 272 + .../v1/AuthorizationOrBuilder.java | 250 + .../v1/CreateAuthProviderRequest.java | 1441 ++++ .../CreateAuthProviderRequestOrBuilder.java | 191 + .../v1/DeleteAuthProviderRequest.java | 898 +++ .../DeleteAuthProviderRequestOrBuilder.java | 112 + .../v1/DeleteAuthorizationRequest.java | 916 +++ .../DeleteAuthorizationRequestOrBuilder.java | 116 + .../v1/DisableAuthProviderRequest.java | 874 +++ .../DisableAuthProviderRequestOrBuilder.java | 104 + .../v1/EnableAuthProviderRequest.java | 870 +++ .../EnableAuthProviderRequestOrBuilder.java | 104 + .../GeminiEnterpriseAuthProviderParams.java | 408 ++ ...EnterpriseAuthProviderParamsOrBuilder.java | 27 + .../v1/GetAccessSummaryRequest.java | 611 ++ .../v1/GetAccessSummaryRequestOrBuilder.java | 58 + .../v1/GetAuthProviderRequest.java | 611 ++ .../v1/GetAuthProviderRequestOrBuilder.java | 58 + .../v1/GetAuthorizationRequest.java | 611 ++ .../v1/GetAuthorizationRequestOrBuilder.java | 58 + .../v1/ListAccessSummariesRequest.java | 1332 ++++ .../ListAccessSummariesRequestOrBuilder.java | 164 + .../v1/ListAccessSummariesResponse.java | 1420 ++++ .../ListAccessSummariesResponseOrBuilder.java | 164 + .../v1/ListAuthProvidersRequest.java | 1409 ++++ .../v1/ListAuthProvidersRequestOrBuilder.java | 172 + .../v1/ListAuthProvidersResponse.java | 1413 ++++ .../ListAuthProvidersResponseOrBuilder.java | 164 + .../v1/ListAuthorizationsRequest.java | 1335 ++++ .../ListAuthorizationsRequestOrBuilder.java | 166 + .../v1/ListAuthorizationsResponse.java | 1419 ++++ .../ListAuthorizationsResponseOrBuilder.java | 164 + .../cloud/agentidentity/v1/LocationName.java | 195 + .../v1/QueryAuthProvidersRequest.java | 1143 ++++ .../QueryAuthProvidersRequestOrBuilder.java | 139 + .../v1/QueryAuthProvidersResponse.java | 898 +++ .../QueryAuthProvidersResponseOrBuilder.java | 110 + .../v1/QueryWorkloadsRequest.java | 936 +++ .../v1/QueryWorkloadsRequestOrBuilder.java | 108 + .../v1/QueryWorkloadsResponse.java | 900 +++ .../v1/QueryWorkloadsResponseOrBuilder.java | 112 + .../v1/RevokeAuthorizationRequest.java | 818 +++ .../RevokeAuthorizationRequestOrBuilder.java | 88 + .../v1/RevokeAuthorizationResponse.java | 400 ++ .../RevokeAuthorizationResponseOrBuilder.java | 27 + .../agentidentity/v1/ThreeLeggedOAuth.java | 1684 +++++ .../v1/ThreeLeggedOAuthOrBuilder.java | 210 + .../agentidentity/v1/TwoLeggedOAuth.java | 988 +++ .../v1/TwoLeggedOAuthOrBuilder.java | 110 + .../v1/UndeleteAuthProviderRequest.java | 874 +++ .../UndeleteAuthProviderRequestOrBuilder.java | 104 + .../v1/UpdateAuthProviderRequest.java | 1375 ++++ .../UpdateAuthProviderRequestOrBuilder.java | 183 + .../v1/auth_provider_service.proto | 933 +++ .../clirr-ignored-differences.xml | 80 + .../pom.xml | 41 + .../agentidentity/v1beta/AccessSummary.java | 3172 +++++++++ .../v1beta/AccessSummaryName.java | 230 + .../v1beta/AccessSummaryOrBuilder.java | 455 ++ .../agentidentity/v1beta/ApiKeyParams.java | 610 ++ .../v1beta/ApiKeyParamsOrBuilder.java | 58 + .../agentidentity/v1beta/AuthProvider.java | 5820 +++++++++++++++++ .../v1beta/AuthProviderName.java | 230 + .../v1beta/AuthProviderOrBuilder.java | 573 ++ .../v1beta/AuthProviderServiceProto.java | 774 +++ .../v1beta/AuthProviderType.java | 239 + .../agentidentity/v1beta/Authorization.java | 2050 ++++++ .../v1beta/AuthorizationName.java | 272 + .../v1beta/AuthorizationOrBuilder.java | 250 + .../v1beta/CreateAuthProviderRequest.java | 1448 ++++ .../CreateAuthProviderRequestOrBuilder.java | 191 + .../v1beta/DeleteAuthProviderRequest.java | 905 +++ .../DeleteAuthProviderRequestOrBuilder.java | 112 + .../v1beta/DeleteAuthorizationRequest.java | 919 +++ .../DeleteAuthorizationRequestOrBuilder.java | 116 + .../v1beta/DisableAuthProviderRequest.java | 877 +++ .../DisableAuthProviderRequestOrBuilder.java | 104 + .../v1beta/EnableAuthProviderRequest.java | 877 +++ .../EnableAuthProviderRequestOrBuilder.java | 104 + .../GeminiEnterpriseAuthProviderParams.java | 413 ++ ...EnterpriseAuthProviderParamsOrBuilder.java | 27 + .../v1beta/GetAccessSummaryRequest.java | 615 ++ .../GetAccessSummaryRequestOrBuilder.java | 58 + .../v1beta/GetAuthProviderRequest.java | 615 ++ .../GetAuthProviderRequestOrBuilder.java | 58 + .../v1beta/GetAuthorizationRequest.java | 615 ++ .../GetAuthorizationRequestOrBuilder.java | 58 + .../v1beta/ListAccessSummariesRequest.java | 1335 ++++ .../ListAccessSummariesRequestOrBuilder.java | 164 + .../v1beta/ListAccessSummariesResponse.java | 1427 ++++ .../ListAccessSummariesResponseOrBuilder.java | 165 + .../v1beta/ListAuthProvidersRequest.java | 1415 ++++ .../ListAuthProvidersRequestOrBuilder.java | 172 + .../v1beta/ListAuthProvidersResponse.java | 1424 ++++ .../ListAuthProvidersResponseOrBuilder.java | 164 + .../v1beta/ListAuthorizationsRequest.java | 1342 ++++ .../ListAuthorizationsRequestOrBuilder.java | 166 + .../v1beta/ListAuthorizationsResponse.java | 1425 ++++ .../ListAuthorizationsResponseOrBuilder.java | 165 + .../agentidentity/v1beta/LocationName.java | 195 + .../v1beta/QueryAuthProvidersRequest.java | 1150 ++++ .../QueryAuthProvidersRequestOrBuilder.java | 139 + .../v1beta/QueryAuthProvidersResponse.java | 901 +++ .../QueryAuthProvidersResponseOrBuilder.java | 110 + .../v1beta/QueryWorkloadsRequest.java | 936 +++ .../QueryWorkloadsRequestOrBuilder.java | 108 + .../v1beta/QueryWorkloadsResponse.java | 904 +++ .../QueryWorkloadsResponseOrBuilder.java | 112 + .../v1beta/RevokeAuthorizationRequest.java | 821 +++ .../RevokeAuthorizationRequestOrBuilder.java | 88 + .../v1beta/RevokeAuthorizationResponse.java | 405 ++ .../RevokeAuthorizationResponseOrBuilder.java | 27 + .../v1beta/ThreeLeggedOAuth.java | 1685 +++++ .../v1beta/ThreeLeggedOAuthOrBuilder.java | 210 + .../agentidentity/v1beta/TwoLeggedOAuth.java | 988 +++ .../v1beta/TwoLeggedOAuthOrBuilder.java | 110 + .../v1beta/UndeleteAuthProviderRequest.java | 879 +++ .../UndeleteAuthProviderRequestOrBuilder.java | 104 + .../v1beta/UpdateAuthProviderRequest.java | 1382 ++++ .../UpdateAuthProviderRequestOrBuilder.java | 183 + .../v1beta/auth_provider_service.proto | 933 +++ .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncCreateAuthProvider.java | 53 + .../SyncCreateAuthProvider.java | 49 + ...roviderLocationnameAuthproviderString.java | 45 + ...eAuthProviderStringAuthproviderString.java | 45 + .../AsyncDeleteAuthorization.java | 54 + .../SyncDeleteAuthorization.java | 50 + ...cDeleteAuthorizationAuthorizationname.java | 43 + .../SyncDeleteAuthorizationString.java | 44 + .../AsyncDeleteAuthProvider.java | 51 + .../SyncDeleteAuthProvider.java | 47 + ...yncDeleteAuthProviderAuthprovidername.java | 42 + .../SyncDeleteAuthProviderString.java | 42 + .../AsyncDisableAuthProvider.java | 51 + .../SyncDisableAuthProvider.java | 47 + ...ncDisableAuthProviderAuthprovidername.java | 42 + .../SyncDisableAuthProviderString.java | 42 + .../AsyncEnableAuthProvider.java | 51 + .../SyncEnableAuthProvider.java | 47 + ...yncEnableAuthProviderAuthprovidername.java | 42 + .../SyncEnableAuthProviderString.java | 42 + .../AsyncGetAccessSummary.java | 51 + .../SyncGetAccessSummary.java | 47 + ...SyncGetAccessSummaryAccesssummaryname.java | 42 + .../SyncGetAccessSummaryString.java | 42 + .../AsyncGetAuthorization.java | 53 + .../SyncGetAuthorization.java | 49 + ...SyncGetAuthorizationAuthorizationname.java | 43 + .../SyncGetAuthorizationString.java | 44 + .../getauthprovider/AsyncGetAuthProvider.java | 50 + .../getauthprovider/SyncGetAuthProvider.java | 46 + .../SyncGetAuthProviderAuthprovidername.java | 42 + .../SyncGetAuthProviderString.java | 42 + .../getiampolicy/AsyncGetIamPolicy.java | 53 + .../getiampolicy/SyncGetIamPolicy.java | 49 + .../getlocation/AsyncGetLocation.java | 46 + .../getlocation/SyncGetLocation.java | 42 + .../AsyncListAccessSummaries.java | 56 + .../AsyncListAccessSummariesPaged.java | 64 + .../SyncListAccessSummaries.java | 53 + .../SyncListAccessSummariesLocationname.java | 45 + .../SyncListAccessSummariesString.java | 45 + .../AsyncListAuthorizations.java | 57 + .../AsyncListAuthorizationsPaged.java | 65 + .../SyncListAuthorizations.java | 54 + ...yncListAuthorizationsAuthprovidername.java | 45 + .../SyncListAuthorizationsString.java | 45 + .../AsyncListAuthProviders.java | 57 + .../AsyncListAuthProvidersPaged.java | 65 + .../SyncListAuthProviders.java | 54 + .../SyncListAuthProvidersLocationname.java | 45 + .../SyncListAuthProvidersString.java | 45 + .../listlocations/AsyncListLocations.java | 54 + .../AsyncListLocationsPaged.java | 62 + .../listlocations/SyncListLocations.java | 50 + .../AsyncQueryAuthProviders.java | 54 + .../AsyncQueryAuthProvidersPaged.java | 62 + .../SyncQueryAuthProviders.java | 50 + ...cQueryAuthProvidersLocationnameString.java | 45 + .../SyncQueryAuthProvidersStringString.java | 45 + .../queryworkloads/AsyncQueryWorkloads.java | 53 + .../AsyncQueryWorkloadsPaged.java | 61 + .../queryworkloads/SyncQueryWorkloads.java | 49 + .../SyncQueryWorkloadsAuthprovidername.java | 43 + .../SyncQueryWorkloadsString.java | 43 + .../AsyncRevokeAuthorization.java | 51 + .../SyncRevokeAuthorization.java | 47 + ...keAuthorizationAuthprovidernameString.java | 44 + .../SyncRevokeAuthorizationStringString.java | 44 + .../setiampolicy/AsyncSetIamPolicy.java | 54 + .../setiampolicy/SyncSetIamPolicy.java | 50 + .../AsyncTestIamPermissions.java | 53 + .../SyncTestIamPermissions.java | 49 + .../AsyncUndeleteAuthProvider.java | 51 + .../SyncUndeleteAuthProvider.java | 47 + ...cUndeleteAuthProviderAuthprovidername.java | 42 + .../SyncUndeleteAuthProviderString.java | 42 + .../AsyncUpdateAuthProvider.java | 52 + .../SyncUpdateAuthProvider.java | 48 + ...dateAuthProviderAuthproviderFieldmask.java | 44 + .../getauthprovider/SyncGetAuthProvider.java | 57 + .../getauthprovider/SyncGetAuthProvider.java | 57 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../SyncCreateUseHttpJsonTransport.java | 41 + .../AsyncCreateAuthProvider.java | 53 + .../SyncCreateAuthProvider.java | 49 + ...roviderLocationnameAuthproviderString.java | 45 + ...eAuthProviderStringAuthproviderString.java | 45 + .../AsyncDeleteAuthorization.java | 54 + .../SyncDeleteAuthorization.java | 50 + ...cDeleteAuthorizationAuthorizationname.java | 43 + .../SyncDeleteAuthorizationString.java | 44 + .../AsyncDeleteAuthProvider.java | 51 + .../SyncDeleteAuthProvider.java | 47 + ...yncDeleteAuthProviderAuthprovidername.java | 42 + .../SyncDeleteAuthProviderString.java | 42 + .../AsyncDisableAuthProvider.java | 51 + .../SyncDisableAuthProvider.java | 47 + ...ncDisableAuthProviderAuthprovidername.java | 42 + .../SyncDisableAuthProviderString.java | 42 + .../AsyncEnableAuthProvider.java | 51 + .../SyncEnableAuthProvider.java | 47 + ...yncEnableAuthProviderAuthprovidername.java | 42 + .../SyncEnableAuthProviderString.java | 42 + .../AsyncGetAccessSummary.java | 51 + .../SyncGetAccessSummary.java | 47 + ...SyncGetAccessSummaryAccesssummaryname.java | 42 + .../SyncGetAccessSummaryString.java | 42 + .../AsyncGetAuthorization.java | 53 + .../SyncGetAuthorization.java | 49 + ...SyncGetAuthorizationAuthorizationname.java | 43 + .../SyncGetAuthorizationString.java | 44 + .../getauthprovider/AsyncGetAuthProvider.java | 50 + .../getauthprovider/SyncGetAuthProvider.java | 46 + .../SyncGetAuthProviderAuthprovidername.java | 42 + .../SyncGetAuthProviderString.java | 42 + .../getiampolicy/AsyncGetIamPolicy.java | 53 + .../getiampolicy/SyncGetIamPolicy.java | 49 + .../getlocation/AsyncGetLocation.java | 46 + .../getlocation/SyncGetLocation.java | 42 + .../AsyncListAccessSummaries.java | 56 + .../AsyncListAccessSummariesPaged.java | 64 + .../SyncListAccessSummaries.java | 53 + .../SyncListAccessSummariesLocationname.java | 45 + .../SyncListAccessSummariesString.java | 45 + .../AsyncListAuthorizations.java | 57 + .../AsyncListAuthorizationsPaged.java | 65 + .../SyncListAuthorizations.java | 54 + ...yncListAuthorizationsAuthprovidername.java | 45 + .../SyncListAuthorizationsString.java | 45 + .../AsyncListAuthProviders.java | 57 + .../AsyncListAuthProvidersPaged.java | 65 + .../SyncListAuthProviders.java | 54 + .../SyncListAuthProvidersLocationname.java | 45 + .../SyncListAuthProvidersString.java | 45 + .../listlocations/AsyncListLocations.java | 54 + .../AsyncListLocationsPaged.java | 62 + .../listlocations/SyncListLocations.java | 50 + .../AsyncQueryAuthProviders.java | 54 + .../AsyncQueryAuthProvidersPaged.java | 62 + .../SyncQueryAuthProviders.java | 50 + ...cQueryAuthProvidersLocationnameString.java | 45 + .../SyncQueryAuthProvidersStringString.java | 45 + .../queryworkloads/AsyncQueryWorkloads.java | 53 + .../AsyncQueryWorkloadsPaged.java | 61 + .../queryworkloads/SyncQueryWorkloads.java | 49 + .../SyncQueryWorkloadsAuthprovidername.java | 43 + .../SyncQueryWorkloadsString.java | 43 + .../AsyncRevokeAuthorization.java | 51 + .../SyncRevokeAuthorization.java | 47 + ...keAuthorizationAuthprovidernameString.java | 44 + .../SyncRevokeAuthorizationStringString.java | 44 + .../setiampolicy/AsyncSetIamPolicy.java | 54 + .../setiampolicy/SyncSetIamPolicy.java | 50 + .../AsyncTestIamPermissions.java | 53 + .../SyncTestIamPermissions.java | 49 + .../AsyncUndeleteAuthProvider.java | 51 + .../SyncUndeleteAuthProvider.java | 47 + ...cUndeleteAuthProviderAuthprovidername.java | 42 + .../SyncUndeleteAuthProviderString.java | 42 + .../AsyncUpdateAuthProvider.java | 52 + .../SyncUpdateAuthProvider.java | 48 + ...dateAuthProviderAuthproviderFieldmask.java | 44 + .../getauthprovider/SyncGetAuthProvider.java | 57 + .../getauthprovider/SyncGetAuthProvider.java | 57 + librarian.yaml | 13 + pom.xml | 1 + versions.txt | 9 +- 355 files changed, 133794 insertions(+), 2 deletions(-) create mode 100644 java-agentidentity/.repo-metadata.json create mode 100644 java-agentidentity/README.md create mode 100644 java-agentidentity/google-cloud-agentidentity-bom/pom.xml create mode 100644 java-agentidentity/google-cloud-agentidentity/pom.xml create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceClient.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceSettings.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/gapic_metadata.json create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/package-info.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/AuthProviderServiceStub.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/AuthProviderServiceStubSettings.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/GrpcAuthProviderServiceCallableFactory.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/GrpcAuthProviderServiceStub.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/HttpJsonAuthProviderServiceCallableFactory.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/HttpJsonAuthProviderServiceStub.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/Version.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceClient.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceSettings.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/gapic_metadata.json create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/package-info.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/AuthProviderServiceStub.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/AuthProviderServiceStubSettings.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/GrpcAuthProviderServiceCallableFactory.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/GrpcAuthProviderServiceStub.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/HttpJsonAuthProviderServiceCallableFactory.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/HttpJsonAuthProviderServiceStub.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/Version.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/resources/META-INF/native-image/com.google.cloud.agentidentity.v1/reflect-config.json create mode 100644 java-agentidentity/google-cloud-agentidentity/src/main/resources/META-INF/native-image/com.google.cloud.agentidentity.v1beta/reflect-config.json create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/AuthProviderServiceClientHttpJsonTest.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/AuthProviderServiceClientTest.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockAuthProviderService.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockAuthProviderServiceImpl.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockIAMPolicy.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockIAMPolicyImpl.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockLocations.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockLocationsImpl.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceClientHttpJsonTest.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceClientTest.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockAuthProviderService.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockAuthProviderServiceImpl.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockIAMPolicy.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockIAMPolicyImpl.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockLocations.java create mode 100644 java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockLocationsImpl.java create mode 100644 java-agentidentity/grpc-google-cloud-agentidentity-v1/pom.xml create mode 100644 java-agentidentity/grpc-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceGrpc.java create mode 100644 java-agentidentity/grpc-google-cloud-agentidentity-v1beta/pom.xml create mode 100644 java-agentidentity/grpc-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceGrpc.java create mode 100644 java-agentidentity/pom.xml create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/clirr-ignored-differences.xml create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/pom.xml create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AccessSummary.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AccessSummaryName.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AccessSummaryOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ApiKeyParams.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ApiKeyParamsOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProvider.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderName.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceProto.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderType.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/Authorization.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthorizationName.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthorizationOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/CreateAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/CreateAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthorizationRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthorizationRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DisableAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DisableAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/EnableAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/EnableAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GeminiEnterpriseAuthProviderParams.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GeminiEnterpriseAuthProviderParamsOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAccessSummaryRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAccessSummaryRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthorizationRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthorizationRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesResponse.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesResponseOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersResponse.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersResponseOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsResponse.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsResponseOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/LocationName.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersResponse.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersResponseOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsResponse.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsResponseOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationResponse.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationResponseOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ThreeLeggedOAuth.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ThreeLeggedOAuthOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/TwoLeggedOAuth.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/TwoLeggedOAuthOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UndeleteAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UndeleteAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UpdateAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UpdateAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/proto/google/cloud/agentidentity/v1/auth_provider_service.proto create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/clirr-ignored-differences.xml create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/pom.xml create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AccessSummary.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AccessSummaryName.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AccessSummaryOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ApiKeyParams.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ApiKeyParamsOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProvider.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderName.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceProto.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderType.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/Authorization.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthorizationName.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthorizationOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/CreateAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/CreateAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthorizationRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthorizationRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DisableAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DisableAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/EnableAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/EnableAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GeminiEnterpriseAuthProviderParams.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GeminiEnterpriseAuthProviderParamsOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAccessSummaryRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAccessSummaryRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthorizationRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthorizationRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesResponse.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesResponseOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersResponse.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersResponseOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsResponse.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsResponseOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/LocationName.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersResponse.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersResponseOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsResponse.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsResponseOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationResponse.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationResponseOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ThreeLeggedOAuth.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ThreeLeggedOAuthOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/TwoLeggedOAuth.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/TwoLeggedOAuthOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UndeleteAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UndeleteAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UpdateAuthProviderRequest.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UpdateAuthProviderRequestOrBuilder.java create mode 100644 java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/proto/google/cloud/agentidentity/v1beta/auth_provider_service.proto create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/create/SyncCreateSetEndpoint.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/AsyncCreateAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/SyncCreateAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/SyncCreateAuthProviderLocationnameAuthproviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/SyncCreateAuthProviderStringAuthproviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/AsyncDeleteAuthorization.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/SyncDeleteAuthorization.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/SyncDeleteAuthorizationAuthorizationname.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/SyncDeleteAuthorizationString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/AsyncDeleteAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/SyncDeleteAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/AsyncDisableAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/SyncDisableAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/SyncDisableAuthProviderAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/SyncDisableAuthProviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/AsyncEnableAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/SyncEnableAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/SyncEnableAuthProviderAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/SyncEnableAuthProviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/AsyncGetAccessSummary.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/SyncGetAccessSummary.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/SyncGetAccessSummaryAccesssummaryname.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/SyncGetAccessSummaryString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/AsyncGetAuthorization.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/SyncGetAuthorization.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/SyncGetAuthorizationAuthorizationname.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/SyncGetAuthorizationString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/AsyncGetAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/SyncGetAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/SyncGetAuthProviderAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/SyncGetAuthProviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getiampolicy/AsyncGetIamPolicy.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getlocation/AsyncGetLocation.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getlocation/SyncGetLocation.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/AsyncListAccessSummaries.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/AsyncListAccessSummariesPaged.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/SyncListAccessSummaries.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/SyncListAccessSummariesLocationname.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/SyncListAccessSummariesString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/AsyncListAuthorizations.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/AsyncListAuthorizationsPaged.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/SyncListAuthorizations.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/SyncListAuthorizationsAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/SyncListAuthorizationsString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/AsyncListAuthProviders.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/AsyncListAuthProvidersPaged.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/SyncListAuthProviders.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/SyncListAuthProvidersLocationname.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/SyncListAuthProvidersString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listlocations/AsyncListLocations.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listlocations/AsyncListLocationsPaged.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listlocations/SyncListLocations.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/AsyncQueryAuthProviders.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/AsyncQueryAuthProvidersPaged.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/SyncQueryAuthProviders.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/SyncQueryAuthProvidersLocationnameString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/SyncQueryAuthProvidersStringString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/AsyncQueryWorkloads.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/AsyncQueryWorkloadsPaged.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/SyncQueryWorkloads.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/SyncQueryWorkloadsAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/SyncQueryWorkloadsString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/AsyncRevokeAuthorization.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/SyncRevokeAuthorization.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/SyncRevokeAuthorizationAuthprovidernameString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/SyncRevokeAuthorizationStringString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/setiampolicy/AsyncSetIamPolicy.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/setiampolicy/SyncSetIamPolicy.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/testiampermissions/AsyncTestIamPermissions.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/testiampermissions/SyncTestIamPermissions.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/AsyncUndeleteAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/updateauthprovider/AsyncUpdateAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/updateauthprovider/SyncUpdateAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/updateauthprovider/SyncUpdateAuthProviderAuthproviderFieldmask.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservicesettings/getauthprovider/SyncGetAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/stub/authproviderservicestubsettings/getauthprovider/SyncGetAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/create/SyncCreateSetEndpoint.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/create/SyncCreateUseHttpJsonTransport.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/AsyncCreateAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/SyncCreateAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/SyncCreateAuthProviderLocationnameAuthproviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/SyncCreateAuthProviderStringAuthproviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/AsyncDeleteAuthorization.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/SyncDeleteAuthorization.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/SyncDeleteAuthorizationAuthorizationname.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/SyncDeleteAuthorizationString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/AsyncDeleteAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/SyncDeleteAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/AsyncDisableAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/SyncDisableAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/SyncDisableAuthProviderAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/SyncDisableAuthProviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/AsyncEnableAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/SyncEnableAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/SyncEnableAuthProviderAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/SyncEnableAuthProviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/AsyncGetAccessSummary.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/SyncGetAccessSummary.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/SyncGetAccessSummaryAccesssummaryname.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/SyncGetAccessSummaryString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/AsyncGetAuthorization.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/SyncGetAuthorization.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/SyncGetAuthorizationAuthorizationname.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/SyncGetAuthorizationString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/AsyncGetAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/SyncGetAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/SyncGetAuthProviderAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/SyncGetAuthProviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getiampolicy/AsyncGetIamPolicy.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getlocation/AsyncGetLocation.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getlocation/SyncGetLocation.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/AsyncListAccessSummaries.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/AsyncListAccessSummariesPaged.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/SyncListAccessSummaries.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/SyncListAccessSummariesLocationname.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/SyncListAccessSummariesString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/AsyncListAuthorizations.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/AsyncListAuthorizationsPaged.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/SyncListAuthorizations.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/SyncListAuthorizationsAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/SyncListAuthorizationsString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/AsyncListAuthProviders.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/AsyncListAuthProvidersPaged.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/SyncListAuthProviders.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/SyncListAuthProvidersLocationname.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/SyncListAuthProvidersString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listlocations/AsyncListLocations.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listlocations/AsyncListLocationsPaged.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listlocations/SyncListLocations.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/AsyncQueryAuthProviders.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/AsyncQueryAuthProvidersPaged.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/SyncQueryAuthProviders.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/SyncQueryAuthProvidersLocationnameString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/SyncQueryAuthProvidersStringString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/AsyncQueryWorkloads.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/AsyncQueryWorkloadsPaged.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/SyncQueryWorkloads.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/SyncQueryWorkloadsAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/SyncQueryWorkloadsString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/AsyncRevokeAuthorization.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/SyncRevokeAuthorization.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/SyncRevokeAuthorizationAuthprovidernameString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/SyncRevokeAuthorizationStringString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/setiampolicy/AsyncSetIamPolicy.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/setiampolicy/SyncSetIamPolicy.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/testiampermissions/AsyncTestIamPermissions.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/testiampermissions/SyncTestIamPermissions.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/AsyncUndeleteAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderAuthprovidername.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderString.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/updateauthprovider/AsyncUpdateAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/updateauthprovider/SyncUpdateAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/updateauthprovider/SyncUpdateAuthProviderAuthproviderFieldmask.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservicesettings/getauthprovider/SyncGetAuthProvider.java create mode 100644 java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/stub/authproviderservicestubsettings/getauthprovider/SyncGetAuthProvider.java diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 659b07234dc5..2a45129f119e 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -57,6 +57,13 @@ pom import + + com.google.cloud + google-cloud-agentidentity-bom + 0.1.0-SNAPSHOT + pom + import + com.google.cloud google-cloud-agentregistry-bom @@ -1556,4 +1563,4 @@ - + \ No newline at end of file diff --git a/java-agentidentity/.repo-metadata.json b/java-agentidentity/.repo-metadata.json new file mode 100644 index 000000000000..add017e520d9 --- /dev/null +++ b/java-agentidentity/.repo-metadata.json @@ -0,0 +1,16 @@ +{ + "api_shortname": "agentidentity", + "name_pretty": "Agent Identity", + "product_documentation": "https://cloud.google.com/agentidentity/", + "api_description": "", + "client_documentation": "https://cloud.google.com/java/docs/reference/google-cloud-agentidentity/latest/overview", + "release_level": "preview", + "transport": "grpc+rest", + "language": "java", + "repo": "googleapis/google-cloud-java", + "repo_short": "java-agentidentity", + "distribution_name": "com.google.cloud:google-cloud-agentidentity", + "api_id": "agentidentity.googleapis.com", + "library_type": "GAPIC_AUTO", + "requires_billing": true +} \ No newline at end of file diff --git a/java-agentidentity/README.md b/java-agentidentity/README.md new file mode 100644 index 000000000000..65da3bc134cd --- /dev/null +++ b/java-agentidentity/README.md @@ -0,0 +1,203 @@ +# Google Agent Identity Client for Java + +Java idiomatic client for [Agent Identity][product-docs]. + +[![Maven][maven-version-image]][maven-version-link] +![Stability][stability-image] + +- [Product Documentation][product-docs] +- [Client Library Documentation][javadocs] + +> Note: This client is a work-in-progress, and may occasionally +> make backwards-incompatible changes. + + +## Quickstart + + +If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: + +```xml + + + + com.google.cloud + libraries-bom + 26.83.0 + pom + import + + + + + + + com.google.cloud + google-cloud-agentidentity + + +``` + +If you are using Maven without the BOM, add this to your dependencies: + + +```xml + + com.google.cloud + google-cloud-agentidentity + 0.0.0 + +``` + +If you are using Gradle without BOM, add this to your dependencies: + +```Groovy +implementation 'com.google.cloud:google-cloud-agentidentity:0.0.0' +``` + +If you are using SBT, add this to your dependencies: + +```Scala +libraryDependencies += "com.google.cloud" % "google-cloud-agentidentity" % "0.0.0" +``` + +## Authentication + +See the [Authentication][authentication] section in the base directory's README. + +## Authorization + +The client application making API calls must be granted [authorization scopes][auth-scopes] required for the desired Agent Identity APIs, and the authenticated principal must have the [IAM role(s)][predefined-iam-roles] required to access GCP resources using the Agent Identity API calls. + +## Getting Started + +### Prerequisites + +You will need a [Google Cloud Platform Console][developer-console] project with the Agent Identity [API enabled][enable-api]. +You will need to [enable billing][enable-billing] to use Google Agent Identity. +[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by +[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line: +`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`. + +### Installation and setup + +You'll need to obtain the `google-cloud-agentidentity` library. See the [Quickstart](#quickstart) section +to add `google-cloud-agentidentity` as a dependency in your code. + +## About Agent Identity + + +[Agent Identity][product-docs] + +See the [Agent Identity client library docs][javadocs] to learn how to +use this Agent Identity Client Library. + + + + + + +## Troubleshooting + +To get help, follow the instructions in the [shared Troubleshooting document][troubleshooting]. + +## Transport + +Agent Identity uses both gRPC and HTTP/JSON for the transport layer. + +## Supported Java Versions + +Java 8 or above is required for using this client. + +Google's Java client libraries, +[Google Cloud Client Libraries][cloudlibs] +and +[Google Cloud API Libraries][apilibs], +follow the +[Oracle Java SE support roadmap][oracle] +(see the Oracle Java SE Product Releases section). + +### For new development + +In general, new feature development occurs with support for the lowest Java +LTS version covered by Oracle's Premier Support (which typically lasts 5 years +from initial General Availability). If the minimum required JVM for a given +library is changed, it is accompanied by a [semver][semver] major release. + +Java 11 and (in September 2021) Java 17 are the best choices for new +development. + +### Keeping production systems current + +Google tests its client libraries with all current LTS versions covered by +Oracle's Extended Support (which typically lasts 8 years from initial +General Availability). + +#### Legacy support + +Google's client libraries support legacy versions of Java runtimes with long +term stable libraries that don't receive feature updates on a best efforts basis +as it may not be possible to backport all patches. + +Google provides updates on a best efforts basis to apps that continue to use +Java 7, though apps might need to upgrade to current versions of the library +that supports their JVM. + +#### Where to find specific information + +The latest versions and the supported Java versions are identified on +the individual GitHub repository `github.com/GoogleAPIs/java-SERVICENAME` +and on [google-cloud-java][g-c-j]. + +## Versioning +This library follows [Semantic Versioning](http://semver.org/). + + +It is currently in major version zero (``0.y.z``), which means that anything may change at any time +and the public API should not be considered stable. + + +## Contributing + + +Contributions to this library are always welcome and highly encouraged. + +See [CONTRIBUTING][contributing] for more information how to get started. + +Please note that this project is released with a Contributor Code of Conduct. By participating in +this project you agree to abide by its terms. See [Code of Conduct][code-of-conduct] for more +information. + + +## License + +Apache 2.0 - See [LICENSE][license] for more information. + +Java is a registered trademark of Oracle and/or its affiliates. + +[product-docs]: https://cloud.google.com/agentidentity/ +[javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-agentidentity/latest/overview +[stability-image]: https://img.shields.io/badge/stability-preview-yellow +[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-agentidentity.svg +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentidentity/0.0.0 +[authentication]: https://github.com/googleapis/google-cloud-java#authentication +[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes +[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles +[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy +[developer-console]: https://console.developers.google.com/ +[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects +[cloud-cli]: https://cloud.google.com/cli +[troubleshooting]: https://github.com/googleapis/google-cloud-java/blob/main/TROUBLESHOOTING.md +[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md +[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct +[license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE +[enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing +[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=agentidentity.googleapis.com +[libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM +[shell_img]: https://gstatic.com/cloudssh/images/open-btn.png + +[semver]: https://semver.org/ +[cloudlibs]: https://cloud.google.com/apis/docs/client-libraries-explained +[apilibs]: https://cloud.google.com/apis/docs/client-libraries-explained#google_api_client_libraries +[oracle]: https://www.oracle.com/java/technologies/java-se-support-roadmap.html +[g-c-j]: http://github.com/googleapis/google-cloud-java diff --git a/java-agentidentity/google-cloud-agentidentity-bom/pom.xml b/java-agentidentity/google-cloud-agentidentity-bom/pom.xml new file mode 100644 index 000000000000..3a50dcad8486 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity-bom/pom.xml @@ -0,0 +1,55 @@ + + + 4.0.0 + com.google.cloud + google-cloud-agentidentity-bom + 0.1.0-SNAPSHOT + pom + + com.google.cloud + google-cloud-pom-parent + 1.89.0-SNAPSHOT + ../../google-cloud-pom-parent/pom.xml + + + Google Agent Identity BOM + + BOM for Agent Identity + + + + true + + + + + + + com.google.cloud + google-cloud-agentidentity + 0.1.0-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-agentidentity-v1 + 0.1.0-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-agentidentity-v1beta + 0.1.0-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-agentidentity-v1 + 0.1.0-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-agentidentity-v1beta + 0.1.0-SNAPSHOT + + + + + \ No newline at end of file diff --git a/java-agentidentity/google-cloud-agentidentity/pom.xml b/java-agentidentity/google-cloud-agentidentity/pom.xml new file mode 100644 index 000000000000..7532fedf757c --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/pom.xml @@ -0,0 +1,126 @@ + + + 4.0.0 + com.google.cloud + google-cloud-agentidentity + 0.1.0-SNAPSHOT + jar + Google Agent Identity + Agent Identity + + com.google.cloud + google-cloud-agentidentity-parent + 0.1.0-SNAPSHOT + + + google-cloud-agentidentity + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.api + api-common + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + + com.google.api.grpc + proto-google-cloud-agentidentity-v1 + + + com.google.api.grpc + proto-google-cloud-agentidentity-v1beta + + + + com.google.guava + guava + + + com.google.api + gax + + + com.google.api + gax-grpc + + + com.google.api + gax-httpjson + + + com.google.api.grpc + proto-google-iam-v1 + + + org.threeten + threetenbp + + + + + com.google.api.grpc + grpc-google-common-protos + test + + + com.google.api.grpc + grpc-google-iam-v1 + test + + + junit + junit + test + + + + com.google.api.grpc + grpc-google-cloud-agentidentity-v1 + test + + + com.google.api.grpc + grpc-google-cloud-agentidentity-v1beta + test + + + + + com.google.api + gax + testlib + test + + + com.google.api + gax-grpc + testlib + test + + + com.google.api + gax-httpjson + testlib + test + + + \ No newline at end of file diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceClient.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceClient.java new file mode 100644 index 000000000000..01d514b0e554 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceClient.java @@ -0,0 +1,3670 @@ +/* + * Copyright 2026 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.agentidentity.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.cloud.agentidentity.v1.stub.AuthProviderServiceStub; +import com.google.cloud.agentidentity.v1.stub.AuthProviderServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +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 com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service describing handlers for resources + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ *   AuthProvider response = authProviderServiceClient.getAuthProvider(name);
+ * }
+ * }
+ * + *

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

ListAuthProviders

Lists AuthProviders in a given project and location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listAuthProviders(ListAuthProvidersRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listAuthProviders(LocationName parent) + *

  • listAuthProviders(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listAuthProvidersPagedCallable() + *

  • listAuthProvidersCallable() + *

+ *

GetAuthProvider

Gets details of a single AuthProvider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getAuthProvider(GetAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getAuthProvider(AuthProviderName name) + *

  • getAuthProvider(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getAuthProviderCallable() + *

+ *

CreateAuthProvider

Creates a new AuthProvider in a given project and location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createAuthProvider(CreateAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createAuthProvider(LocationName parent, AuthProvider authProvider, String authProviderId) + *

  • createAuthProvider(String parent, AuthProvider authProvider, String authProviderId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createAuthProviderCallable() + *

+ *

UpdateAuthProvider

Updates the parameters of a single AuthProvider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateAuthProvider(UpdateAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateAuthProvider(AuthProvider authProvider, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateAuthProviderCallable() + *

+ *

DeleteAuthProvider

Deletes a single AuthProvider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteAuthProvider(DeleteAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteAuthProvider(AuthProviderName name) + *

  • deleteAuthProvider(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteAuthProviderCallable() + *

+ *

UndeleteAuthProvider

Undeletes a single AuthProvider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • undeleteAuthProvider(UndeleteAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • undeleteAuthProvider(AuthProviderName name) + *

  • undeleteAuthProvider(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • undeleteAuthProviderCallable() + *

+ *

QueryAuthProviders

Queries what all auth_providers are used by a given workload_id.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • queryAuthProviders(QueryAuthProvidersRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • queryAuthProviders(LocationName parent, String workloadId) + *

  • queryAuthProviders(String parent, String workloadId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • queryAuthProvidersPagedCallable() + *

  • queryAuthProvidersCallable() + *

+ *

QueryWorkloads

Queries what all workloads are using a given auth_provider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • queryWorkloads(QueryWorkloadsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • queryWorkloads(AuthProviderName name) + *

  • queryWorkloads(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • queryWorkloadsPagedCallable() + *

  • queryWorkloadsCallable() + *

+ *

ListAuthorizations

Lists Authorizations in a given project and location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listAuthorizations(ListAuthorizationsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listAuthorizations(AuthProviderName parent) + *

  • listAuthorizations(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listAuthorizationsPagedCallable() + *

  • listAuthorizationsCallable() + *

+ *

GetAuthorization

Gets details of a single Authorization.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getAuthorization(GetAuthorizationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getAuthorization(AuthorizationName name) + *

  • getAuthorization(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getAuthorizationCallable() + *

+ *

DeleteAuthorization

Deletes a single Authorization.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteAuthorization(DeleteAuthorizationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteAuthorization(AuthorizationName name) + *

  • deleteAuthorization(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteAuthorizationCallable() + *

+ *

ListAccessSummaries

Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: Filter by the SPIFFE ID of the agent. Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"`

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listAccessSummaries(ListAccessSummariesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listAccessSummaries(LocationName parent) + *

  • listAccessSummaries(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listAccessSummariesPagedCallable() + *

  • listAccessSummariesCallable() + *

+ *

GetAccessSummary

Gets details of a single AccessSummary.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getAccessSummary(GetAccessSummaryRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getAccessSummary(AccessSummaryName name) + *

  • getAccessSummary(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getAccessSummaryCallable() + *

+ *

RevokeAuthorization

Revokes all authorizations for a specific user on an AuthProvider. This deletes all authorization records associated with the user and AuthProvider, effectively revoking access across all agents.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • revokeAuthorization(RevokeAuthorizationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • revokeAuthorization(AuthProviderName name, String userId) + *

  • revokeAuthorization(String name, String userId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • revokeAuthorizationCallable() + *

+ *

EnableAuthProvider

Enables a single AuthProvider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • enableAuthProvider(EnableAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • enableAuthProvider(AuthProviderName name) + *

  • enableAuthProvider(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • enableAuthProviderCallable() + *

+ *

DisableAuthProvider

Disables a single AuthProvider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • disableAuthProvider(DisableAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • disableAuthProvider(AuthProviderName name) + *

  • disableAuthProvider(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • disableAuthProviderCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getLocationCallable() + *

+ *

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • setIamPolicy(SetIamPolicyRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • setIamPolicyCallable() + *

+ *

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getIamPolicy(GetIamPolicyRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getIamPolicyCallable() + *

+ *

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • testIamPermissions(TestIamPermissionsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • testIamPermissionsCallable() + *

+ *
+ * + *

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 AuthProviderServiceSettings 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
+ * AuthProviderServiceSettings authProviderServiceSettings =
+ *     AuthProviderServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AuthProviderServiceClient authProviderServiceClient =
+ *     AuthProviderServiceClient.create(authProviderServiceSettings);
+ * }
+ * + *

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
+ * AuthProviderServiceSettings authProviderServiceSettings =
+ *     AuthProviderServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AuthProviderServiceClient authProviderServiceClient =
+ *     AuthProviderServiceClient.create(authProviderServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@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
+ * AuthProviderServiceSettings authProviderServiceSettings =
+ *     AuthProviderServiceSettings.newHttpJsonBuilder().build();
+ * AuthProviderServiceClient authProviderServiceClient =
+ *     AuthProviderServiceClient.create(authProviderServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class AuthProviderServiceClient implements BackgroundResource { + private final @Nullable AuthProviderServiceSettings settings; + private final AuthProviderServiceStub stub; + + /** Constructs an instance of AuthProviderServiceClient with default settings. */ + public static final AuthProviderServiceClient create() throws IOException { + return create(AuthProviderServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AuthProviderServiceClient, 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 AuthProviderServiceClient create(AuthProviderServiceSettings settings) + throws IOException { + return new AuthProviderServiceClient(settings); + } + + /** + * Constructs an instance of AuthProviderServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(AuthProviderServiceSettings). + */ + public static final AuthProviderServiceClient create(AuthProviderServiceStub stub) { + return new AuthProviderServiceClient(stub); + } + + /** + * Constructs an instance of AuthProviderServiceClient, 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 AuthProviderServiceClient(AuthProviderServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AuthProviderServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AuthProviderServiceClient(AuthProviderServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final @Nullable AuthProviderServiceSettings getSettings() { + return settings; + } + + public AuthProviderServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthProviders in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (AuthProvider element :
+   *       authProviderServiceClient.listAuthProviders(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthProvidersPagedResponse listAuthProviders(@Nullable LocationName parent) { + ListAuthProvidersRequest request = + ListAuthProvidersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAuthProviders(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthProviders in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AuthProvider element :
+   *       authProviderServiceClient.listAuthProviders(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthProvidersPagedResponse listAuthProviders(String parent) { + ListAuthProvidersRequest request = + ListAuthProvidersRequest.newBuilder().setParent(parent).build(); + return listAuthProviders(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthProviders in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAuthProvidersRequest request =
+   *       ListAuthProvidersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   for (AuthProvider element :
+   *       authProviderServiceClient.listAuthProviders(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 ListAuthProvidersPagedResponse listAuthProviders(ListAuthProvidersRequest request) { + return listAuthProvidersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthProviders in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAuthProvidersRequest request =
+   *       ListAuthProvidersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.listAuthProvidersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AuthProvider element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAuthProvidersPagedCallable() { + return stub.listAuthProvidersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthProviders in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAuthProvidersRequest request =
+   *       ListAuthProvidersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   while (true) {
+   *     ListAuthProvidersResponse response =
+   *         authProviderServiceClient.listAuthProvidersCallable().call(request);
+   *     for (AuthProvider element : response.getAuthProvidersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAuthProvidersCallable() { + return stub.listAuthProvidersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   AuthProvider response = authProviderServiceClient.getAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider getAuthProvider(@Nullable AuthProviderName name) { + GetAuthProviderRequest request = + GetAuthProviderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   AuthProvider response = authProviderServiceClient.getAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider getAuthProvider(String name) { + GetAuthProviderRequest request = GetAuthProviderRequest.newBuilder().setName(name).build(); + return getAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetAuthProviderRequest request =
+   *       GetAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .build();
+   *   AuthProvider response = authProviderServiceClient.getAuthProvider(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 AuthProvider getAuthProvider(GetAuthProviderRequest request) { + return getAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetAuthProviderRequest request =
+   *       GetAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.getAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   AuthProvider response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAuthProviderCallable() { + return stub.getAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthProvider in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   AuthProvider authProvider = AuthProvider.newBuilder().build();
+   *   String authProviderId = "authProviderId325000884";
+   *   AuthProvider response =
+   *       authProviderServiceClient.createAuthProvider(parent, authProvider, authProviderId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + * @param authProvider Required. The AuthProvider to create. + * @param authProviderId Required. The ID to use for the AuthProvider, which will become the final + * segment of the AuthProvider's resource name. This value should be 1-63 characters, and + * valid characters are /[a-z][0-9]-/. The first character must be a lowercase letter, and the + * last character must be a lowercase letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider createAuthProvider( + @Nullable LocationName parent, AuthProvider authProvider, String authProviderId) { + CreateAuthProviderRequest request = + CreateAuthProviderRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAuthProvider(authProvider) + .setAuthProviderId(authProviderId) + .build(); + return createAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthProvider in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   AuthProvider authProvider = AuthProvider.newBuilder().build();
+   *   String authProviderId = "authProviderId325000884";
+   *   AuthProvider response =
+   *       authProviderServiceClient.createAuthProvider(parent, authProvider, authProviderId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + * @param authProvider Required. The AuthProvider to create. + * @param authProviderId Required. The ID to use for the AuthProvider, which will become the final + * segment of the AuthProvider's resource name. This value should be 1-63 characters, and + * valid characters are /[a-z][0-9]-/. The first character must be a lowercase letter, and the + * last character must be a lowercase letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider createAuthProvider( + String parent, AuthProvider authProvider, String authProviderId) { + CreateAuthProviderRequest request = + CreateAuthProviderRequest.newBuilder() + .setParent(parent) + .setAuthProvider(authProvider) + .setAuthProviderId(authProviderId) + .build(); + return createAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthProvider in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   CreateAuthProviderRequest request =
+   *       CreateAuthProviderRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAuthProviderId("authProviderId325000884")
+   *           .setAuthProvider(AuthProvider.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AuthProvider response = authProviderServiceClient.createAuthProvider(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 AuthProvider createAuthProvider(CreateAuthProviderRequest request) { + return createAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthProvider in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   CreateAuthProviderRequest request =
+   *       CreateAuthProviderRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAuthProviderId("authProviderId325000884")
+   *           .setAuthProvider(AuthProvider.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.createAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   AuthProvider response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createAuthProviderCallable() { + return stub.createAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProvider authProvider = AuthProvider.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   AuthProvider response =
+   *       authProviderServiceClient.updateAuthProvider(authProvider, updateMask);
+   * }
+   * }
+ * + * @param authProvider Required. The AuthProvider resource which replaces the resource on the + * server. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * AuthProvider resource by the update. The fields specified in the update_mask are relative + * to the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields present in the request will be + * overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider updateAuthProvider(AuthProvider authProvider, FieldMask updateMask) { + UpdateAuthProviderRequest request = + UpdateAuthProviderRequest.newBuilder() + .setAuthProvider(authProvider) + .setUpdateMask(updateMask) + .build(); + return updateAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   UpdateAuthProviderRequest request =
+   *       UpdateAuthProviderRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAuthProvider(AuthProvider.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AuthProvider response = authProviderServiceClient.updateAuthProvider(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 AuthProvider updateAuthProvider(UpdateAuthProviderRequest request) { + return updateAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   UpdateAuthProviderRequest request =
+   *       UpdateAuthProviderRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAuthProvider(AuthProvider.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.updateAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   AuthProvider response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateAuthProviderCallable() { + return stub.updateAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   authProviderServiceClient.deleteAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAuthProvider(@Nullable AuthProviderName name) { + DeleteAuthProviderRequest request = + DeleteAuthProviderRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   authProviderServiceClient.deleteAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAuthProvider(String name) { + DeleteAuthProviderRequest request = + DeleteAuthProviderRequest.newBuilder().setName(name).build(); + deleteAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   DeleteAuthProviderRequest request =
+   *       DeleteAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   authProviderServiceClient.deleteAuthProvider(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 deleteAuthProvider(DeleteAuthProviderRequest request) { + deleteAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   DeleteAuthProviderRequest request =
+   *       DeleteAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.deleteAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteAuthProviderCallable() { + return stub.deleteAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   AuthProvider response = authProviderServiceClient.undeleteAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider undeleteAuthProvider(@Nullable AuthProviderName name) { + UndeleteAuthProviderRequest request = + UndeleteAuthProviderRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return undeleteAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   AuthProvider response = authProviderServiceClient.undeleteAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider undeleteAuthProvider(String name) { + UndeleteAuthProviderRequest request = + UndeleteAuthProviderRequest.newBuilder().setName(name).build(); + return undeleteAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   UndeleteAuthProviderRequest request =
+   *       UndeleteAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AuthProvider response = authProviderServiceClient.undeleteAuthProvider(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 AuthProvider undeleteAuthProvider(UndeleteAuthProviderRequest request) { + return undeleteAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   UndeleteAuthProviderRequest request =
+   *       UndeleteAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.undeleteAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   AuthProvider response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + undeleteAuthProviderCallable() { + return stub.undeleteAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all auth_providers are used by a given workload_id. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String workloadId = "workloadId-186277134";
+   *   for (String element :
+   *       authProviderServiceClient.queryAuthProviders(parent, workloadId).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @param workloadId Required. The workload identifier to filter by. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryAuthProvidersPagedResponse queryAuthProviders( + @Nullable LocationName parent, String workloadId) { + QueryAuthProvidersRequest request = + QueryAuthProvidersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkloadId(workloadId) + .build(); + return queryAuthProviders(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all auth_providers are used by a given workload_id. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String workloadId = "workloadId-186277134";
+   *   for (String element :
+   *       authProviderServiceClient.queryAuthProviders(parent, workloadId).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @param workloadId Required. The workload identifier to filter by. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryAuthProvidersPagedResponse queryAuthProviders( + String parent, String workloadId) { + QueryAuthProvidersRequest request = + QueryAuthProvidersRequest.newBuilder().setParent(parent).setWorkloadId(workloadId).build(); + return queryAuthProviders(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all auth_providers are used by a given workload_id. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   QueryAuthProvidersRequest request =
+   *       QueryAuthProvidersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setWorkloadId("workloadId-186277134")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (String element : authProviderServiceClient.queryAuthProviders(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 QueryAuthProvidersPagedResponse queryAuthProviders( + QueryAuthProvidersRequest request) { + return queryAuthProvidersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all auth_providers are used by a given workload_id. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   QueryAuthProvidersRequest request =
+   *       QueryAuthProvidersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setWorkloadId("workloadId-186277134")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.queryAuthProvidersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (String element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + queryAuthProvidersPagedCallable() { + return stub.queryAuthProvidersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all auth_providers are used by a given workload_id. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   QueryAuthProvidersRequest request =
+   *       QueryAuthProvidersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setWorkloadId("workloadId-186277134")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     QueryAuthProvidersResponse response =
+   *         authProviderServiceClient.queryAuthProvidersCallable().call(request);
+   *     for (String element : response.getAuthProviderNamesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + queryAuthProvidersCallable() { + return stub.queryAuthProvidersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all workloads are using a given auth_provider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   for (String element : authProviderServiceClient.queryWorkloads(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryWorkloadsPagedResponse queryWorkloads(@Nullable AuthProviderName name) { + QueryWorkloadsRequest request = + QueryWorkloadsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return queryWorkloads(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all workloads are using a given auth_provider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   for (String element : authProviderServiceClient.queryWorkloads(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryWorkloadsPagedResponse queryWorkloads(String name) { + QueryWorkloadsRequest request = QueryWorkloadsRequest.newBuilder().setName(name).build(); + return queryWorkloads(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all workloads are using a given auth_provider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   QueryWorkloadsRequest request =
+   *       QueryWorkloadsRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (String element : authProviderServiceClient.queryWorkloads(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 QueryWorkloadsPagedResponse queryWorkloads(QueryWorkloadsRequest request) { + return queryWorkloadsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all workloads are using a given auth_provider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   QueryWorkloadsRequest request =
+   *       QueryWorkloadsRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.queryWorkloadsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (String element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + queryWorkloadsPagedCallable() { + return stub.queryWorkloadsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all workloads are using a given auth_provider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   QueryWorkloadsRequest request =
+   *       QueryWorkloadsRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     QueryWorkloadsResponse response =
+   *         authProviderServiceClient.queryWorkloadsCallable().call(request);
+   *     for (String element : response.getWorkloadIdsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + queryWorkloadsCallable() { + return stub.queryWorkloadsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Authorizations in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   for (Authorization element :
+   *       authProviderServiceClient.listAuthorizations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthorizationsPagedResponse listAuthorizations( + @Nullable AuthProviderName parent) { + ListAuthorizationsRequest request = + ListAuthorizationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAuthorizations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Authorizations in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   for (Authorization element :
+   *       authProviderServiceClient.listAuthorizations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthorizationsPagedResponse listAuthorizations(String parent) { + ListAuthorizationsRequest request = + ListAuthorizationsRequest.newBuilder().setParent(parent).build(); + return listAuthorizations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Authorizations in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAuthorizationsRequest request =
+   *       ListAuthorizationsRequest.newBuilder()
+   *           .setParent(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Authorization element :
+   *       authProviderServiceClient.listAuthorizations(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 ListAuthorizationsPagedResponse listAuthorizations( + ListAuthorizationsRequest request) { + return listAuthorizationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Authorizations in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAuthorizationsRequest request =
+   *       ListAuthorizationsRequest.newBuilder()
+   *           .setParent(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.listAuthorizationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Authorization element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAuthorizationsPagedCallable() { + return stub.listAuthorizationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Authorizations in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAuthorizationsRequest request =
+   *       ListAuthorizationsRequest.newBuilder()
+   *           .setParent(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListAuthorizationsResponse response =
+   *         authProviderServiceClient.listAuthorizationsCallable().call(request);
+   *     for (Authorization element : response.getAuthorizationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAuthorizationsCallable() { + return stub.listAuthorizationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthorizationName name =
+   *       AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]");
+   *   Authorization response = authProviderServiceClient.getAuthorization(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Authorization getAuthorization(@Nullable AuthorizationName name) { + GetAuthorizationRequest request = + GetAuthorizationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAuthorization(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name =
+   *       AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+   *           .toString();
+   *   Authorization response = authProviderServiceClient.getAuthorization(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Authorization getAuthorization(String name) { + GetAuthorizationRequest request = GetAuthorizationRequest.newBuilder().setName(name).build(); + return getAuthorization(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetAuthorizationRequest request =
+   *       GetAuthorizationRequest.newBuilder()
+   *           .setName(
+   *               AuthorizationName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+   *                   .toString())
+   *           .build();
+   *   Authorization response = authProviderServiceClient.getAuthorization(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 Authorization getAuthorization(GetAuthorizationRequest request) { + return getAuthorizationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetAuthorizationRequest request =
+   *       GetAuthorizationRequest.newBuilder()
+   *           .setName(
+   *               AuthorizationName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.getAuthorizationCallable().futureCall(request);
+   *   // Do something.
+   *   Authorization response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAuthorizationCallable() { + return stub.getAuthorizationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthorizationName name =
+   *       AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]");
+   *   authProviderServiceClient.deleteAuthorization(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Authorization to delete. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAuthorization(@Nullable AuthorizationName name) { + DeleteAuthorizationRequest request = + DeleteAuthorizationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteAuthorization(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name =
+   *       AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+   *           .toString();
+   *   authProviderServiceClient.deleteAuthorization(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Authorization to delete. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAuthorization(String name) { + DeleteAuthorizationRequest request = + DeleteAuthorizationRequest.newBuilder().setName(name).build(); + deleteAuthorization(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   DeleteAuthorizationRequest request =
+   *       DeleteAuthorizationRequest.newBuilder()
+   *           .setName(
+   *               AuthorizationName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   authProviderServiceClient.deleteAuthorization(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 deleteAuthorization(DeleteAuthorizationRequest request) { + deleteAuthorizationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   DeleteAuthorizationRequest request =
+   *       DeleteAuthorizationRequest.newBuilder()
+   *           .setName(
+   *               AuthorizationName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.deleteAuthorizationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteAuthorizationCallable() { + return stub.deleteAuthorizationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (AccessSummary element :
+   *       authProviderServiceClient.listAccessSummaries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessSummariesPagedResponse listAccessSummaries(@Nullable LocationName parent) { + ListAccessSummariesRequest request = + ListAccessSummariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccessSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AccessSummary element :
+   *       authProviderServiceClient.listAccessSummaries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessSummariesPagedResponse listAccessSummaries(String parent) { + ListAccessSummariesRequest request = + ListAccessSummariesRequest.newBuilder().setParent(parent).build(); + return listAccessSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAccessSummariesRequest request =
+   *       ListAccessSummariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (AccessSummary element :
+   *       authProviderServiceClient.listAccessSummaries(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 ListAccessSummariesPagedResponse listAccessSummaries( + ListAccessSummariesRequest request) { + return listAccessSummariesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAccessSummariesRequest request =
+   *       ListAccessSummariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.listAccessSummariesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AccessSummary element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAccessSummariesPagedCallable() { + return stub.listAccessSummariesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAccessSummariesRequest request =
+   *       ListAccessSummariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListAccessSummariesResponse response =
+   *         authProviderServiceClient.listAccessSummariesCallable().call(request);
+   *     for (AccessSummary element : response.getAccessSummariesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAccessSummariesCallable() { + return stub.listAccessSummariesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AccessSummary. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]");
+   *   AccessSummary response = authProviderServiceClient.getAccessSummary(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AccessSummary getAccessSummary(@Nullable AccessSummaryName name) { + GetAccessSummaryRequest request = + GetAccessSummaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAccessSummary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AccessSummary. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString();
+   *   AccessSummary response = authProviderServiceClient.getAccessSummary(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AccessSummary getAccessSummary(String name) { + GetAccessSummaryRequest request = GetAccessSummaryRequest.newBuilder().setName(name).build(); + return getAccessSummary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AccessSummary. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetAccessSummaryRequest request =
+   *       GetAccessSummaryRequest.newBuilder()
+   *           .setName(
+   *               AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString())
+   *           .build();
+   *   AccessSummary response = authProviderServiceClient.getAccessSummary(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 AccessSummary getAccessSummary(GetAccessSummaryRequest request) { + return getAccessSummaryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AccessSummary. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetAccessSummaryRequest request =
+   *       GetAccessSummaryRequest.newBuilder()
+   *           .setName(
+   *               AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.getAccessSummaryCallable().futureCall(request);
+   *   // Do something.
+   *   AccessSummary response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAccessSummaryCallable() { + return stub.getAccessSummaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all + * authorization records associated with the user and AuthProvider, effectively revoking access + * across all agents. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   String userId = "userId-836030906";
+   *   RevokeAuthorizationResponse response =
+   *       authProviderServiceClient.revokeAuthorization(name, userId);
+   * }
+   * }
+ * + * @param name Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param userId Required. The identity of the user to revoke authorization for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RevokeAuthorizationResponse revokeAuthorization( + @Nullable AuthProviderName name, String userId) { + RevokeAuthorizationRequest request = + RevokeAuthorizationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setUserId(userId) + .build(); + return revokeAuthorization(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all + * authorization records associated with the user and AuthProvider, effectively revoking access + * across all agents. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   String userId = "userId-836030906";
+   *   RevokeAuthorizationResponse response =
+   *       authProviderServiceClient.revokeAuthorization(name, userId);
+   * }
+   * }
+ * + * @param name Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param userId Required. The identity of the user to revoke authorization for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RevokeAuthorizationResponse revokeAuthorization(String name, String userId) { + RevokeAuthorizationRequest request = + RevokeAuthorizationRequest.newBuilder().setName(name).setUserId(userId).build(); + return revokeAuthorization(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all + * authorization records associated with the user and AuthProvider, effectively revoking access + * across all agents. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   RevokeAuthorizationRequest request =
+   *       RevokeAuthorizationRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setUserId("userId-836030906")
+   *           .build();
+   *   RevokeAuthorizationResponse response = authProviderServiceClient.revokeAuthorization(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 RevokeAuthorizationResponse revokeAuthorization(RevokeAuthorizationRequest request) { + return revokeAuthorizationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all + * authorization records associated with the user and AuthProvider, effectively revoking access + * across all agents. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   RevokeAuthorizationRequest request =
+   *       RevokeAuthorizationRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setUserId("userId-836030906")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.revokeAuthorizationCallable().futureCall(request);
+   *   // Do something.
+   *   RevokeAuthorizationResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + revokeAuthorizationCallable() { + return stub.revokeAuthorizationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   AuthProvider response = authProviderServiceClient.enableAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider enableAuthProvider(@Nullable AuthProviderName name) { + EnableAuthProviderRequest request = + EnableAuthProviderRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return enableAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   AuthProvider response = authProviderServiceClient.enableAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider enableAuthProvider(String name) { + EnableAuthProviderRequest request = + EnableAuthProviderRequest.newBuilder().setName(name).build(); + return enableAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   EnableAuthProviderRequest request =
+   *       EnableAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AuthProvider response = authProviderServiceClient.enableAuthProvider(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 AuthProvider enableAuthProvider(EnableAuthProviderRequest request) { + return enableAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   EnableAuthProviderRequest request =
+   *       EnableAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.enableAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   AuthProvider response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable enableAuthProviderCallable() { + return stub.enableAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Disables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   AuthProvider response = authProviderServiceClient.disableAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider disableAuthProvider(@Nullable AuthProviderName name) { + DisableAuthProviderRequest request = + DisableAuthProviderRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return disableAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Disables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   AuthProvider response = authProviderServiceClient.disableAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider disableAuthProvider(String name) { + DisableAuthProviderRequest request = + DisableAuthProviderRequest.newBuilder().setName(name).build(); + return disableAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Disables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   DisableAuthProviderRequest request =
+   *       DisableAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AuthProvider response = authProviderServiceClient.disableAuthProvider(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 AuthProvider disableAuthProvider(DisableAuthProviderRequest request) { + return disableAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Disables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   DisableAuthProviderRequest request =
+   *       DisableAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.disableAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   AuthProvider response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + disableAuthProviderCallable() { + return stub.disableAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : authProviderServiceClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         authProviderServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = authProviderServiceClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = authProviderServiceClient.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 access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = authProviderServiceClient.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 access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = authProviderServiceClient.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. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @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 ListAuthProvidersPagedResponse + extends AbstractPagedListResponse< + ListAuthProvidersRequest, + ListAuthProvidersResponse, + AuthProvider, + ListAuthProvidersPage, + ListAuthProvidersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAuthProvidersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAuthProvidersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAuthProvidersPagedResponse(ListAuthProvidersPage page) { + super(page, ListAuthProvidersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAuthProvidersPage + extends AbstractPage< + ListAuthProvidersRequest, + ListAuthProvidersResponse, + AuthProvider, + ListAuthProvidersPage> { + + private ListAuthProvidersPage( + @Nullable PageContext + context, + @Nullable ListAuthProvidersResponse response) { + super(context, response); + } + + private static ListAuthProvidersPage createEmptyPage() { + return new ListAuthProvidersPage(null, null); + } + + @Override + protected ListAuthProvidersPage createPage( + @Nullable PageContext + context, + @Nullable ListAuthProvidersResponse response) { + return new ListAuthProvidersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAuthProvidersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAuthProvidersRequest, + ListAuthProvidersResponse, + AuthProvider, + ListAuthProvidersPage, + ListAuthProvidersFixedSizeCollection> { + + private ListAuthProvidersFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAuthProvidersFixedSizeCollection createEmptyCollection() { + return new ListAuthProvidersFixedSizeCollection(null, 0); + } + + @Override + protected ListAuthProvidersFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAuthProvidersFixedSizeCollection(pages, collectionSize); + } + } + + public static class QueryAuthProvidersPagedResponse + extends AbstractPagedListResponse< + QueryAuthProvidersRequest, + QueryAuthProvidersResponse, + String, + QueryAuthProvidersPage, + QueryAuthProvidersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryAuthProvidersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryAuthProvidersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryAuthProvidersPagedResponse(QueryAuthProvidersPage page) { + super(page, QueryAuthProvidersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryAuthProvidersPage + extends AbstractPage< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, String, QueryAuthProvidersPage> { + + private QueryAuthProvidersPage( + @Nullable PageContext + context, + @Nullable QueryAuthProvidersResponse response) { + super(context, response); + } + + private static QueryAuthProvidersPage createEmptyPage() { + return new QueryAuthProvidersPage(null, null); + } + + @Override + protected QueryAuthProvidersPage createPage( + @Nullable PageContext + context, + @Nullable QueryAuthProvidersResponse response) { + return new QueryAuthProvidersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryAuthProvidersFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryAuthProvidersRequest, + QueryAuthProvidersResponse, + String, + QueryAuthProvidersPage, + QueryAuthProvidersFixedSizeCollection> { + + private QueryAuthProvidersFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryAuthProvidersFixedSizeCollection createEmptyCollection() { + return new QueryAuthProvidersFixedSizeCollection(null, 0); + } + + @Override + protected QueryAuthProvidersFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new QueryAuthProvidersFixedSizeCollection(pages, collectionSize); + } + } + + public static class QueryWorkloadsPagedResponse + extends AbstractPagedListResponse< + QueryWorkloadsRequest, + QueryWorkloadsResponse, + String, + QueryWorkloadsPage, + QueryWorkloadsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryWorkloadsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryWorkloadsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryWorkloadsPagedResponse(QueryWorkloadsPage page) { + super(page, QueryWorkloadsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryWorkloadsPage + extends AbstractPage< + QueryWorkloadsRequest, QueryWorkloadsResponse, String, QueryWorkloadsPage> { + + private QueryWorkloadsPage( + @Nullable PageContext context, + @Nullable QueryWorkloadsResponse response) { + super(context, response); + } + + private static QueryWorkloadsPage createEmptyPage() { + return new QueryWorkloadsPage(null, null); + } + + @Override + protected QueryWorkloadsPage createPage( + @Nullable PageContext context, + @Nullable QueryWorkloadsResponse response) { + return new QueryWorkloadsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryWorkloadsFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryWorkloadsRequest, + QueryWorkloadsResponse, + String, + QueryWorkloadsPage, + QueryWorkloadsFixedSizeCollection> { + + private QueryWorkloadsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryWorkloadsFixedSizeCollection createEmptyCollection() { + return new QueryWorkloadsFixedSizeCollection(null, 0); + } + + @Override + protected QueryWorkloadsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new QueryWorkloadsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAuthorizationsPagedResponse + extends AbstractPagedListResponse< + ListAuthorizationsRequest, + ListAuthorizationsResponse, + Authorization, + ListAuthorizationsPage, + ListAuthorizationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAuthorizationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAuthorizationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAuthorizationsPagedResponse(ListAuthorizationsPage page) { + super(page, ListAuthorizationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAuthorizationsPage + extends AbstractPage< + ListAuthorizationsRequest, + ListAuthorizationsResponse, + Authorization, + ListAuthorizationsPage> { + + private ListAuthorizationsPage( + @Nullable PageContext + context, + @Nullable ListAuthorizationsResponse response) { + super(context, response); + } + + private static ListAuthorizationsPage createEmptyPage() { + return new ListAuthorizationsPage(null, null); + } + + @Override + protected ListAuthorizationsPage createPage( + @Nullable PageContext + context, + @Nullable ListAuthorizationsResponse response) { + return new ListAuthorizationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAuthorizationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAuthorizationsRequest, + ListAuthorizationsResponse, + Authorization, + ListAuthorizationsPage, + ListAuthorizationsFixedSizeCollection> { + + private ListAuthorizationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAuthorizationsFixedSizeCollection createEmptyCollection() { + return new ListAuthorizationsFixedSizeCollection(null, 0); + } + + @Override + protected ListAuthorizationsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAuthorizationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAccessSummariesPagedResponse + extends AbstractPagedListResponse< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + AccessSummary, + ListAccessSummariesPage, + ListAccessSummariesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAccessSummariesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAccessSummariesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAccessSummariesPagedResponse(ListAccessSummariesPage page) { + super(page, ListAccessSummariesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAccessSummariesPage + extends AbstractPage< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + AccessSummary, + ListAccessSummariesPage> { + + private ListAccessSummariesPage( + @Nullable + PageContext + context, + @Nullable ListAccessSummariesResponse response) { + super(context, response); + } + + private static ListAccessSummariesPage createEmptyPage() { + return new ListAccessSummariesPage(null, null); + } + + @Override + protected ListAccessSummariesPage createPage( + @Nullable + PageContext + context, + @Nullable ListAccessSummariesResponse response) { + return new ListAccessSummariesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAccessSummariesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + AccessSummary, + ListAccessSummariesPage, + ListAccessSummariesFixedSizeCollection> { + + private ListAccessSummariesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAccessSummariesFixedSizeCollection createEmptyCollection() { + return new ListAccessSummariesFixedSizeCollection(null, 0); + } + + @Override + protected ListAccessSummariesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAccessSummariesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceSettings.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceSettings.java new file mode 100644 index 000000000000..63d3356059a8 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceSettings.java @@ -0,0 +1,477 @@ +/* + * Copyright 2026 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.agentidentity.v1; + +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +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.httpjson.InstantiatingHttpJsonChannelProvider; +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.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.agentidentity.v1.stub.AuthProviderServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AuthProviderServiceClient}. + * + *

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

    + *
  • The default service address (agentidentity.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getAuthProvider: + * + *

{@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
+ * AuthProviderServiceSettings.Builder authProviderServiceSettingsBuilder =
+ *     AuthProviderServiceSettings.newBuilder();
+ * authProviderServiceSettingsBuilder
+ *     .getAuthProviderSettings()
+ *     .setRetrySettings(
+ *         authProviderServiceSettingsBuilder
+ *             .getAuthProviderSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AuthProviderServiceSettings authProviderServiceSettings =
+ *     authProviderServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class AuthProviderServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listAuthProviders. */ + public PagedCallSettings< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + listAuthProvidersSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).listAuthProvidersSettings(); + } + + /** Returns the object with the settings used for calls to getAuthProvider. */ + public UnaryCallSettings getAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).getAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to createAuthProvider. */ + public UnaryCallSettings createAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).createAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to updateAuthProvider. */ + public UnaryCallSettings updateAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).updateAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to deleteAuthProvider. */ + public UnaryCallSettings deleteAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).deleteAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to undeleteAuthProvider. */ + public UnaryCallSettings + undeleteAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).undeleteAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to queryAuthProviders. */ + public PagedCallSettings< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + queryAuthProvidersSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).queryAuthProvidersSettings(); + } + + /** Returns the object with the settings used for calls to queryWorkloads. */ + public PagedCallSettings< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + queryWorkloadsSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).queryWorkloadsSettings(); + } + + /** Returns the object with the settings used for calls to listAuthorizations. */ + public PagedCallSettings< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + listAuthorizationsSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).listAuthorizationsSettings(); + } + + /** Returns the object with the settings used for calls to getAuthorization. */ + public UnaryCallSettings getAuthorizationSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).getAuthorizationSettings(); + } + + /** Returns the object with the settings used for calls to deleteAuthorization. */ + public UnaryCallSettings deleteAuthorizationSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).deleteAuthorizationSettings(); + } + + /** Returns the object with the settings used for calls to listAccessSummaries. */ + public PagedCallSettings< + ListAccessSummariesRequest, ListAccessSummariesResponse, ListAccessSummariesPagedResponse> + listAccessSummariesSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).listAccessSummariesSettings(); + } + + /** Returns the object with the settings used for calls to getAccessSummary. */ + public UnaryCallSettings getAccessSummarySettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).getAccessSummarySettings(); + } + + /** Returns the object with the settings used for calls to revokeAuthorization. */ + public UnaryCallSettings + revokeAuthorizationSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).revokeAuthorizationSettings(); + } + + /** Returns the object with the settings used for calls to enableAuthProvider. */ + public UnaryCallSettings enableAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).enableAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to disableAuthProvider. */ + public UnaryCallSettings disableAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).disableAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final AuthProviderServiceSettings create(AuthProviderServiceStubSettings stub) + throws IOException { + return new AuthProviderServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AuthProviderServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AuthProviderServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AuthProviderServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AuthProviderServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AuthProviderServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AuthProviderServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AuthProviderServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AuthProviderServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable 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 AuthProviderServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AuthProviderServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(AuthProviderServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AuthProviderServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AuthProviderServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AuthProviderServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AuthProviderServiceStubSettings.newHttpJsonBuilder()); + } + + public AuthProviderServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AuthProviderServiceStubSettings.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 listAuthProviders. */ + public PagedCallSettings.Builder< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + listAuthProvidersSettings() { + return getStubSettingsBuilder().listAuthProvidersSettings(); + } + + /** Returns the builder for the settings used for calls to getAuthProvider. */ + public UnaryCallSettings.Builder + getAuthProviderSettings() { + return getStubSettingsBuilder().getAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to createAuthProvider. */ + public UnaryCallSettings.Builder + createAuthProviderSettings() { + return getStubSettingsBuilder().createAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to updateAuthProvider. */ + public UnaryCallSettings.Builder + updateAuthProviderSettings() { + return getStubSettingsBuilder().updateAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAuthProvider. */ + public UnaryCallSettings.Builder + deleteAuthProviderSettings() { + return getStubSettingsBuilder().deleteAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to undeleteAuthProvider. */ + public UnaryCallSettings.Builder + undeleteAuthProviderSettings() { + return getStubSettingsBuilder().undeleteAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to queryAuthProviders. */ + public PagedCallSettings.Builder< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + queryAuthProvidersSettings() { + return getStubSettingsBuilder().queryAuthProvidersSettings(); + } + + /** Returns the builder for the settings used for calls to queryWorkloads. */ + public PagedCallSettings.Builder< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + queryWorkloadsSettings() { + return getStubSettingsBuilder().queryWorkloadsSettings(); + } + + /** Returns the builder for the settings used for calls to listAuthorizations. */ + public PagedCallSettings.Builder< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + listAuthorizationsSettings() { + return getStubSettingsBuilder().listAuthorizationsSettings(); + } + + /** Returns the builder for the settings used for calls to getAuthorization. */ + public UnaryCallSettings.Builder + getAuthorizationSettings() { + return getStubSettingsBuilder().getAuthorizationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAuthorization. */ + public UnaryCallSettings.Builder + deleteAuthorizationSettings() { + return getStubSettingsBuilder().deleteAuthorizationSettings(); + } + + /** Returns the builder for the settings used for calls to listAccessSummaries. */ + public PagedCallSettings.Builder< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + ListAccessSummariesPagedResponse> + listAccessSummariesSettings() { + return getStubSettingsBuilder().listAccessSummariesSettings(); + } + + /** Returns the builder for the settings used for calls to getAccessSummary. */ + public UnaryCallSettings.Builder + getAccessSummarySettings() { + return getStubSettingsBuilder().getAccessSummarySettings(); + } + + /** Returns the builder for the settings used for calls to revokeAuthorization. */ + public UnaryCallSettings.Builder + revokeAuthorizationSettings() { + return getStubSettingsBuilder().revokeAuthorizationSettings(); + } + + /** Returns the builder for the settings used for calls to enableAuthProvider. */ + public UnaryCallSettings.Builder + enableAuthProviderSettings() { + return getStubSettingsBuilder().enableAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to disableAuthProvider. */ + public UnaryCallSettings.Builder + disableAuthProviderSettings() { + return getStubSettingsBuilder().disableAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** 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 getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public AuthProviderServiceSettings build() throws IOException { + return new AuthProviderServiceSettings(this); + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/gapic_metadata.json b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/gapic_metadata.json new file mode 100644 index 000000000000..2bf0b0d18978 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/gapic_metadata.json @@ -0,0 +1,81 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.agentidentity.v1", + "libraryPackage": "com.google.cloud.agentidentity.v1", + "services": { + "AuthProviderService": { + "clients": { + "grpc": { + "libraryClient": "AuthProviderServiceClient", + "rpcs": { + "CreateAuthProvider": { + "methods": ["createAuthProvider", "createAuthProvider", "createAuthProvider", "createAuthProviderCallable"] + }, + "DeleteAuthProvider": { + "methods": ["deleteAuthProvider", "deleteAuthProvider", "deleteAuthProvider", "deleteAuthProviderCallable"] + }, + "DeleteAuthorization": { + "methods": ["deleteAuthorization", "deleteAuthorization", "deleteAuthorization", "deleteAuthorizationCallable"] + }, + "DisableAuthProvider": { + "methods": ["disableAuthProvider", "disableAuthProvider", "disableAuthProvider", "disableAuthProviderCallable"] + }, + "EnableAuthProvider": { + "methods": ["enableAuthProvider", "enableAuthProvider", "enableAuthProvider", "enableAuthProviderCallable"] + }, + "GetAccessSummary": { + "methods": ["getAccessSummary", "getAccessSummary", "getAccessSummary", "getAccessSummaryCallable"] + }, + "GetAuthProvider": { + "methods": ["getAuthProvider", "getAuthProvider", "getAuthProvider", "getAuthProviderCallable"] + }, + "GetAuthorization": { + "methods": ["getAuthorization", "getAuthorization", "getAuthorization", "getAuthorizationCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListAccessSummaries": { + "methods": ["listAccessSummaries", "listAccessSummaries", "listAccessSummaries", "listAccessSummariesPagedCallable", "listAccessSummariesCallable"] + }, + "ListAuthProviders": { + "methods": ["listAuthProviders", "listAuthProviders", "listAuthProviders", "listAuthProvidersPagedCallable", "listAuthProvidersCallable"] + }, + "ListAuthorizations": { + "methods": ["listAuthorizations", "listAuthorizations", "listAuthorizations", "listAuthorizationsPagedCallable", "listAuthorizationsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "QueryAuthProviders": { + "methods": ["queryAuthProviders", "queryAuthProviders", "queryAuthProviders", "queryAuthProvidersPagedCallable", "queryAuthProvidersCallable"] + }, + "QueryWorkloads": { + "methods": ["queryWorkloads", "queryWorkloads", "queryWorkloads", "queryWorkloadsPagedCallable", "queryWorkloadsCallable"] + }, + "RevokeAuthorization": { + "methods": ["revokeAuthorization", "revokeAuthorization", "revokeAuthorization", "revokeAuthorizationCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UndeleteAuthProvider": { + "methods": ["undeleteAuthProvider", "undeleteAuthProvider", "undeleteAuthProvider", "undeleteAuthProviderCallable"] + }, + "UpdateAuthProvider": { + "methods": ["updateAuthProvider", "updateAuthProvider", "updateAuthProviderCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/package-info.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/package-info.java new file mode 100644 index 000000000000..072dd765c5ae --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/package-info.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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 Agent Identity API + * + *

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

======================= AuthProviderServiceClient ======================= + * + *

Service Description: Service describing handlers for resources + * + *

Sample for AuthProviderServiceClient: + * + *

{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ *   AuthProvider response = authProviderServiceClient.getAuthProvider(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.agentidentity.v1; + +import javax.annotation.Generated; diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/AuthProviderServiceStub.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/AuthProviderServiceStub.java new file mode 100644 index 000000000000..a61be9e9db5c --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/AuthProviderServiceStub.java @@ -0,0 +1,198 @@ +/* + * Copyright 2026 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.agentidentity.v1.stub; + +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.Authorization; +import com.google.cloud.agentidentity.v1.CreateAuthProviderRequest; +import com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest; +import com.google.cloud.agentidentity.v1.DisableAuthProviderRequest; +import com.google.cloud.agentidentity.v1.EnableAuthProviderRequest; +import com.google.cloud.agentidentity.v1.GetAccessSummaryRequest; +import com.google.cloud.agentidentity.v1.GetAuthProviderRequest; +import com.google.cloud.agentidentity.v1.GetAuthorizationRequest; +import com.google.cloud.agentidentity.v1.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1.ListAccessSummariesResponse; +import com.google.cloud.agentidentity.v1.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1.ListAuthProvidersResponse; +import com.google.cloud.agentidentity.v1.ListAuthorizationsRequest; +import com.google.cloud.agentidentity.v1.ListAuthorizationsResponse; +import com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest; +import com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse; +import com.google.cloud.agentidentity.v1.QueryWorkloadsRequest; +import com.google.cloud.agentidentity.v1.QueryWorkloadsResponse; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse; +import com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AuthProviderService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public abstract class AuthProviderServiceStub implements BackgroundResource { + + public UnaryCallable + listAuthProvidersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAuthProvidersPagedCallable()"); + } + + public UnaryCallable + listAuthProvidersCallable() { + throw new UnsupportedOperationException("Not implemented: listAuthProvidersCallable()"); + } + + public UnaryCallable getAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: getAuthProviderCallable()"); + } + + public UnaryCallable createAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: createAuthProviderCallable()"); + } + + public UnaryCallable updateAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: updateAuthProviderCallable()"); + } + + public UnaryCallable deleteAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAuthProviderCallable()"); + } + + public UnaryCallable undeleteAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: undeleteAuthProviderCallable()"); + } + + public UnaryCallable + queryAuthProvidersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: queryAuthProvidersPagedCallable()"); + } + + public UnaryCallable + queryAuthProvidersCallable() { + throw new UnsupportedOperationException("Not implemented: queryAuthProvidersCallable()"); + } + + public UnaryCallable + queryWorkloadsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: queryWorkloadsPagedCallable()"); + } + + public UnaryCallable queryWorkloadsCallable() { + throw new UnsupportedOperationException("Not implemented: queryWorkloadsCallable()"); + } + + public UnaryCallable + listAuthorizationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAuthorizationsPagedCallable()"); + } + + public UnaryCallable + listAuthorizationsCallable() { + throw new UnsupportedOperationException("Not implemented: listAuthorizationsCallable()"); + } + + public UnaryCallable getAuthorizationCallable() { + throw new UnsupportedOperationException("Not implemented: getAuthorizationCallable()"); + } + + public UnaryCallable deleteAuthorizationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAuthorizationCallable()"); + } + + public UnaryCallable + listAccessSummariesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAccessSummariesPagedCallable()"); + } + + public UnaryCallable + listAccessSummariesCallable() { + throw new UnsupportedOperationException("Not implemented: listAccessSummariesCallable()"); + } + + public UnaryCallable getAccessSummaryCallable() { + throw new UnsupportedOperationException("Not implemented: getAccessSummaryCallable()"); + } + + public UnaryCallable + revokeAuthorizationCallable() { + throw new UnsupportedOperationException("Not implemented: revokeAuthorizationCallable()"); + } + + public UnaryCallable enableAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: enableAuthProviderCallable()"); + } + + public UnaryCallable disableAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: disableAuthProviderCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/AuthProviderServiceStubSettings.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/AuthProviderServiceStubSettings.java new file mode 100644 index 000000000000..3a751711a526 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/AuthProviderServiceStubSettings.java @@ -0,0 +1,1271 @@ +/* + * Copyright 2026 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.agentidentity.v1.stub; + +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.LibraryMetadata; +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.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.Authorization; +import com.google.cloud.agentidentity.v1.CreateAuthProviderRequest; +import com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest; +import com.google.cloud.agentidentity.v1.DisableAuthProviderRequest; +import com.google.cloud.agentidentity.v1.EnableAuthProviderRequest; +import com.google.cloud.agentidentity.v1.GetAccessSummaryRequest; +import com.google.cloud.agentidentity.v1.GetAuthProviderRequest; +import com.google.cloud.agentidentity.v1.GetAuthorizationRequest; +import com.google.cloud.agentidentity.v1.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1.ListAccessSummariesResponse; +import com.google.cloud.agentidentity.v1.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1.ListAuthProvidersResponse; +import com.google.cloud.agentidentity.v1.ListAuthorizationsRequest; +import com.google.cloud.agentidentity.v1.ListAuthorizationsResponse; +import com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest; +import com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse; +import com.google.cloud.agentidentity.v1.QueryWorkloadsRequest; +import com.google.cloud.agentidentity.v1.QueryWorkloadsResponse; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse; +import com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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.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.time.Duration; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AuthProviderServiceStub}. + * + *

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

    + *
  • The default service address (agentidentity.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getAuthProvider: + * + *

{@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
+ * AuthProviderServiceStubSettings.Builder authProviderServiceSettingsBuilder =
+ *     AuthProviderServiceStubSettings.newBuilder();
+ * authProviderServiceSettingsBuilder
+ *     .getAuthProviderSettings()
+ *     .setRetrySettings(
+ *         authProviderServiceSettingsBuilder
+ *             .getAuthProviderSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AuthProviderServiceStubSettings authProviderServiceSettings =
+ *     authProviderServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class AuthProviderServiceStubSettings 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< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + listAuthProvidersSettings; + private final UnaryCallSettings getAuthProviderSettings; + private final UnaryCallSettings + createAuthProviderSettings; + private final UnaryCallSettings + updateAuthProviderSettings; + private final UnaryCallSettings deleteAuthProviderSettings; + private final UnaryCallSettings + undeleteAuthProviderSettings; + private final PagedCallSettings< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + queryAuthProvidersSettings; + private final PagedCallSettings< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + queryWorkloadsSettings; + private final PagedCallSettings< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + listAuthorizationsSettings; + private final UnaryCallSettings getAuthorizationSettings; + private final UnaryCallSettings deleteAuthorizationSettings; + private final PagedCallSettings< + ListAccessSummariesRequest, ListAccessSummariesResponse, ListAccessSummariesPagedResponse> + listAccessSummariesSettings; + private final UnaryCallSettings getAccessSummarySettings; + private final UnaryCallSettings + revokeAuthorizationSettings; + private final UnaryCallSettings + enableAuthProviderSettings; + private final UnaryCallSettings + disableAuthProviderSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListAuthProvidersRequest, ListAuthProvidersResponse, AuthProvider> + LIST_AUTH_PROVIDERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAuthProvidersRequest, ListAuthProvidersResponse, AuthProvider>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAuthProvidersRequest injectToken( + ListAuthProvidersRequest payload, String token) { + return ListAuthProvidersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAuthProvidersRequest injectPageSize( + ListAuthProvidersRequest payload, int pageSize) { + return ListAuthProvidersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAuthProvidersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAuthProvidersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAuthProvidersResponse payload) { + return payload.getAuthProvidersList(); + } + }; + + private static final PagedListDescriptor< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, String> + QUERY_AUTH_PROVIDERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryAuthProvidersRequest injectToken( + QueryAuthProvidersRequest payload, String token) { + return QueryAuthProvidersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryAuthProvidersRequest injectPageSize( + QueryAuthProvidersRequest payload, int pageSize) { + return QueryAuthProvidersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryAuthProvidersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryAuthProvidersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(QueryAuthProvidersResponse payload) { + return payload.getAuthProviderNamesList(); + } + }; + + private static final PagedListDescriptor + QUERY_WORKLOADS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryWorkloadsRequest injectToken(QueryWorkloadsRequest payload, String token) { + return QueryWorkloadsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryWorkloadsRequest injectPageSize( + QueryWorkloadsRequest payload, int pageSize) { + return QueryWorkloadsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryWorkloadsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryWorkloadsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(QueryWorkloadsResponse payload) { + return payload.getWorkloadIdsList(); + } + }; + + private static final PagedListDescriptor< + ListAuthorizationsRequest, ListAuthorizationsResponse, Authorization> + LIST_AUTHORIZATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAuthorizationsRequest, ListAuthorizationsResponse, Authorization>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAuthorizationsRequest injectToken( + ListAuthorizationsRequest payload, String token) { + return ListAuthorizationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAuthorizationsRequest injectPageSize( + ListAuthorizationsRequest payload, int pageSize) { + return ListAuthorizationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAuthorizationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAuthorizationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAuthorizationsResponse payload) { + return payload.getAuthorizationsList(); + } + }; + + private static final PagedListDescriptor< + ListAccessSummariesRequest, ListAccessSummariesResponse, AccessSummary> + LIST_ACCESS_SUMMARIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListAccessSummariesRequest, ListAccessSummariesResponse, AccessSummary>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAccessSummariesRequest injectToken( + ListAccessSummariesRequest payload, String token) { + return ListAccessSummariesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAccessSummariesRequest injectPageSize( + ListAccessSummariesRequest payload, int pageSize) { + return ListAccessSummariesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAccessSummariesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAccessSummariesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAccessSummariesResponse payload) { + return payload.getAccessSummariesList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + LIST_AUTH_PROVIDERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAuthProvidersRequest, + ListAuthProvidersResponse, + ListAuthProvidersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAuthProvidersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_AUTH_PROVIDERS_PAGE_STR_DESC, request, context); + return ListAuthProvidersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + QUERY_AUTH_PROVIDERS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryAuthProvidersRequest, + QueryAuthProvidersResponse, + QueryAuthProvidersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryAuthProvidersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, QUERY_AUTH_PROVIDERS_PAGE_STR_DESC, request, context); + return QueryAuthProvidersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + QUERY_WORKLOADS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryWorkloadsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, QUERY_WORKLOADS_PAGE_STR_DESC, request, context); + return QueryWorkloadsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + LIST_AUTHORIZATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAuthorizationsRequest, + ListAuthorizationsResponse, + ListAuthorizationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAuthorizationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_AUTHORIZATIONS_PAGE_STR_DESC, request, context); + return ListAuthorizationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAccessSummariesRequest, ListAccessSummariesResponse, ListAccessSummariesPagedResponse> + LIST_ACCESS_SUMMARIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + ListAccessSummariesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAccessSummariesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_ACCESS_SUMMARIES_PAGE_STR_DESC, request, context); + return ListAccessSummariesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listAuthProviders. */ + public PagedCallSettings< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + listAuthProvidersSettings() { + return listAuthProvidersSettings; + } + + /** Returns the object with the settings used for calls to getAuthProvider. */ + public UnaryCallSettings getAuthProviderSettings() { + return getAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to createAuthProvider. */ + public UnaryCallSettings createAuthProviderSettings() { + return createAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to updateAuthProvider. */ + public UnaryCallSettings updateAuthProviderSettings() { + return updateAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to deleteAuthProvider. */ + public UnaryCallSettings deleteAuthProviderSettings() { + return deleteAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to undeleteAuthProvider. */ + public UnaryCallSettings + undeleteAuthProviderSettings() { + return undeleteAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to queryAuthProviders. */ + public PagedCallSettings< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + queryAuthProvidersSettings() { + return queryAuthProvidersSettings; + } + + /** Returns the object with the settings used for calls to queryWorkloads. */ + public PagedCallSettings< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + queryWorkloadsSettings() { + return queryWorkloadsSettings; + } + + /** Returns the object with the settings used for calls to listAuthorizations. */ + public PagedCallSettings< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + listAuthorizationsSettings() { + return listAuthorizationsSettings; + } + + /** Returns the object with the settings used for calls to getAuthorization. */ + public UnaryCallSettings getAuthorizationSettings() { + return getAuthorizationSettings; + } + + /** Returns the object with the settings used for calls to deleteAuthorization. */ + public UnaryCallSettings deleteAuthorizationSettings() { + return deleteAuthorizationSettings; + } + + /** Returns the object with the settings used for calls to listAccessSummaries. */ + public PagedCallSettings< + ListAccessSummariesRequest, ListAccessSummariesResponse, ListAccessSummariesPagedResponse> + listAccessSummariesSettings() { + return listAccessSummariesSettings; + } + + /** Returns the object with the settings used for calls to getAccessSummary. */ + public UnaryCallSettings getAccessSummarySettings() { + return getAccessSummarySettings; + } + + /** Returns the object with the settings used for calls to revokeAuthorization. */ + public UnaryCallSettings + revokeAuthorizationSettings() { + return revokeAuthorizationSettings; + } + + /** Returns the object with the settings used for calls to enableAuthProvider. */ + public UnaryCallSettings enableAuthProviderSettings() { + return enableAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to disableAuthProvider. */ + public UnaryCallSettings disableAuthProviderSettings() { + return disableAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** 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 getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public AuthProviderServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAuthProviderServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAuthProviderServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "agentidentity"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "agentidentity.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "agentidentity.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 gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AuthProviderServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AuthProviderServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AuthProviderServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable 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 AuthProviderServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listAuthProvidersSettings = settingsBuilder.listAuthProvidersSettings().build(); + getAuthProviderSettings = settingsBuilder.getAuthProviderSettings().build(); + createAuthProviderSettings = settingsBuilder.createAuthProviderSettings().build(); + updateAuthProviderSettings = settingsBuilder.updateAuthProviderSettings().build(); + deleteAuthProviderSettings = settingsBuilder.deleteAuthProviderSettings().build(); + undeleteAuthProviderSettings = settingsBuilder.undeleteAuthProviderSettings().build(); + queryAuthProvidersSettings = settingsBuilder.queryAuthProvidersSettings().build(); + queryWorkloadsSettings = settingsBuilder.queryWorkloadsSettings().build(); + listAuthorizationsSettings = settingsBuilder.listAuthorizationsSettings().build(); + getAuthorizationSettings = settingsBuilder.getAuthorizationSettings().build(); + deleteAuthorizationSettings = settingsBuilder.deleteAuthorizationSettings().build(); + listAccessSummariesSettings = settingsBuilder.listAccessSummariesSettings().build(); + getAccessSummarySettings = settingsBuilder.getAccessSummarySettings().build(); + revokeAuthorizationSettings = settingsBuilder.revokeAuthorizationSettings().build(); + enableAuthProviderSettings = settingsBuilder.enableAuthProviderSettings().build(); + disableAuthProviderSettings = settingsBuilder.disableAuthProviderSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-agentidentity") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for AuthProviderServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + listAuthProvidersSettings; + private final UnaryCallSettings.Builder + getAuthProviderSettings; + private final UnaryCallSettings.Builder + createAuthProviderSettings; + private final UnaryCallSettings.Builder + updateAuthProviderSettings; + private final UnaryCallSettings.Builder + deleteAuthProviderSettings; + private final UnaryCallSettings.Builder + undeleteAuthProviderSettings; + private final PagedCallSettings.Builder< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + queryAuthProvidersSettings; + private final PagedCallSettings.Builder< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + queryWorkloadsSettings; + private final PagedCallSettings.Builder< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + listAuthorizationsSettings; + private final UnaryCallSettings.Builder + getAuthorizationSettings; + private final UnaryCallSettings.Builder + deleteAuthorizationSettings; + private final PagedCallSettings.Builder< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + ListAccessSummariesPagedResponse> + listAccessSummariesSettings; + private final UnaryCallSettings.Builder + getAccessSummarySettings; + private final UnaryCallSettings.Builder + revokeAuthorizationSettings; + private final UnaryCallSettings.Builder + enableAuthProviderSettings; + private final UnaryCallSettings.Builder + disableAuthProviderSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + 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))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(clientContext); + + listAuthProvidersSettings = PagedCallSettings.newBuilder(LIST_AUTH_PROVIDERS_PAGE_STR_FACT); + getAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + undeleteAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + queryAuthProvidersSettings = PagedCallSettings.newBuilder(QUERY_AUTH_PROVIDERS_PAGE_STR_FACT); + queryWorkloadsSettings = PagedCallSettings.newBuilder(QUERY_WORKLOADS_PAGE_STR_FACT); + listAuthorizationsSettings = PagedCallSettings.newBuilder(LIST_AUTHORIZATIONS_PAGE_STR_FACT); + getAuthorizationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAuthorizationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAccessSummariesSettings = + PagedCallSettings.newBuilder(LIST_ACCESS_SUMMARIES_PAGE_STR_FACT); + getAccessSummarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + revokeAuthorizationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + enableAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + disableAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAuthProvidersSettings, + getAuthProviderSettings, + createAuthProviderSettings, + updateAuthProviderSettings, + deleteAuthProviderSettings, + undeleteAuthProviderSettings, + queryAuthProvidersSettings, + queryWorkloadsSettings, + listAuthorizationsSettings, + getAuthorizationSettings, + deleteAuthorizationSettings, + listAccessSummariesSettings, + getAccessSummarySettings, + revokeAuthorizationSettings, + enableAuthProviderSettings, + disableAuthProviderSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(AuthProviderServiceStubSettings settings) { + super(settings); + + listAuthProvidersSettings = settings.listAuthProvidersSettings.toBuilder(); + getAuthProviderSettings = settings.getAuthProviderSettings.toBuilder(); + createAuthProviderSettings = settings.createAuthProviderSettings.toBuilder(); + updateAuthProviderSettings = settings.updateAuthProviderSettings.toBuilder(); + deleteAuthProviderSettings = settings.deleteAuthProviderSettings.toBuilder(); + undeleteAuthProviderSettings = settings.undeleteAuthProviderSettings.toBuilder(); + queryAuthProvidersSettings = settings.queryAuthProvidersSettings.toBuilder(); + queryWorkloadsSettings = settings.queryWorkloadsSettings.toBuilder(); + listAuthorizationsSettings = settings.listAuthorizationsSettings.toBuilder(); + getAuthorizationSettings = settings.getAuthorizationSettings.toBuilder(); + deleteAuthorizationSettings = settings.deleteAuthorizationSettings.toBuilder(); + listAccessSummariesSettings = settings.listAccessSummariesSettings.toBuilder(); + getAccessSummarySettings = settings.getAccessSummarySettings.toBuilder(); + revokeAuthorizationSettings = settings.revokeAuthorizationSettings.toBuilder(); + enableAuthProviderSettings = settings.enableAuthProviderSettings.toBuilder(); + disableAuthProviderSettings = settings.disableAuthProviderSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAuthProvidersSettings, + getAuthProviderSettings, + createAuthProviderSettings, + updateAuthProviderSettings, + deleteAuthProviderSettings, + undeleteAuthProviderSettings, + queryAuthProvidersSettings, + queryWorkloadsSettings, + listAuthorizationsSettings, + getAuthorizationSettings, + deleteAuthorizationSettings, + listAccessSummariesSettings, + getAccessSummarySettings, + revokeAuthorizationSettings, + enableAuthProviderSettings, + disableAuthProviderSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listAuthProvidersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .undeleteAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .queryAuthProvidersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .queryWorkloadsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAuthorizationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAuthorizationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteAuthorizationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAccessSummariesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAccessSummarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .revokeAuthorizationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .enableAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .disableAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_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 listAuthProviders. */ + public PagedCallSettings.Builder< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + listAuthProvidersSettings() { + return listAuthProvidersSettings; + } + + /** Returns the builder for the settings used for calls to getAuthProvider. */ + public UnaryCallSettings.Builder + getAuthProviderSettings() { + return getAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to createAuthProvider. */ + public UnaryCallSettings.Builder + createAuthProviderSettings() { + return createAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to updateAuthProvider. */ + public UnaryCallSettings.Builder + updateAuthProviderSettings() { + return updateAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to deleteAuthProvider. */ + public UnaryCallSettings.Builder + deleteAuthProviderSettings() { + return deleteAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to undeleteAuthProvider. */ + public UnaryCallSettings.Builder + undeleteAuthProviderSettings() { + return undeleteAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to queryAuthProviders. */ + public PagedCallSettings.Builder< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + queryAuthProvidersSettings() { + return queryAuthProvidersSettings; + } + + /** Returns the builder for the settings used for calls to queryWorkloads. */ + public PagedCallSettings.Builder< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + queryWorkloadsSettings() { + return queryWorkloadsSettings; + } + + /** Returns the builder for the settings used for calls to listAuthorizations. */ + public PagedCallSettings.Builder< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + listAuthorizationsSettings() { + return listAuthorizationsSettings; + } + + /** Returns the builder for the settings used for calls to getAuthorization. */ + public UnaryCallSettings.Builder + getAuthorizationSettings() { + return getAuthorizationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAuthorization. */ + public UnaryCallSettings.Builder + deleteAuthorizationSettings() { + return deleteAuthorizationSettings; + } + + /** Returns the builder for the settings used for calls to listAccessSummaries. */ + public PagedCallSettings.Builder< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + ListAccessSummariesPagedResponse> + listAccessSummariesSettings() { + return listAccessSummariesSettings; + } + + /** Returns the builder for the settings used for calls to getAccessSummary. */ + public UnaryCallSettings.Builder + getAccessSummarySettings() { + return getAccessSummarySettings; + } + + /** Returns the builder for the settings used for calls to revokeAuthorization. */ + public UnaryCallSettings.Builder + revokeAuthorizationSettings() { + return revokeAuthorizationSettings; + } + + /** Returns the builder for the settings used for calls to enableAuthProvider. */ + public UnaryCallSettings.Builder + enableAuthProviderSettings() { + return enableAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to disableAuthProvider. */ + public UnaryCallSettings.Builder + disableAuthProviderSettings() { + return disableAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** 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 getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public AuthProviderServiceStubSettings build() throws IOException { + return new AuthProviderServiceStubSettings(this); + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/GrpcAuthProviderServiceCallableFactory.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/GrpcAuthProviderServiceCallableFactory.java new file mode 100644 index 000000000000..7325e71859ac --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/GrpcAuthProviderServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 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.agentidentity.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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AuthProviderService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcAuthProviderServiceCallableFactory 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/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/GrpcAuthProviderServiceStub.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/GrpcAuthProviderServiceStub.java new file mode 100644 index 000000000000..6b7084bdd370 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/GrpcAuthProviderServiceStub.java @@ -0,0 +1,963 @@ +/* + * Copyright 2026 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.agentidentity.v1.stub; + +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +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.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.Authorization; +import com.google.cloud.agentidentity.v1.CreateAuthProviderRequest; +import com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest; +import com.google.cloud.agentidentity.v1.DisableAuthProviderRequest; +import com.google.cloud.agentidentity.v1.EnableAuthProviderRequest; +import com.google.cloud.agentidentity.v1.GetAccessSummaryRequest; +import com.google.cloud.agentidentity.v1.GetAuthProviderRequest; +import com.google.cloud.agentidentity.v1.GetAuthorizationRequest; +import com.google.cloud.agentidentity.v1.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1.ListAccessSummariesResponse; +import com.google.cloud.agentidentity.v1.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1.ListAuthProvidersResponse; +import com.google.cloud.agentidentity.v1.ListAuthorizationsRequest; +import com.google.cloud.agentidentity.v1.ListAuthorizationsResponse; +import com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest; +import com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse; +import com.google.cloud.agentidentity.v1.QueryWorkloadsRequest; +import com.google.cloud.agentidentity.v1.QueryWorkloadsResponse; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse; +import com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AuthProviderService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class GrpcAuthProviderServiceStub extends AuthProviderServiceStub { + private static final MethodDescriptor + listAuthProvidersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/ListAuthProviders") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAuthProvidersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAuthProvidersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/GetAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthProvider.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/CreateAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthProvider.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/UpdateAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthProvider.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/DeleteAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + undeleteAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/UndeleteAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(UndeleteAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthProvider.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + queryAuthProvidersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/QueryAuthProviders") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryAuthProvidersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryAuthProvidersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + queryWorkloadsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.agentidentity.v1.AuthProviderService/QueryWorkloads") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryWorkloadsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryWorkloadsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAuthorizationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/ListAuthorizations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAuthorizationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAuthorizationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAuthorizationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/GetAuthorization") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAuthorizationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Authorization.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAuthorizationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/DeleteAuthorization") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAuthorizationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAccessSummariesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/ListAccessSummaries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAccessSummariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAccessSummariesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAccessSummaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/GetAccessSummary") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAccessSummaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AccessSummary.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + revokeAuthorizationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/RevokeAuthorization") + .setRequestMarshaller( + ProtoUtils.marshaller(RevokeAuthorizationRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RevokeAuthorizationResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + enableAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/EnableAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(EnableAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthProvider.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + disableAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/DisableAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(DisableAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthProvider.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + listAuthProvidersCallable; + private final UnaryCallable + listAuthProvidersPagedCallable; + private final UnaryCallable getAuthProviderCallable; + private final UnaryCallable createAuthProviderCallable; + private final UnaryCallable updateAuthProviderCallable; + private final UnaryCallable deleteAuthProviderCallable; + private final UnaryCallable + undeleteAuthProviderCallable; + private final UnaryCallable + queryAuthProvidersCallable; + private final UnaryCallable + queryAuthProvidersPagedCallable; + private final UnaryCallable queryWorkloadsCallable; + private final UnaryCallable + queryWorkloadsPagedCallable; + private final UnaryCallable + listAuthorizationsCallable; + private final UnaryCallable + listAuthorizationsPagedCallable; + private final UnaryCallable getAuthorizationCallable; + private final UnaryCallable deleteAuthorizationCallable; + private final UnaryCallable + listAccessSummariesCallable; + private final UnaryCallable + listAccessSummariesPagedCallable; + private final UnaryCallable getAccessSummaryCallable; + private final UnaryCallable + revokeAuthorizationCallable; + private final UnaryCallable enableAuthProviderCallable; + private final UnaryCallable disableAuthProviderCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAuthProviderServiceStub create(AuthProviderServiceStubSettings settings) + throws IOException { + return new GrpcAuthProviderServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAuthProviderServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAuthProviderServiceStub( + AuthProviderServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAuthProviderServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAuthProviderServiceStub( + AuthProviderServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAuthProviderServiceStub, 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 GrpcAuthProviderServiceStub( + AuthProviderServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAuthProviderServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAuthProviderServiceStub, 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 GrpcAuthProviderServiceStub( + AuthProviderServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listAuthProvidersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAuthProvidersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "auth_provider.name", String.valueOf(request.getAuthProvider().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + undeleteAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(undeleteAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + queryAuthProvidersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(queryAuthProvidersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + queryWorkloadsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(queryWorkloadsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAuthorizationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAuthorizationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAuthorizationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAuthorizationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings deleteAuthorizationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAuthorizationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAccessSummariesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAccessSummariesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAccessSummaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAccessSummaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + revokeAuthorizationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(revokeAuthorizationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings enableAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(enableAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + disableAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(disableAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.listAuthProvidersCallable = + callableFactory.createUnaryCallable( + listAuthProvidersTransportSettings, + settings.listAuthProvidersSettings(), + clientContext); + this.listAuthProvidersPagedCallable = + callableFactory.createPagedCallable( + listAuthProvidersTransportSettings, + settings.listAuthProvidersSettings(), + clientContext); + this.getAuthProviderCallable = + callableFactory.createUnaryCallable( + getAuthProviderTransportSettings, settings.getAuthProviderSettings(), clientContext); + this.createAuthProviderCallable = + callableFactory.createUnaryCallable( + createAuthProviderTransportSettings, + settings.createAuthProviderSettings(), + clientContext); + this.updateAuthProviderCallable = + callableFactory.createUnaryCallable( + updateAuthProviderTransportSettings, + settings.updateAuthProviderSettings(), + clientContext); + this.deleteAuthProviderCallable = + callableFactory.createUnaryCallable( + deleteAuthProviderTransportSettings, + settings.deleteAuthProviderSettings(), + clientContext); + this.undeleteAuthProviderCallable = + callableFactory.createUnaryCallable( + undeleteAuthProviderTransportSettings, + settings.undeleteAuthProviderSettings(), + clientContext); + this.queryAuthProvidersCallable = + callableFactory.createUnaryCallable( + queryAuthProvidersTransportSettings, + settings.queryAuthProvidersSettings(), + clientContext); + this.queryAuthProvidersPagedCallable = + callableFactory.createPagedCallable( + queryAuthProvidersTransportSettings, + settings.queryAuthProvidersSettings(), + clientContext); + this.queryWorkloadsCallable = + callableFactory.createUnaryCallable( + queryWorkloadsTransportSettings, settings.queryWorkloadsSettings(), clientContext); + this.queryWorkloadsPagedCallable = + callableFactory.createPagedCallable( + queryWorkloadsTransportSettings, settings.queryWorkloadsSettings(), clientContext); + this.listAuthorizationsCallable = + callableFactory.createUnaryCallable( + listAuthorizationsTransportSettings, + settings.listAuthorizationsSettings(), + clientContext); + this.listAuthorizationsPagedCallable = + callableFactory.createPagedCallable( + listAuthorizationsTransportSettings, + settings.listAuthorizationsSettings(), + clientContext); + this.getAuthorizationCallable = + callableFactory.createUnaryCallable( + getAuthorizationTransportSettings, settings.getAuthorizationSettings(), clientContext); + this.deleteAuthorizationCallable = + callableFactory.createUnaryCallable( + deleteAuthorizationTransportSettings, + settings.deleteAuthorizationSettings(), + clientContext); + this.listAccessSummariesCallable = + callableFactory.createUnaryCallable( + listAccessSummariesTransportSettings, + settings.listAccessSummariesSettings(), + clientContext); + this.listAccessSummariesPagedCallable = + callableFactory.createPagedCallable( + listAccessSummariesTransportSettings, + settings.listAccessSummariesSettings(), + clientContext); + this.getAccessSummaryCallable = + callableFactory.createUnaryCallable( + getAccessSummaryTransportSettings, settings.getAccessSummarySettings(), clientContext); + this.revokeAuthorizationCallable = + callableFactory.createUnaryCallable( + revokeAuthorizationTransportSettings, + settings.revokeAuthorizationSettings(), + clientContext); + this.enableAuthProviderCallable = + callableFactory.createUnaryCallable( + enableAuthProviderTransportSettings, + settings.enableAuthProviderSettings(), + clientContext); + this.disableAuthProviderCallable = + callableFactory.createUnaryCallable( + disableAuthProviderTransportSettings, + settings.disableAuthProviderSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listAuthProvidersCallable() { + return listAuthProvidersCallable; + } + + @Override + public UnaryCallable + listAuthProvidersPagedCallable() { + return listAuthProvidersPagedCallable; + } + + @Override + public UnaryCallable getAuthProviderCallable() { + return getAuthProviderCallable; + } + + @Override + public UnaryCallable createAuthProviderCallable() { + return createAuthProviderCallable; + } + + @Override + public UnaryCallable updateAuthProviderCallable() { + return updateAuthProviderCallable; + } + + @Override + public UnaryCallable deleteAuthProviderCallable() { + return deleteAuthProviderCallable; + } + + @Override + public UnaryCallable undeleteAuthProviderCallable() { + return undeleteAuthProviderCallable; + } + + @Override + public UnaryCallable + queryAuthProvidersCallable() { + return queryAuthProvidersCallable; + } + + @Override + public UnaryCallable + queryAuthProvidersPagedCallable() { + return queryAuthProvidersPagedCallable; + } + + @Override + public UnaryCallable queryWorkloadsCallable() { + return queryWorkloadsCallable; + } + + @Override + public UnaryCallable + queryWorkloadsPagedCallable() { + return queryWorkloadsPagedCallable; + } + + @Override + public UnaryCallable + listAuthorizationsCallable() { + return listAuthorizationsCallable; + } + + @Override + public UnaryCallable + listAuthorizationsPagedCallable() { + return listAuthorizationsPagedCallable; + } + + @Override + public UnaryCallable getAuthorizationCallable() { + return getAuthorizationCallable; + } + + @Override + public UnaryCallable deleteAuthorizationCallable() { + return deleteAuthorizationCallable; + } + + @Override + public UnaryCallable + listAccessSummariesCallable() { + return listAccessSummariesCallable; + } + + @Override + public UnaryCallable + listAccessSummariesPagedCallable() { + return listAccessSummariesPagedCallable; + } + + @Override + public UnaryCallable getAccessSummaryCallable() { + return getAccessSummaryCallable; + } + + @Override + public UnaryCallable + revokeAuthorizationCallable() { + return revokeAuthorizationCallable; + } + + @Override + public UnaryCallable enableAuthProviderCallable() { + return enableAuthProviderCallable; + } + + @Override + public UnaryCallable disableAuthProviderCallable() { + return disableAuthProviderCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/HttpJsonAuthProviderServiceCallableFactory.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/HttpJsonAuthProviderServiceCallableFactory.java new file mode 100644 index 000000000000..b8863203ac2b --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/HttpJsonAuthProviderServiceCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 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.agentidentity.v1.stub; + +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +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.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AuthProviderService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonAuthProviderServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/HttpJsonAuthProviderServiceStub.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/HttpJsonAuthProviderServiceStub.java new file mode 100644 index 000000000000..b843c9b9e53d --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/HttpJsonAuthProviderServiceStub.java @@ -0,0 +1,1555 @@ +/* + * Copyright 2026 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.agentidentity.v1.stub; + +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.Authorization; +import com.google.cloud.agentidentity.v1.CreateAuthProviderRequest; +import com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest; +import com.google.cloud.agentidentity.v1.DisableAuthProviderRequest; +import com.google.cloud.agentidentity.v1.EnableAuthProviderRequest; +import com.google.cloud.agentidentity.v1.GetAccessSummaryRequest; +import com.google.cloud.agentidentity.v1.GetAuthProviderRequest; +import com.google.cloud.agentidentity.v1.GetAuthorizationRequest; +import com.google.cloud.agentidentity.v1.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1.ListAccessSummariesResponse; +import com.google.cloud.agentidentity.v1.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1.ListAuthProvidersResponse; +import com.google.cloud.agentidentity.v1.ListAuthorizationsRequest; +import com.google.cloud.agentidentity.v1.ListAuthorizationsResponse; +import com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest; +import com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse; +import com.google.cloud.agentidentity.v1.QueryWorkloadsRequest; +import com.google.cloud.agentidentity.v1.QueryWorkloadsResponse; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse; +import com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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 com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AuthProviderService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@Generated("by gapic-generator-java") +public class HttpJsonAuthProviderServiceStub extends AuthProviderServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + listAuthProvidersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/ListAuthProviders") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/authProviders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "showDeleted", request.getShowDeleted()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAuthProvidersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/GetAuthProvider") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/authProviders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthProvider.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/CreateAuthProvider") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/authProviders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "authProviderId", request.getAuthProviderId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("authProvider", request.getAuthProvider(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthProvider.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/UpdateAuthProvider") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{authProvider.name=projects/*/locations/*/authProviders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "authProvider.name", request.getAuthProvider().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("authProvider", request.getAuthProvider(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthProvider.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/DeleteAuthProvider") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/authProviders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + undeleteAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/UndeleteAuthProvider") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/authProviders/*}:undelete", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthProvider.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + queryAuthProvidersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/QueryAuthProviders") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/authProviders:query", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "workloadId", request.getWorkloadId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryAuthProvidersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + queryWorkloadsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.agentidentity.v1.AuthProviderService/QueryWorkloads") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/authProviders/*}:queryWorkloads", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryWorkloadsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAuthorizationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/ListAuthorizations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/authProviders/*}/authorizations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAuthorizationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAuthorizationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/GetAuthorization") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/authProviders/*/authorizations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Authorization.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAuthorizationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/DeleteAuthorization") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/authProviders/*/authorizations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAccessSummariesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/ListAccessSummaries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/accessSummaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAccessSummariesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAccessSummaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/GetAccessSummary") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/accessSummaries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessSummary.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + revokeAuthorizationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/RevokeAuthorization") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/authProviders/*}:revokeAuthorization", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RevokeAuthorizationResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + enableAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/EnableAuthProvider") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/authProviders/*}:enable", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthProvider.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + disableAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1.AuthProviderService/DisableAuthProvider") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/authProviders/*}:disable", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthProvider.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/authProviders/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/authProviders/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{resource=projects/*/locations/*/authProviders/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listAuthProvidersCallable; + private final UnaryCallable + listAuthProvidersPagedCallable; + private final UnaryCallable getAuthProviderCallable; + private final UnaryCallable createAuthProviderCallable; + private final UnaryCallable updateAuthProviderCallable; + private final UnaryCallable deleteAuthProviderCallable; + private final UnaryCallable + undeleteAuthProviderCallable; + private final UnaryCallable + queryAuthProvidersCallable; + private final UnaryCallable + queryAuthProvidersPagedCallable; + private final UnaryCallable queryWorkloadsCallable; + private final UnaryCallable + queryWorkloadsPagedCallable; + private final UnaryCallable + listAuthorizationsCallable; + private final UnaryCallable + listAuthorizationsPagedCallable; + private final UnaryCallable getAuthorizationCallable; + private final UnaryCallable deleteAuthorizationCallable; + private final UnaryCallable + listAccessSummariesCallable; + private final UnaryCallable + listAccessSummariesPagedCallable; + private final UnaryCallable getAccessSummaryCallable; + private final UnaryCallable + revokeAuthorizationCallable; + private final UnaryCallable enableAuthProviderCallable; + private final UnaryCallable disableAuthProviderCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAuthProviderServiceStub create( + AuthProviderServiceStubSettings settings) throws IOException { + return new HttpJsonAuthProviderServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAuthProviderServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAuthProviderServiceStub( + AuthProviderServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAuthProviderServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAuthProviderServiceStub( + AuthProviderServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonAuthProviderServiceStub, 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 HttpJsonAuthProviderServiceStub( + AuthProviderServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAuthProviderServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAuthProviderServiceStub, 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 HttpJsonAuthProviderServiceStub( + AuthProviderServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + listAuthProvidersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAuthProvidersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + createAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + updateAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "auth_provider.name", + String.valueOf(request.getAuthProvider().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + undeleteAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(undeleteAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + queryAuthProvidersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(queryAuthProvidersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + queryWorkloadsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(queryWorkloadsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAuthorizationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAuthorizationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAuthorizationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAuthorizationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings deleteAuthorizationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAuthorizationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAccessSummariesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAccessSummariesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAccessSummaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAccessSummaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + revokeAuthorizationTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(revokeAuthorizationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + enableAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(enableAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + disableAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(disableAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.listAuthProvidersCallable = + callableFactory.createUnaryCallable( + listAuthProvidersTransportSettings, + settings.listAuthProvidersSettings(), + clientContext); + this.listAuthProvidersPagedCallable = + callableFactory.createPagedCallable( + listAuthProvidersTransportSettings, + settings.listAuthProvidersSettings(), + clientContext); + this.getAuthProviderCallable = + callableFactory.createUnaryCallable( + getAuthProviderTransportSettings, settings.getAuthProviderSettings(), clientContext); + this.createAuthProviderCallable = + callableFactory.createUnaryCallable( + createAuthProviderTransportSettings, + settings.createAuthProviderSettings(), + clientContext); + this.updateAuthProviderCallable = + callableFactory.createUnaryCallable( + updateAuthProviderTransportSettings, + settings.updateAuthProviderSettings(), + clientContext); + this.deleteAuthProviderCallable = + callableFactory.createUnaryCallable( + deleteAuthProviderTransportSettings, + settings.deleteAuthProviderSettings(), + clientContext); + this.undeleteAuthProviderCallable = + callableFactory.createUnaryCallable( + undeleteAuthProviderTransportSettings, + settings.undeleteAuthProviderSettings(), + clientContext); + this.queryAuthProvidersCallable = + callableFactory.createUnaryCallable( + queryAuthProvidersTransportSettings, + settings.queryAuthProvidersSettings(), + clientContext); + this.queryAuthProvidersPagedCallable = + callableFactory.createPagedCallable( + queryAuthProvidersTransportSettings, + settings.queryAuthProvidersSettings(), + clientContext); + this.queryWorkloadsCallable = + callableFactory.createUnaryCallable( + queryWorkloadsTransportSettings, settings.queryWorkloadsSettings(), clientContext); + this.queryWorkloadsPagedCallable = + callableFactory.createPagedCallable( + queryWorkloadsTransportSettings, settings.queryWorkloadsSettings(), clientContext); + this.listAuthorizationsCallable = + callableFactory.createUnaryCallable( + listAuthorizationsTransportSettings, + settings.listAuthorizationsSettings(), + clientContext); + this.listAuthorizationsPagedCallable = + callableFactory.createPagedCallable( + listAuthorizationsTransportSettings, + settings.listAuthorizationsSettings(), + clientContext); + this.getAuthorizationCallable = + callableFactory.createUnaryCallable( + getAuthorizationTransportSettings, settings.getAuthorizationSettings(), clientContext); + this.deleteAuthorizationCallable = + callableFactory.createUnaryCallable( + deleteAuthorizationTransportSettings, + settings.deleteAuthorizationSettings(), + clientContext); + this.listAccessSummariesCallable = + callableFactory.createUnaryCallable( + listAccessSummariesTransportSettings, + settings.listAccessSummariesSettings(), + clientContext); + this.listAccessSummariesPagedCallable = + callableFactory.createPagedCallable( + listAccessSummariesTransportSettings, + settings.listAccessSummariesSettings(), + clientContext); + this.getAccessSummaryCallable = + callableFactory.createUnaryCallable( + getAccessSummaryTransportSettings, settings.getAccessSummarySettings(), clientContext); + this.revokeAuthorizationCallable = + callableFactory.createUnaryCallable( + revokeAuthorizationTransportSettings, + settings.revokeAuthorizationSettings(), + clientContext); + this.enableAuthProviderCallable = + callableFactory.createUnaryCallable( + enableAuthProviderTransportSettings, + settings.enableAuthProviderSettings(), + clientContext); + this.disableAuthProviderCallable = + callableFactory.createUnaryCallable( + disableAuthProviderTransportSettings, + settings.disableAuthProviderSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listAuthProvidersMethodDescriptor); + methodDescriptors.add(getAuthProviderMethodDescriptor); + methodDescriptors.add(createAuthProviderMethodDescriptor); + methodDescriptors.add(updateAuthProviderMethodDescriptor); + methodDescriptors.add(deleteAuthProviderMethodDescriptor); + methodDescriptors.add(undeleteAuthProviderMethodDescriptor); + methodDescriptors.add(queryAuthProvidersMethodDescriptor); + methodDescriptors.add(queryWorkloadsMethodDescriptor); + methodDescriptors.add(listAuthorizationsMethodDescriptor); + methodDescriptors.add(getAuthorizationMethodDescriptor); + methodDescriptors.add(deleteAuthorizationMethodDescriptor); + methodDescriptors.add(listAccessSummariesMethodDescriptor); + methodDescriptors.add(getAccessSummaryMethodDescriptor); + methodDescriptors.add(revokeAuthorizationMethodDescriptor); + methodDescriptors.add(enableAuthProviderMethodDescriptor); + methodDescriptors.add(disableAuthProviderMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + listAuthProvidersCallable() { + return listAuthProvidersCallable; + } + + @Override + public UnaryCallable + listAuthProvidersPagedCallable() { + return listAuthProvidersPagedCallable; + } + + @Override + public UnaryCallable getAuthProviderCallable() { + return getAuthProviderCallable; + } + + @Override + public UnaryCallable createAuthProviderCallable() { + return createAuthProviderCallable; + } + + @Override + public UnaryCallable updateAuthProviderCallable() { + return updateAuthProviderCallable; + } + + @Override + public UnaryCallable deleteAuthProviderCallable() { + return deleteAuthProviderCallable; + } + + @Override + public UnaryCallable undeleteAuthProviderCallable() { + return undeleteAuthProviderCallable; + } + + @Override + public UnaryCallable + queryAuthProvidersCallable() { + return queryAuthProvidersCallable; + } + + @Override + public UnaryCallable + queryAuthProvidersPagedCallable() { + return queryAuthProvidersPagedCallable; + } + + @Override + public UnaryCallable queryWorkloadsCallable() { + return queryWorkloadsCallable; + } + + @Override + public UnaryCallable + queryWorkloadsPagedCallable() { + return queryWorkloadsPagedCallable; + } + + @Override + public UnaryCallable + listAuthorizationsCallable() { + return listAuthorizationsCallable; + } + + @Override + public UnaryCallable + listAuthorizationsPagedCallable() { + return listAuthorizationsPagedCallable; + } + + @Override + public UnaryCallable getAuthorizationCallable() { + return getAuthorizationCallable; + } + + @Override + public UnaryCallable deleteAuthorizationCallable() { + return deleteAuthorizationCallable; + } + + @Override + public UnaryCallable + listAccessSummariesCallable() { + return listAccessSummariesCallable; + } + + @Override + public UnaryCallable + listAccessSummariesPagedCallable() { + return listAccessSummariesPagedCallable; + } + + @Override + public UnaryCallable getAccessSummaryCallable() { + return getAccessSummaryCallable; + } + + @Override + public UnaryCallable + revokeAuthorizationCallable() { + return revokeAuthorizationCallable; + } + + @Override + public UnaryCallable enableAuthProviderCallable() { + return enableAuthProviderCallable; + } + + @Override + public UnaryCallable disableAuthProviderCallable() { + return disableAuthProviderCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/Version.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/Version.java new file mode 100644 index 000000000000..d0745b8e69e5 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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.agentidentity.v1.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-agentidentity:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceClient.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceClient.java new file mode 100644 index 000000000000..51938ba1db77 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceClient.java @@ -0,0 +1,3672 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +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.cloud.agentidentity.v1beta.stub.AuthProviderServiceStub; +import com.google.cloud.agentidentity.v1beta.stub.AuthProviderServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +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 com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Service describing handlers for resources + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ *   AuthProvider response = authProviderServiceClient.getAuthProvider(name);
+ * }
+ * }
+ * + *

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

ListAuthProviders

Lists AuthProviders in a given project and location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listAuthProviders(ListAuthProvidersRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listAuthProviders(LocationName parent) + *

  • listAuthProviders(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listAuthProvidersPagedCallable() + *

  • listAuthProvidersCallable() + *

+ *

GetAuthProvider

Gets details of a single AuthProvider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getAuthProvider(GetAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getAuthProvider(AuthProviderName name) + *

  • getAuthProvider(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getAuthProviderCallable() + *

+ *

CreateAuthProvider

Creates a new AuthProvider in a given project and location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • createAuthProvider(CreateAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • createAuthProvider(LocationName parent, AuthProvider authProvider, String authProviderId) + *

  • createAuthProvider(String parent, AuthProvider authProvider, String authProviderId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • createAuthProviderCallable() + *

+ *

UpdateAuthProvider

Updates the parameters of a single AuthProvider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • updateAuthProvider(UpdateAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • updateAuthProvider(AuthProvider authProvider, FieldMask updateMask) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • updateAuthProviderCallable() + *

+ *

DeleteAuthProvider

Deletes a single AuthProvider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteAuthProvider(DeleteAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteAuthProvider(AuthProviderName name) + *

  • deleteAuthProvider(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteAuthProviderCallable() + *

+ *

UndeleteAuthProvider

Undeletes a single AuthProvider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • undeleteAuthProvider(UndeleteAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • undeleteAuthProvider(AuthProviderName name) + *

  • undeleteAuthProvider(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • undeleteAuthProviderCallable() + *

+ *

QueryAuthProviders

Queries what all auth_providers are used by a given workload_id.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • queryAuthProviders(QueryAuthProvidersRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • queryAuthProviders(LocationName parent, String workloadId) + *

  • queryAuthProviders(String parent, String workloadId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • queryAuthProvidersPagedCallable() + *

  • queryAuthProvidersCallable() + *

+ *

QueryWorkloads

Queries what all workloads are using a given auth_provider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • queryWorkloads(QueryWorkloadsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • queryWorkloads(AuthProviderName name) + *

  • queryWorkloads(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • queryWorkloadsPagedCallable() + *

  • queryWorkloadsCallable() + *

+ *

ListAuthorizations

Lists Authorizations in a given project and location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listAuthorizations(ListAuthorizationsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listAuthorizations(AuthProviderName parent) + *

  • listAuthorizations(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listAuthorizationsPagedCallable() + *

  • listAuthorizationsCallable() + *

+ *

GetAuthorization

Gets details of a single Authorization.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getAuthorization(GetAuthorizationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getAuthorization(AuthorizationName name) + *

  • getAuthorization(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getAuthorizationCallable() + *

+ *

DeleteAuthorization

Deletes a single Authorization.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • deleteAuthorization(DeleteAuthorizationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • deleteAuthorization(AuthorizationName name) + *

  • deleteAuthorization(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • deleteAuthorizationCallable() + *

+ *

ListAccessSummaries

Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: Filter by the SPIFFE ID of the agent. Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"`

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listAccessSummaries(ListAccessSummariesRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • listAccessSummaries(LocationName parent) + *

  • listAccessSummaries(String parent) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listAccessSummariesPagedCallable() + *

  • listAccessSummariesCallable() + *

+ *

GetAccessSummary

Gets details of a single AccessSummary.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getAccessSummary(GetAccessSummaryRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getAccessSummary(AccessSummaryName name) + *

  • getAccessSummary(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getAccessSummaryCallable() + *

+ *

RevokeAuthorization

Revokes all authorizations for a specific user on an AuthProvider. This deletes all authorization records associated with the user and AuthProvider, effectively revoking access across all agents.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • revokeAuthorization(RevokeAuthorizationRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • revokeAuthorization(AuthProviderName name, String userId) + *

  • revokeAuthorization(String name, String userId) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • revokeAuthorizationCallable() + *

+ *

EnableAuthProvider

Enables a single AuthProvider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • enableAuthProvider(EnableAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • enableAuthProvider(AuthProviderName name) + *

  • enableAuthProvider(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • enableAuthProviderCallable() + *

+ *

DisableAuthProvider

Disables a single AuthProvider.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • disableAuthProvider(DisableAuthProviderRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • disableAuthProvider(AuthProviderName name) + *

  • disableAuthProvider(String name) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • disableAuthProviderCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getLocationCallable() + *

+ *

SetIamPolicy

Sets the access control policy on the specified resource. Replacesany existing policy. + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • setIamPolicy(SetIamPolicyRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • setIamPolicyCallable() + *

+ *

GetIamPolicy

Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • getIamPolicy(GetIamPolicyRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • getIamPolicyCallable() + *

+ *

TestIamPermissions

Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

+ *

Request object method variants only take one parameter, a request object, which must be constructed before the call.

+ *
    + *
  • testIamPermissions(TestIamPermissionsRequest request) + *

+ *

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

+ *
    + *
  • testIamPermissionsCallable() + *

+ *
+ * + *

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 AuthProviderServiceSettings 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
+ * AuthProviderServiceSettings authProviderServiceSettings =
+ *     AuthProviderServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AuthProviderServiceClient authProviderServiceClient =
+ *     AuthProviderServiceClient.create(authProviderServiceSettings);
+ * }
+ * + *

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
+ * AuthProviderServiceSettings authProviderServiceSettings =
+ *     AuthProviderServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AuthProviderServiceClient authProviderServiceClient =
+ *     AuthProviderServiceClient.create(authProviderServiceSettings);
+ * }
+ * + *

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

{@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
+ * AuthProviderServiceSettings authProviderServiceSettings =
+ *     AuthProviderServiceSettings.newHttpJsonBuilder().build();
+ * AuthProviderServiceClient authProviderServiceClient =
+ *     AuthProviderServiceClient.create(authProviderServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class AuthProviderServiceClient implements BackgroundResource { + private final @Nullable AuthProviderServiceSettings settings; + private final AuthProviderServiceStub stub; + + /** Constructs an instance of AuthProviderServiceClient with default settings. */ + public static final AuthProviderServiceClient create() throws IOException { + return create(AuthProviderServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AuthProviderServiceClient, 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 AuthProviderServiceClient create(AuthProviderServiceSettings settings) + throws IOException { + return new AuthProviderServiceClient(settings); + } + + /** + * Constructs an instance of AuthProviderServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(AuthProviderServiceSettings). + */ + public static final AuthProviderServiceClient create(AuthProviderServiceStub stub) { + return new AuthProviderServiceClient(stub); + } + + /** + * Constructs an instance of AuthProviderServiceClient, 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 AuthProviderServiceClient(AuthProviderServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AuthProviderServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AuthProviderServiceClient(AuthProviderServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final @Nullable AuthProviderServiceSettings getSettings() { + return settings; + } + + public AuthProviderServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthProviders in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (AuthProvider element :
+   *       authProviderServiceClient.listAuthProviders(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthProvidersPagedResponse listAuthProviders(@Nullable LocationName parent) { + ListAuthProvidersRequest request = + ListAuthProvidersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAuthProviders(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthProviders in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AuthProvider element :
+   *       authProviderServiceClient.listAuthProviders(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthProvidersPagedResponse listAuthProviders(String parent) { + ListAuthProvidersRequest request = + ListAuthProvidersRequest.newBuilder().setParent(parent).build(); + return listAuthProviders(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthProviders in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAuthProvidersRequest request =
+   *       ListAuthProvidersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   for (AuthProvider element :
+   *       authProviderServiceClient.listAuthProviders(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 ListAuthProvidersPagedResponse listAuthProviders(ListAuthProvidersRequest request) { + return listAuthProvidersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthProviders in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAuthProvidersRequest request =
+   *       ListAuthProvidersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.listAuthProvidersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AuthProvider element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAuthProvidersPagedCallable() { + return stub.listAuthProvidersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AuthProviders in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAuthProvidersRequest request =
+   *       ListAuthProvidersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .setShowDeleted(true)
+   *           .build();
+   *   while (true) {
+   *     ListAuthProvidersResponse response =
+   *         authProviderServiceClient.listAuthProvidersCallable().call(request);
+   *     for (AuthProvider element : response.getAuthProvidersList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAuthProvidersCallable() { + return stub.listAuthProvidersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   AuthProvider response = authProviderServiceClient.getAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider getAuthProvider(@Nullable AuthProviderName name) { + GetAuthProviderRequest request = + GetAuthProviderRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   AuthProvider response = authProviderServiceClient.getAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider getAuthProvider(String name) { + GetAuthProviderRequest request = GetAuthProviderRequest.newBuilder().setName(name).build(); + return getAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetAuthProviderRequest request =
+   *       GetAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .build();
+   *   AuthProvider response = authProviderServiceClient.getAuthProvider(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 AuthProvider getAuthProvider(GetAuthProviderRequest request) { + return getAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetAuthProviderRequest request =
+   *       GetAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.getAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   AuthProvider response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAuthProviderCallable() { + return stub.getAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthProvider in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   AuthProvider authProvider = AuthProvider.newBuilder().build();
+   *   String authProviderId = "authProviderId325000884";
+   *   AuthProvider response =
+   *       authProviderServiceClient.createAuthProvider(parent, authProvider, authProviderId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + * @param authProvider Required. The AuthProvider to create. + * @param authProviderId Required. The ID to use for the AuthProvider, which will become the final + * segment of the AuthProvider's resource name. This value should be 1-63 characters, and + * valid characters are /[a-z][0-9]-/. The first character must be a lowercase letter, and the + * last character must be a lowercase letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider createAuthProvider( + @Nullable LocationName parent, AuthProvider authProvider, String authProviderId) { + CreateAuthProviderRequest request = + CreateAuthProviderRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAuthProvider(authProvider) + .setAuthProviderId(authProviderId) + .build(); + return createAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthProvider in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   AuthProvider authProvider = AuthProvider.newBuilder().build();
+   *   String authProviderId = "authProviderId325000884";
+   *   AuthProvider response =
+   *       authProviderServiceClient.createAuthProvider(parent, authProvider, authProviderId);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the AuthProvider is created. Format: + * projects/{project}/locations/{location} + * @param authProvider Required. The AuthProvider to create. + * @param authProviderId Required. The ID to use for the AuthProvider, which will become the final + * segment of the AuthProvider's resource name. This value should be 1-63 characters, and + * valid characters are /[a-z][0-9]-/. The first character must be a lowercase letter, and the + * last character must be a lowercase letter or a number. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider createAuthProvider( + String parent, AuthProvider authProvider, String authProviderId) { + CreateAuthProviderRequest request = + CreateAuthProviderRequest.newBuilder() + .setParent(parent) + .setAuthProvider(authProvider) + .setAuthProviderId(authProviderId) + .build(); + return createAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthProvider in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   CreateAuthProviderRequest request =
+   *       CreateAuthProviderRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAuthProviderId("authProviderId325000884")
+   *           .setAuthProvider(AuthProvider.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AuthProvider response = authProviderServiceClient.createAuthProvider(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 AuthProvider createAuthProvider(CreateAuthProviderRequest request) { + return createAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new AuthProvider in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   CreateAuthProviderRequest request =
+   *       CreateAuthProviderRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setAuthProviderId("authProviderId325000884")
+   *           .setAuthProvider(AuthProvider.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.createAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   AuthProvider response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable createAuthProviderCallable() { + return stub.createAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProvider authProvider = AuthProvider.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   AuthProvider response =
+   *       authProviderServiceClient.updateAuthProvider(authProvider, updateMask);
+   * }
+   * }
+ * + * @param authProvider Required. The AuthProvider resource which replaces the resource on the + * server. + * @param updateMask Optional. Field mask is used to specify the fields to be overwritten in the + * AuthProvider resource by the update. The fields specified in the update_mask are relative + * to the resource, not the full request. A field will be overwritten if it is in the mask. If + * the user does not provide a mask then all fields present in the request will be + * overwritten. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider updateAuthProvider(AuthProvider authProvider, FieldMask updateMask) { + UpdateAuthProviderRequest request = + UpdateAuthProviderRequest.newBuilder() + .setAuthProvider(authProvider) + .setUpdateMask(updateMask) + .build(); + return updateAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   UpdateAuthProviderRequest request =
+   *       UpdateAuthProviderRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAuthProvider(AuthProvider.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AuthProvider response = authProviderServiceClient.updateAuthProvider(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 AuthProvider updateAuthProvider(UpdateAuthProviderRequest request) { + return updateAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   UpdateAuthProviderRequest request =
+   *       UpdateAuthProviderRequest.newBuilder()
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .setAuthProvider(AuthProvider.newBuilder().build())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.updateAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   AuthProvider response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateAuthProviderCallable() { + return stub.updateAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   authProviderServiceClient.deleteAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAuthProvider(@Nullable AuthProviderName name) { + DeleteAuthProviderRequest request = + DeleteAuthProviderRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   authProviderServiceClient.deleteAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAuthProvider(String name) { + DeleteAuthProviderRequest request = + DeleteAuthProviderRequest.newBuilder().setName(name).build(); + deleteAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   DeleteAuthProviderRequest request =
+   *       DeleteAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   authProviderServiceClient.deleteAuthProvider(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 deleteAuthProvider(DeleteAuthProviderRequest request) { + deleteAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   DeleteAuthProviderRequest request =
+   *       DeleteAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.deleteAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteAuthProviderCallable() { + return stub.deleteAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   AuthProvider response = authProviderServiceClient.undeleteAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider undeleteAuthProvider(@Nullable AuthProviderName name) { + UndeleteAuthProviderRequest request = + UndeleteAuthProviderRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return undeleteAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   AuthProvider response = authProviderServiceClient.undeleteAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider undeleteAuthProvider(String name) { + UndeleteAuthProviderRequest request = + UndeleteAuthProviderRequest.newBuilder().setName(name).build(); + return undeleteAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   UndeleteAuthProviderRequest request =
+   *       UndeleteAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AuthProvider response = authProviderServiceClient.undeleteAuthProvider(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 AuthProvider undeleteAuthProvider(UndeleteAuthProviderRequest request) { + return undeleteAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Undeletes a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   UndeleteAuthProviderRequest request =
+   *       UndeleteAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.undeleteAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   AuthProvider response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + undeleteAuthProviderCallable() { + return stub.undeleteAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all auth_providers are used by a given workload_id. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   String workloadId = "workloadId-186277134";
+   *   for (String element :
+   *       authProviderServiceClient.queryAuthProviders(parent, workloadId).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @param workloadId Required. The workload identifier to filter by. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryAuthProvidersPagedResponse queryAuthProviders( + @Nullable LocationName parent, String workloadId) { + QueryAuthProvidersRequest request = + QueryAuthProvidersRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setWorkloadId(workloadId) + .build(); + return queryAuthProviders(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all auth_providers are used by a given workload_id. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   String workloadId = "workloadId-186277134";
+   *   for (String element :
+   *       authProviderServiceClient.queryAuthProviders(parent, workloadId).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @param workloadId Required. The workload identifier to filter by. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryAuthProvidersPagedResponse queryAuthProviders( + String parent, String workloadId) { + QueryAuthProvidersRequest request = + QueryAuthProvidersRequest.newBuilder().setParent(parent).setWorkloadId(workloadId).build(); + return queryAuthProviders(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all auth_providers are used by a given workload_id. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   QueryAuthProvidersRequest request =
+   *       QueryAuthProvidersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setWorkloadId("workloadId-186277134")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (String element : authProviderServiceClient.queryAuthProviders(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 QueryAuthProvidersPagedResponse queryAuthProviders( + QueryAuthProvidersRequest request) { + return queryAuthProvidersPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all auth_providers are used by a given workload_id. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   QueryAuthProvidersRequest request =
+   *       QueryAuthProvidersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setWorkloadId("workloadId-186277134")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.queryAuthProvidersPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (String element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + queryAuthProvidersPagedCallable() { + return stub.queryAuthProvidersPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all auth_providers are used by a given workload_id. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   QueryAuthProvidersRequest request =
+   *       QueryAuthProvidersRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setWorkloadId("workloadId-186277134")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     QueryAuthProvidersResponse response =
+   *         authProviderServiceClient.queryAuthProvidersCallable().call(request);
+   *     for (String element : response.getAuthProviderNamesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + queryAuthProvidersCallable() { + return stub.queryAuthProvidersCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all workloads are using a given auth_provider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   for (String element : authProviderServiceClient.queryWorkloads(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryWorkloadsPagedResponse queryWorkloads(@Nullable AuthProviderName name) { + QueryWorkloadsRequest request = + QueryWorkloadsRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return queryWorkloads(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all workloads are using a given auth_provider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   for (String element : authProviderServiceClient.queryWorkloads(name).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param name Required. The name of the auth_provider to query. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final QueryWorkloadsPagedResponse queryWorkloads(String name) { + QueryWorkloadsRequest request = QueryWorkloadsRequest.newBuilder().setName(name).build(); + return queryWorkloads(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all workloads are using a given auth_provider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   QueryWorkloadsRequest request =
+   *       QueryWorkloadsRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (String element : authProviderServiceClient.queryWorkloads(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 QueryWorkloadsPagedResponse queryWorkloads(QueryWorkloadsRequest request) { + return queryWorkloadsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all workloads are using a given auth_provider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   QueryWorkloadsRequest request =
+   *       QueryWorkloadsRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.queryWorkloadsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (String element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + queryWorkloadsPagedCallable() { + return stub.queryWorkloadsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Queries what all workloads are using a given auth_provider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   QueryWorkloadsRequest request =
+   *       QueryWorkloadsRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     QueryWorkloadsResponse response =
+   *         authProviderServiceClient.queryWorkloadsCallable().call(request);
+   *     for (String element : response.getWorkloadIdsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + queryWorkloadsCallable() { + return stub.queryWorkloadsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Authorizations in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   for (Authorization element :
+   *       authProviderServiceClient.listAuthorizations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthorizationsPagedResponse listAuthorizations( + @Nullable AuthProviderName parent) { + ListAuthorizationsRequest request = + ListAuthorizationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAuthorizations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Authorizations in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   for (Authorization element :
+   *       authProviderServiceClient.listAuthorizations(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAuthorizationsPagedResponse listAuthorizations(String parent) { + ListAuthorizationsRequest request = + ListAuthorizationsRequest.newBuilder().setParent(parent).build(); + return listAuthorizations(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Authorizations in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAuthorizationsRequest request =
+   *       ListAuthorizationsRequest.newBuilder()
+   *           .setParent(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (Authorization element :
+   *       authProviderServiceClient.listAuthorizations(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 ListAuthorizationsPagedResponse listAuthorizations( + ListAuthorizationsRequest request) { + return listAuthorizationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Authorizations in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAuthorizationsRequest request =
+   *       ListAuthorizationsRequest.newBuilder()
+   *           .setParent(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.listAuthorizationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Authorization element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAuthorizationsPagedCallable() { + return stub.listAuthorizationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists Authorizations in a given project and location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAuthorizationsRequest request =
+   *       ListAuthorizationsRequest.newBuilder()
+   *           .setParent(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListAuthorizationsResponse response =
+   *         authProviderServiceClient.listAuthorizationsCallable().call(request);
+   *     for (Authorization element : response.getAuthorizationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAuthorizationsCallable() { + return stub.listAuthorizationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthorizationName name =
+   *       AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]");
+   *   Authorization response = authProviderServiceClient.getAuthorization(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Authorization getAuthorization(@Nullable AuthorizationName name) { + GetAuthorizationRequest request = + GetAuthorizationRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAuthorization(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name =
+   *       AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+   *           .toString();
+   *   Authorization response = authProviderServiceClient.getAuthorization(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Authorization getAuthorization(String name) { + GetAuthorizationRequest request = GetAuthorizationRequest.newBuilder().setName(name).build(); + return getAuthorization(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetAuthorizationRequest request =
+   *       GetAuthorizationRequest.newBuilder()
+   *           .setName(
+   *               AuthorizationName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+   *                   .toString())
+   *           .build();
+   *   Authorization response = authProviderServiceClient.getAuthorization(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 Authorization getAuthorization(GetAuthorizationRequest request) { + return getAuthorizationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetAuthorizationRequest request =
+   *       GetAuthorizationRequest.newBuilder()
+   *           .setName(
+   *               AuthorizationName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.getAuthorizationCallable().futureCall(request);
+   *   // Do something.
+   *   Authorization response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAuthorizationCallable() { + return stub.getAuthorizationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthorizationName name =
+   *       AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]");
+   *   authProviderServiceClient.deleteAuthorization(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Authorization to delete. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAuthorization(@Nullable AuthorizationName name) { + DeleteAuthorizationRequest request = + DeleteAuthorizationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteAuthorization(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name =
+   *       AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+   *           .toString();
+   *   authProviderServiceClient.deleteAuthorization(name);
+   * }
+   * }
+ * + * @param name Required. The name of the Authorization to delete. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAuthorization(String name) { + DeleteAuthorizationRequest request = + DeleteAuthorizationRequest.newBuilder().setName(name).build(); + deleteAuthorization(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   DeleteAuthorizationRequest request =
+   *       DeleteAuthorizationRequest.newBuilder()
+   *           .setName(
+   *               AuthorizationName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   authProviderServiceClient.deleteAuthorization(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 deleteAuthorization(DeleteAuthorizationRequest request) { + deleteAuthorizationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a single Authorization. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   DeleteAuthorizationRequest request =
+   *       DeleteAuthorizationRequest.newBuilder()
+   *           .setName(
+   *               AuthorizationName.of(
+   *                       "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]")
+   *                   .toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.deleteAuthorizationCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteAuthorizationCallable() { + return stub.deleteAuthorizationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
+   *   for (AccessSummary element :
+   *       authProviderServiceClient.listAccessSummaries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessSummariesPagedResponse listAccessSummaries(@Nullable LocationName parent) { + ListAccessSummariesRequest request = + ListAccessSummariesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccessSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
+   *   for (AccessSummary element :
+   *       authProviderServiceClient.listAccessSummaries(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The parent resource where the search is performed. Format: + * projects/{project}/locations/{location} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessSummariesPagedResponse listAccessSummaries(String parent) { + ListAccessSummariesRequest request = + ListAccessSummariesRequest.newBuilder().setParent(parent).build(); + return listAccessSummaries(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAccessSummariesRequest request =
+   *       ListAccessSummariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   for (AccessSummary element :
+   *       authProviderServiceClient.listAccessSummaries(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 ListAccessSummariesPagedResponse listAccessSummaries( + ListAccessSummariesRequest request) { + return listAccessSummariesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAccessSummariesRequest request =
+   *       ListAccessSummariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.listAccessSummariesPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AccessSummary element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAccessSummariesPagedCallable() { + return stub.listAccessSummariesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists AccessSummaries in a given project and location. Supported Filters: - `workload_id`: + * Filter by the SPIFFE ID of the agent. Example: + * `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListAccessSummariesRequest request =
+   *       ListAccessSummariesRequest.newBuilder()
+   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .setOrderBy("orderBy-1207110587")
+   *           .build();
+   *   while (true) {
+   *     ListAccessSummariesResponse response =
+   *         authProviderServiceClient.listAccessSummariesCallable().call(request);
+   *     for (AccessSummary element : response.getAccessSummariesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAccessSummariesCallable() { + return stub.listAccessSummariesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AccessSummary. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]");
+   *   AccessSummary response = authProviderServiceClient.getAccessSummary(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AccessSummary getAccessSummary(@Nullable AccessSummaryName name) { + GetAccessSummaryRequest request = + GetAccessSummaryRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAccessSummary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AccessSummary. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString();
+   *   AccessSummary response = authProviderServiceClient.getAccessSummary(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AccessSummary getAccessSummary(String name) { + GetAccessSummaryRequest request = GetAccessSummaryRequest.newBuilder().setName(name).build(); + return getAccessSummary(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AccessSummary. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetAccessSummaryRequest request =
+   *       GetAccessSummaryRequest.newBuilder()
+   *           .setName(
+   *               AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString())
+   *           .build();
+   *   AccessSummary response = authProviderServiceClient.getAccessSummary(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 AccessSummary getAccessSummary(GetAccessSummaryRequest request) { + return getAccessSummaryCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single AccessSummary. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetAccessSummaryRequest request =
+   *       GetAccessSummaryRequest.newBuilder()
+   *           .setName(
+   *               AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.getAccessSummaryCallable().futureCall(request);
+   *   // Do something.
+   *   AccessSummary response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getAccessSummaryCallable() { + return stub.getAccessSummaryCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all + * authorization records associated with the user and AuthProvider, effectively revoking access + * across all agents. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   String userId = "userId-836030906";
+   *   RevokeAuthorizationResponse response =
+   *       authProviderServiceClient.revokeAuthorization(name, userId);
+   * }
+   * }
+ * + * @param name Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param userId Required. The identity of the user to revoke authorization for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RevokeAuthorizationResponse revokeAuthorization( + @Nullable AuthProviderName name, String userId) { + RevokeAuthorizationRequest request = + RevokeAuthorizationRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .setUserId(userId) + .build(); + return revokeAuthorization(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all + * authorization records associated with the user and AuthProvider, effectively revoking access + * across all agents. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   String userId = "userId-836030906";
+   *   RevokeAuthorizationResponse response =
+   *       authProviderServiceClient.revokeAuthorization(name, userId);
+   * }
+   * }
+ * + * @param name Required. The resource name of the AuthProvider. Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @param userId Required. The identity of the user to revoke authorization for. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final RevokeAuthorizationResponse revokeAuthorization(String name, String userId) { + RevokeAuthorizationRequest request = + RevokeAuthorizationRequest.newBuilder().setName(name).setUserId(userId).build(); + return revokeAuthorization(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all + * authorization records associated with the user and AuthProvider, effectively revoking access + * across all agents. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   RevokeAuthorizationRequest request =
+   *       RevokeAuthorizationRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setUserId("userId-836030906")
+   *           .build();
+   *   RevokeAuthorizationResponse response = authProviderServiceClient.revokeAuthorization(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 RevokeAuthorizationResponse revokeAuthorization(RevokeAuthorizationRequest request) { + return revokeAuthorizationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Revokes all authorizations for a specific user on an AuthProvider. This deletes all + * authorization records associated with the user and AuthProvider, effectively revoking access + * across all agents. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   RevokeAuthorizationRequest request =
+   *       RevokeAuthorizationRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setUserId("userId-836030906")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.revokeAuthorizationCallable().futureCall(request);
+   *   // Do something.
+   *   RevokeAuthorizationResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + revokeAuthorizationCallable() { + return stub.revokeAuthorizationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   AuthProvider response = authProviderServiceClient.enableAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider enableAuthProvider(@Nullable AuthProviderName name) { + EnableAuthProviderRequest request = + EnableAuthProviderRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return enableAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   AuthProvider response = authProviderServiceClient.enableAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider enableAuthProvider(String name) { + EnableAuthProviderRequest request = + EnableAuthProviderRequest.newBuilder().setName(name).build(); + return enableAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   EnableAuthProviderRequest request =
+   *       EnableAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AuthProvider response = authProviderServiceClient.enableAuthProvider(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 AuthProvider enableAuthProvider(EnableAuthProviderRequest request) { + return enableAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   EnableAuthProviderRequest request =
+   *       EnableAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.enableAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   AuthProvider response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable enableAuthProviderCallable() { + return stub.enableAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Disables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+   *   AuthProvider response = authProviderServiceClient.disableAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider disableAuthProvider(@Nullable AuthProviderName name) { + DisableAuthProviderRequest request = + DisableAuthProviderRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return disableAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Disables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString();
+   *   AuthProvider response = authProviderServiceClient.disableAuthProvider(name);
+   * }
+   * }
+ * + * @param name Required. Name of the resource Format: + * projects/{project}/locations/{location}/authProviders/{auth_provider} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AuthProvider disableAuthProvider(String name) { + DisableAuthProviderRequest request = + DisableAuthProviderRequest.newBuilder().setName(name).build(); + return disableAuthProvider(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Disables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   DisableAuthProviderRequest request =
+   *       DisableAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   AuthProvider response = authProviderServiceClient.disableAuthProvider(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 AuthProvider disableAuthProvider(DisableAuthProviderRequest request) { + return disableAuthProviderCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Disables a single AuthProvider. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   DisableAuthProviderRequest request =
+   *       DisableAuthProviderRequest.newBuilder()
+   *           .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setRequestId("requestId693933066")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.disableAuthProviderCallable().futureCall(request);
+   *   // Do something.
+   *   AuthProvider response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + disableAuthProviderCallable() { + return stub.disableAuthProviderCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : authProviderServiceClient.listLocations(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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.listLocationsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (Location element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         authProviderServiceClient.listLocationsCallable().call(request);
+   *     for (Location element : response.getLocationsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = authProviderServiceClient.getLocation(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 Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   Policy response = authProviderServiceClient.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 access control policy on the specified resource. Replacesany existing policy. + * + *

Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   SetIamPolicyRequest request =
+   *       SetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setPolicy(Policy.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.setIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   Policy response = authProviderServiceClient.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 access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   GetIamPolicyRequest request =
+   *       GetIamPolicyRequest.newBuilder()
+   *           .setResource(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .setOptions(GetPolicyOptions.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.getIamPolicyCallable().futureCall(request);
+   *   // Do something.
+   *   Policy response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   TestIamPermissionsResponse response = authProviderServiceClient.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. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+   *   TestIamPermissionsRequest request =
+   *       TestIamPermissionsRequest.newBuilder()
+   *           .setResource(
+   *               AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString())
+   *           .addAllPermissions(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       authProviderServiceClient.testIamPermissionsCallable().futureCall(request);
+   *   // Do something.
+   *   TestIamPermissionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @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 ListAuthProvidersPagedResponse + extends AbstractPagedListResponse< + ListAuthProvidersRequest, + ListAuthProvidersResponse, + AuthProvider, + ListAuthProvidersPage, + ListAuthProvidersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAuthProvidersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAuthProvidersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAuthProvidersPagedResponse(ListAuthProvidersPage page) { + super(page, ListAuthProvidersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAuthProvidersPage + extends AbstractPage< + ListAuthProvidersRequest, + ListAuthProvidersResponse, + AuthProvider, + ListAuthProvidersPage> { + + private ListAuthProvidersPage( + @Nullable PageContext + context, + @Nullable ListAuthProvidersResponse response) { + super(context, response); + } + + private static ListAuthProvidersPage createEmptyPage() { + return new ListAuthProvidersPage(null, null); + } + + @Override + protected ListAuthProvidersPage createPage( + @Nullable PageContext + context, + @Nullable ListAuthProvidersResponse response) { + return new ListAuthProvidersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAuthProvidersFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAuthProvidersRequest, + ListAuthProvidersResponse, + AuthProvider, + ListAuthProvidersPage, + ListAuthProvidersFixedSizeCollection> { + + private ListAuthProvidersFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAuthProvidersFixedSizeCollection createEmptyCollection() { + return new ListAuthProvidersFixedSizeCollection(null, 0); + } + + @Override + protected ListAuthProvidersFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAuthProvidersFixedSizeCollection(pages, collectionSize); + } + } + + public static class QueryAuthProvidersPagedResponse + extends AbstractPagedListResponse< + QueryAuthProvidersRequest, + QueryAuthProvidersResponse, + String, + QueryAuthProvidersPage, + QueryAuthProvidersFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryAuthProvidersPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryAuthProvidersPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryAuthProvidersPagedResponse(QueryAuthProvidersPage page) { + super(page, QueryAuthProvidersFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryAuthProvidersPage + extends AbstractPage< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, String, QueryAuthProvidersPage> { + + private QueryAuthProvidersPage( + @Nullable PageContext + context, + @Nullable QueryAuthProvidersResponse response) { + super(context, response); + } + + private static QueryAuthProvidersPage createEmptyPage() { + return new QueryAuthProvidersPage(null, null); + } + + @Override + protected QueryAuthProvidersPage createPage( + @Nullable PageContext + context, + @Nullable QueryAuthProvidersResponse response) { + return new QueryAuthProvidersPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryAuthProvidersFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryAuthProvidersRequest, + QueryAuthProvidersResponse, + String, + QueryAuthProvidersPage, + QueryAuthProvidersFixedSizeCollection> { + + private QueryAuthProvidersFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryAuthProvidersFixedSizeCollection createEmptyCollection() { + return new QueryAuthProvidersFixedSizeCollection(null, 0); + } + + @Override + protected QueryAuthProvidersFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new QueryAuthProvidersFixedSizeCollection(pages, collectionSize); + } + } + + public static class QueryWorkloadsPagedResponse + extends AbstractPagedListResponse< + QueryWorkloadsRequest, + QueryWorkloadsResponse, + String, + QueryWorkloadsPage, + QueryWorkloadsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + QueryWorkloadsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new QueryWorkloadsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private QueryWorkloadsPagedResponse(QueryWorkloadsPage page) { + super(page, QueryWorkloadsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class QueryWorkloadsPage + extends AbstractPage< + QueryWorkloadsRequest, QueryWorkloadsResponse, String, QueryWorkloadsPage> { + + private QueryWorkloadsPage( + @Nullable PageContext context, + @Nullable QueryWorkloadsResponse response) { + super(context, response); + } + + private static QueryWorkloadsPage createEmptyPage() { + return new QueryWorkloadsPage(null, null); + } + + @Override + protected QueryWorkloadsPage createPage( + @Nullable PageContext context, + @Nullable QueryWorkloadsResponse response) { + return new QueryWorkloadsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class QueryWorkloadsFixedSizeCollection + extends AbstractFixedSizeCollection< + QueryWorkloadsRequest, + QueryWorkloadsResponse, + String, + QueryWorkloadsPage, + QueryWorkloadsFixedSizeCollection> { + + private QueryWorkloadsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static QueryWorkloadsFixedSizeCollection createEmptyCollection() { + return new QueryWorkloadsFixedSizeCollection(null, 0); + } + + @Override + protected QueryWorkloadsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new QueryWorkloadsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAuthorizationsPagedResponse + extends AbstractPagedListResponse< + ListAuthorizationsRequest, + ListAuthorizationsResponse, + Authorization, + ListAuthorizationsPage, + ListAuthorizationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAuthorizationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAuthorizationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAuthorizationsPagedResponse(ListAuthorizationsPage page) { + super(page, ListAuthorizationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAuthorizationsPage + extends AbstractPage< + ListAuthorizationsRequest, + ListAuthorizationsResponse, + Authorization, + ListAuthorizationsPage> { + + private ListAuthorizationsPage( + @Nullable PageContext + context, + @Nullable ListAuthorizationsResponse response) { + super(context, response); + } + + private static ListAuthorizationsPage createEmptyPage() { + return new ListAuthorizationsPage(null, null); + } + + @Override + protected ListAuthorizationsPage createPage( + @Nullable PageContext + context, + @Nullable ListAuthorizationsResponse response) { + return new ListAuthorizationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAuthorizationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAuthorizationsRequest, + ListAuthorizationsResponse, + Authorization, + ListAuthorizationsPage, + ListAuthorizationsFixedSizeCollection> { + + private ListAuthorizationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAuthorizationsFixedSizeCollection createEmptyCollection() { + return new ListAuthorizationsFixedSizeCollection(null, 0); + } + + @Override + protected ListAuthorizationsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAuthorizationsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListAccessSummariesPagedResponse + extends AbstractPagedListResponse< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + AccessSummary, + ListAccessSummariesPage, + ListAccessSummariesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAccessSummariesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAccessSummariesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAccessSummariesPagedResponse(ListAccessSummariesPage page) { + super(page, ListAccessSummariesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAccessSummariesPage + extends AbstractPage< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + AccessSummary, + ListAccessSummariesPage> { + + private ListAccessSummariesPage( + @Nullable + PageContext + context, + @Nullable ListAccessSummariesResponse response) { + super(context, response); + } + + private static ListAccessSummariesPage createEmptyPage() { + return new ListAccessSummariesPage(null, null); + } + + @Override + protected ListAccessSummariesPage createPage( + @Nullable + PageContext + context, + @Nullable ListAccessSummariesResponse response) { + return new ListAccessSummariesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAccessSummariesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + AccessSummary, + ListAccessSummariesPage, + ListAccessSummariesFixedSizeCollection> { + + private ListAccessSummariesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAccessSummariesFixedSizeCollection createEmptyCollection() { + return new ListAccessSummariesFixedSizeCollection(null, 0); + } + + @Override + protected ListAccessSummariesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAccessSummariesFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceSettings.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceSettings.java new file mode 100644 index 000000000000..f293d02ad3eb --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceSettings.java @@ -0,0 +1,478 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +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.httpjson.InstantiatingHttpJsonChannelProvider; +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.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.agentidentity.v1beta.stub.AuthProviderServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AuthProviderServiceClient}. + * + *

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

    + *
  • The default service address (agentidentity.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getAuthProvider: + * + *

{@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
+ * AuthProviderServiceSettings.Builder authProviderServiceSettingsBuilder =
+ *     AuthProviderServiceSettings.newBuilder();
+ * authProviderServiceSettingsBuilder
+ *     .getAuthProviderSettings()
+ *     .setRetrySettings(
+ *         authProviderServiceSettingsBuilder
+ *             .getAuthProviderSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AuthProviderServiceSettings authProviderServiceSettings =
+ *     authProviderServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class AuthProviderServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listAuthProviders. */ + public PagedCallSettings< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + listAuthProvidersSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).listAuthProvidersSettings(); + } + + /** Returns the object with the settings used for calls to getAuthProvider. */ + public UnaryCallSettings getAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).getAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to createAuthProvider. */ + public UnaryCallSettings createAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).createAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to updateAuthProvider. */ + public UnaryCallSettings updateAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).updateAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to deleteAuthProvider. */ + public UnaryCallSettings deleteAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).deleteAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to undeleteAuthProvider. */ + public UnaryCallSettings + undeleteAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).undeleteAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to queryAuthProviders. */ + public PagedCallSettings< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + queryAuthProvidersSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).queryAuthProvidersSettings(); + } + + /** Returns the object with the settings used for calls to queryWorkloads. */ + public PagedCallSettings< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + queryWorkloadsSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).queryWorkloadsSettings(); + } + + /** Returns the object with the settings used for calls to listAuthorizations. */ + public PagedCallSettings< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + listAuthorizationsSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).listAuthorizationsSettings(); + } + + /** Returns the object with the settings used for calls to getAuthorization. */ + public UnaryCallSettings getAuthorizationSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).getAuthorizationSettings(); + } + + /** Returns the object with the settings used for calls to deleteAuthorization. */ + public UnaryCallSettings deleteAuthorizationSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).deleteAuthorizationSettings(); + } + + /** Returns the object with the settings used for calls to listAccessSummaries. */ + public PagedCallSettings< + ListAccessSummariesRequest, ListAccessSummariesResponse, ListAccessSummariesPagedResponse> + listAccessSummariesSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).listAccessSummariesSettings(); + } + + /** Returns the object with the settings used for calls to getAccessSummary. */ + public UnaryCallSettings getAccessSummarySettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).getAccessSummarySettings(); + } + + /** Returns the object with the settings used for calls to revokeAuthorization. */ + public UnaryCallSettings + revokeAuthorizationSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).revokeAuthorizationSettings(); + } + + /** Returns the object with the settings used for calls to enableAuthProvider. */ + public UnaryCallSettings enableAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).enableAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to disableAuthProvider. */ + public UnaryCallSettings disableAuthProviderSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).disableAuthProviderSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((AuthProviderServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final AuthProviderServiceSettings create(AuthProviderServiceStubSettings stub) + throws IOException { + return new AuthProviderServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AuthProviderServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AuthProviderServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AuthProviderServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AuthProviderServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AuthProviderServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AuthProviderServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AuthProviderServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AuthProviderServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable 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 AuthProviderServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AuthProviderServiceSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(AuthProviderServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(AuthProviderServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AuthProviderServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AuthProviderServiceStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AuthProviderServiceStubSettings.newHttpJsonBuilder()); + } + + public AuthProviderServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AuthProviderServiceStubSettings.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 listAuthProviders. */ + public PagedCallSettings.Builder< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + listAuthProvidersSettings() { + return getStubSettingsBuilder().listAuthProvidersSettings(); + } + + /** Returns the builder for the settings used for calls to getAuthProvider. */ + public UnaryCallSettings.Builder + getAuthProviderSettings() { + return getStubSettingsBuilder().getAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to createAuthProvider. */ + public UnaryCallSettings.Builder + createAuthProviderSettings() { + return getStubSettingsBuilder().createAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to updateAuthProvider. */ + public UnaryCallSettings.Builder + updateAuthProviderSettings() { + return getStubSettingsBuilder().updateAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAuthProvider. */ + public UnaryCallSettings.Builder + deleteAuthProviderSettings() { + return getStubSettingsBuilder().deleteAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to undeleteAuthProvider. */ + public UnaryCallSettings.Builder + undeleteAuthProviderSettings() { + return getStubSettingsBuilder().undeleteAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to queryAuthProviders. */ + public PagedCallSettings.Builder< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + queryAuthProvidersSettings() { + return getStubSettingsBuilder().queryAuthProvidersSettings(); + } + + /** Returns the builder for the settings used for calls to queryWorkloads. */ + public PagedCallSettings.Builder< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + queryWorkloadsSettings() { + return getStubSettingsBuilder().queryWorkloadsSettings(); + } + + /** Returns the builder for the settings used for calls to listAuthorizations. */ + public PagedCallSettings.Builder< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + listAuthorizationsSettings() { + return getStubSettingsBuilder().listAuthorizationsSettings(); + } + + /** Returns the builder for the settings used for calls to getAuthorization. */ + public UnaryCallSettings.Builder + getAuthorizationSettings() { + return getStubSettingsBuilder().getAuthorizationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAuthorization. */ + public UnaryCallSettings.Builder + deleteAuthorizationSettings() { + return getStubSettingsBuilder().deleteAuthorizationSettings(); + } + + /** Returns the builder for the settings used for calls to listAccessSummaries. */ + public PagedCallSettings.Builder< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + ListAccessSummariesPagedResponse> + listAccessSummariesSettings() { + return getStubSettingsBuilder().listAccessSummariesSettings(); + } + + /** Returns the builder for the settings used for calls to getAccessSummary. */ + public UnaryCallSettings.Builder + getAccessSummarySettings() { + return getStubSettingsBuilder().getAccessSummarySettings(); + } + + /** Returns the builder for the settings used for calls to revokeAuthorization. */ + public UnaryCallSettings.Builder + revokeAuthorizationSettings() { + return getStubSettingsBuilder().revokeAuthorizationSettings(); + } + + /** Returns the builder for the settings used for calls to enableAuthProvider. */ + public UnaryCallSettings.Builder + enableAuthProviderSettings() { + return getStubSettingsBuilder().enableAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to disableAuthProvider. */ + public UnaryCallSettings.Builder + disableAuthProviderSettings() { + return getStubSettingsBuilder().disableAuthProviderSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** 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 getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public AuthProviderServiceSettings build() throws IOException { + return new AuthProviderServiceSettings(this); + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/gapic_metadata.json b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/gapic_metadata.json new file mode 100644 index 000000000000..af060d093fc2 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/gapic_metadata.json @@ -0,0 +1,81 @@ +{ + "schema": "1.0", + "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", + "language": "java", + "protoPackage": "google.cloud.agentidentity.v1beta", + "libraryPackage": "com.google.cloud.agentidentity.v1beta", + "services": { + "AuthProviderService": { + "clients": { + "grpc": { + "libraryClient": "AuthProviderServiceClient", + "rpcs": { + "CreateAuthProvider": { + "methods": ["createAuthProvider", "createAuthProvider", "createAuthProvider", "createAuthProviderCallable"] + }, + "DeleteAuthProvider": { + "methods": ["deleteAuthProvider", "deleteAuthProvider", "deleteAuthProvider", "deleteAuthProviderCallable"] + }, + "DeleteAuthorization": { + "methods": ["deleteAuthorization", "deleteAuthorization", "deleteAuthorization", "deleteAuthorizationCallable"] + }, + "DisableAuthProvider": { + "methods": ["disableAuthProvider", "disableAuthProvider", "disableAuthProvider", "disableAuthProviderCallable"] + }, + "EnableAuthProvider": { + "methods": ["enableAuthProvider", "enableAuthProvider", "enableAuthProvider", "enableAuthProviderCallable"] + }, + "GetAccessSummary": { + "methods": ["getAccessSummary", "getAccessSummary", "getAccessSummary", "getAccessSummaryCallable"] + }, + "GetAuthProvider": { + "methods": ["getAuthProvider", "getAuthProvider", "getAuthProvider", "getAuthProviderCallable"] + }, + "GetAuthorization": { + "methods": ["getAuthorization", "getAuthorization", "getAuthorization", "getAuthorizationCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListAccessSummaries": { + "methods": ["listAccessSummaries", "listAccessSummaries", "listAccessSummaries", "listAccessSummariesPagedCallable", "listAccessSummariesCallable"] + }, + "ListAuthProviders": { + "methods": ["listAuthProviders", "listAuthProviders", "listAuthProviders", "listAuthProvidersPagedCallable", "listAuthProvidersCallable"] + }, + "ListAuthorizations": { + "methods": ["listAuthorizations", "listAuthorizations", "listAuthorizations", "listAuthorizationsPagedCallable", "listAuthorizationsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "QueryAuthProviders": { + "methods": ["queryAuthProviders", "queryAuthProviders", "queryAuthProviders", "queryAuthProvidersPagedCallable", "queryAuthProvidersCallable"] + }, + "QueryWorkloads": { + "methods": ["queryWorkloads", "queryWorkloads", "queryWorkloads", "queryWorkloadsPagedCallable", "queryWorkloadsCallable"] + }, + "RevokeAuthorization": { + "methods": ["revokeAuthorization", "revokeAuthorization", "revokeAuthorization", "revokeAuthorizationCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UndeleteAuthProvider": { + "methods": ["undeleteAuthProvider", "undeleteAuthProvider", "undeleteAuthProvider", "undeleteAuthProviderCallable"] + }, + "UpdateAuthProvider": { + "methods": ["updateAuthProvider", "updateAuthProvider", "updateAuthProviderCallable"] + } + } + } + } + } + } +} \ No newline at end of file diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/package-info.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/package-info.java new file mode 100644 index 000000000000..783013400ccb --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/package-info.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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 Agent Identity API + * + *

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

======================= AuthProviderServiceClient ======================= + * + *

Service Description: Service describing handlers for resources + * + *

Sample for AuthProviderServiceClient: + * + *

{@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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) {
+ *   AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]");
+ *   AuthProvider response = authProviderServiceClient.getAuthProvider(name);
+ * }
+ * }
+ */ +@Generated("by gapic-generator-java") +package com.google.cloud.agentidentity.v1beta; + +import javax.annotation.Generated; diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/AuthProviderServiceStub.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/AuthProviderServiceStub.java new file mode 100644 index 000000000000..b93e7b8da5a7 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/AuthProviderServiceStub.java @@ -0,0 +1,200 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.stub; + +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.Authorization; +import com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest; +import com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse; +import com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse; +import com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest; +import com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse; +import com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest; +import com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse; +import com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest; +import com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse; +import com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AuthProviderService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public abstract class AuthProviderServiceStub implements BackgroundResource { + + public UnaryCallable + listAuthProvidersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAuthProvidersPagedCallable()"); + } + + public UnaryCallable + listAuthProvidersCallable() { + throw new UnsupportedOperationException("Not implemented: listAuthProvidersCallable()"); + } + + public UnaryCallable getAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: getAuthProviderCallable()"); + } + + public UnaryCallable createAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: createAuthProviderCallable()"); + } + + public UnaryCallable updateAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: updateAuthProviderCallable()"); + } + + public UnaryCallable deleteAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAuthProviderCallable()"); + } + + public UnaryCallable undeleteAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: undeleteAuthProviderCallable()"); + } + + public UnaryCallable + queryAuthProvidersPagedCallable() { + throw new UnsupportedOperationException("Not implemented: queryAuthProvidersPagedCallable()"); + } + + public UnaryCallable + queryAuthProvidersCallable() { + throw new UnsupportedOperationException("Not implemented: queryAuthProvidersCallable()"); + } + + public UnaryCallable + queryWorkloadsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: queryWorkloadsPagedCallable()"); + } + + public UnaryCallable queryWorkloadsCallable() { + throw new UnsupportedOperationException("Not implemented: queryWorkloadsCallable()"); + } + + public UnaryCallable + listAuthorizationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAuthorizationsPagedCallable()"); + } + + public UnaryCallable + listAuthorizationsCallable() { + throw new UnsupportedOperationException("Not implemented: listAuthorizationsCallable()"); + } + + public UnaryCallable getAuthorizationCallable() { + throw new UnsupportedOperationException("Not implemented: getAuthorizationCallable()"); + } + + public UnaryCallable deleteAuthorizationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAuthorizationCallable()"); + } + + public UnaryCallable + listAccessSummariesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAccessSummariesPagedCallable()"); + } + + public UnaryCallable + listAccessSummariesCallable() { + throw new UnsupportedOperationException("Not implemented: listAccessSummariesCallable()"); + } + + public UnaryCallable getAccessSummaryCallable() { + throw new UnsupportedOperationException("Not implemented: getAccessSummaryCallable()"); + } + + public UnaryCallable + revokeAuthorizationCallable() { + throw new UnsupportedOperationException("Not implemented: revokeAuthorizationCallable()"); + } + + public UnaryCallable enableAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: enableAuthProviderCallable()"); + } + + public UnaryCallable disableAuthProviderCallable() { + throw new UnsupportedOperationException("Not implemented: disableAuthProviderCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/AuthProviderServiceStubSettings.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/AuthProviderServiceStubSettings.java new file mode 100644 index 000000000000..d81535613436 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/AuthProviderServiceStubSettings.java @@ -0,0 +1,1272 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.stub; + +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +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.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +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.LibraryMetadata; +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.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.Authorization; +import com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest; +import com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse; +import com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse; +import com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest; +import com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse; +import com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest; +import com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse; +import com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest; +import com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse; +import com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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.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.time.Duration; +import java.util.List; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AuthProviderServiceStub}. + * + *

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

    + *
  • The default service address (agentidentity.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 + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getAuthProvider: + * + *

{@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
+ * AuthProviderServiceStubSettings.Builder authProviderServiceSettingsBuilder =
+ *     AuthProviderServiceStubSettings.newBuilder();
+ * authProviderServiceSettingsBuilder
+ *     .getAuthProviderSettings()
+ *     .setRetrySettings(
+ *         authProviderServiceSettingsBuilder
+ *             .getAuthProviderSettings()
+ *             .getRetrySettings()
+ *             .toBuilder()
+ *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
+ *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
+ *             .setMaxAttempts(5)
+ *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
+ *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
+ *             .setRetryDelayMultiplier(1.3)
+ *             .setRpcTimeoutMultiplier(1.5)
+ *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
+ *             .build());
+ * AuthProviderServiceStubSettings authProviderServiceSettings =
+ *     authProviderServiceSettingsBuilder.build();
+ * }
+ * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class AuthProviderServiceStubSettings 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< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + listAuthProvidersSettings; + private final UnaryCallSettings getAuthProviderSettings; + private final UnaryCallSettings + createAuthProviderSettings; + private final UnaryCallSettings + updateAuthProviderSettings; + private final UnaryCallSettings deleteAuthProviderSettings; + private final UnaryCallSettings + undeleteAuthProviderSettings; + private final PagedCallSettings< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + queryAuthProvidersSettings; + private final PagedCallSettings< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + queryWorkloadsSettings; + private final PagedCallSettings< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + listAuthorizationsSettings; + private final UnaryCallSettings getAuthorizationSettings; + private final UnaryCallSettings deleteAuthorizationSettings; + private final PagedCallSettings< + ListAccessSummariesRequest, ListAccessSummariesResponse, ListAccessSummariesPagedResponse> + listAccessSummariesSettings; + private final UnaryCallSettings getAccessSummarySettings; + private final UnaryCallSettings + revokeAuthorizationSettings; + private final UnaryCallSettings + enableAuthProviderSettings; + private final UnaryCallSettings + disableAuthProviderSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListAuthProvidersRequest, ListAuthProvidersResponse, AuthProvider> + LIST_AUTH_PROVIDERS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAuthProvidersRequest, ListAuthProvidersResponse, AuthProvider>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAuthProvidersRequest injectToken( + ListAuthProvidersRequest payload, String token) { + return ListAuthProvidersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAuthProvidersRequest injectPageSize( + ListAuthProvidersRequest payload, int pageSize) { + return ListAuthProvidersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAuthProvidersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAuthProvidersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAuthProvidersResponse payload) { + return payload.getAuthProvidersList(); + } + }; + + private static final PagedListDescriptor< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, String> + QUERY_AUTH_PROVIDERS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryAuthProvidersRequest injectToken( + QueryAuthProvidersRequest payload, String token) { + return QueryAuthProvidersRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryAuthProvidersRequest injectPageSize( + QueryAuthProvidersRequest payload, int pageSize) { + return QueryAuthProvidersRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryAuthProvidersRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryAuthProvidersResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(QueryAuthProvidersResponse payload) { + return payload.getAuthProviderNamesList(); + } + }; + + private static final PagedListDescriptor + QUERY_WORKLOADS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public QueryWorkloadsRequest injectToken(QueryWorkloadsRequest payload, String token) { + return QueryWorkloadsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public QueryWorkloadsRequest injectPageSize( + QueryWorkloadsRequest payload, int pageSize) { + return QueryWorkloadsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(QueryWorkloadsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(QueryWorkloadsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(QueryWorkloadsResponse payload) { + return payload.getWorkloadIdsList(); + } + }; + + private static final PagedListDescriptor< + ListAuthorizationsRequest, ListAuthorizationsResponse, Authorization> + LIST_AUTHORIZATIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAuthorizationsRequest, ListAuthorizationsResponse, Authorization>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAuthorizationsRequest injectToken( + ListAuthorizationsRequest payload, String token) { + return ListAuthorizationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAuthorizationsRequest injectPageSize( + ListAuthorizationsRequest payload, int pageSize) { + return ListAuthorizationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAuthorizationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAuthorizationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAuthorizationsResponse payload) { + return payload.getAuthorizationsList(); + } + }; + + private static final PagedListDescriptor< + ListAccessSummariesRequest, ListAccessSummariesResponse, AccessSummary> + LIST_ACCESS_SUMMARIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListAccessSummariesRequest, ListAccessSummariesResponse, AccessSummary>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAccessSummariesRequest injectToken( + ListAccessSummariesRequest payload, String token) { + return ListAccessSummariesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAccessSummariesRequest injectPageSize( + ListAccessSummariesRequest payload, int pageSize) { + return ListAccessSummariesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAccessSummariesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAccessSummariesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAccessSummariesResponse payload) { + return payload.getAccessSummariesList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + LIST_AUTH_PROVIDERS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAuthProvidersRequest, + ListAuthProvidersResponse, + ListAuthProvidersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAuthProvidersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_AUTH_PROVIDERS_PAGE_STR_DESC, request, context); + return ListAuthProvidersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + QUERY_AUTH_PROVIDERS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryAuthProvidersRequest, + QueryAuthProvidersResponse, + QueryAuthProvidersPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryAuthProvidersRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, QUERY_AUTH_PROVIDERS_PAGE_STR_DESC, request, context); + return QueryAuthProvidersPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + QUERY_WORKLOADS_PAGE_STR_FACT = + new PagedListResponseFactory< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + QueryWorkloadsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, QUERY_WORKLOADS_PAGE_STR_DESC, request, context); + return QueryWorkloadsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + LIST_AUTHORIZATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAuthorizationsRequest, + ListAuthorizationsResponse, + ListAuthorizationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAuthorizationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_AUTHORIZATIONS_PAGE_STR_DESC, request, context); + return ListAuthorizationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListAccessSummariesRequest, ListAccessSummariesResponse, ListAccessSummariesPagedResponse> + LIST_ACCESS_SUMMARIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + ListAccessSummariesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAccessSummariesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_ACCESS_SUMMARIES_PAGE_STR_DESC, request, context); + return ListAccessSummariesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to listAuthProviders. */ + public PagedCallSettings< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + listAuthProvidersSettings() { + return listAuthProvidersSettings; + } + + /** Returns the object with the settings used for calls to getAuthProvider. */ + public UnaryCallSettings getAuthProviderSettings() { + return getAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to createAuthProvider. */ + public UnaryCallSettings createAuthProviderSettings() { + return createAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to updateAuthProvider. */ + public UnaryCallSettings updateAuthProviderSettings() { + return updateAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to deleteAuthProvider. */ + public UnaryCallSettings deleteAuthProviderSettings() { + return deleteAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to undeleteAuthProvider. */ + public UnaryCallSettings + undeleteAuthProviderSettings() { + return undeleteAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to queryAuthProviders. */ + public PagedCallSettings< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + queryAuthProvidersSettings() { + return queryAuthProvidersSettings; + } + + /** Returns the object with the settings used for calls to queryWorkloads. */ + public PagedCallSettings< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + queryWorkloadsSettings() { + return queryWorkloadsSettings; + } + + /** Returns the object with the settings used for calls to listAuthorizations. */ + public PagedCallSettings< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + listAuthorizationsSettings() { + return listAuthorizationsSettings; + } + + /** Returns the object with the settings used for calls to getAuthorization. */ + public UnaryCallSettings getAuthorizationSettings() { + return getAuthorizationSettings; + } + + /** Returns the object with the settings used for calls to deleteAuthorization. */ + public UnaryCallSettings deleteAuthorizationSettings() { + return deleteAuthorizationSettings; + } + + /** Returns the object with the settings used for calls to listAccessSummaries. */ + public PagedCallSettings< + ListAccessSummariesRequest, ListAccessSummariesResponse, ListAccessSummariesPagedResponse> + listAccessSummariesSettings() { + return listAccessSummariesSettings; + } + + /** Returns the object with the settings used for calls to getAccessSummary. */ + public UnaryCallSettings getAccessSummarySettings() { + return getAccessSummarySettings; + } + + /** Returns the object with the settings used for calls to revokeAuthorization. */ + public UnaryCallSettings + revokeAuthorizationSettings() { + return revokeAuthorizationSettings; + } + + /** Returns the object with the settings used for calls to enableAuthProvider. */ + public UnaryCallSettings enableAuthProviderSettings() { + return enableAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to disableAuthProvider. */ + public UnaryCallSettings disableAuthProviderSettings() { + return disableAuthProviderSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** 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 getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public AuthProviderServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAuthProviderServiceStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAuthProviderServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "agentidentity"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "agentidentity.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "agentidentity.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 gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AuthProviderServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AuthProviderServiceStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AuthProviderServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(@Nullable 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 AuthProviderServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + listAuthProvidersSettings = settingsBuilder.listAuthProvidersSettings().build(); + getAuthProviderSettings = settingsBuilder.getAuthProviderSettings().build(); + createAuthProviderSettings = settingsBuilder.createAuthProviderSettings().build(); + updateAuthProviderSettings = settingsBuilder.updateAuthProviderSettings().build(); + deleteAuthProviderSettings = settingsBuilder.deleteAuthProviderSettings().build(); + undeleteAuthProviderSettings = settingsBuilder.undeleteAuthProviderSettings().build(); + queryAuthProvidersSettings = settingsBuilder.queryAuthProvidersSettings().build(); + queryWorkloadsSettings = settingsBuilder.queryWorkloadsSettings().build(); + listAuthorizationsSettings = settingsBuilder.listAuthorizationsSettings().build(); + getAuthorizationSettings = settingsBuilder.getAuthorizationSettings().build(); + deleteAuthorizationSettings = settingsBuilder.deleteAuthorizationSettings().build(); + listAccessSummariesSettings = settingsBuilder.listAccessSummariesSettings().build(); + getAccessSummarySettings = settingsBuilder.getAccessSummarySettings().build(); + revokeAuthorizationSettings = settingsBuilder.revokeAuthorizationSettings().build(); + enableAuthProviderSettings = settingsBuilder.enableAuthProviderSettings().build(); + disableAuthProviderSettings = settingsBuilder.disableAuthProviderSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-agentidentity") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for AuthProviderServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final PagedCallSettings.Builder< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + listAuthProvidersSettings; + private final UnaryCallSettings.Builder + getAuthProviderSettings; + private final UnaryCallSettings.Builder + createAuthProviderSettings; + private final UnaryCallSettings.Builder + updateAuthProviderSettings; + private final UnaryCallSettings.Builder + deleteAuthProviderSettings; + private final UnaryCallSettings.Builder + undeleteAuthProviderSettings; + private final PagedCallSettings.Builder< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + queryAuthProvidersSettings; + private final PagedCallSettings.Builder< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + queryWorkloadsSettings; + private final PagedCallSettings.Builder< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + listAuthorizationsSettings; + private final UnaryCallSettings.Builder + getAuthorizationSettings; + private final UnaryCallSettings.Builder + deleteAuthorizationSettings; + private final PagedCallSettings.Builder< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + ListAccessSummariesPagedResponse> + listAccessSummariesSettings; + private final UnaryCallSettings.Builder + getAccessSummarySettings; + private final UnaryCallSettings.Builder + revokeAuthorizationSettings; + private final UnaryCallSettings.Builder + enableAuthProviderSettings; + private final UnaryCallSettings.Builder + disableAuthProviderSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + 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))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(@Nullable ClientContext clientContext) { + super(clientContext); + + listAuthProvidersSettings = PagedCallSettings.newBuilder(LIST_AUTH_PROVIDERS_PAGE_STR_FACT); + getAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + undeleteAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + queryAuthProvidersSettings = PagedCallSettings.newBuilder(QUERY_AUTH_PROVIDERS_PAGE_STR_FACT); + queryWorkloadsSettings = PagedCallSettings.newBuilder(QUERY_WORKLOADS_PAGE_STR_FACT); + listAuthorizationsSettings = PagedCallSettings.newBuilder(LIST_AUTHORIZATIONS_PAGE_STR_FACT); + getAuthorizationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAuthorizationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listAccessSummariesSettings = + PagedCallSettings.newBuilder(LIST_ACCESS_SUMMARIES_PAGE_STR_FACT); + getAccessSummarySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + revokeAuthorizationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + enableAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + disableAuthProviderSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAuthProvidersSettings, + getAuthProviderSettings, + createAuthProviderSettings, + updateAuthProviderSettings, + deleteAuthProviderSettings, + undeleteAuthProviderSettings, + queryAuthProvidersSettings, + queryWorkloadsSettings, + listAuthorizationsSettings, + getAuthorizationSettings, + deleteAuthorizationSettings, + listAccessSummariesSettings, + getAccessSummarySettings, + revokeAuthorizationSettings, + enableAuthProviderSettings, + disableAuthProviderSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(AuthProviderServiceStubSettings settings) { + super(settings); + + listAuthProvidersSettings = settings.listAuthProvidersSettings.toBuilder(); + getAuthProviderSettings = settings.getAuthProviderSettings.toBuilder(); + createAuthProviderSettings = settings.createAuthProviderSettings.toBuilder(); + updateAuthProviderSettings = settings.updateAuthProviderSettings.toBuilder(); + deleteAuthProviderSettings = settings.deleteAuthProviderSettings.toBuilder(); + undeleteAuthProviderSettings = settings.undeleteAuthProviderSettings.toBuilder(); + queryAuthProvidersSettings = settings.queryAuthProvidersSettings.toBuilder(); + queryWorkloadsSettings = settings.queryWorkloadsSettings.toBuilder(); + listAuthorizationsSettings = settings.listAuthorizationsSettings.toBuilder(); + getAuthorizationSettings = settings.getAuthorizationSettings.toBuilder(); + deleteAuthorizationSettings = settings.deleteAuthorizationSettings.toBuilder(); + listAccessSummariesSettings = settings.listAccessSummariesSettings.toBuilder(); + getAccessSummarySettings = settings.getAccessSummarySettings.toBuilder(); + revokeAuthorizationSettings = settings.revokeAuthorizationSettings.toBuilder(); + enableAuthProviderSettings = settings.enableAuthProviderSettings.toBuilder(); + disableAuthProviderSettings = settings.disableAuthProviderSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + listAuthProvidersSettings, + getAuthProviderSettings, + createAuthProviderSettings, + updateAuthProviderSettings, + deleteAuthProviderSettings, + undeleteAuthProviderSettings, + queryAuthProvidersSettings, + queryWorkloadsSettings, + listAuthorizationsSettings, + getAuthorizationSettings, + deleteAuthorizationSettings, + listAccessSummariesSettings, + getAccessSummarySettings, + revokeAuthorizationSettings, + enableAuthProviderSettings, + disableAuthProviderSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .listAuthProvidersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .undeleteAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .queryAuthProvidersSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .queryWorkloadsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAuthorizationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAuthorizationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteAuthorizationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listAccessSummariesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAccessSummarySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .revokeAuthorizationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .enableAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .disableAuthProviderSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_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 listAuthProviders. */ + public PagedCallSettings.Builder< + ListAuthProvidersRequest, ListAuthProvidersResponse, ListAuthProvidersPagedResponse> + listAuthProvidersSettings() { + return listAuthProvidersSettings; + } + + /** Returns the builder for the settings used for calls to getAuthProvider. */ + public UnaryCallSettings.Builder + getAuthProviderSettings() { + return getAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to createAuthProvider. */ + public UnaryCallSettings.Builder + createAuthProviderSettings() { + return createAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to updateAuthProvider. */ + public UnaryCallSettings.Builder + updateAuthProviderSettings() { + return updateAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to deleteAuthProvider. */ + public UnaryCallSettings.Builder + deleteAuthProviderSettings() { + return deleteAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to undeleteAuthProvider. */ + public UnaryCallSettings.Builder + undeleteAuthProviderSettings() { + return undeleteAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to queryAuthProviders. */ + public PagedCallSettings.Builder< + QueryAuthProvidersRequest, QueryAuthProvidersResponse, QueryAuthProvidersPagedResponse> + queryAuthProvidersSettings() { + return queryAuthProvidersSettings; + } + + /** Returns the builder for the settings used for calls to queryWorkloads. */ + public PagedCallSettings.Builder< + QueryWorkloadsRequest, QueryWorkloadsResponse, QueryWorkloadsPagedResponse> + queryWorkloadsSettings() { + return queryWorkloadsSettings; + } + + /** Returns the builder for the settings used for calls to listAuthorizations. */ + public PagedCallSettings.Builder< + ListAuthorizationsRequest, ListAuthorizationsResponse, ListAuthorizationsPagedResponse> + listAuthorizationsSettings() { + return listAuthorizationsSettings; + } + + /** Returns the builder for the settings used for calls to getAuthorization. */ + public UnaryCallSettings.Builder + getAuthorizationSettings() { + return getAuthorizationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAuthorization. */ + public UnaryCallSettings.Builder + deleteAuthorizationSettings() { + return deleteAuthorizationSettings; + } + + /** Returns the builder for the settings used for calls to listAccessSummaries. */ + public PagedCallSettings.Builder< + ListAccessSummariesRequest, + ListAccessSummariesResponse, + ListAccessSummariesPagedResponse> + listAccessSummariesSettings() { + return listAccessSummariesSettings; + } + + /** Returns the builder for the settings used for calls to getAccessSummary. */ + public UnaryCallSettings.Builder + getAccessSummarySettings() { + return getAccessSummarySettings; + } + + /** Returns the builder for the settings used for calls to revokeAuthorization. */ + public UnaryCallSettings.Builder + revokeAuthorizationSettings() { + return revokeAuthorizationSettings; + } + + /** Returns the builder for the settings used for calls to enableAuthProvider. */ + public UnaryCallSettings.Builder + enableAuthProviderSettings() { + return enableAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to disableAuthProvider. */ + public UnaryCallSettings.Builder + disableAuthProviderSettings() { + return disableAuthProviderSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** 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 getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public AuthProviderServiceStubSettings build() throws IOException { + return new AuthProviderServiceStubSettings(this); + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/GrpcAuthProviderServiceCallableFactory.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/GrpcAuthProviderServiceCallableFactory.java new file mode 100644 index 000000000000..66bb930c134d --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/GrpcAuthProviderServiceCallableFactory.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.stub; + +import com.google.api.core.BetaApi; +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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AuthProviderService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAuthProviderServiceCallableFactory 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/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/GrpcAuthProviderServiceStub.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/GrpcAuthProviderServiceStub.java new file mode 100644 index 000000000000..19ef3b893b23 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/GrpcAuthProviderServiceStub.java @@ -0,0 +1,966 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.stub; + +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +import com.google.api.core.BetaApi; +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.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.Authorization; +import com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest; +import com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse; +import com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse; +import com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest; +import com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse; +import com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest; +import com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse; +import com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest; +import com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse; +import com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AuthProviderService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAuthProviderServiceStub extends AuthProviderServiceStub { + private static final MethodDescriptor + listAuthProvidersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/ListAuthProviders") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAuthProvidersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAuthProvidersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/GetAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthProvider.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/CreateAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthProvider.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/UpdateAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthProvider.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/DeleteAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + undeleteAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/UndeleteAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(UndeleteAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthProvider.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + queryAuthProvidersMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/QueryAuthProviders") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryAuthProvidersRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryAuthProvidersResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + queryWorkloadsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/QueryWorkloads") + .setRequestMarshaller( + ProtoUtils.marshaller(QueryWorkloadsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(QueryWorkloadsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAuthorizationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/ListAuthorizations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAuthorizationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAuthorizationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAuthorizationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/GetAuthorization") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAuthorizationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Authorization.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAuthorizationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/DeleteAuthorization") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAuthorizationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAccessSummariesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/ListAccessSummaries") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAccessSummariesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAccessSummariesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAccessSummaryMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/GetAccessSummary") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAccessSummaryRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AccessSummary.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + revokeAuthorizationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/RevokeAuthorization") + .setRequestMarshaller( + ProtoUtils.marshaller(RevokeAuthorizationRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RevokeAuthorizationResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + enableAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/EnableAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(EnableAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthProvider.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + disableAuthProviderMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/DisableAuthProvider") + .setRequestMarshaller( + ProtoUtils.marshaller(DisableAuthProviderRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AuthProvider.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + listAuthProvidersCallable; + private final UnaryCallable + listAuthProvidersPagedCallable; + private final UnaryCallable getAuthProviderCallable; + private final UnaryCallable createAuthProviderCallable; + private final UnaryCallable updateAuthProviderCallable; + private final UnaryCallable deleteAuthProviderCallable; + private final UnaryCallable + undeleteAuthProviderCallable; + private final UnaryCallable + queryAuthProvidersCallable; + private final UnaryCallable + queryAuthProvidersPagedCallable; + private final UnaryCallable queryWorkloadsCallable; + private final UnaryCallable + queryWorkloadsPagedCallable; + private final UnaryCallable + listAuthorizationsCallable; + private final UnaryCallable + listAuthorizationsPagedCallable; + private final UnaryCallable getAuthorizationCallable; + private final UnaryCallable deleteAuthorizationCallable; + private final UnaryCallable + listAccessSummariesCallable; + private final UnaryCallable + listAccessSummariesPagedCallable; + private final UnaryCallable getAccessSummaryCallable; + private final UnaryCallable + revokeAuthorizationCallable; + private final UnaryCallable enableAuthProviderCallable; + private final UnaryCallable disableAuthProviderCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAuthProviderServiceStub create(AuthProviderServiceStubSettings settings) + throws IOException { + return new GrpcAuthProviderServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAuthProviderServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAuthProviderServiceStub( + AuthProviderServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAuthProviderServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAuthProviderServiceStub( + AuthProviderServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAuthProviderServiceStub, 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 GrpcAuthProviderServiceStub( + AuthProviderServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAuthProviderServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAuthProviderServiceStub, 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 GrpcAuthProviderServiceStub( + AuthProviderServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listAuthProvidersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAuthProvidersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings createAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings updateAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "auth_provider.name", String.valueOf(request.getAuthProvider().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + undeleteAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(undeleteAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + queryAuthProvidersTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(queryAuthProvidersMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + queryWorkloadsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(queryWorkloadsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAuthorizationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAuthorizationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAuthorizationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAuthorizationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings deleteAuthorizationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAuthorizationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAccessSummariesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAccessSummariesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAccessSummaryTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAccessSummaryMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + revokeAuthorizationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(revokeAuthorizationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings enableAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(enableAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + disableAuthProviderTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(disableAuthProviderMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.listAuthProvidersCallable = + callableFactory.createUnaryCallable( + listAuthProvidersTransportSettings, + settings.listAuthProvidersSettings(), + clientContext); + this.listAuthProvidersPagedCallable = + callableFactory.createPagedCallable( + listAuthProvidersTransportSettings, + settings.listAuthProvidersSettings(), + clientContext); + this.getAuthProviderCallable = + callableFactory.createUnaryCallable( + getAuthProviderTransportSettings, settings.getAuthProviderSettings(), clientContext); + this.createAuthProviderCallable = + callableFactory.createUnaryCallable( + createAuthProviderTransportSettings, + settings.createAuthProviderSettings(), + clientContext); + this.updateAuthProviderCallable = + callableFactory.createUnaryCallable( + updateAuthProviderTransportSettings, + settings.updateAuthProviderSettings(), + clientContext); + this.deleteAuthProviderCallable = + callableFactory.createUnaryCallable( + deleteAuthProviderTransportSettings, + settings.deleteAuthProviderSettings(), + clientContext); + this.undeleteAuthProviderCallable = + callableFactory.createUnaryCallable( + undeleteAuthProviderTransportSettings, + settings.undeleteAuthProviderSettings(), + clientContext); + this.queryAuthProvidersCallable = + callableFactory.createUnaryCallable( + queryAuthProvidersTransportSettings, + settings.queryAuthProvidersSettings(), + clientContext); + this.queryAuthProvidersPagedCallable = + callableFactory.createPagedCallable( + queryAuthProvidersTransportSettings, + settings.queryAuthProvidersSettings(), + clientContext); + this.queryWorkloadsCallable = + callableFactory.createUnaryCallable( + queryWorkloadsTransportSettings, settings.queryWorkloadsSettings(), clientContext); + this.queryWorkloadsPagedCallable = + callableFactory.createPagedCallable( + queryWorkloadsTransportSettings, settings.queryWorkloadsSettings(), clientContext); + this.listAuthorizationsCallable = + callableFactory.createUnaryCallable( + listAuthorizationsTransportSettings, + settings.listAuthorizationsSettings(), + clientContext); + this.listAuthorizationsPagedCallable = + callableFactory.createPagedCallable( + listAuthorizationsTransportSettings, + settings.listAuthorizationsSettings(), + clientContext); + this.getAuthorizationCallable = + callableFactory.createUnaryCallable( + getAuthorizationTransportSettings, settings.getAuthorizationSettings(), clientContext); + this.deleteAuthorizationCallable = + callableFactory.createUnaryCallable( + deleteAuthorizationTransportSettings, + settings.deleteAuthorizationSettings(), + clientContext); + this.listAccessSummariesCallable = + callableFactory.createUnaryCallable( + listAccessSummariesTransportSettings, + settings.listAccessSummariesSettings(), + clientContext); + this.listAccessSummariesPagedCallable = + callableFactory.createPagedCallable( + listAccessSummariesTransportSettings, + settings.listAccessSummariesSettings(), + clientContext); + this.getAccessSummaryCallable = + callableFactory.createUnaryCallable( + getAccessSummaryTransportSettings, settings.getAccessSummarySettings(), clientContext); + this.revokeAuthorizationCallable = + callableFactory.createUnaryCallable( + revokeAuthorizationTransportSettings, + settings.revokeAuthorizationSettings(), + clientContext); + this.enableAuthProviderCallable = + callableFactory.createUnaryCallable( + enableAuthProviderTransportSettings, + settings.enableAuthProviderSettings(), + clientContext); + this.disableAuthProviderCallable = + callableFactory.createUnaryCallable( + disableAuthProviderTransportSettings, + settings.disableAuthProviderSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listAuthProvidersCallable() { + return listAuthProvidersCallable; + } + + @Override + public UnaryCallable + listAuthProvidersPagedCallable() { + return listAuthProvidersPagedCallable; + } + + @Override + public UnaryCallable getAuthProviderCallable() { + return getAuthProviderCallable; + } + + @Override + public UnaryCallable createAuthProviderCallable() { + return createAuthProviderCallable; + } + + @Override + public UnaryCallable updateAuthProviderCallable() { + return updateAuthProviderCallable; + } + + @Override + public UnaryCallable deleteAuthProviderCallable() { + return deleteAuthProviderCallable; + } + + @Override + public UnaryCallable undeleteAuthProviderCallable() { + return undeleteAuthProviderCallable; + } + + @Override + public UnaryCallable + queryAuthProvidersCallable() { + return queryAuthProvidersCallable; + } + + @Override + public UnaryCallable + queryAuthProvidersPagedCallable() { + return queryAuthProvidersPagedCallable; + } + + @Override + public UnaryCallable queryWorkloadsCallable() { + return queryWorkloadsCallable; + } + + @Override + public UnaryCallable + queryWorkloadsPagedCallable() { + return queryWorkloadsPagedCallable; + } + + @Override + public UnaryCallable + listAuthorizationsCallable() { + return listAuthorizationsCallable; + } + + @Override + public UnaryCallable + listAuthorizationsPagedCallable() { + return listAuthorizationsPagedCallable; + } + + @Override + public UnaryCallable getAuthorizationCallable() { + return getAuthorizationCallable; + } + + @Override + public UnaryCallable deleteAuthorizationCallable() { + return deleteAuthorizationCallable; + } + + @Override + public UnaryCallable + listAccessSummariesCallable() { + return listAccessSummariesCallable; + } + + @Override + public UnaryCallable + listAccessSummariesPagedCallable() { + return listAccessSummariesPagedCallable; + } + + @Override + public UnaryCallable getAccessSummaryCallable() { + return getAccessSummaryCallable; + } + + @Override + public UnaryCallable + revokeAuthorizationCallable() { + return revokeAuthorizationCallable; + } + + @Override + public UnaryCallable enableAuthProviderCallable() { + return enableAuthProviderCallable; + } + + @Override + public UnaryCallable disableAuthProviderCallable() { + return disableAuthProviderCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/HttpJsonAuthProviderServiceCallableFactory.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/HttpJsonAuthProviderServiceCallableFactory.java new file mode 100644 index 000000000000..a002f556c0dd --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/HttpJsonAuthProviderServiceCallableFactory.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +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.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AuthProviderService service API. + * + *

This class is for advanced usage. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAuthProviderServiceCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/HttpJsonAuthProviderServiceStub.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/HttpJsonAuthProviderServiceStub.java new file mode 100644 index 000000000000..ea7a300b5988 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/HttpJsonAuthProviderServiceStub.java @@ -0,0 +1,1558 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.stub; + +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.Authorization; +import com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest; +import com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse; +import com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse; +import com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest; +import com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse; +import com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest; +import com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse; +import com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest; +import com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse; +import com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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 com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AuthProviderService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAuthProviderServiceStub extends AuthProviderServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor + listAuthProvidersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/ListAuthProviders") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/authProviders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "showDeleted", request.getShowDeleted()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAuthProvidersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/GetAuthProvider") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/authProviders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthProvider.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/CreateAuthProvider") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/authProviders", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "authProviderId", request.getAuthProviderId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("authProvider", request.getAuthProvider(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthProvider.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/UpdateAuthProvider") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{authProvider.name=projects/*/locations/*/authProviders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "authProvider.name", request.getAuthProvider().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("authProvider", request.getAuthProvider(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthProvider.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/DeleteAuthProvider") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/authProviders/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + undeleteAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/UndeleteAuthProvider") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/authProviders/*}:undelete", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthProvider.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + queryAuthProvidersMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/QueryAuthProviders") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/authProviders:query", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "workloadId", request.getWorkloadId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryAuthProvidersResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + queryWorkloadsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/QueryWorkloads") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/authProviders/*}:queryWorkloads", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(QueryWorkloadsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAuthorizationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/ListAuthorizations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/authProviders/*}/authorizations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAuthorizationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAuthorizationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/GetAuthorization") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/authProviders/*/authorizations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Authorization.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAuthorizationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/DeleteAuthorization") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/authProviders/*/authorizations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Empty.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listAccessSummariesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/ListAccessSummaries") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*}/accessSummaries", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); + serializer.putQueryParam(fields, "orderBy", request.getOrderBy()); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAccessSummariesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAccessSummaryMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/GetAccessSummary") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/accessSummaries/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessSummary.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + revokeAuthorizationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/RevokeAuthorization") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/authProviders/*}:revokeAuthorization", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RevokeAuthorizationResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + enableAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/EnableAuthProvider") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/authProviders/*}:enable", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthProvider.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + disableAuthProviderMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName( + "google.cloud.agentidentity.v1beta.AuthProviderService/DisableAuthProvider") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/authProviders/*}:disable", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AuthProvider.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*}/locations", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + setIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{resource=projects/*/locations/*/authProviders/*}:setIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getIamPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{resource=projects/*/locations/*/authProviders/*}:getIamPolicy", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Policy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + testIamPermissionsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{resource=projects/*/locations/*/authProviders/*}:testIamPermissions", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "resource", request.getResource()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearResource().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(TestIamPermissionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listAuthProvidersCallable; + private final UnaryCallable + listAuthProvidersPagedCallable; + private final UnaryCallable getAuthProviderCallable; + private final UnaryCallable createAuthProviderCallable; + private final UnaryCallable updateAuthProviderCallable; + private final UnaryCallable deleteAuthProviderCallable; + private final UnaryCallable + undeleteAuthProviderCallable; + private final UnaryCallable + queryAuthProvidersCallable; + private final UnaryCallable + queryAuthProvidersPagedCallable; + private final UnaryCallable queryWorkloadsCallable; + private final UnaryCallable + queryWorkloadsPagedCallable; + private final UnaryCallable + listAuthorizationsCallable; + private final UnaryCallable + listAuthorizationsPagedCallable; + private final UnaryCallable getAuthorizationCallable; + private final UnaryCallable deleteAuthorizationCallable; + private final UnaryCallable + listAccessSummariesCallable; + private final UnaryCallable + listAccessSummariesPagedCallable; + private final UnaryCallable getAccessSummaryCallable; + private final UnaryCallable + revokeAuthorizationCallable; + private final UnaryCallable enableAuthProviderCallable; + private final UnaryCallable disableAuthProviderCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAuthProviderServiceStub create( + AuthProviderServiceStubSettings settings) throws IOException { + return new HttpJsonAuthProviderServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAuthProviderServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAuthProviderServiceStub( + AuthProviderServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAuthProviderServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAuthProviderServiceStub( + AuthProviderServiceStubSettings.newHttpJsonBuilder().build(), + clientContext, + callableFactory); + } + + /** + * Constructs an instance of HttpJsonAuthProviderServiceStub, 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 HttpJsonAuthProviderServiceStub( + AuthProviderServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAuthProviderServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAuthProviderServiceStub, 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 HttpJsonAuthProviderServiceStub( + AuthProviderServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + listAuthProvidersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAuthProvidersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + createAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + updateAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "auth_provider.name", + String.valueOf(request.getAuthProvider().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + undeleteAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(undeleteAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + queryAuthProvidersTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(queryAuthProvidersMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + queryWorkloadsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(queryWorkloadsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAuthorizationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAuthorizationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAuthorizationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAuthorizationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings deleteAuthorizationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAuthorizationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAccessSummariesTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAccessSummariesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAccessSummaryTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAccessSummaryMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + revokeAuthorizationTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(revokeAuthorizationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + enableAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(enableAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + disableAuthProviderTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(disableAuthProviderMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings setIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + HttpJsonCallSettings getIamPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + HttpJsonCallSettings + testIamPermissionsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.listAuthProvidersCallable = + callableFactory.createUnaryCallable( + listAuthProvidersTransportSettings, + settings.listAuthProvidersSettings(), + clientContext); + this.listAuthProvidersPagedCallable = + callableFactory.createPagedCallable( + listAuthProvidersTransportSettings, + settings.listAuthProvidersSettings(), + clientContext); + this.getAuthProviderCallable = + callableFactory.createUnaryCallable( + getAuthProviderTransportSettings, settings.getAuthProviderSettings(), clientContext); + this.createAuthProviderCallable = + callableFactory.createUnaryCallable( + createAuthProviderTransportSettings, + settings.createAuthProviderSettings(), + clientContext); + this.updateAuthProviderCallable = + callableFactory.createUnaryCallable( + updateAuthProviderTransportSettings, + settings.updateAuthProviderSettings(), + clientContext); + this.deleteAuthProviderCallable = + callableFactory.createUnaryCallable( + deleteAuthProviderTransportSettings, + settings.deleteAuthProviderSettings(), + clientContext); + this.undeleteAuthProviderCallable = + callableFactory.createUnaryCallable( + undeleteAuthProviderTransportSettings, + settings.undeleteAuthProviderSettings(), + clientContext); + this.queryAuthProvidersCallable = + callableFactory.createUnaryCallable( + queryAuthProvidersTransportSettings, + settings.queryAuthProvidersSettings(), + clientContext); + this.queryAuthProvidersPagedCallable = + callableFactory.createPagedCallable( + queryAuthProvidersTransportSettings, + settings.queryAuthProvidersSettings(), + clientContext); + this.queryWorkloadsCallable = + callableFactory.createUnaryCallable( + queryWorkloadsTransportSettings, settings.queryWorkloadsSettings(), clientContext); + this.queryWorkloadsPagedCallable = + callableFactory.createPagedCallable( + queryWorkloadsTransportSettings, settings.queryWorkloadsSettings(), clientContext); + this.listAuthorizationsCallable = + callableFactory.createUnaryCallable( + listAuthorizationsTransportSettings, + settings.listAuthorizationsSettings(), + clientContext); + this.listAuthorizationsPagedCallable = + callableFactory.createPagedCallable( + listAuthorizationsTransportSettings, + settings.listAuthorizationsSettings(), + clientContext); + this.getAuthorizationCallable = + callableFactory.createUnaryCallable( + getAuthorizationTransportSettings, settings.getAuthorizationSettings(), clientContext); + this.deleteAuthorizationCallable = + callableFactory.createUnaryCallable( + deleteAuthorizationTransportSettings, + settings.deleteAuthorizationSettings(), + clientContext); + this.listAccessSummariesCallable = + callableFactory.createUnaryCallable( + listAccessSummariesTransportSettings, + settings.listAccessSummariesSettings(), + clientContext); + this.listAccessSummariesPagedCallable = + callableFactory.createPagedCallable( + listAccessSummariesTransportSettings, + settings.listAccessSummariesSettings(), + clientContext); + this.getAccessSummaryCallable = + callableFactory.createUnaryCallable( + getAccessSummaryTransportSettings, settings.getAccessSummarySettings(), clientContext); + this.revokeAuthorizationCallable = + callableFactory.createUnaryCallable( + revokeAuthorizationTransportSettings, + settings.revokeAuthorizationSettings(), + clientContext); + this.enableAuthProviderCallable = + callableFactory.createUnaryCallable( + enableAuthProviderTransportSettings, + settings.enableAuthProviderSettings(), + clientContext); + this.disableAuthProviderCallable = + callableFactory.createUnaryCallable( + disableAuthProviderTransportSettings, + settings.disableAuthProviderSettings(), + clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listAuthProvidersMethodDescriptor); + methodDescriptors.add(getAuthProviderMethodDescriptor); + methodDescriptors.add(createAuthProviderMethodDescriptor); + methodDescriptors.add(updateAuthProviderMethodDescriptor); + methodDescriptors.add(deleteAuthProviderMethodDescriptor); + methodDescriptors.add(undeleteAuthProviderMethodDescriptor); + methodDescriptors.add(queryAuthProvidersMethodDescriptor); + methodDescriptors.add(queryWorkloadsMethodDescriptor); + methodDescriptors.add(listAuthorizationsMethodDescriptor); + methodDescriptors.add(getAuthorizationMethodDescriptor); + methodDescriptors.add(deleteAuthorizationMethodDescriptor); + methodDescriptors.add(listAccessSummariesMethodDescriptor); + methodDescriptors.add(getAccessSummaryMethodDescriptor); + methodDescriptors.add(revokeAuthorizationMethodDescriptor); + methodDescriptors.add(enableAuthProviderMethodDescriptor); + methodDescriptors.add(disableAuthProviderMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + methodDescriptors.add(setIamPolicyMethodDescriptor); + methodDescriptors.add(getIamPolicyMethodDescriptor); + methodDescriptors.add(testIamPermissionsMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + listAuthProvidersCallable() { + return listAuthProvidersCallable; + } + + @Override + public UnaryCallable + listAuthProvidersPagedCallable() { + return listAuthProvidersPagedCallable; + } + + @Override + public UnaryCallable getAuthProviderCallable() { + return getAuthProviderCallable; + } + + @Override + public UnaryCallable createAuthProviderCallable() { + return createAuthProviderCallable; + } + + @Override + public UnaryCallable updateAuthProviderCallable() { + return updateAuthProviderCallable; + } + + @Override + public UnaryCallable deleteAuthProviderCallable() { + return deleteAuthProviderCallable; + } + + @Override + public UnaryCallable undeleteAuthProviderCallable() { + return undeleteAuthProviderCallable; + } + + @Override + public UnaryCallable + queryAuthProvidersCallable() { + return queryAuthProvidersCallable; + } + + @Override + public UnaryCallable + queryAuthProvidersPagedCallable() { + return queryAuthProvidersPagedCallable; + } + + @Override + public UnaryCallable queryWorkloadsCallable() { + return queryWorkloadsCallable; + } + + @Override + public UnaryCallable + queryWorkloadsPagedCallable() { + return queryWorkloadsPagedCallable; + } + + @Override + public UnaryCallable + listAuthorizationsCallable() { + return listAuthorizationsCallable; + } + + @Override + public UnaryCallable + listAuthorizationsPagedCallable() { + return listAuthorizationsPagedCallable; + } + + @Override + public UnaryCallable getAuthorizationCallable() { + return getAuthorizationCallable; + } + + @Override + public UnaryCallable deleteAuthorizationCallable() { + return deleteAuthorizationCallable; + } + + @Override + public UnaryCallable + listAccessSummariesCallable() { + return listAccessSummariesCallable; + } + + @Override + public UnaryCallable + listAccessSummariesPagedCallable() { + return listAccessSummariesPagedCallable; + } + + @Override + public UnaryCallable getAccessSummaryCallable() { + return getAccessSummaryCallable; + } + + @Override + public UnaryCallable + revokeAuthorizationCallable() { + return revokeAuthorizationCallable; + } + + @Override + public UnaryCallable enableAuthProviderCallable() { + return enableAuthProviderCallable; + } + + @Override + public UnaryCallable disableAuthProviderCallable() { + return disableAuthProviderCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @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/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/Version.java b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/Version.java new file mode 100644 index 000000000000..dcd0c0e1fef6 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/java/com/google/cloud/agentidentity/v1beta/stub/Version.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.stub; + +import com.google.api.core.InternalApi; + +@InternalApi("For internal use only") +final class Version { + // {x-version-update-start:google-cloud-agentidentity:current} + static final String VERSION = "0.0.0-SNAPSHOT"; + // {x-version-update-end} + +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/resources/META-INF/native-image/com.google.cloud.agentidentity.v1/reflect-config.json b/java-agentidentity/google-cloud-agentidentity/src/main/resources/META-INF/native-image/com.google.cloud.agentidentity.v1/reflect-config.json new file mode 100644 index 000000000000..66605e2fbb26 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/resources/META-INF/native-image/com.google.cloud.agentidentity.v1/reflect-config.json @@ -0,0 +1,2306 @@ +[ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.AccessSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.AccessSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ApiKeyParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ApiKeyParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.AuthProvider", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.AuthProvider$AuthProviderTypeParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.AuthProvider$AuthProviderTypeParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.AuthProvider$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.AuthProvider$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.AuthProviderType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.Authorization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.Authorization$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.Authorization$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.CreateAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.CreateAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.DisableAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.DisableAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.EnableAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.EnableAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.GetAccessSummaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.GetAccessSummaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.GetAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.GetAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.GetAuthorizationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.GetAuthorizationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ListAccessSummariesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ListAccessSummariesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ListAccessSummariesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ListAccessSummariesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ListAuthProvidersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ListAuthProvidersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ListAuthProvidersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ListAuthProvidersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ListAuthorizationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ListAuthorizationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ListAuthorizationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ListAuthorizationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.QueryWorkloadsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.QueryWorkloadsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.QueryWorkloadsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.QueryWorkloadsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ThreeLeggedOAuth", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.ThreeLeggedOAuth$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.TwoLeggedOAuth", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.TwoLeggedOAuth$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$LogType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnforceNamingStyle", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$DefaultSymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-agentidentity/google-cloud-agentidentity/src/main/resources/META-INF/native-image/com.google.cloud.agentidentity.v1beta/reflect-config.json b/java-agentidentity/google-cloud-agentidentity/src/main/resources/META-INF/native-image/com.google.cloud.agentidentity.v1beta/reflect-config.json new file mode 100644 index 000000000000..3da932d62fc5 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/main/resources/META-INF/native-image/com.google.cloud.agentidentity.v1beta/reflect-config.json @@ -0,0 +1,2306 @@ +[ + { + "name": "com.google.api.BatchingConfigProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingConfigProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.BatchingSettingsProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryDestination", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibraryOrganization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ClientLibrarySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CommonLanguageSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CppSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.CustomHttpPattern$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.DotnetSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FieldInfo$Format", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.FlowControlLimitExceededBehaviorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.GoSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Http$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.HttpRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.JavaSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.LaunchStage", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.MethodSettings$LongRunning$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.NodeSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PhpSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.Publishing$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.PythonSettings$ExperimentalFeatures$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$History", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceDescriptor$Style", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.ResourceReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.RubySettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.SelectiveGapicGeneration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.api.TypeReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.AccessSummary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.AccessSummary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ApiKeyParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ApiKeyParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.AuthProvider", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.AuthProvider$AuthProviderTypeParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.AuthProvider$AuthProviderTypeParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.AuthProvider$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.AuthProvider$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.AuthProviderType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.Authorization", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.Authorization$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.Authorization$State", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.GetLocationRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.ListLocationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.location.Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditConfigDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.AuditLogConfig$LogType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Binding$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Action", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.BindingDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.GetPolicyOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.Policy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.PolicyDelta$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.SetIamPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v1.TestIamPermissionsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Any$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ExtensionRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$DescriptorProto$ReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$Edition", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumDescriptorProto$EnumReservedRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$EnumValueOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$Declaration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ExtensionRangeOptions$VerificationState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnforceNamingStyle", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$EnumType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$FieldPresence", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$JsonFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$MessageEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$RepeatedFieldEncoding", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$Utf8Validation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSet$VisibilityFeature$DefaultSymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FeatureSetDefaults$FeatureSetEditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Label", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldDescriptorProto$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$CType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$EditionDefault$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$FeatureSupport$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$JSType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionRetention", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FieldOptions$OptionTargetType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileDescriptorSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$FileOptions$OptimizeMode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Annotation$Semantic", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$GeneratedCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MessageOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$MethodOptions$IdempotencyLevel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$OneofOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceDescriptorProto$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$ServiceOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SourceCodeInfo$Location$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$SymbolVisibility", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.DescriptorProtos$UninterpretedOption$NamePart$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Duration$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Empty$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.FieldMask$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.protobuf.Timestamp$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.type.Expr$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + } +] \ No newline at end of file diff --git a/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/AuthProviderServiceClientHttpJsonTest.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/AuthProviderServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..5075e954ceb5 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/AuthProviderServiceClientHttpJsonTest.java @@ -0,0 +1,1990 @@ +/* + * Copyright 2026 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.agentidentity.v1; + +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.agentidentity.v1.stub.HttpJsonAuthProviderServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +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.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +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 AuthProviderServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static AuthProviderServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAuthProviderServiceStub.getMethodDescriptors(), + AuthProviderServiceSettings.getDefaultEndpoint()); + AuthProviderServiceSettings settings = + AuthProviderServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AuthProviderServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AuthProviderServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listAuthProvidersTest() throws Exception { + AuthProvider responsesElement = AuthProvider.newBuilder().build(); + ListAuthProvidersResponse expectedResponse = + ListAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviders(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAuthProvidersPagedResponse pagedListResponse = client.listAuthProviders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProvidersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAuthProvidersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAuthProviders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthProvidersTest2() throws Exception { + AuthProvider responsesElement = AuthProvider.newBuilder().build(); + ListAuthProvidersResponse expectedResponse = + ListAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviders(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAuthProvidersPagedResponse pagedListResponse = client.listAuthProviders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProvidersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAuthProvidersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAuthProviders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.getAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.getAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + + AuthProvider actualResponse = client.getAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAuthProviderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + client.getAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + + AuthProvider actualResponse = client.createAuthProvider(parent, authProvider, authProviderId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + client.createAuthProvider(parent, authProvider, authProviderId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + + AuthProvider actualResponse = client.createAuthProvider(parent, authProvider, authProviderId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAuthProviderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + client.createAuthProvider(parent, authProvider, authProviderId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthProvider authProvider = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AuthProvider actualResponse = client.updateAuthProvider(authProvider, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProvider authProvider = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAuthProvider(authProvider, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthProviderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + client.deleteAuthProvider(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.deleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthProviderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + + client.deleteAuthProvider(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAuthProviderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + client.deleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void undeleteAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.undeleteAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void undeleteAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.undeleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void undeleteAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + + AuthProvider actualResponse = client.undeleteAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void undeleteAuthProviderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + client.undeleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryAuthProvidersTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryAuthProvidersResponse expectedResponse = + QueryAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviderNames(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String workloadId = "workloadId-186277134"; + + QueryAuthProvidersPagedResponse pagedListResponse = + client.queryAuthProviders(parent, workloadId); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProviderNamesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryAuthProvidersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String workloadId = "workloadId-186277134"; + client.queryAuthProviders(parent, workloadId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryAuthProvidersTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryAuthProvidersResponse expectedResponse = + QueryAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviderNames(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String workloadId = "workloadId-186277134"; + + QueryAuthProvidersPagedResponse pagedListResponse = + client.queryAuthProviders(parent, workloadId); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProviderNamesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryAuthProvidersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String workloadId = "workloadId-186277134"; + client.queryAuthProviders(parent, workloadId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryWorkloadsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryWorkloadsResponse expectedResponse = + QueryWorkloadsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkloadIds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + QueryWorkloadsPagedResponse pagedListResponse = client.queryWorkloads(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkloadIdsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryWorkloadsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.queryWorkloads(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryWorkloadsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryWorkloadsResponse expectedResponse = + QueryWorkloadsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkloadIds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + + QueryWorkloadsPagedResponse pagedListResponse = client.queryWorkloads(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkloadIdsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryWorkloadsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + client.queryWorkloads(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthorizationsTest() throws Exception { + Authorization responsesElement = Authorization.newBuilder().build(); + ListAuthorizationsResponse expectedResponse = + ListAuthorizationsResponse.newBuilder() + .setNextPageToken("") + .addAllAuthorizations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + ListAuthorizationsPagedResponse pagedListResponse = client.listAuthorizations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthorizationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAuthorizationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.listAuthorizations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthorizationsTest2() throws Exception { + Authorization responsesElement = Authorization.newBuilder().build(); + ListAuthorizationsResponse expectedResponse = + ListAuthorizationsResponse.newBuilder() + .setNextPageToken("") + .addAllAuthorizations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-1729/locations/location-1729/authProviders/authProvider-1729"; + + ListAuthorizationsPagedResponse pagedListResponse = client.listAuthorizations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthorizationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAuthorizationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1729/locations/location-1729/authProviders/authProvider-1729"; + client.listAuthorizations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthorizationTest() throws Exception { + Authorization expectedResponse = + Authorization.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setClientUserId("clientUserId-1376663055") + .addAllScopes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + + Authorization actualResponse = client.getAuthorization(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAuthorizationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + client.getAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthorizationTest2() throws Exception { + Authorization expectedResponse = + Authorization.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setClientUserId("clientUserId-1376663055") + .addAllScopes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4252/locations/location-4252/authProviders/authProvider-4252/authorizations/authorization-4252"; + + Authorization actualResponse = client.getAuthorization(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAuthorizationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4252/locations/location-4252/authProviders/authProvider-4252/authorizations/authorization-4252"; + client.getAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthorizationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + + client.deleteAuthorization(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAuthorizationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + client.deleteAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthorizationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4252/locations/location-4252/authProviders/authProvider-4252/authorizations/authorization-4252"; + + client.deleteAuthorization(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAuthorizationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4252/locations/location-4252/authProviders/authProvider-4252/authorizations/authorization-4252"; + client.deleteAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessSummariesTest() throws Exception { + AccessSummary responsesElement = AccessSummary.newBuilder().build(); + ListAccessSummariesResponse expectedResponse = + ListAccessSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAccessSummariesPagedResponse pagedListResponse = client.listAccessSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessSummariesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessSummariesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAccessSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessSummariesTest2() throws Exception { + AccessSummary responsesElement = AccessSummary.newBuilder().build(); + ListAccessSummariesResponse expectedResponse = + ListAccessSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAccessSummariesPagedResponse pagedListResponse = client.listAccessSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessSummariesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessSummariesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAccessSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessSummaryTest() throws Exception { + AccessSummary expectedResponse = + AccessSummary.newBuilder() + .setName(AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString()) + .setFirstAccessTime(Timestamp.newBuilder().build()) + .setLastAccessTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setUserId("userId-836030906") + .setWorkloadId("workloadId-186277134") + .setTokenUrl("tokenUrl-1103813450") + .addAllScopes(new ArrayList()) + .setAuthProvider( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setAuthProviderType(AuthProviderType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]"); + + AccessSummary actualResponse = client.getAccessSummary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAccessSummaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]"); + client.getAccessSummary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessSummaryTest2() throws Exception { + AccessSummary expectedResponse = + AccessSummary.newBuilder() + .setName(AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString()) + .setFirstAccessTime(Timestamp.newBuilder().build()) + .setLastAccessTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setUserId("userId-836030906") + .setWorkloadId("workloadId-186277134") + .setTokenUrl("tokenUrl-1103813450") + .addAllScopes(new ArrayList()) + .setAuthProvider( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setAuthProviderType(AuthProviderType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8922/locations/location-8922/accessSummaries/accessSummarie-8922"; + + AccessSummary actualResponse = client.getAccessSummary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAccessSummaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8922/locations/location-8922/accessSummaries/accessSummarie-8922"; + client.getAccessSummary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeAuthorizationTest() throws Exception { + RevokeAuthorizationResponse expectedResponse = RevokeAuthorizationResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + String userId = "userId-836030906"; + + RevokeAuthorizationResponse actualResponse = client.revokeAuthorization(name, userId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void revokeAuthorizationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + String userId = "userId-836030906"; + client.revokeAuthorization(name, userId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeAuthorizationTest2() throws Exception { + RevokeAuthorizationResponse expectedResponse = RevokeAuthorizationResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + String userId = "userId-836030906"; + + RevokeAuthorizationResponse actualResponse = client.revokeAuthorization(name, userId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void revokeAuthorizationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + String userId = "userId-836030906"; + client.revokeAuthorization(name, userId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void enableAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.enableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void enableAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.enableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void enableAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + + AuthProvider actualResponse = client.enableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void enableAuthProviderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + client.enableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void disableAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.disableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void disableAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.disableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void disableAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + + AuthProvider actualResponse = client.disableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void disableAuthProviderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + client.disableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + 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(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + 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(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/AuthProviderServiceClientTest.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/AuthProviderServiceClientTest.java new file mode 100644 index 000000000000..b7a0a8c8e21a --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/AuthProviderServiceClientTest.java @@ -0,0 +1,1761 @@ +/* + * Copyright 2026 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.agentidentity.v1; + +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +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.Any; +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.HashMap; +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 AuthProviderServiceClientTest { + private static MockAuthProviderService mockAuthProviderService; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AuthProviderServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockAuthProviderService = new MockAuthProviderService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAuthProviderService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AuthProviderServiceSettings settings = + AuthProviderServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AuthProviderServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listAuthProvidersTest() throws Exception { + AuthProvider responsesElement = AuthProvider.newBuilder().build(); + ListAuthProvidersResponse expectedResponse = + ListAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviders(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAuthProvidersPagedResponse pagedListResponse = client.listAuthProviders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProvidersList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAuthProvidersRequest actualRequest = ((ListAuthProvidersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAuthProvidersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAuthProviders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthProvidersTest2() throws Exception { + AuthProvider responsesElement = AuthProvider.newBuilder().build(); + ListAuthProvidersResponse expectedResponse = + ListAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviders(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAuthProvidersPagedResponse pagedListResponse = client.listAuthProviders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProvidersList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAuthProvidersRequest actualRequest = ((ListAuthProvidersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAuthProvidersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAuthProviders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.getAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAuthProviderRequest actualRequest = ((GetAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.getAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + AuthProvider actualResponse = client.getAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAuthProviderRequest actualRequest = ((GetAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAuthProviderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.getAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + + AuthProvider actualResponse = client.createAuthProvider(parent, authProvider, authProviderId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAuthProviderRequest actualRequest = ((CreateAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(authProvider, actualRequest.getAuthProvider()); + Assert.assertEquals(authProviderId, actualRequest.getAuthProviderId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + client.createAuthProvider(parent, authProvider, authProviderId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + + AuthProvider actualResponse = client.createAuthProvider(parent, authProvider, authProviderId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAuthProviderRequest actualRequest = ((CreateAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(authProvider, actualRequest.getAuthProvider()); + Assert.assertEquals(authProviderId, actualRequest.getAuthProviderId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAuthProviderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String parent = "parent-995424086"; + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + client.createAuthProvider(parent, authProvider, authProviderId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProvider authProvider = AuthProvider.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AuthProvider actualResponse = client.updateAuthProvider(authProvider, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAuthProviderRequest actualRequest = ((UpdateAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(authProvider, actualRequest.getAuthProvider()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProvider authProvider = AuthProvider.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAuthProvider(authProvider, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthProviderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + client.deleteAuthProvider(name); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAuthProviderRequest actualRequest = ((DeleteAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.deleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthProviderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAuthProvider(name); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAuthProviderRequest actualRequest = ((DeleteAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAuthProviderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void undeleteAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.undeleteAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UndeleteAuthProviderRequest actualRequest = + ((UndeleteAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void undeleteAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.undeleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void undeleteAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + AuthProvider actualResponse = client.undeleteAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UndeleteAuthProviderRequest actualRequest = + ((UndeleteAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void undeleteAuthProviderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.undeleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryAuthProvidersTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryAuthProvidersResponse expectedResponse = + QueryAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviderNames(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String workloadId = "workloadId-186277134"; + + QueryAuthProvidersPagedResponse pagedListResponse = + client.queryAuthProviders(parent, workloadId); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProviderNamesList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryAuthProvidersRequest actualRequest = ((QueryAuthProvidersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(workloadId, actualRequest.getWorkloadId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryAuthProvidersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String workloadId = "workloadId-186277134"; + client.queryAuthProviders(parent, workloadId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryAuthProvidersTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryAuthProvidersResponse expectedResponse = + QueryAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviderNames(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String workloadId = "workloadId-186277134"; + + QueryAuthProvidersPagedResponse pagedListResponse = + client.queryAuthProviders(parent, workloadId); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProviderNamesList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryAuthProvidersRequest actualRequest = ((QueryAuthProvidersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(workloadId, actualRequest.getWorkloadId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryAuthProvidersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String parent = "parent-995424086"; + String workloadId = "workloadId-186277134"; + client.queryAuthProviders(parent, workloadId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryWorkloadsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryWorkloadsResponse expectedResponse = + QueryWorkloadsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkloadIds(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + QueryWorkloadsPagedResponse pagedListResponse = client.queryWorkloads(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkloadIdsList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryWorkloadsRequest actualRequest = ((QueryWorkloadsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryWorkloadsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.queryWorkloads(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryWorkloadsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryWorkloadsResponse expectedResponse = + QueryWorkloadsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkloadIds(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + QueryWorkloadsPagedResponse pagedListResponse = client.queryWorkloads(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkloadIdsList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryWorkloadsRequest actualRequest = ((QueryWorkloadsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryWorkloadsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.queryWorkloads(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthorizationsTest() throws Exception { + Authorization responsesElement = Authorization.newBuilder().build(); + ListAuthorizationsResponse expectedResponse = + ListAuthorizationsResponse.newBuilder() + .setNextPageToken("") + .addAllAuthorizations(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + ListAuthorizationsPagedResponse pagedListResponse = client.listAuthorizations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthorizationsList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAuthorizationsRequest actualRequest = ((ListAuthorizationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAuthorizationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.listAuthorizations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthorizationsTest2() throws Exception { + Authorization responsesElement = Authorization.newBuilder().build(); + ListAuthorizationsResponse expectedResponse = + ListAuthorizationsResponse.newBuilder() + .setNextPageToken("") + .addAllAuthorizations(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAuthorizationsPagedResponse pagedListResponse = client.listAuthorizations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthorizationsList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAuthorizationsRequest actualRequest = ((ListAuthorizationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAuthorizationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAuthorizations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthorizationTest() throws Exception { + Authorization expectedResponse = + Authorization.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setClientUserId("clientUserId-1376663055") + .addAllScopes(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + + Authorization actualResponse = client.getAuthorization(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAuthorizationRequest actualRequest = ((GetAuthorizationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAuthorizationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + client.getAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthorizationTest2() throws Exception { + Authorization expectedResponse = + Authorization.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setClientUserId("clientUserId-1376663055") + .addAllScopes(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + Authorization actualResponse = client.getAuthorization(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAuthorizationRequest actualRequest = ((GetAuthorizationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAuthorizationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.getAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthorizationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + + client.deleteAuthorization(name); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAuthorizationRequest actualRequest = ((DeleteAuthorizationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAuthorizationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + client.deleteAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthorizationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAuthorization(name); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAuthorizationRequest actualRequest = ((DeleteAuthorizationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAuthorizationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessSummariesTest() throws Exception { + AccessSummary responsesElement = AccessSummary.newBuilder().build(); + ListAccessSummariesResponse expectedResponse = + ListAccessSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessSummaries(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAccessSummariesPagedResponse pagedListResponse = client.listAccessSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessSummariesList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessSummariesRequest actualRequest = ((ListAccessSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessSummariesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAccessSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessSummariesTest2() throws Exception { + AccessSummary responsesElement = AccessSummary.newBuilder().build(); + ListAccessSummariesResponse expectedResponse = + ListAccessSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessSummaries(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAccessSummariesPagedResponse pagedListResponse = client.listAccessSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessSummariesList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessSummariesRequest actualRequest = ((ListAccessSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessSummariesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAccessSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessSummaryTest() throws Exception { + AccessSummary expectedResponse = + AccessSummary.newBuilder() + .setName(AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString()) + .setFirstAccessTime(Timestamp.newBuilder().build()) + .setLastAccessTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setUserId("userId-836030906") + .setWorkloadId("workloadId-186277134") + .setTokenUrl("tokenUrl-1103813450") + .addAllScopes(new ArrayList()) + .setAuthProvider( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setAuthProviderType(AuthProviderType.forNumber(0)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]"); + + AccessSummary actualResponse = client.getAccessSummary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAccessSummaryRequest actualRequest = ((GetAccessSummaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAccessSummaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]"); + client.getAccessSummary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessSummaryTest2() throws Exception { + AccessSummary expectedResponse = + AccessSummary.newBuilder() + .setName(AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString()) + .setFirstAccessTime(Timestamp.newBuilder().build()) + .setLastAccessTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setUserId("userId-836030906") + .setWorkloadId("workloadId-186277134") + .setTokenUrl("tokenUrl-1103813450") + .addAllScopes(new ArrayList()) + .setAuthProvider( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setAuthProviderType(AuthProviderType.forNumber(0)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + AccessSummary actualResponse = client.getAccessSummary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAccessSummaryRequest actualRequest = ((GetAccessSummaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAccessSummaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.getAccessSummary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeAuthorizationTest() throws Exception { + RevokeAuthorizationResponse expectedResponse = RevokeAuthorizationResponse.newBuilder().build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + String userId = "userId-836030906"; + + RevokeAuthorizationResponse actualResponse = client.revokeAuthorization(name, userId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RevokeAuthorizationRequest actualRequest = ((RevokeAuthorizationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(userId, actualRequest.getUserId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void revokeAuthorizationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + String userId = "userId-836030906"; + client.revokeAuthorization(name, userId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeAuthorizationTest2() throws Exception { + RevokeAuthorizationResponse expectedResponse = RevokeAuthorizationResponse.newBuilder().build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + String userId = "userId-836030906"; + + RevokeAuthorizationResponse actualResponse = client.revokeAuthorization(name, userId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RevokeAuthorizationRequest actualRequest = ((RevokeAuthorizationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(userId, actualRequest.getUserId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void revokeAuthorizationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + String userId = "userId-836030906"; + client.revokeAuthorization(name, userId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void enableAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.enableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EnableAuthProviderRequest actualRequest = ((EnableAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void enableAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.enableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void enableAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + AuthProvider actualResponse = client.enableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EnableAuthProviderRequest actualRequest = ((EnableAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void enableAuthProviderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.enableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void disableAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.disableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DisableAuthProviderRequest actualRequest = ((DisableAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void disableAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.disableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void disableAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + AuthProvider actualResponse = client.disableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DisableAuthProviderRequest actualRequest = ((DisableAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void disableAuthProviderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.disableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + 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(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + 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(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), 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); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockAuthProviderService.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockAuthProviderService.java new file mode 100644 index 000000000000..9c0913496a6b --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockAuthProviderService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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.agentidentity.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 MockAuthProviderService implements MockGrpcService { + private final MockAuthProviderServiceImpl serviceImpl; + + public MockAuthProviderService() { + serviceImpl = new MockAuthProviderServiceImpl(); + } + + @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/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockAuthProviderServiceImpl.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockAuthProviderServiceImpl.java new file mode 100644 index 000000000000..37e2c93a6c23 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockAuthProviderServiceImpl.java @@ -0,0 +1,403 @@ +/* + * Copyright 2026 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.agentidentity.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.agentidentity.v1.AuthProviderServiceGrpc.AuthProviderServiceImplBase; +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 MockAuthProviderServiceImpl extends AuthProviderServiceImplBase { + private List requests; + private Queue responses; + + public MockAuthProviderServiceImpl() { + 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 listAuthProviders( + ListAuthProvidersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAuthProvidersResponse) { + requests.add(request); + responseObserver.onNext(((ListAuthProvidersResponse) 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 ListAuthProviders, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAuthProvidersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAuthProvider( + GetAuthProviderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthProvider) { + requests.add(request); + responseObserver.onNext(((AuthProvider) 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 GetAuthProvider, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AuthProvider.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAuthProvider( + CreateAuthProviderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthProvider) { + requests.add(request); + responseObserver.onNext(((AuthProvider) 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 CreateAuthProvider, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AuthProvider.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAuthProvider( + UpdateAuthProviderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthProvider) { + requests.add(request); + responseObserver.onNext(((AuthProvider) 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 UpdateAuthProvider, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AuthProvider.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAuthProvider( + DeleteAuthProviderRequest 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 DeleteAuthProvider, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void undeleteAuthProvider( + UndeleteAuthProviderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthProvider) { + requests.add(request); + responseObserver.onNext(((AuthProvider) 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 UndeleteAuthProvider, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + AuthProvider.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryAuthProviders( + QueryAuthProvidersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryAuthProvidersResponse) { + requests.add(request); + responseObserver.onNext(((QueryAuthProvidersResponse) 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 QueryAuthProviders, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryAuthProvidersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryWorkloads( + QueryWorkloadsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryWorkloadsResponse) { + requests.add(request); + responseObserver.onNext(((QueryWorkloadsResponse) 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 QueryWorkloads, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryWorkloadsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAuthorizations( + ListAuthorizationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAuthorizationsResponse) { + requests.add(request); + responseObserver.onNext(((ListAuthorizationsResponse) 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 ListAuthorizations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAuthorizationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAuthorization( + GetAuthorizationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Authorization) { + requests.add(request); + responseObserver.onNext(((Authorization) 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 GetAuthorization, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Authorization.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAuthorization( + DeleteAuthorizationRequest 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 DeleteAuthorization, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAccessSummaries( + ListAccessSummariesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAccessSummariesResponse) { + requests.add(request); + responseObserver.onNext(((ListAccessSummariesResponse) 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 ListAccessSummaries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAccessSummariesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAccessSummary( + GetAccessSummaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AccessSummary) { + requests.add(request); + responseObserver.onNext(((AccessSummary) 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 GetAccessSummary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AccessSummary.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void revokeAuthorization( + RevokeAuthorizationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RevokeAuthorizationResponse) { + requests.add(request); + responseObserver.onNext(((RevokeAuthorizationResponse) 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 RevokeAuthorization, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RevokeAuthorizationResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void enableAuthProvider( + EnableAuthProviderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthProvider) { + requests.add(request); + responseObserver.onNext(((AuthProvider) 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 EnableAuthProvider, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AuthProvider.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void disableAuthProvider( + DisableAuthProviderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthProvider) { + requests.add(request); + responseObserver.onNext(((AuthProvider) 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 DisableAuthProvider, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AuthProvider.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockIAMPolicy.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockIAMPolicy.java new file mode 100644 index 000000000000..af424991e22e --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockIAMPolicy.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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.agentidentity.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 MockIAMPolicy implements MockGrpcService { + private final MockIAMPolicyImpl serviceImpl; + + public MockIAMPolicy() { + serviceImpl = new MockIAMPolicyImpl(); + } + + @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/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockIAMPolicyImpl.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockIAMPolicyImpl.java new file mode 100644 index 000000000000..8865d371260f --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockIAMPolicyImpl.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 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.agentidentity.v1; + +import com.google.api.core.BetaApi; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; +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 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 MockIAMPolicyImpl extends IAMPolicyImplBase { + private List requests; + private Queue responses; + + public MockIAMPolicyImpl() { + 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 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 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 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()))); + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockLocations.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockLocations.java new file mode 100644 index 000000000000..3a6c88159b91 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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.agentidentity.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 MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @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/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockLocationsImpl.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockLocationsImpl.java new file mode 100644 index 000000000000..3ef86e58f63a --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 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.agentidentity.v1; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +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 MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + 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 listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) 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 ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) 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 GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceClientHttpJsonTest.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..cd7d1d61f76f --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceClientHttpJsonTest.java @@ -0,0 +1,1990 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.cloud.agentidentity.v1beta.stub.HttpJsonAuthProviderServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +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.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +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 AuthProviderServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static AuthProviderServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAuthProviderServiceStub.getMethodDescriptors(), + AuthProviderServiceSettings.getDefaultEndpoint()); + AuthProviderServiceSettings settings = + AuthProviderServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AuthProviderServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AuthProviderServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listAuthProvidersTest() throws Exception { + AuthProvider responsesElement = AuthProvider.newBuilder().build(); + ListAuthProvidersResponse expectedResponse = + ListAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviders(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAuthProvidersPagedResponse pagedListResponse = client.listAuthProviders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProvidersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAuthProvidersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAuthProviders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthProvidersTest2() throws Exception { + AuthProvider responsesElement = AuthProvider.newBuilder().build(); + ListAuthProvidersResponse expectedResponse = + ListAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviders(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAuthProvidersPagedResponse pagedListResponse = client.listAuthProviders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProvidersList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAuthProvidersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAuthProviders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.getAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.getAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + + AuthProvider actualResponse = client.getAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAuthProviderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + client.getAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + + AuthProvider actualResponse = client.createAuthProvider(parent, authProvider, authProviderId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + client.createAuthProvider(parent, authProvider, authProviderId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + + AuthProvider actualResponse = client.createAuthProvider(parent, authProvider, authProviderId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAuthProviderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + client.createAuthProvider(parent, authProvider, authProviderId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthProvider authProvider = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AuthProvider actualResponse = client.updateAuthProvider(authProvider, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProvider authProvider = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAuthProvider(authProvider, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthProviderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + client.deleteAuthProvider(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.deleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthProviderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + + client.deleteAuthProvider(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAuthProviderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + client.deleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void undeleteAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.undeleteAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void undeleteAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.undeleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void undeleteAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + + AuthProvider actualResponse = client.undeleteAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void undeleteAuthProviderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + client.undeleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryAuthProvidersTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryAuthProvidersResponse expectedResponse = + QueryAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviderNames(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String workloadId = "workloadId-186277134"; + + QueryAuthProvidersPagedResponse pagedListResponse = + client.queryAuthProviders(parent, workloadId); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProviderNamesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryAuthProvidersExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String workloadId = "workloadId-186277134"; + client.queryAuthProviders(parent, workloadId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryAuthProvidersTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryAuthProvidersResponse expectedResponse = + QueryAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviderNames(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + String workloadId = "workloadId-186277134"; + + QueryAuthProvidersPagedResponse pagedListResponse = + client.queryAuthProviders(parent, workloadId); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProviderNamesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryAuthProvidersExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + String workloadId = "workloadId-186277134"; + client.queryAuthProviders(parent, workloadId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryWorkloadsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryWorkloadsResponse expectedResponse = + QueryWorkloadsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkloadIds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + QueryWorkloadsPagedResponse pagedListResponse = client.queryWorkloads(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkloadIdsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryWorkloadsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.queryWorkloads(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryWorkloadsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryWorkloadsResponse expectedResponse = + QueryWorkloadsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkloadIds(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + + QueryWorkloadsPagedResponse pagedListResponse = client.queryWorkloads(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkloadIdsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void queryWorkloadsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + client.queryWorkloads(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthorizationsTest() throws Exception { + Authorization responsesElement = Authorization.newBuilder().build(); + ListAuthorizationsResponse expectedResponse = + ListAuthorizationsResponse.newBuilder() + .setNextPageToken("") + .addAllAuthorizations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + ListAuthorizationsPagedResponse pagedListResponse = client.listAuthorizations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthorizationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAuthorizationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.listAuthorizations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthorizationsTest2() throws Exception { + Authorization responsesElement = Authorization.newBuilder().build(); + ListAuthorizationsResponse expectedResponse = + ListAuthorizationsResponse.newBuilder() + .setNextPageToken("") + .addAllAuthorizations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-1729/locations/location-1729/authProviders/authProvider-1729"; + + ListAuthorizationsPagedResponse pagedListResponse = client.listAuthorizations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthorizationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAuthorizationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = + "projects/project-1729/locations/location-1729/authProviders/authProvider-1729"; + client.listAuthorizations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthorizationTest() throws Exception { + Authorization expectedResponse = + Authorization.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setClientUserId("clientUserId-1376663055") + .addAllScopes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + + Authorization actualResponse = client.getAuthorization(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAuthorizationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + client.getAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthorizationTest2() throws Exception { + Authorization expectedResponse = + Authorization.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setClientUserId("clientUserId-1376663055") + .addAllScopes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4252/locations/location-4252/authProviders/authProvider-4252/authorizations/authorization-4252"; + + Authorization actualResponse = client.getAuthorization(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAuthorizationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4252/locations/location-4252/authProviders/authProvider-4252/authorizations/authorization-4252"; + client.getAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthorizationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + + client.deleteAuthorization(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAuthorizationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + client.deleteAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthorizationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-4252/locations/location-4252/authProviders/authProvider-4252/authorizations/authorization-4252"; + + client.deleteAuthorization(name); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAuthorizationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-4252/locations/location-4252/authProviders/authProvider-4252/authorizations/authorization-4252"; + client.deleteAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessSummariesTest() throws Exception { + AccessSummary responsesElement = AccessSummary.newBuilder().build(); + ListAccessSummariesResponse expectedResponse = + ListAccessSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAccessSummariesPagedResponse pagedListResponse = client.listAccessSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessSummariesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessSummariesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAccessSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessSummariesTest2() throws Exception { + AccessSummary responsesElement = AccessSummary.newBuilder().build(); + ListAccessSummariesResponse expectedResponse = + ListAccessSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessSummaries(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAccessSummariesPagedResponse pagedListResponse = client.listAccessSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessSummariesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessSummariesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAccessSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessSummaryTest() throws Exception { + AccessSummary expectedResponse = + AccessSummary.newBuilder() + .setName(AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString()) + .setFirstAccessTime(Timestamp.newBuilder().build()) + .setLastAccessTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setUserId("userId-836030906") + .setWorkloadId("workloadId-186277134") + .setTokenUrl("tokenUrl-1103813450") + .addAllScopes(new ArrayList()) + .setAuthProvider( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setAuthProviderType(AuthProviderType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]"); + + AccessSummary actualResponse = client.getAccessSummary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAccessSummaryExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]"); + client.getAccessSummary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessSummaryTest2() throws Exception { + AccessSummary expectedResponse = + AccessSummary.newBuilder() + .setName(AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString()) + .setFirstAccessTime(Timestamp.newBuilder().build()) + .setLastAccessTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setUserId("userId-836030906") + .setWorkloadId("workloadId-186277134") + .setTokenUrl("tokenUrl-1103813450") + .addAllScopes(new ArrayList()) + .setAuthProvider( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setAuthProviderType(AuthProviderType.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-8922/locations/location-8922/accessSummaries/accessSummarie-8922"; + + AccessSummary actualResponse = client.getAccessSummary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAccessSummaryExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-8922/locations/location-8922/accessSummaries/accessSummarie-8922"; + client.getAccessSummary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeAuthorizationTest() throws Exception { + RevokeAuthorizationResponse expectedResponse = RevokeAuthorizationResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + String userId = "userId-836030906"; + + RevokeAuthorizationResponse actualResponse = client.revokeAuthorization(name, userId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void revokeAuthorizationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + String userId = "userId-836030906"; + client.revokeAuthorization(name, userId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeAuthorizationTest2() throws Exception { + RevokeAuthorizationResponse expectedResponse = RevokeAuthorizationResponse.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + String userId = "userId-836030906"; + + RevokeAuthorizationResponse actualResponse = client.revokeAuthorization(name, userId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void revokeAuthorizationExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + String userId = "userId-836030906"; + client.revokeAuthorization(name, userId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void enableAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.enableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void enableAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.enableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void enableAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + + AuthProvider actualResponse = client.enableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void enableAuthProviderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + client.enableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void disableAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.disableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void disableAuthProviderExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.disableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void disableAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + + AuthProvider actualResponse = client.disableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void disableAuthProviderExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "projects/project-4176/locations/location-4176/authProviders/authProvider-4176"; + client.disableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + 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(); + mockService.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + 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(); + mockService.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockService.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceClientTest.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceClientTest.java new file mode 100644 index 000000000000..da4bd4d94a6e --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceClientTest.java @@ -0,0 +1,1761 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAccessSummariesPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListAuthorizationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryAuthProvidersPagedResponse; +import static com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient.QueryWorkloadsPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +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.Any; +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.HashMap; +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 AuthProviderServiceClientTest { + private static MockAuthProviderService mockAuthProviderService; + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AuthProviderServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockAuthProviderService = new MockAuthProviderService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAuthProviderService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AuthProviderServiceSettings settings = + AuthProviderServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AuthProviderServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listAuthProvidersTest() throws Exception { + AuthProvider responsesElement = AuthProvider.newBuilder().build(); + ListAuthProvidersResponse expectedResponse = + ListAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviders(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAuthProvidersPagedResponse pagedListResponse = client.listAuthProviders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProvidersList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAuthProvidersRequest actualRequest = ((ListAuthProvidersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAuthProvidersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAuthProviders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthProvidersTest2() throws Exception { + AuthProvider responsesElement = AuthProvider.newBuilder().build(); + ListAuthProvidersResponse expectedResponse = + ListAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviders(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAuthProvidersPagedResponse pagedListResponse = client.listAuthProviders(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProvidersList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAuthProvidersRequest actualRequest = ((ListAuthProvidersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAuthProvidersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAuthProviders(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.getAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAuthProviderRequest actualRequest = ((GetAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.getAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + AuthProvider actualResponse = client.getAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAuthProviderRequest actualRequest = ((GetAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAuthProviderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.getAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + + AuthProvider actualResponse = client.createAuthProvider(parent, authProvider, authProviderId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAuthProviderRequest actualRequest = ((CreateAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(authProvider, actualRequest.getAuthProvider()); + Assert.assertEquals(authProviderId, actualRequest.getAuthProviderId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + client.createAuthProvider(parent, authProvider, authProviderId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + + AuthProvider actualResponse = client.createAuthProvider(parent, authProvider, authProviderId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAuthProviderRequest actualRequest = ((CreateAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(authProvider, actualRequest.getAuthProvider()); + Assert.assertEquals(authProviderId, actualRequest.getAuthProviderId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAuthProviderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String parent = "parent-995424086"; + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + client.createAuthProvider(parent, authProvider, authProviderId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProvider authProvider = AuthProvider.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AuthProvider actualResponse = client.updateAuthProvider(authProvider, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAuthProviderRequest actualRequest = ((UpdateAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(authProvider, actualRequest.getAuthProvider()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProvider authProvider = AuthProvider.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAuthProvider(authProvider, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthProviderTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + client.deleteAuthProvider(name); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAuthProviderRequest actualRequest = ((DeleteAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.deleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthProviderTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAuthProvider(name); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAuthProviderRequest actualRequest = ((DeleteAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAuthProviderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void undeleteAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.undeleteAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UndeleteAuthProviderRequest actualRequest = + ((UndeleteAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void undeleteAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.undeleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void undeleteAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + AuthProvider actualResponse = client.undeleteAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UndeleteAuthProviderRequest actualRequest = + ((UndeleteAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void undeleteAuthProviderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.undeleteAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryAuthProvidersTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryAuthProvidersResponse expectedResponse = + QueryAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviderNames(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String workloadId = "workloadId-186277134"; + + QueryAuthProvidersPagedResponse pagedListResponse = + client.queryAuthProviders(parent, workloadId); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProviderNamesList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryAuthProvidersRequest actualRequest = ((QueryAuthProvidersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(workloadId, actualRequest.getWorkloadId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryAuthProvidersExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String workloadId = "workloadId-186277134"; + client.queryAuthProviders(parent, workloadId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryAuthProvidersTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryAuthProvidersResponse expectedResponse = + QueryAuthProvidersResponse.newBuilder() + .setNextPageToken("") + .addAllAuthProviderNames(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String workloadId = "workloadId-186277134"; + + QueryAuthProvidersPagedResponse pagedListResponse = + client.queryAuthProviders(parent, workloadId); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthProviderNamesList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryAuthProvidersRequest actualRequest = ((QueryAuthProvidersRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(workloadId, actualRequest.getWorkloadId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryAuthProvidersExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String parent = "parent-995424086"; + String workloadId = "workloadId-186277134"; + client.queryAuthProviders(parent, workloadId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryWorkloadsTest() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryWorkloadsResponse expectedResponse = + QueryWorkloadsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkloadIds(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + QueryWorkloadsPagedResponse pagedListResponse = client.queryWorkloads(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkloadIdsList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryWorkloadsRequest actualRequest = ((QueryWorkloadsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryWorkloadsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.queryWorkloads(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void queryWorkloadsTest2() throws Exception { + String responsesElement = "responsesElement-318365110"; + QueryWorkloadsResponse expectedResponse = + QueryWorkloadsResponse.newBuilder() + .setNextPageToken("") + .addAllWorkloadIds(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + QueryWorkloadsPagedResponse pagedListResponse = client.queryWorkloads(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getWorkloadIdsList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + QueryWorkloadsRequest actualRequest = ((QueryWorkloadsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void queryWorkloadsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.queryWorkloads(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthorizationsTest() throws Exception { + Authorization responsesElement = Authorization.newBuilder().build(); + ListAuthorizationsResponse expectedResponse = + ListAuthorizationsResponse.newBuilder() + .setNextPageToken("") + .addAllAuthorizations(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + ListAuthorizationsPagedResponse pagedListResponse = client.listAuthorizations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthorizationsList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAuthorizationsRequest actualRequest = ((ListAuthorizationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAuthorizationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.listAuthorizations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAuthorizationsTest2() throws Exception { + Authorization responsesElement = Authorization.newBuilder().build(); + ListAuthorizationsResponse expectedResponse = + ListAuthorizationsResponse.newBuilder() + .setNextPageToken("") + .addAllAuthorizations(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAuthorizationsPagedResponse pagedListResponse = client.listAuthorizations(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAuthorizationsList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAuthorizationsRequest actualRequest = ((ListAuthorizationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAuthorizationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAuthorizations(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthorizationTest() throws Exception { + Authorization expectedResponse = + Authorization.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setClientUserId("clientUserId-1376663055") + .addAllScopes(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + + Authorization actualResponse = client.getAuthorization(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAuthorizationRequest actualRequest = ((GetAuthorizationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAuthorizationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + client.getAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAuthorizationTest2() throws Exception { + Authorization expectedResponse = + Authorization.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setClientUserId("clientUserId-1376663055") + .addAllScopes(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + Authorization actualResponse = client.getAuthorization(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAuthorizationRequest actualRequest = ((GetAuthorizationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAuthorizationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.getAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthorizationTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + + client.deleteAuthorization(name); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAuthorizationRequest actualRequest = ((DeleteAuthorizationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAuthorizationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + client.deleteAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAuthorizationTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAuthorization(name); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAuthorizationRequest actualRequest = ((DeleteAuthorizationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAuthorizationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAuthorization(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessSummariesTest() throws Exception { + AccessSummary responsesElement = AccessSummary.newBuilder().build(); + ListAccessSummariesResponse expectedResponse = + ListAccessSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessSummaries(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAccessSummariesPagedResponse pagedListResponse = client.listAccessSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessSummariesList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessSummariesRequest actualRequest = ((ListAccessSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessSummariesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAccessSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessSummariesTest2() throws Exception { + AccessSummary responsesElement = AccessSummary.newBuilder().build(); + ListAccessSummariesResponse expectedResponse = + ListAccessSummariesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessSummaries(Arrays.asList(responsesElement)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAccessSummariesPagedResponse pagedListResponse = client.listAccessSummaries(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessSummariesList().get(0), resources.get(0)); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessSummariesRequest actualRequest = ((ListAccessSummariesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessSummariesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAccessSummaries(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessSummaryTest() throws Exception { + AccessSummary expectedResponse = + AccessSummary.newBuilder() + .setName(AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString()) + .setFirstAccessTime(Timestamp.newBuilder().build()) + .setLastAccessTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setUserId("userId-836030906") + .setWorkloadId("workloadId-186277134") + .setTokenUrl("tokenUrl-1103813450") + .addAllScopes(new ArrayList()) + .setAuthProvider( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setAuthProviderType(AuthProviderType.forNumber(0)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]"); + + AccessSummary actualResponse = client.getAccessSummary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAccessSummaryRequest actualRequest = ((GetAccessSummaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAccessSummaryExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]"); + client.getAccessSummary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessSummaryTest2() throws Exception { + AccessSummary expectedResponse = + AccessSummary.newBuilder() + .setName(AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString()) + .setFirstAccessTime(Timestamp.newBuilder().build()) + .setLastAccessTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setUserId("userId-836030906") + .setWorkloadId("workloadId-186277134") + .setTokenUrl("tokenUrl-1103813450") + .addAllScopes(new ArrayList()) + .setAuthProvider( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPurgeTime(Timestamp.newBuilder().build()) + .setAuthProviderType(AuthProviderType.forNumber(0)) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + AccessSummary actualResponse = client.getAccessSummary(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAccessSummaryRequest actualRequest = ((GetAccessSummaryRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAccessSummaryExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.getAccessSummary(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeAuthorizationTest() throws Exception { + RevokeAuthorizationResponse expectedResponse = RevokeAuthorizationResponse.newBuilder().build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + String userId = "userId-836030906"; + + RevokeAuthorizationResponse actualResponse = client.revokeAuthorization(name, userId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RevokeAuthorizationRequest actualRequest = ((RevokeAuthorizationRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(userId, actualRequest.getUserId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void revokeAuthorizationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + String userId = "userId-836030906"; + client.revokeAuthorization(name, userId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void revokeAuthorizationTest2() throws Exception { + RevokeAuthorizationResponse expectedResponse = RevokeAuthorizationResponse.newBuilder().build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + String userId = "userId-836030906"; + + RevokeAuthorizationResponse actualResponse = client.revokeAuthorization(name, userId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RevokeAuthorizationRequest actualRequest = ((RevokeAuthorizationRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(userId, actualRequest.getUserId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void revokeAuthorizationExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + String userId = "userId-836030906"; + client.revokeAuthorization(name, userId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void enableAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.enableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EnableAuthProviderRequest actualRequest = ((EnableAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void enableAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.enableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void enableAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + AuthProvider actualResponse = client.enableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + EnableAuthProviderRequest actualRequest = ((EnableAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void enableAuthProviderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.enableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void disableAuthProviderTest() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + + AuthProvider actualResponse = client.disableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DisableAuthProviderRequest actualRequest = ((DisableAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void disableAuthProviderExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + client.disableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void disableAuthProviderTest2() throws Exception { + AuthProvider expectedResponse = + AuthProvider.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .putAllLabels(new HashMap()) + .setAuthProviderTypeParams(AuthProvider.AuthProviderTypeParams.newBuilder().build()) + .addAllAllowedScopes(new ArrayList()) + .addAllBlockedScopes(new ArrayList()) + .setDescription("description-1724546052") + .setDeleted(true) + .setExpireTime(Timestamp.newBuilder().build()) + .addAllWorkloadIds(new ArrayList()) + .build(); + mockAuthProviderService.addResponse(expectedResponse); + + String name = "name3373707"; + + AuthProvider actualResponse = client.disableAuthProvider(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAuthProviderService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DisableAuthProviderRequest actualRequest = ((DisableAuthProviderRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void disableAuthProviderExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAuthProviderService.addException(exception); + + try { + String name = "name3373707"; + client.disableAuthProvider(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + 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(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + 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(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), 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); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockAuthProviderService.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockAuthProviderService.java new file mode 100644 index 000000000000..103b6721ed10 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockAuthProviderService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +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 MockAuthProviderService implements MockGrpcService { + private final MockAuthProviderServiceImpl serviceImpl; + + public MockAuthProviderService() { + serviceImpl = new MockAuthProviderServiceImpl(); + } + + @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/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockAuthProviderServiceImpl.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockAuthProviderServiceImpl.java new file mode 100644 index 000000000000..95f17993c8bf --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockAuthProviderServiceImpl.java @@ -0,0 +1,403 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceGrpc.AuthProviderServiceImplBase; +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 MockAuthProviderServiceImpl extends AuthProviderServiceImplBase { + private List requests; + private Queue responses; + + public MockAuthProviderServiceImpl() { + 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 listAuthProviders( + ListAuthProvidersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAuthProvidersResponse) { + requests.add(request); + responseObserver.onNext(((ListAuthProvidersResponse) 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 ListAuthProviders, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAuthProvidersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAuthProvider( + GetAuthProviderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthProvider) { + requests.add(request); + responseObserver.onNext(((AuthProvider) 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 GetAuthProvider, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AuthProvider.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAuthProvider( + CreateAuthProviderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthProvider) { + requests.add(request); + responseObserver.onNext(((AuthProvider) 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 CreateAuthProvider, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AuthProvider.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAuthProvider( + UpdateAuthProviderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthProvider) { + requests.add(request); + responseObserver.onNext(((AuthProvider) 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 UpdateAuthProvider, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AuthProvider.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAuthProvider( + DeleteAuthProviderRequest 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 DeleteAuthProvider, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void undeleteAuthProvider( + UndeleteAuthProviderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthProvider) { + requests.add(request); + responseObserver.onNext(((AuthProvider) 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 UndeleteAuthProvider, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + AuthProvider.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryAuthProviders( + QueryAuthProvidersRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryAuthProvidersResponse) { + requests.add(request); + responseObserver.onNext(((QueryAuthProvidersResponse) 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 QueryAuthProviders, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryAuthProvidersResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void queryWorkloads( + QueryWorkloadsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof QueryWorkloadsResponse) { + requests.add(request); + responseObserver.onNext(((QueryWorkloadsResponse) 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 QueryWorkloads, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + QueryWorkloadsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAuthorizations( + ListAuthorizationsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAuthorizationsResponse) { + requests.add(request); + responseObserver.onNext(((ListAuthorizationsResponse) 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 ListAuthorizations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAuthorizationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAuthorization( + GetAuthorizationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Authorization) { + requests.add(request); + responseObserver.onNext(((Authorization) 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 GetAuthorization, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Authorization.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAuthorization( + DeleteAuthorizationRequest 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 DeleteAuthorization, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAccessSummaries( + ListAccessSummariesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAccessSummariesResponse) { + requests.add(request); + responseObserver.onNext(((ListAccessSummariesResponse) 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 ListAccessSummaries, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAccessSummariesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAccessSummary( + GetAccessSummaryRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AccessSummary) { + requests.add(request); + responseObserver.onNext(((AccessSummary) 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 GetAccessSummary, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AccessSummary.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void revokeAuthorization( + RevokeAuthorizationRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RevokeAuthorizationResponse) { + requests.add(request); + responseObserver.onNext(((RevokeAuthorizationResponse) 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 RevokeAuthorization, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RevokeAuthorizationResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void enableAuthProvider( + EnableAuthProviderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthProvider) { + requests.add(request); + responseObserver.onNext(((AuthProvider) 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 EnableAuthProvider, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AuthProvider.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void disableAuthProvider( + DisableAuthProviderRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AuthProvider) { + requests.add(request); + responseObserver.onNext(((AuthProvider) 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 DisableAuthProvider, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AuthProvider.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockIAMPolicy.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockIAMPolicy.java new file mode 100644 index 000000000000..772dec1babe7 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockIAMPolicy.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +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 MockIAMPolicy implements MockGrpcService { + private final MockIAMPolicyImpl serviceImpl; + + public MockIAMPolicy() { + serviceImpl = new MockIAMPolicyImpl(); + } + + @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/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockIAMPolicyImpl.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockIAMPolicyImpl.java new file mode 100644 index 000000000000..d5053e0a5037 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockIAMPolicyImpl.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +import com.google.api.core.BetaApi; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.IAMPolicyGrpc.IAMPolicyImplBase; +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 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 MockIAMPolicyImpl extends IAMPolicyImplBase { + private List requests; + private Queue responses; + + public MockIAMPolicyImpl() { + 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 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 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 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()))); + } + } +} diff --git a/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockLocations.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockLocations.java new file mode 100644 index 000000000000..1334884b4f4c --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockLocations.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +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 MockLocations implements MockGrpcService { + private final MockLocationsImpl serviceImpl; + + public MockLocations() { + serviceImpl = new MockLocationsImpl(); + } + + @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/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockLocationsImpl.java b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockLocationsImpl.java new file mode 100644 index 000000000000..24bd22a6ce53 --- /dev/null +++ b/java-agentidentity/google-cloud-agentidentity/src/test/java/com/google/cloud/agentidentity/v1beta/MockLocationsImpl.java @@ -0,0 +1,105 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.cloud.location.LocationsGrpc.LocationsImplBase; +import com.google.protobuf.AbstractMessage; +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 MockLocationsImpl extends LocationsImplBase { + private List requests; + private Queue responses; + + public MockLocationsImpl() { + 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 listLocations( + ListLocationsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListLocationsResponse) { + requests.add(request); + responseObserver.onNext(((ListLocationsResponse) 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 ListLocations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListLocationsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getLocation(GetLocationRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Location) { + requests.add(request); + responseObserver.onNext(((Location) 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 GetLocation, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Location.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-agentidentity/grpc-google-cloud-agentidentity-v1/pom.xml b/java-agentidentity/grpc-google-cloud-agentidentity-v1/pom.xml new file mode 100644 index 000000000000..db1c86e06645 --- /dev/null +++ b/java-agentidentity/grpc-google-cloud-agentidentity-v1/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-agentidentity-v1 + 0.1.0-SNAPSHOT + grpc-google-cloud-agentidentity-v1 + GRPC library for google-cloud-agentidentity + + com.google.cloud + google-cloud-agentidentity-parent + 0.1.0-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-agentidentity-v1 + + + com.google.guava + guava + + + diff --git a/java-agentidentity/grpc-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceGrpc.java b/java-agentidentity/grpc-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceGrpc.java new file mode 100644 index 000000000000..2ec9c12b8669 --- /dev/null +++ b/java-agentidentity/grpc-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceGrpc.java @@ -0,0 +1,2488 @@ +/* + * Copyright 2026 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.agentidentity.v1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service describing handlers for resources
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class AuthProviderServiceGrpc { + + private AuthProviderServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.agentidentity.v1.AuthProviderService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest, + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse> + getListAuthProvidersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAuthProviders", + requestType = com.google.cloud.agentidentity.v1.ListAuthProvidersRequest.class, + responseType = com.google.cloud.agentidentity.v1.ListAuthProvidersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest, + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse> + getListAuthProvidersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest, + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse> + getListAuthProvidersMethod; + if ((getListAuthProvidersMethod = AuthProviderServiceGrpc.getListAuthProvidersMethod) == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getListAuthProvidersMethod = AuthProviderServiceGrpc.getListAuthProvidersMethod) + == null) { + AuthProviderServiceGrpc.getListAuthProvidersMethod = + getListAuthProvidersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAuthProviders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("ListAuthProviders")) + .build(); + } + } + } + return getListAuthProvidersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.GetAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getGetAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAuthProvider", + requestType = com.google.cloud.agentidentity.v1.GetAuthProviderRequest.class, + responseType = com.google.cloud.agentidentity.v1.AuthProvider.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.GetAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getGetAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.GetAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getGetAuthProviderMethod; + if ((getGetAuthProviderMethod = AuthProviderServiceGrpc.getGetAuthProviderMethod) == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getGetAuthProviderMethod = AuthProviderServiceGrpc.getGetAuthProviderMethod) == null) { + AuthProviderServiceGrpc.getGetAuthProviderMethod = + getGetAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.GetAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("GetAuthProvider")) + .build(); + } + } + } + return getGetAuthProviderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getCreateAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAuthProvider", + requestType = com.google.cloud.agentidentity.v1.CreateAuthProviderRequest.class, + responseType = com.google.cloud.agentidentity.v1.AuthProvider.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getCreateAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getCreateAuthProviderMethod; + if ((getCreateAuthProviderMethod = AuthProviderServiceGrpc.getCreateAuthProviderMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getCreateAuthProviderMethod = AuthProviderServiceGrpc.getCreateAuthProviderMethod) + == null) { + AuthProviderServiceGrpc.getCreateAuthProviderMethod = + getCreateAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("CreateAuthProvider")) + .build(); + } + } + } + return getCreateAuthProviderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getUpdateAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAuthProvider", + requestType = com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest.class, + responseType = com.google.cloud.agentidentity.v1.AuthProvider.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getUpdateAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getUpdateAuthProviderMethod; + if ((getUpdateAuthProviderMethod = AuthProviderServiceGrpc.getUpdateAuthProviderMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getUpdateAuthProviderMethod = AuthProviderServiceGrpc.getUpdateAuthProviderMethod) + == null) { + AuthProviderServiceGrpc.getUpdateAuthProviderMethod = + getUpdateAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("UpdateAuthProvider")) + .build(); + } + } + } + return getUpdateAuthProviderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest, com.google.protobuf.Empty> + getDeleteAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAuthProvider", + requestType = com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest, com.google.protobuf.Empty> + getDeleteAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest, com.google.protobuf.Empty> + getDeleteAuthProviderMethod; + if ((getDeleteAuthProviderMethod = AuthProviderServiceGrpc.getDeleteAuthProviderMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getDeleteAuthProviderMethod = AuthProviderServiceGrpc.getDeleteAuthProviderMethod) + == null) { + AuthProviderServiceGrpc.getDeleteAuthProviderMethod = + getDeleteAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("DeleteAuthProvider")) + .build(); + } + } + } + return getDeleteAuthProviderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getUndeleteAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteAuthProvider", + requestType = com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest.class, + responseType = com.google.cloud.agentidentity.v1.AuthProvider.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getUndeleteAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getUndeleteAuthProviderMethod; + if ((getUndeleteAuthProviderMethod = AuthProviderServiceGrpc.getUndeleteAuthProviderMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getUndeleteAuthProviderMethod = AuthProviderServiceGrpc.getUndeleteAuthProviderMethod) + == null) { + AuthProviderServiceGrpc.getUndeleteAuthProviderMethod = + getUndeleteAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UndeleteAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("UndeleteAuthProvider")) + .build(); + } + } + } + return getUndeleteAuthProviderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest, + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse> + getQueryAuthProvidersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryAuthProviders", + requestType = com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest.class, + responseType = com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest, + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse> + getQueryAuthProvidersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest, + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse> + getQueryAuthProvidersMethod; + if ((getQueryAuthProvidersMethod = AuthProviderServiceGrpc.getQueryAuthProvidersMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getQueryAuthProvidersMethod = AuthProviderServiceGrpc.getQueryAuthProvidersMethod) + == null) { + AuthProviderServiceGrpc.getQueryAuthProvidersMethod = + getQueryAuthProvidersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryAuthProviders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("QueryAuthProviders")) + .build(); + } + } + } + return getQueryAuthProvidersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest, + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse> + getQueryWorkloadsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryWorkloads", + requestType = com.google.cloud.agentidentity.v1.QueryWorkloadsRequest.class, + responseType = com.google.cloud.agentidentity.v1.QueryWorkloadsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest, + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse> + getQueryWorkloadsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest, + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse> + getQueryWorkloadsMethod; + if ((getQueryWorkloadsMethod = AuthProviderServiceGrpc.getQueryWorkloadsMethod) == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getQueryWorkloadsMethod = AuthProviderServiceGrpc.getQueryWorkloadsMethod) == null) { + AuthProviderServiceGrpc.getQueryWorkloadsMethod = + getQueryWorkloadsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryWorkloads")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("QueryWorkloads")) + .build(); + } + } + } + return getQueryWorkloadsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest, + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse> + getListAuthorizationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAuthorizations", + requestType = com.google.cloud.agentidentity.v1.ListAuthorizationsRequest.class, + responseType = com.google.cloud.agentidentity.v1.ListAuthorizationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest, + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse> + getListAuthorizationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest, + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse> + getListAuthorizationsMethod; + if ((getListAuthorizationsMethod = AuthProviderServiceGrpc.getListAuthorizationsMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getListAuthorizationsMethod = AuthProviderServiceGrpc.getListAuthorizationsMethod) + == null) { + AuthProviderServiceGrpc.getListAuthorizationsMethod = + getListAuthorizationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAuthorizations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("ListAuthorizations")) + .build(); + } + } + } + return getListAuthorizationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.GetAuthorizationRequest, + com.google.cloud.agentidentity.v1.Authorization> + getGetAuthorizationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAuthorization", + requestType = com.google.cloud.agentidentity.v1.GetAuthorizationRequest.class, + responseType = com.google.cloud.agentidentity.v1.Authorization.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.GetAuthorizationRequest, + com.google.cloud.agentidentity.v1.Authorization> + getGetAuthorizationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.GetAuthorizationRequest, + com.google.cloud.agentidentity.v1.Authorization> + getGetAuthorizationMethod; + if ((getGetAuthorizationMethod = AuthProviderServiceGrpc.getGetAuthorizationMethod) == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getGetAuthorizationMethod = AuthProviderServiceGrpc.getGetAuthorizationMethod) + == null) { + AuthProviderServiceGrpc.getGetAuthorizationMethod = + getGetAuthorizationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAuthorization")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.GetAuthorizationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.Authorization.getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("GetAuthorization")) + .build(); + } + } + } + return getGetAuthorizationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest, com.google.protobuf.Empty> + getDeleteAuthorizationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAuthorization", + requestType = com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest, com.google.protobuf.Empty> + getDeleteAuthorizationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest, com.google.protobuf.Empty> + getDeleteAuthorizationMethod; + if ((getDeleteAuthorizationMethod = AuthProviderServiceGrpc.getDeleteAuthorizationMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getDeleteAuthorizationMethod = AuthProviderServiceGrpc.getDeleteAuthorizationMethod) + == null) { + AuthProviderServiceGrpc.getDeleteAuthorizationMethod = + getDeleteAuthorizationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAuthorization")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("DeleteAuthorization")) + .build(); + } + } + } + return getDeleteAuthorizationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest, + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse> + getListAccessSummariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAccessSummaries", + requestType = com.google.cloud.agentidentity.v1.ListAccessSummariesRequest.class, + responseType = com.google.cloud.agentidentity.v1.ListAccessSummariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest, + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse> + getListAccessSummariesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest, + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse> + getListAccessSummariesMethod; + if ((getListAccessSummariesMethod = AuthProviderServiceGrpc.getListAccessSummariesMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getListAccessSummariesMethod = AuthProviderServiceGrpc.getListAccessSummariesMethod) + == null) { + AuthProviderServiceGrpc.getListAccessSummariesMethod = + getListAccessSummariesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAccessSummaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("ListAccessSummaries")) + .build(); + } + } + } + return getListAccessSummariesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest, + com.google.cloud.agentidentity.v1.AccessSummary> + getGetAccessSummaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAccessSummary", + requestType = com.google.cloud.agentidentity.v1.GetAccessSummaryRequest.class, + responseType = com.google.cloud.agentidentity.v1.AccessSummary.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest, + com.google.cloud.agentidentity.v1.AccessSummary> + getGetAccessSummaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest, + com.google.cloud.agentidentity.v1.AccessSummary> + getGetAccessSummaryMethod; + if ((getGetAccessSummaryMethod = AuthProviderServiceGrpc.getGetAccessSummaryMethod) == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getGetAccessSummaryMethod = AuthProviderServiceGrpc.getGetAccessSummaryMethod) + == null) { + AuthProviderServiceGrpc.getGetAccessSummaryMethod = + getGetAccessSummaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccessSummary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.AccessSummary.getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("GetAccessSummary")) + .build(); + } + } + } + return getGetAccessSummaryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest, + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse> + getRevokeAuthorizationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RevokeAuthorization", + requestType = com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest.class, + responseType = com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest, + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse> + getRevokeAuthorizationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest, + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse> + getRevokeAuthorizationMethod; + if ((getRevokeAuthorizationMethod = AuthProviderServiceGrpc.getRevokeAuthorizationMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getRevokeAuthorizationMethod = AuthProviderServiceGrpc.getRevokeAuthorizationMethod) + == null) { + AuthProviderServiceGrpc.getRevokeAuthorizationMethod = + getRevokeAuthorizationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RevokeAuthorization")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("RevokeAuthorization")) + .build(); + } + } + } + return getRevokeAuthorizationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getEnableAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EnableAuthProvider", + requestType = com.google.cloud.agentidentity.v1.EnableAuthProviderRequest.class, + responseType = com.google.cloud.agentidentity.v1.AuthProvider.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getEnableAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getEnableAuthProviderMethod; + if ((getEnableAuthProviderMethod = AuthProviderServiceGrpc.getEnableAuthProviderMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getEnableAuthProviderMethod = AuthProviderServiceGrpc.getEnableAuthProviderMethod) + == null) { + AuthProviderServiceGrpc.getEnableAuthProviderMethod = + getEnableAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnableAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("EnableAuthProvider")) + .build(); + } + } + } + return getEnableAuthProviderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getDisableAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DisableAuthProvider", + requestType = com.google.cloud.agentidentity.v1.DisableAuthProviderRequest.class, + responseType = com.google.cloud.agentidentity.v1.AuthProvider.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getDisableAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider> + getDisableAuthProviderMethod; + if ((getDisableAuthProviderMethod = AuthProviderServiceGrpc.getDisableAuthProviderMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getDisableAuthProviderMethod = AuthProviderServiceGrpc.getDisableAuthProviderMethod) + == null) { + AuthProviderServiceGrpc.getDisableAuthProviderMethod = + getDisableAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DisableAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("DisableAuthProvider")) + .build(); + } + } + } + return getDisableAuthProviderMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AuthProviderServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuthProviderServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceStub(channel, callOptions); + } + }; + return AuthProviderServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AuthProviderServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuthProviderServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceBlockingV2Stub(channel, callOptions); + } + }; + return AuthProviderServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AuthProviderServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuthProviderServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceBlockingStub(channel, callOptions); + } + }; + return AuthProviderServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AuthProviderServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuthProviderServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceFutureStub(channel, callOptions); + } + }; + return AuthProviderServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists AuthProviders in a given project and location.
+     * 
+ */ + default void listAuthProviders( + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAuthProvidersMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single AuthProvider.
+     * 
+ */ + default void getAuthProvider( + com.google.cloud.agentidentity.v1.GetAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAuthProviderMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new AuthProvider in a given project and location.
+     * 
+ */ + default void createAuthProvider( + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAuthProviderMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single AuthProvider.
+     * 
+ */ + default void updateAuthProvider( + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAuthProviderMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single AuthProvider.
+     * 
+ */ + default void deleteAuthProvider( + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAuthProviderMethod(), responseObserver); + } + + /** + * + * + *
+     * Undeletes a single AuthProvider.
+     * 
+ */ + default void undeleteAuthProvider( + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeleteAuthProviderMethod(), responseObserver); + } + + /** + * + * + *
+     * Queries what all auth_providers are used by a given workload_id.
+     * 
+ */ + default void queryAuthProviders( + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryAuthProvidersMethod(), responseObserver); + } + + /** + * + * + *
+     * Queries what all workloads are using a given auth_provider.
+     * 
+ */ + default void queryWorkloads( + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryWorkloadsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Authorizations in a given project and location.
+     * 
+ */ + default void listAuthorizations( + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAuthorizationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Authorization.
+     * 
+ */ + default void getAuthorization( + com.google.cloud.agentidentity.v1.GetAuthorizationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAuthorizationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Authorization.
+     * 
+ */ + default void deleteAuthorization( + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAuthorizationMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists AccessSummaries in a given project and location.
+     * Supported Filters:
+     * - `workload_id`: Filter by the SPIFFE ID of the agent.
+     *   Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+     * 
+ */ + default void listAccessSummaries( + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAccessSummariesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single AccessSummary.
+     * 
+ */ + default void getAccessSummary( + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAccessSummaryMethod(), responseObserver); + } + + /** + * + * + *
+     * Revokes all authorizations for a specific user on an AuthProvider.
+     * This deletes all authorization records associated with the user and
+     * AuthProvider, effectively revoking access across all agents.
+     * 
+ */ + default void revokeAuthorization( + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRevokeAuthorizationMethod(), responseObserver); + } + + /** + * + * + *
+     * Enables a single AuthProvider.
+     * 
+ */ + default void enableAuthProvider( + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEnableAuthProviderMethod(), responseObserver); + } + + /** + * + * + *
+     * Disables a single AuthProvider.
+     * 
+ */ + default void disableAuthProvider( + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDisableAuthProviderMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AuthProviderService. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public abstract static class AuthProviderServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AuthProviderServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AuthProviderService. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class AuthProviderServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AuthProviderServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuthProviderServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists AuthProviders in a given project and location.
+     * 
+ */ + public void listAuthProviders( + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAuthProvidersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single AuthProvider.
+     * 
+ */ + public void getAuthProvider( + com.google.cloud.agentidentity.v1.GetAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new AuthProvider in a given project and location.
+     * 
+ */ + public void createAuthProvider( + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single AuthProvider.
+     * 
+ */ + public void updateAuthProvider( + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single AuthProvider.
+     * 
+ */ + public void deleteAuthProvider( + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Undeletes a single AuthProvider.
+     * 
+ */ + public void undeleteAuthProvider( + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Queries what all auth_providers are used by a given workload_id.
+     * 
+ */ + public void queryAuthProviders( + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryAuthProvidersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Queries what all workloads are using a given auth_provider.
+     * 
+ */ + public void queryWorkloads( + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryWorkloadsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Authorizations in a given project and location.
+     * 
+ */ + public void listAuthorizations( + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAuthorizationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Authorization.
+     * 
+ */ + public void getAuthorization( + com.google.cloud.agentidentity.v1.GetAuthorizationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAuthorizationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Authorization.
+     * 
+ */ + public void deleteAuthorization( + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAuthorizationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists AccessSummaries in a given project and location.
+     * Supported Filters:
+     * - `workload_id`: Filter by the SPIFFE ID of the agent.
+     *   Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+     * 
+ */ + public void listAccessSummaries( + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccessSummariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single AccessSummary.
+     * 
+ */ + public void getAccessSummary( + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccessSummaryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Revokes all authorizations for a specific user on an AuthProvider.
+     * This deletes all authorization records associated with the user and
+     * AuthProvider, effectively revoking access across all agents.
+     * 
+ */ + public void revokeAuthorization( + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRevokeAuthorizationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Enables a single AuthProvider.
+     * 
+ */ + public void enableAuthProvider( + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEnableAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Disables a single AuthProvider.
+     * 
+ */ + public void disableAuthProvider( + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDisableAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AuthProviderService. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class AuthProviderServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AuthProviderServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuthProviderServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Lists AuthProviders in a given project and location.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.ListAuthProvidersResponse listAuthProviders( + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAuthProvidersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AuthProvider getAuthProvider( + com.google.cloud.agentidentity.v1.GetAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new AuthProvider in a given project and location.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AuthProvider createAuthProvider( + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AuthProvider updateAuthProvider( + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single AuthProvider.
+     * 
+ */ + public com.google.protobuf.Empty deleteAuthProvider( + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Undeletes a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AuthProvider undeleteAuthProvider( + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUndeleteAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Queries what all auth_providers are used by a given workload_id.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse queryAuthProviders( + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryAuthProvidersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Queries what all workloads are using a given auth_provider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.QueryWorkloadsResponse queryWorkloads( + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryWorkloadsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Authorizations in a given project and location.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.ListAuthorizationsResponse listAuthorizations( + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAuthorizationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Authorization.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.Authorization getAuthorization( + com.google.cloud.agentidentity.v1.GetAuthorizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAuthorizationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Authorization.
+     * 
+ */ + public com.google.protobuf.Empty deleteAuthorization( + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAuthorizationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists AccessSummaries in a given project and location.
+     * Supported Filters:
+     * - `workload_id`: Filter by the SPIFFE ID of the agent.
+     *   Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+     * 
+ */ + public com.google.cloud.agentidentity.v1.ListAccessSummariesResponse listAccessSummaries( + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAccessSummariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single AccessSummary.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AccessSummary getAccessSummary( + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAccessSummaryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Revokes all authorizations for a specific user on an AuthProvider.
+     * This deletes all authorization records associated with the user and
+     * AuthProvider, effectively revoking access across all agents.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse revokeAuthorization( + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRevokeAuthorizationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Enables a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AuthProvider enableAuthProvider( + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getEnableAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Disables a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AuthProvider disableAuthProvider( + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDisableAuthProviderMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AuthProviderService. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class AuthProviderServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AuthProviderServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuthProviderServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists AuthProviders in a given project and location.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.ListAuthProvidersResponse listAuthProviders( + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAuthProvidersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AuthProvider getAuthProvider( + com.google.cloud.agentidentity.v1.GetAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new AuthProvider in a given project and location.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AuthProvider createAuthProvider( + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AuthProvider updateAuthProvider( + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single AuthProvider.
+     * 
+ */ + public com.google.protobuf.Empty deleteAuthProvider( + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Undeletes a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AuthProvider undeleteAuthProvider( + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Queries what all auth_providers are used by a given workload_id.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse queryAuthProviders( + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryAuthProvidersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Queries what all workloads are using a given auth_provider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.QueryWorkloadsResponse queryWorkloads( + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryWorkloadsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Authorizations in a given project and location.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.ListAuthorizationsResponse listAuthorizations( + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAuthorizationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Authorization.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.Authorization getAuthorization( + com.google.cloud.agentidentity.v1.GetAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAuthorizationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Authorization.
+     * 
+ */ + public com.google.protobuf.Empty deleteAuthorization( + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAuthorizationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists AccessSummaries in a given project and location.
+     * Supported Filters:
+     * - `workload_id`: Filter by the SPIFFE ID of the agent.
+     *   Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+     * 
+ */ + public com.google.cloud.agentidentity.v1.ListAccessSummariesResponse listAccessSummaries( + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccessSummariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single AccessSummary.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AccessSummary getAccessSummary( + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccessSummaryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Revokes all authorizations for a specific user on an AuthProvider.
+     * This deletes all authorization records associated with the user and
+     * AuthProvider, effectively revoking access across all agents.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse revokeAuthorization( + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRevokeAuthorizationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Enables a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AuthProvider enableAuthProvider( + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnableAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Disables a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1.AuthProvider disableAuthProvider( + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDisableAuthProviderMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AuthProviderService. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class AuthProviderServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AuthProviderServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuthProviderServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists AuthProviders in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse> + listAuthProviders(com.google.cloud.agentidentity.v1.ListAuthProvidersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAuthProvidersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single AuthProvider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.AuthProvider> + getAuthProvider(com.google.cloud.agentidentity.v1.GetAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAuthProviderMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new AuthProvider in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.AuthProvider> + createAuthProvider(com.google.cloud.agentidentity.v1.CreateAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAuthProviderMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single AuthProvider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.AuthProvider> + updateAuthProvider(com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAuthProviderMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single AuthProvider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAuthProvider(com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAuthProviderMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Undeletes a single AuthProvider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.AuthProvider> + undeleteAuthProvider( + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteAuthProviderMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Queries what all auth_providers are used by a given workload_id.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse> + queryAuthProviders(com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryAuthProvidersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Queries what all workloads are using a given auth_provider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse> + queryWorkloads(com.google.cloud.agentidentity.v1.QueryWorkloadsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryWorkloadsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Authorizations in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse> + listAuthorizations(com.google.cloud.agentidentity.v1.ListAuthorizationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAuthorizationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Authorization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.Authorization> + getAuthorization(com.google.cloud.agentidentity.v1.GetAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAuthorizationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Authorization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAuthorization(com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAuthorizationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists AccessSummaries in a given project and location.
+     * Supported Filters:
+     * - `workload_id`: Filter by the SPIFFE ID of the agent.
+     *   Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse> + listAccessSummaries(com.google.cloud.agentidentity.v1.ListAccessSummariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccessSummariesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single AccessSummary.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.AccessSummary> + getAccessSummary(com.google.cloud.agentidentity.v1.GetAccessSummaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccessSummaryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Revokes all authorizations for a specific user on an AuthProvider.
+     * This deletes all authorization records associated with the user and
+     * AuthProvider, effectively revoking access across all agents.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse> + revokeAuthorization(com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRevokeAuthorizationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Enables a single AuthProvider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.AuthProvider> + enableAuthProvider(com.google.cloud.agentidentity.v1.EnableAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnableAuthProviderMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Disables a single AuthProvider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1.AuthProvider> + disableAuthProvider(com.google.cloud.agentidentity.v1.DisableAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDisableAuthProviderMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_AUTH_PROVIDERS = 0; + private static final int METHODID_GET_AUTH_PROVIDER = 1; + private static final int METHODID_CREATE_AUTH_PROVIDER = 2; + private static final int METHODID_UPDATE_AUTH_PROVIDER = 3; + private static final int METHODID_DELETE_AUTH_PROVIDER = 4; + private static final int METHODID_UNDELETE_AUTH_PROVIDER = 5; + private static final int METHODID_QUERY_AUTH_PROVIDERS = 6; + private static final int METHODID_QUERY_WORKLOADS = 7; + private static final int METHODID_LIST_AUTHORIZATIONS = 8; + private static final int METHODID_GET_AUTHORIZATION = 9; + private static final int METHODID_DELETE_AUTHORIZATION = 10; + private static final int METHODID_LIST_ACCESS_SUMMARIES = 11; + private static final int METHODID_GET_ACCESS_SUMMARY = 12; + private static final int METHODID_REVOKE_AUTHORIZATION = 13; + private static final int METHODID_ENABLE_AUTH_PROVIDER = 14; + private static final int METHODID_DISABLE_AUTH_PROVIDER = 15; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_AUTH_PROVIDERS: + serviceImpl.listAuthProviders( + (com.google.cloud.agentidentity.v1.ListAuthProvidersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse>) + responseObserver); + break; + case METHODID_GET_AUTH_PROVIDER: + serviceImpl.getAuthProvider( + (com.google.cloud.agentidentity.v1.GetAuthProviderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_AUTH_PROVIDER: + serviceImpl.createAuthProvider( + (com.google.cloud.agentidentity.v1.CreateAuthProviderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_AUTH_PROVIDER: + serviceImpl.updateAuthProvider( + (com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_AUTH_PROVIDER: + serviceImpl.deleteAuthProvider( + (com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_AUTH_PROVIDER: + serviceImpl.undeleteAuthProvider( + (com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_QUERY_AUTH_PROVIDERS: + serviceImpl.queryAuthProviders( + (com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse>) + responseObserver); + break; + case METHODID_QUERY_WORKLOADS: + serviceImpl.queryWorkloads( + (com.google.cloud.agentidentity.v1.QueryWorkloadsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse>) + responseObserver); + break; + case METHODID_LIST_AUTHORIZATIONS: + serviceImpl.listAuthorizations( + (com.google.cloud.agentidentity.v1.ListAuthorizationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse>) + responseObserver); + break; + case METHODID_GET_AUTHORIZATION: + serviceImpl.getAuthorization( + (com.google.cloud.agentidentity.v1.GetAuthorizationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_AUTHORIZATION: + serviceImpl.deleteAuthorization( + (com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ACCESS_SUMMARIES: + serviceImpl.listAccessSummaries( + (com.google.cloud.agentidentity.v1.ListAccessSummariesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse>) + responseObserver); + break; + case METHODID_GET_ACCESS_SUMMARY: + serviceImpl.getAccessSummary( + (com.google.cloud.agentidentity.v1.GetAccessSummaryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_REVOKE_AUTHORIZATION: + serviceImpl.revokeAuthorization( + (com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse>) + responseObserver); + break; + case METHODID_ENABLE_AUTH_PROVIDER: + serviceImpl.enableAuthProvider( + (com.google.cloud.agentidentity.v1.EnableAuthProviderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DISABLE_AUTH_PROVIDER: + serviceImpl.disableAuthProvider( + (com.google.cloud.agentidentity.v1.DisableAuthProviderRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListAuthProvidersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest, + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse>( + service, METHODID_LIST_AUTH_PROVIDERS))) + .addMethod( + getGetAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.GetAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider>( + service, METHODID_GET_AUTH_PROVIDER))) + .addMethod( + getCreateAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider>( + service, METHODID_CREATE_AUTH_PROVIDER))) + .addMethod( + getUpdateAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider>( + service, METHODID_UPDATE_AUTH_PROVIDER))) + .addMethod( + getDeleteAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_AUTH_PROVIDER))) + .addMethod( + getUndeleteAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider>( + service, METHODID_UNDELETE_AUTH_PROVIDER))) + .addMethod( + getQueryAuthProvidersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest, + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse>( + service, METHODID_QUERY_AUTH_PROVIDERS))) + .addMethod( + getQueryWorkloadsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest, + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse>( + service, METHODID_QUERY_WORKLOADS))) + .addMethod( + getListAuthorizationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest, + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse>( + service, METHODID_LIST_AUTHORIZATIONS))) + .addMethod( + getGetAuthorizationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.GetAuthorizationRequest, + com.google.cloud.agentidentity.v1.Authorization>( + service, METHODID_GET_AUTHORIZATION))) + .addMethod( + getDeleteAuthorizationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_AUTHORIZATION))) + .addMethod( + getListAccessSummariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest, + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse>( + service, METHODID_LIST_ACCESS_SUMMARIES))) + .addMethod( + getGetAccessSummaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest, + com.google.cloud.agentidentity.v1.AccessSummary>( + service, METHODID_GET_ACCESS_SUMMARY))) + .addMethod( + getRevokeAuthorizationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest, + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse>( + service, METHODID_REVOKE_AUTHORIZATION))) + .addMethod( + getEnableAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider>( + service, METHODID_ENABLE_AUTH_PROVIDER))) + .addMethod( + getDisableAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest, + com.google.cloud.agentidentity.v1.AuthProvider>( + service, METHODID_DISABLE_AUTH_PROVIDER))) + .build(); + } + + private abstract static class AuthProviderServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AuthProviderServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AuthProviderService"); + } + } + + private static final class AuthProviderServiceFileDescriptorSupplier + extends AuthProviderServiceBaseDescriptorSupplier { + AuthProviderServiceFileDescriptorSupplier() {} + } + + private static final class AuthProviderServiceMethodDescriptorSupplier + extends AuthProviderServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AuthProviderServiceMethodDescriptorSupplier(java.lang.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 (AuthProviderServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AuthProviderServiceFileDescriptorSupplier()) + .addMethod(getListAuthProvidersMethod()) + .addMethod(getGetAuthProviderMethod()) + .addMethod(getCreateAuthProviderMethod()) + .addMethod(getUpdateAuthProviderMethod()) + .addMethod(getDeleteAuthProviderMethod()) + .addMethod(getUndeleteAuthProviderMethod()) + .addMethod(getQueryAuthProvidersMethod()) + .addMethod(getQueryWorkloadsMethod()) + .addMethod(getListAuthorizationsMethod()) + .addMethod(getGetAuthorizationMethod()) + .addMethod(getDeleteAuthorizationMethod()) + .addMethod(getListAccessSummariesMethod()) + .addMethod(getGetAccessSummaryMethod()) + .addMethod(getRevokeAuthorizationMethod()) + .addMethod(getEnableAuthProviderMethod()) + .addMethod(getDisableAuthProviderMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-agentidentity/grpc-google-cloud-agentidentity-v1beta/pom.xml b/java-agentidentity/grpc-google-cloud-agentidentity-v1beta/pom.xml new file mode 100644 index 000000000000..2820890dd3c9 --- /dev/null +++ b/java-agentidentity/grpc-google-cloud-agentidentity-v1beta/pom.xml @@ -0,0 +1,45 @@ + + 4.0.0 + com.google.api.grpc + grpc-google-cloud-agentidentity-v1beta + 0.1.0-SNAPSHOT + grpc-google-cloud-agentidentity-v1beta + GRPC library for google-cloud-agentidentity + + com.google.cloud + google-cloud-agentidentity-parent + 0.1.0-SNAPSHOT + + + + io.grpc + grpc-api + + + io.grpc + grpc-stub + + + io.grpc + grpc-protobuf + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-cloud-agentidentity-v1beta + + + com.google.guava + guava + + + diff --git a/java-agentidentity/grpc-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceGrpc.java b/java-agentidentity/grpc-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceGrpc.java new file mode 100644 index 000000000000..2ff8d4ffd7f0 --- /dev/null +++ b/java-agentidentity/grpc-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceGrpc.java @@ -0,0 +1,2520 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * Service describing handlers for resources
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class AuthProviderServiceGrpc { + + private AuthProviderServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.agentidentity.v1beta.AuthProviderService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest, + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse> + getListAuthProvidersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAuthProviders", + requestType = com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest, + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse> + getListAuthProvidersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest, + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse> + getListAuthProvidersMethod; + if ((getListAuthProvidersMethod = AuthProviderServiceGrpc.getListAuthProvidersMethod) == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getListAuthProvidersMethod = AuthProviderServiceGrpc.getListAuthProvidersMethod) + == null) { + AuthProviderServiceGrpc.getListAuthProvidersMethod = + getListAuthProvidersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAuthProviders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("ListAuthProviders")) + .build(); + } + } + } + return getListAuthProvidersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getGetAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAuthProvider", + requestType = com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.AuthProvider.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getGetAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getGetAuthProviderMethod; + if ((getGetAuthProviderMethod = AuthProviderServiceGrpc.getGetAuthProviderMethod) == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getGetAuthProviderMethod = AuthProviderServiceGrpc.getGetAuthProviderMethod) == null) { + AuthProviderServiceGrpc.getGetAuthProviderMethod = + getGetAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.AuthProvider + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("GetAuthProvider")) + .build(); + } + } + } + return getGetAuthProviderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getCreateAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAuthProvider", + requestType = com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.AuthProvider.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getCreateAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getCreateAuthProviderMethod; + if ((getCreateAuthProviderMethod = AuthProviderServiceGrpc.getCreateAuthProviderMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getCreateAuthProviderMethod = AuthProviderServiceGrpc.getCreateAuthProviderMethod) + == null) { + AuthProviderServiceGrpc.getCreateAuthProviderMethod = + getCreateAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.AuthProvider + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("CreateAuthProvider")) + .build(); + } + } + } + return getCreateAuthProviderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getUpdateAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAuthProvider", + requestType = com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.AuthProvider.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getUpdateAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getUpdateAuthProviderMethod; + if ((getUpdateAuthProviderMethod = AuthProviderServiceGrpc.getUpdateAuthProviderMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getUpdateAuthProviderMethod = AuthProviderServiceGrpc.getUpdateAuthProviderMethod) + == null) { + AuthProviderServiceGrpc.getUpdateAuthProviderMethod = + getUpdateAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.AuthProvider + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("UpdateAuthProvider")) + .build(); + } + } + } + return getUpdateAuthProviderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest, + com.google.protobuf.Empty> + getDeleteAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAuthProvider", + requestType = com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest, + com.google.protobuf.Empty> + getDeleteAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest, + com.google.protobuf.Empty> + getDeleteAuthProviderMethod; + if ((getDeleteAuthProviderMethod = AuthProviderServiceGrpc.getDeleteAuthProviderMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getDeleteAuthProviderMethod = AuthProviderServiceGrpc.getDeleteAuthProviderMethod) + == null) { + AuthProviderServiceGrpc.getDeleteAuthProviderMethod = + getDeleteAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("DeleteAuthProvider")) + .build(); + } + } + } + return getDeleteAuthProviderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getUndeleteAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteAuthProvider", + requestType = com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.AuthProvider.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getUndeleteAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getUndeleteAuthProviderMethod; + if ((getUndeleteAuthProviderMethod = AuthProviderServiceGrpc.getUndeleteAuthProviderMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getUndeleteAuthProviderMethod = AuthProviderServiceGrpc.getUndeleteAuthProviderMethod) + == null) { + AuthProviderServiceGrpc.getUndeleteAuthProviderMethod = + getUndeleteAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UndeleteAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.AuthProvider + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("UndeleteAuthProvider")) + .build(); + } + } + } + return getUndeleteAuthProviderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest, + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse> + getQueryAuthProvidersMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryAuthProviders", + requestType = com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest, + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse> + getQueryAuthProvidersMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest, + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse> + getQueryAuthProvidersMethod; + if ((getQueryAuthProvidersMethod = AuthProviderServiceGrpc.getQueryAuthProvidersMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getQueryAuthProvidersMethod = AuthProviderServiceGrpc.getQueryAuthProvidersMethod) + == null) { + AuthProviderServiceGrpc.getQueryAuthProvidersMethod = + getQueryAuthProvidersMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryAuthProviders")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("QueryAuthProviders")) + .build(); + } + } + } + return getQueryAuthProvidersMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest, + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse> + getQueryWorkloadsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "QueryWorkloads", + requestType = com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest, + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse> + getQueryWorkloadsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest, + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse> + getQueryWorkloadsMethod; + if ((getQueryWorkloadsMethod = AuthProviderServiceGrpc.getQueryWorkloadsMethod) == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getQueryWorkloadsMethod = AuthProviderServiceGrpc.getQueryWorkloadsMethod) == null) { + AuthProviderServiceGrpc.getQueryWorkloadsMethod = + getQueryWorkloadsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryWorkloads")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("QueryWorkloads")) + .build(); + } + } + } + return getQueryWorkloadsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest, + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse> + getListAuthorizationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAuthorizations", + requestType = com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest, + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse> + getListAuthorizationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest, + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse> + getListAuthorizationsMethod; + if ((getListAuthorizationsMethod = AuthProviderServiceGrpc.getListAuthorizationsMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getListAuthorizationsMethod = AuthProviderServiceGrpc.getListAuthorizationsMethod) + == null) { + AuthProviderServiceGrpc.getListAuthorizationsMethod = + getListAuthorizationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAuthorizations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("ListAuthorizations")) + .build(); + } + } + } + return getListAuthorizationsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest, + com.google.cloud.agentidentity.v1beta.Authorization> + getGetAuthorizationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAuthorization", + requestType = com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.Authorization.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest, + com.google.cloud.agentidentity.v1beta.Authorization> + getGetAuthorizationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest, + com.google.cloud.agentidentity.v1beta.Authorization> + getGetAuthorizationMethod; + if ((getGetAuthorizationMethod = AuthProviderServiceGrpc.getGetAuthorizationMethod) == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getGetAuthorizationMethod = AuthProviderServiceGrpc.getGetAuthorizationMethod) + == null) { + AuthProviderServiceGrpc.getGetAuthorizationMethod = + getGetAuthorizationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAuthorization")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.Authorization + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("GetAuthorization")) + .build(); + } + } + } + return getGetAuthorizationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest, + com.google.protobuf.Empty> + getDeleteAuthorizationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAuthorization", + requestType = com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest, + com.google.protobuf.Empty> + getDeleteAuthorizationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest, + com.google.protobuf.Empty> + getDeleteAuthorizationMethod; + if ((getDeleteAuthorizationMethod = AuthProviderServiceGrpc.getDeleteAuthorizationMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getDeleteAuthorizationMethod = AuthProviderServiceGrpc.getDeleteAuthorizationMethod) + == null) { + AuthProviderServiceGrpc.getDeleteAuthorizationMethod = + getDeleteAuthorizationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAuthorization")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("DeleteAuthorization")) + .build(); + } + } + } + return getDeleteAuthorizationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest, + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse> + getListAccessSummariesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAccessSummaries", + requestType = com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest, + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse> + getListAccessSummariesMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest, + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse> + getListAccessSummariesMethod; + if ((getListAccessSummariesMethod = AuthProviderServiceGrpc.getListAccessSummariesMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getListAccessSummariesMethod = AuthProviderServiceGrpc.getListAccessSummariesMethod) + == null) { + AuthProviderServiceGrpc.getListAccessSummariesMethod = + getListAccessSummariesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAccessSummaries")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("ListAccessSummaries")) + .build(); + } + } + } + return getListAccessSummariesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest, + com.google.cloud.agentidentity.v1beta.AccessSummary> + getGetAccessSummaryMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAccessSummary", + requestType = com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.AccessSummary.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest, + com.google.cloud.agentidentity.v1beta.AccessSummary> + getGetAccessSummaryMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest, + com.google.cloud.agentidentity.v1beta.AccessSummary> + getGetAccessSummaryMethod; + if ((getGetAccessSummaryMethod = AuthProviderServiceGrpc.getGetAccessSummaryMethod) == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getGetAccessSummaryMethod = AuthProviderServiceGrpc.getGetAccessSummaryMethod) + == null) { + AuthProviderServiceGrpc.getGetAccessSummaryMethod = + getGetAccessSummaryMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccessSummary")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.AccessSummary + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("GetAccessSummary")) + .build(); + } + } + } + return getGetAccessSummaryMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest, + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse> + getRevokeAuthorizationMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RevokeAuthorization", + requestType = com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest, + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse> + getRevokeAuthorizationMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest, + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse> + getRevokeAuthorizationMethod; + if ((getRevokeAuthorizationMethod = AuthProviderServiceGrpc.getRevokeAuthorizationMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getRevokeAuthorizationMethod = AuthProviderServiceGrpc.getRevokeAuthorizationMethod) + == null) { + AuthProviderServiceGrpc.getRevokeAuthorizationMethod = + getRevokeAuthorizationMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "RevokeAuthorization")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("RevokeAuthorization")) + .build(); + } + } + } + return getRevokeAuthorizationMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getEnableAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EnableAuthProvider", + requestType = com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.AuthProvider.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getEnableAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getEnableAuthProviderMethod; + if ((getEnableAuthProviderMethod = AuthProviderServiceGrpc.getEnableAuthProviderMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getEnableAuthProviderMethod = AuthProviderServiceGrpc.getEnableAuthProviderMethod) + == null) { + AuthProviderServiceGrpc.getEnableAuthProviderMethod = + getEnableAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnableAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.AuthProvider + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("EnableAuthProvider")) + .build(); + } + } + } + return getEnableAuthProviderMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getDisableAuthProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DisableAuthProvider", + requestType = com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest.class, + responseType = com.google.cloud.agentidentity.v1beta.AuthProvider.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getDisableAuthProviderMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider> + getDisableAuthProviderMethod; + if ((getDisableAuthProviderMethod = AuthProviderServiceGrpc.getDisableAuthProviderMethod) + == null) { + synchronized (AuthProviderServiceGrpc.class) { + if ((getDisableAuthProviderMethod = AuthProviderServiceGrpc.getDisableAuthProviderMethod) + == null) { + AuthProviderServiceGrpc.getDisableAuthProviderMethod = + getDisableAuthProviderMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DisableAuthProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.agentidentity.v1beta.AuthProvider + .getDefaultInstance())) + .setSchemaDescriptor( + new AuthProviderServiceMethodDescriptorSupplier("DisableAuthProvider")) + .build(); + } + } + } + return getDisableAuthProviderMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AuthProviderServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuthProviderServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceStub(channel, callOptions); + } + }; + return AuthProviderServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AuthProviderServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuthProviderServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceBlockingV2Stub(channel, callOptions); + } + }; + return AuthProviderServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AuthProviderServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuthProviderServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceBlockingStub(channel, callOptions); + } + }; + return AuthProviderServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AuthProviderServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AuthProviderServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceFutureStub(channel, callOptions); + } + }; + return AuthProviderServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists AuthProviders in a given project and location.
+     * 
+ */ + default void listAuthProviders( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAuthProvidersMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single AuthProvider.
+     * 
+ */ + default void getAuthProvider( + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAuthProviderMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new AuthProvider in a given project and location.
+     * 
+ */ + default void createAuthProvider( + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAuthProviderMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single AuthProvider.
+     * 
+ */ + default void updateAuthProvider( + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAuthProviderMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single AuthProvider.
+     * 
+ */ + default void deleteAuthProvider( + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAuthProviderMethod(), responseObserver); + } + + /** + * + * + *
+     * Undeletes a single AuthProvider.
+     * 
+ */ + default void undeleteAuthProvider( + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeleteAuthProviderMethod(), responseObserver); + } + + /** + * + * + *
+     * Queries what all auth_providers are used by a given workload_id.
+     * 
+ */ + default void queryAuthProviders( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryAuthProvidersMethod(), responseObserver); + } + + /** + * + * + *
+     * Queries what all workloads are using a given auth_provider.
+     * 
+ */ + default void queryWorkloads( + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getQueryWorkloadsMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists Authorizations in a given project and location.
+     * 
+ */ + default void listAuthorizations( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAuthorizationsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Authorization.
+     * 
+ */ + default void getAuthorization( + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAuthorizationMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a single Authorization.
+     * 
+ */ + default void deleteAuthorization( + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAuthorizationMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists AccessSummaries in a given project and location.
+     * Supported Filters:
+     * - `workload_id`: Filter by the SPIFFE ID of the agent.
+     *   Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+     * 
+ */ + default void listAccessSummaries( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAccessSummariesMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of a single AccessSummary.
+     * 
+ */ + default void getAccessSummary( + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAccessSummaryMethod(), responseObserver); + } + + /** + * + * + *
+     * Revokes all authorizations for a specific user on an AuthProvider.
+     * This deletes all authorization records associated with the user and
+     * AuthProvider, effectively revoking access across all agents.
+     * 
+ */ + default void revokeAuthorization( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRevokeAuthorizationMethod(), responseObserver); + } + + /** + * + * + *
+     * Enables a single AuthProvider.
+     * 
+ */ + default void enableAuthProvider( + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEnableAuthProviderMethod(), responseObserver); + } + + /** + * + * + *
+     * Disables a single AuthProvider.
+     * 
+ */ + default void disableAuthProvider( + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDisableAuthProviderMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AuthProviderService. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public abstract static class AuthProviderServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AuthProviderServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AuthProviderService. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class AuthProviderServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AuthProviderServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuthProviderServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists AuthProviders in a given project and location.
+     * 
+ */ + public void listAuthProviders( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAuthProvidersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single AuthProvider.
+     * 
+ */ + public void getAuthProvider( + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new AuthProvider in a given project and location.
+     * 
+ */ + public void createAuthProvider( + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the parameters of a single AuthProvider.
+     * 
+ */ + public void updateAuthProvider( + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single AuthProvider.
+     * 
+ */ + public void deleteAuthProvider( + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Undeletes a single AuthProvider.
+     * 
+ */ + public void undeleteAuthProvider( + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Queries what all auth_providers are used by a given workload_id.
+     * 
+ */ + public void queryAuthProviders( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryAuthProvidersMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Queries what all workloads are using a given auth_provider.
+     * 
+ */ + public void queryWorkloads( + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getQueryWorkloadsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists Authorizations in a given project and location.
+     * 
+ */ + public void listAuthorizations( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAuthorizationsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single Authorization.
+     * 
+ */ + public void getAuthorization( + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAuthorizationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a single Authorization.
+     * 
+ */ + public void deleteAuthorization( + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAuthorizationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists AccessSummaries in a given project and location.
+     * Supported Filters:
+     * - `workload_id`: Filter by the SPIFFE ID of the agent.
+     *   Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+     * 
+ */ + public void listAccessSummaries( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccessSummariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of a single AccessSummary.
+     * 
+ */ + public void getAccessSummary( + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccessSummaryMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Revokes all authorizations for a specific user on an AuthProvider.
+     * This deletes all authorization records associated with the user and
+     * AuthProvider, effectively revoking access across all agents.
+     * 
+ */ + public void revokeAuthorization( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRevokeAuthorizationMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Enables a single AuthProvider.
+     * 
+ */ + public void enableAuthProvider( + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEnableAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Disables a single AuthProvider.
+     * 
+ */ + public void disableAuthProvider( + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDisableAuthProviderMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AuthProviderService. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class AuthProviderServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AuthProviderServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuthProviderServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Lists AuthProviders in a given project and location.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse listAuthProviders( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAuthProvidersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AuthProvider getAuthProvider( + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new AuthProvider in a given project and location.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AuthProvider createAuthProvider( + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AuthProvider updateAuthProvider( + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single AuthProvider.
+     * 
+ */ + public com.google.protobuf.Empty deleteAuthProvider( + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Undeletes a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AuthProvider undeleteAuthProvider( + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUndeleteAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Queries what all auth_providers are used by a given workload_id.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse queryAuthProviders( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryAuthProvidersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Queries what all workloads are using a given auth_provider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse queryWorkloads( + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getQueryWorkloadsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Authorizations in a given project and location.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse listAuthorizations( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAuthorizationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Authorization.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.Authorization getAuthorization( + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAuthorizationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Authorization.
+     * 
+ */ + public com.google.protobuf.Empty deleteAuthorization( + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAuthorizationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists AccessSummaries in a given project and location.
+     * Supported Filters:
+     * - `workload_id`: Filter by the SPIFFE ID of the agent.
+     *   Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse listAccessSummaries( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAccessSummariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single AccessSummary.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AccessSummary getAccessSummary( + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAccessSummaryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Revokes all authorizations for a specific user on an AuthProvider.
+     * This deletes all authorization records associated with the user and
+     * AuthProvider, effectively revoking access across all agents.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse revokeAuthorization( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRevokeAuthorizationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Enables a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AuthProvider enableAuthProvider( + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getEnableAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Disables a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AuthProvider disableAuthProvider( + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDisableAuthProviderMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AuthProviderService. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class AuthProviderServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AuthProviderServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuthProviderServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists AuthProviders in a given project and location.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse listAuthProviders( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAuthProvidersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AuthProvider getAuthProvider( + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new AuthProvider in a given project and location.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AuthProvider createAuthProvider( + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the parameters of a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AuthProvider updateAuthProvider( + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single AuthProvider.
+     * 
+ */ + public com.google.protobuf.Empty deleteAuthProvider( + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Undeletes a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AuthProvider undeleteAuthProvider( + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Queries what all auth_providers are used by a given workload_id.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse queryAuthProviders( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryAuthProvidersMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Queries what all workloads are using a given auth_provider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse queryWorkloads( + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getQueryWorkloadsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists Authorizations in a given project and location.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse listAuthorizations( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAuthorizationsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single Authorization.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.Authorization getAuthorization( + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAuthorizationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a single Authorization.
+     * 
+ */ + public com.google.protobuf.Empty deleteAuthorization( + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAuthorizationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists AccessSummaries in a given project and location.
+     * Supported Filters:
+     * - `workload_id`: Filter by the SPIFFE ID of the agent.
+     *   Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse listAccessSummaries( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccessSummariesMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of a single AccessSummary.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AccessSummary getAccessSummary( + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccessSummaryMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Revokes all authorizations for a specific user on an AuthProvider.
+     * This deletes all authorization records associated with the user and
+     * AuthProvider, effectively revoking access across all agents.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse revokeAuthorization( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRevokeAuthorizationMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Enables a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AuthProvider enableAuthProvider( + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnableAuthProviderMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Disables a single AuthProvider.
+     * 
+ */ + public com.google.cloud.agentidentity.v1beta.AuthProvider disableAuthProvider( + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDisableAuthProviderMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AuthProviderService. + * + *
+   * Service describing handlers for resources
+   * 
+ */ + public static final class AuthProviderServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AuthProviderServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AuthProviderServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AuthProviderServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists AuthProviders in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse> + listAuthProviders(com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAuthProvidersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single AuthProvider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.AuthProvider> + getAuthProvider(com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAuthProviderMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new AuthProvider in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.AuthProvider> + createAuthProvider( + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAuthProviderMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the parameters of a single AuthProvider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.AuthProvider> + updateAuthProvider( + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAuthProviderMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single AuthProvider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAuthProvider( + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAuthProviderMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Undeletes a single AuthProvider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.AuthProvider> + undeleteAuthProvider( + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteAuthProviderMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Queries what all auth_providers are used by a given workload_id.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse> + queryAuthProviders( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryAuthProvidersMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Queries what all workloads are using a given auth_provider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse> + queryWorkloads(com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getQueryWorkloadsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists Authorizations in a given project and location.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse> + listAuthorizations( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAuthorizationsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single Authorization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.Authorization> + getAuthorization(com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAuthorizationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes a single Authorization.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAuthorization( + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAuthorizationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Lists AccessSummaries in a given project and location.
+     * Supported Filters:
+     * - `workload_id`: Filter by the SPIFFE ID of the agent.
+     *   Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"`
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse> + listAccessSummaries( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccessSummariesMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of a single AccessSummary.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.AccessSummary> + getAccessSummary(com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccessSummaryMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Revokes all authorizations for a specific user on an AuthProvider.
+     * This deletes all authorization records associated with the user and
+     * AuthProvider, effectively revoking access across all agents.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse> + revokeAuthorization( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRevokeAuthorizationMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Enables a single AuthProvider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.AuthProvider> + enableAuthProvider( + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnableAuthProviderMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Disables a single AuthProvider.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.agentidentity.v1beta.AuthProvider> + disableAuthProvider( + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDisableAuthProviderMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_AUTH_PROVIDERS = 0; + private static final int METHODID_GET_AUTH_PROVIDER = 1; + private static final int METHODID_CREATE_AUTH_PROVIDER = 2; + private static final int METHODID_UPDATE_AUTH_PROVIDER = 3; + private static final int METHODID_DELETE_AUTH_PROVIDER = 4; + private static final int METHODID_UNDELETE_AUTH_PROVIDER = 5; + private static final int METHODID_QUERY_AUTH_PROVIDERS = 6; + private static final int METHODID_QUERY_WORKLOADS = 7; + private static final int METHODID_LIST_AUTHORIZATIONS = 8; + private static final int METHODID_GET_AUTHORIZATION = 9; + private static final int METHODID_DELETE_AUTHORIZATION = 10; + private static final int METHODID_LIST_ACCESS_SUMMARIES = 11; + private static final int METHODID_GET_ACCESS_SUMMARY = 12; + private static final int METHODID_REVOKE_AUTHORIZATION = 13; + private static final int METHODID_ENABLE_AUTH_PROVIDER = 14; + private static final int METHODID_DISABLE_AUTH_PROVIDER = 15; + + 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 AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService 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_AUTH_PROVIDERS: + serviceImpl.listAuthProviders( + (com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse>) + responseObserver); + break; + case METHODID_GET_AUTH_PROVIDER: + serviceImpl.getAuthProvider( + (com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_AUTH_PROVIDER: + serviceImpl.createAuthProvider( + (com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_AUTH_PROVIDER: + serviceImpl.updateAuthProvider( + (com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_AUTH_PROVIDER: + serviceImpl.deleteAuthProvider( + (com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UNDELETE_AUTH_PROVIDER: + serviceImpl.undeleteAuthProvider( + (com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_QUERY_AUTH_PROVIDERS: + serviceImpl.queryAuthProviders( + (com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse>) + responseObserver); + break; + case METHODID_QUERY_WORKLOADS: + serviceImpl.queryWorkloads( + (com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse>) + responseObserver); + break; + case METHODID_LIST_AUTHORIZATIONS: + serviceImpl.listAuthorizations( + (com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse>) + responseObserver); + break; + case METHODID_GET_AUTHORIZATION: + serviceImpl.getAuthorization( + (com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_AUTHORIZATION: + serviceImpl.deleteAuthorization( + (com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ACCESS_SUMMARIES: + serviceImpl.listAccessSummaries( + (com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse>) + responseObserver); + break; + case METHODID_GET_ACCESS_SUMMARY: + serviceImpl.getAccessSummary( + (com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_REVOKE_AUTHORIZATION: + serviceImpl.revokeAuthorization( + (com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse>) + responseObserver); + break; + case METHODID_ENABLE_AUTH_PROVIDER: + serviceImpl.enableAuthProvider( + (com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DISABLE_AUTH_PROVIDER: + serviceImpl.disableAuthProvider( + (com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest) 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(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListAuthProvidersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest, + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse>( + service, METHODID_LIST_AUTH_PROVIDERS))) + .addMethod( + getGetAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider>( + service, METHODID_GET_AUTH_PROVIDER))) + .addMethod( + getCreateAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider>( + service, METHODID_CREATE_AUTH_PROVIDER))) + .addMethod( + getUpdateAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider>( + service, METHODID_UPDATE_AUTH_PROVIDER))) + .addMethod( + getDeleteAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_AUTH_PROVIDER))) + .addMethod( + getUndeleteAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider>( + service, METHODID_UNDELETE_AUTH_PROVIDER))) + .addMethod( + getQueryAuthProvidersMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest, + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse>( + service, METHODID_QUERY_AUTH_PROVIDERS))) + .addMethod( + getQueryWorkloadsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest, + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse>( + service, METHODID_QUERY_WORKLOADS))) + .addMethod( + getListAuthorizationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest, + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse>( + service, METHODID_LIST_AUTHORIZATIONS))) + .addMethod( + getGetAuthorizationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest, + com.google.cloud.agentidentity.v1beta.Authorization>( + service, METHODID_GET_AUTHORIZATION))) + .addMethod( + getDeleteAuthorizationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_AUTHORIZATION))) + .addMethod( + getListAccessSummariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest, + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse>( + service, METHODID_LIST_ACCESS_SUMMARIES))) + .addMethod( + getGetAccessSummaryMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest, + com.google.cloud.agentidentity.v1beta.AccessSummary>( + service, METHODID_GET_ACCESS_SUMMARY))) + .addMethod( + getRevokeAuthorizationMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest, + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse>( + service, METHODID_REVOKE_AUTHORIZATION))) + .addMethod( + getEnableAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider>( + service, METHODID_ENABLE_AUTH_PROVIDER))) + .addMethod( + getDisableAuthProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest, + com.google.cloud.agentidentity.v1beta.AuthProvider>( + service, METHODID_DISABLE_AUTH_PROVIDER))) + .build(); + } + + private abstract static class AuthProviderServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AuthProviderServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AuthProviderService"); + } + } + + private static final class AuthProviderServiceFileDescriptorSupplier + extends AuthProviderServiceBaseDescriptorSupplier { + AuthProviderServiceFileDescriptorSupplier() {} + } + + private static final class AuthProviderServiceMethodDescriptorSupplier + extends AuthProviderServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AuthProviderServiceMethodDescriptorSupplier(java.lang.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 (AuthProviderServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AuthProviderServiceFileDescriptorSupplier()) + .addMethod(getListAuthProvidersMethod()) + .addMethod(getGetAuthProviderMethod()) + .addMethod(getCreateAuthProviderMethod()) + .addMethod(getUpdateAuthProviderMethod()) + .addMethod(getDeleteAuthProviderMethod()) + .addMethod(getUndeleteAuthProviderMethod()) + .addMethod(getQueryAuthProvidersMethod()) + .addMethod(getQueryWorkloadsMethod()) + .addMethod(getListAuthorizationsMethod()) + .addMethod(getGetAuthorizationMethod()) + .addMethod(getDeleteAuthorizationMethod()) + .addMethod(getListAccessSummariesMethod()) + .addMethod(getGetAccessSummaryMethod()) + .addMethod(getRevokeAuthorizationMethod()) + .addMethod(getEnableAuthProviderMethod()) + .addMethod(getDisableAuthProviderMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-agentidentity/pom.xml b/java-agentidentity/pom.xml new file mode 100644 index 000000000000..b906785d557f --- /dev/null +++ b/java-agentidentity/pom.xml @@ -0,0 +1,70 @@ + + + 4.0.0 + com.google.cloud + google-cloud-agentidentity-parent + pom + 0.1.0-SNAPSHOT + Google Agent Identity Parent + + Java idiomatic client for Google Cloud Platform services. + + + + com.google.cloud + google-cloud-jar-parent + 1.89.0-SNAPSHOT + ../google-cloud-jar-parent/pom.xml + + + + UTF-8 + UTF-8 + github + google-cloud-agentidentity-parent + + + + + + + com.google.cloud + google-cloud-agentidentity + 0.1.0-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-agentidentity-v1 + 0.1.0-SNAPSHOT + + + com.google.api.grpc + grpc-google-cloud-agentidentity-v1beta + 0.1.0-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-agentidentity-v1 + 0.1.0-SNAPSHOT + + + com.google.api.grpc + proto-google-cloud-agentidentity-v1beta + 0.1.0-SNAPSHOT + + + + + + + + google-cloud-agentidentity + grpc-google-cloud-agentidentity-v1 + grpc-google-cloud-agentidentity-v1beta + proto-google-cloud-agentidentity-v1 + proto-google-cloud-agentidentity-v1beta + + google-cloud-agentidentity-bom + + + \ No newline at end of file diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/clirr-ignored-differences.xml b/java-agentidentity/proto-google-cloud-agentidentity-v1/clirr-ignored-differences.xml new file mode 100644 index 000000000000..ca45dd4f904c --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/cloud/agentidentity/v1/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/agentidentity/v1/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/agentidentity/v1/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/cloud/agentidentity/v1/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/cloud/agentidentity/v1/** + * addRepeatedField(*) + ** + + + 7006 + com/google/cloud/agentidentity/v1/** + * clear() + ** + + + 7006 + com/google/cloud/agentidentity/v1/** + * clearField(*) + ** + + + 7006 + com/google/cloud/agentidentity/v1/** + * clearOneof(*) + ** + + + 7006 + com/google/cloud/agentidentity/v1/** + * clone() + ** + + + 7006 + com/google/cloud/agentidentity/v1/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/cloud/agentidentity/v1/** + * setField(*) + ** + + + 7006 + com/google/cloud/agentidentity/v1/** + * setRepeatedField(*) + ** + + + 7006 + com/google/cloud/agentidentity/v1/** + * setUnknownFields(*) + ** + + diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/pom.xml b/java-agentidentity/proto-google-cloud-agentidentity-v1/pom.xml new file mode 100644 index 000000000000..c96c4ab5f444 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/pom.xml @@ -0,0 +1,41 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-agentidentity-v1 + 0.1.0-SNAPSHOT + proto-google-cloud-agentidentity-v1 + Proto library for google-cloud-agentidentity + + com.google.cloud + google-cloud-agentidentity-parent + 0.1.0-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + org.jspecify + jspecify + + + diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AccessSummary.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AccessSummary.java new file mode 100644 index 000000000000..02a5324b9704 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AccessSummary.java @@ -0,0 +1,3171 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message describing AccessSummary object
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.AccessSummary} + */ +@com.google.protobuf.Generated +public final class AccessSummary extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.AccessSummary) + AccessSummaryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AccessSummary"); + } + + // Use AccessSummary.newBuilder() to construct. + private AccessSummary(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AccessSummary() { + name_ = ""; + userId_ = ""; + workloadId_ = ""; + tokenUrl_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + authProvider_ = ""; + authProviderType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AccessSummary_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AccessSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.AccessSummary.class, + com.google.cloud.agentidentity.v1.AccessSummary.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. Identifier. Name of the AccessSummary
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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; + } + } + + /** + * + * + *
+   * Output only. Identifier. Name of the AccessSummary
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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 FIRST_ACCESS_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp firstAccessTime_; + + /** + * + * + *
+   * Output only. The first time this user has interacted with this workload.
+   * Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the firstAccessTime field is set. + */ + @java.lang.Override + public boolean hasFirstAccessTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The first time this user has interacted with this workload.
+   * Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firstAccessTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFirstAccessTime() { + return firstAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : firstAccessTime_; + } + + /** + * + * + *
+   * Output only. The first time this user has interacted with this workload.
+   * Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFirstAccessTimeOrBuilder() { + return firstAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : firstAccessTime_; + } + + public static final int LAST_ACCESS_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp lastAccessTime_; + + /** + * + * + *
+   * Output only. The most recent time this user has interacted with this
+   * workload. Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastAccessTime field is set. + */ + @java.lang.Override + public boolean hasLastAccessTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The most recent time this user has interacted with this
+   * workload. Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastAccessTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastAccessTime() { + return lastAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAccessTime_; + } + + /** + * + * + *
+   * Output only. The most recent time this user has interacted with this
+   * workload. Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastAccessTimeOrBuilder() { + return lastAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAccessTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AccessSummary_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int USER_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + + /** + * + * + *
+   * Output only. The user_id provided by the workload application for this
+   * user. Not verified by Google.
+   * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + 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(); + userId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The user_id provided by the workload application for this
+   * user. Not verified by Google.
+   * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKLOAD_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object workloadId_ = ""; + + /** + * + * + *
+   * Output only. The identity bound to the workload that this user interacted
+   * with to produce this AccessSummary. Will typically be an agentic spiffe id
+   * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadId. + */ + @java.lang.Override + public java.lang.String getWorkloadId() { + java.lang.Object ref = workloadId_; + 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(); + workloadId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The identity bound to the workload that this user interacted
+   * with to produce this AccessSummary. Will typically be an agentic spiffe id
+   * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkloadIdBytes() { + java.lang.Object ref = workloadId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_URL_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object tokenUrl_ = ""; + + /** + * + * + *
+   * Output only. The url of the authentication server that was accessed.
+   * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tokenUrl. + */ + @java.lang.Override + public java.lang.String getTokenUrl() { + java.lang.Object ref = tokenUrl_; + 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(); + tokenUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The url of the authentication server that was accessed.
+   * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tokenUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenUrlBytes() { + java.lang.Object ref = tokenUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + return scopes_; + } + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + public static final int AUTH_PROVIDER_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object authProvider_ = ""; + + /** + * + * + *
+   * Output only. The auth_provider that this access summary is associated with.
+   * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The authProvider. + */ + @java.lang.Override + public java.lang.String getAuthProvider() { + java.lang.Object ref = authProvider_; + 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(); + authProvider_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The auth_provider that this access summary is associated with.
+   * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for authProvider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthProviderBytes() { + java.lang.Object ref = authProvider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PURGE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp purgeTime_; + + /** + * + * + *
+   * Output only. The time when this access summary is permanently deleted.
+   * 
+ * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the purgeTime field is set. + */ + @java.lang.Override + public boolean hasPurgeTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The time when this access summary is permanently deleted.
+   * 
+ * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The purgeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getPurgeTime() { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } + + /** + * + * + *
+   * Output only. The time when this access summary is permanently deleted.
+   * 
+ * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } + + public static final int AUTH_PROVIDER_TYPE_FIELD_NUMBER = 11; + private int authProviderType_ = 0; + + /** + * + * + *
+   * Output only. The type of the connector that was used to create this access
+   * summary.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for authProviderType. + */ + @java.lang.Override + public int getAuthProviderTypeValue() { + return authProviderType_; + } + + /** + * + * + *
+   * Output only. The type of the connector that was used to create this access
+   * summary.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The authProviderType. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProviderType getAuthProviderType() { + com.google.cloud.agentidentity.v1.AuthProviderType result = + com.google.cloud.agentidentity.v1.AuthProviderType.forNumber(authProviderType_); + return result == null + ? com.google.cloud.agentidentity.v1.AuthProviderType.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFirstAccessTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getLastAccessTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, userId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workloadId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, workloadId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, tokenUrl_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, scopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProvider_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, authProvider_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getPurgeTime()); + } + if (authProviderType_ + != com.google.cloud.agentidentity.v1.AuthProviderType.AUTH_PROVIDER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, authProviderType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFirstAccessTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastAccessTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, userId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workloadId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, workloadId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, tokenUrl_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProvider_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, authProvider_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getPurgeTime()); + } + if (authProviderType_ + != com.google.cloud.agentidentity.v1.AuthProviderType.AUTH_PROVIDER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, authProviderType_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.AccessSummary)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.AccessSummary other = + (com.google.cloud.agentidentity.v1.AccessSummary) obj; + + if (!getName().equals(other.getName())) return false; + if (hasFirstAccessTime() != other.hasFirstAccessTime()) return false; + if (hasFirstAccessTime()) { + if (!getFirstAccessTime().equals(other.getFirstAccessTime())) return false; + } + if (hasLastAccessTime() != other.hasLastAccessTime()) return false; + if (hasLastAccessTime()) { + if (!getLastAccessTime().equals(other.getLastAccessTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getUserId().equals(other.getUserId())) return false; + if (!getWorkloadId().equals(other.getWorkloadId())) return false; + if (!getTokenUrl().equals(other.getTokenUrl())) return false; + if (!getScopesList().equals(other.getScopesList())) return false; + if (!getAuthProvider().equals(other.getAuthProvider())) return false; + if (hasPurgeTime() != other.hasPurgeTime()) return false; + if (hasPurgeTime()) { + if (!getPurgeTime().equals(other.getPurgeTime())) return false; + } + if (authProviderType_ != other.authProviderType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasFirstAccessTime()) { + hash = (37 * hash) + FIRST_ACCESS_TIME_FIELD_NUMBER; + hash = (53 * hash) + getFirstAccessTime().hashCode(); + } + if (hasLastAccessTime()) { + hash = (37 * hash) + LAST_ACCESS_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastAccessTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (37 * hash) + WORKLOAD_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadId().hashCode(); + hash = (37 * hash) + TOKEN_URL_FIELD_NUMBER; + hash = (53 * hash) + getTokenUrl().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvider().hashCode(); + if (hasPurgeTime()) { + hash = (37 * hash) + PURGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPurgeTime().hashCode(); + } + hash = (37 * hash) + AUTH_PROVIDER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + authProviderType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.AccessSummary parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.AccessSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.AccessSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.AccessSummary 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.cloud.agentidentity.v1.AccessSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.AccessSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.AccessSummary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.AccessSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.AccessSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.AccessSummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.AccessSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.AccessSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.AccessSummary 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing AccessSummary object
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.AccessSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.AccessSummary) + com.google.cloud.agentidentity.v1.AccessSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AccessSummary_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AccessSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.AccessSummary.class, + com.google.cloud.agentidentity.v1.AccessSummary.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.AccessSummary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFirstAccessTimeFieldBuilder(); + internalGetLastAccessTimeFieldBuilder(); + internalGetPurgeTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + firstAccessTime_ = null; + if (firstAccessTimeBuilder_ != null) { + firstAccessTimeBuilder_.dispose(); + firstAccessTimeBuilder_ = null; + } + lastAccessTime_ = null; + if (lastAccessTimeBuilder_ != null) { + lastAccessTimeBuilder_.dispose(); + lastAccessTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + userId_ = ""; + workloadId_ = ""; + tokenUrl_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + authProvider_ = ""; + purgeTime_ = null; + if (purgeTimeBuilder_ != null) { + purgeTimeBuilder_.dispose(); + purgeTimeBuilder_ = null; + } + authProviderType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AccessSummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.AccessSummary getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.AccessSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.AccessSummary build() { + com.google.cloud.agentidentity.v1.AccessSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.AccessSummary buildPartial() { + com.google.cloud.agentidentity.v1.AccessSummary result = + new com.google.cloud.agentidentity.v1.AccessSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.AccessSummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.firstAccessTime_ = + firstAccessTimeBuilder_ == null ? firstAccessTime_ : firstAccessTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lastAccessTime_ = + lastAccessTimeBuilder_ == null ? lastAccessTime_ : lastAccessTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.userId_ = userId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.workloadId_ = workloadId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.tokenUrl_ = tokenUrl_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.authProvider_ = authProvider_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.purgeTime_ = purgeTimeBuilder_ == null ? purgeTime_ : purgeTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.authProviderType_ = authProviderType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.AccessSummary) { + return mergeFrom((com.google.cloud.agentidentity.v1.AccessSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.AccessSummary other) { + if (other == com.google.cloud.agentidentity.v1.AccessSummary.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFirstAccessTime()) { + mergeFirstAccessTime(other.getFirstAccessTime()); + } + if (other.hasLastAccessTime()) { + mergeLastAccessTime(other.getLastAccessTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getWorkloadId().isEmpty()) { + workloadId_ = other.workloadId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getTokenUrl().isEmpty()) { + tokenUrl_ = other.tokenUrl_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000080; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (!other.getAuthProvider().isEmpty()) { + authProvider_ = other.authProvider_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasPurgeTime()) { + mergePurgeTime(other.getPurgeTime()); + } + if (other.authProviderType_ != 0) { + setAuthProviderTypeValue(other.getAuthProviderTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetFirstAccessTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetLastAccessTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + workloadId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + tokenUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 66 + case 74: + { + authProvider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetPurgeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: + { + authProviderType_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 88 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Output only. Identifier. Name of the AccessSummary
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Identifier. Name of the AccessSummary
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Identifier. Name of the AccessSummary
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. Name of the AccessSummary
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. Name of the AccessSummary
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp firstAccessTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + firstAccessTimeBuilder_; + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the firstAccessTime field is set. + */ + public boolean hasFirstAccessTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firstAccessTime. + */ + public com.google.protobuf.Timestamp getFirstAccessTime() { + if (firstAccessTimeBuilder_ == null) { + return firstAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : firstAccessTime_; + } else { + return firstAccessTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFirstAccessTime(com.google.protobuf.Timestamp value) { + if (firstAccessTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + firstAccessTime_ = value; + } else { + firstAccessTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFirstAccessTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (firstAccessTimeBuilder_ == null) { + firstAccessTime_ = builderForValue.build(); + } else { + firstAccessTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeFirstAccessTime(com.google.protobuf.Timestamp value) { + if (firstAccessTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && firstAccessTime_ != null + && firstAccessTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getFirstAccessTimeBuilder().mergeFrom(value); + } else { + firstAccessTime_ = value; + } + } else { + firstAccessTimeBuilder_.mergeFrom(value); + } + if (firstAccessTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearFirstAccessTime() { + bitField0_ = (bitField0_ & ~0x00000002); + firstAccessTime_ = null; + if (firstAccessTimeBuilder_ != null) { + firstAccessTimeBuilder_.dispose(); + firstAccessTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getFirstAccessTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFirstAccessTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getFirstAccessTimeOrBuilder() { + if (firstAccessTimeBuilder_ != null) { + return firstAccessTimeBuilder_.getMessageOrBuilder(); + } else { + return firstAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : firstAccessTime_; + } + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetFirstAccessTimeFieldBuilder() { + if (firstAccessTimeBuilder_ == null) { + firstAccessTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getFirstAccessTime(), getParentForChildren(), isClean()); + firstAccessTime_ = null; + } + return firstAccessTimeBuilder_; + } + + private com.google.protobuf.Timestamp lastAccessTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastAccessTimeBuilder_; + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastAccessTime field is set. + */ + public boolean hasLastAccessTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastAccessTime. + */ + public com.google.protobuf.Timestamp getLastAccessTime() { + if (lastAccessTimeBuilder_ == null) { + return lastAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAccessTime_; + } else { + return lastAccessTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastAccessTime(com.google.protobuf.Timestamp value) { + if (lastAccessTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastAccessTime_ = value; + } else { + lastAccessTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastAccessTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastAccessTimeBuilder_ == null) { + lastAccessTime_ = builderForValue.build(); + } else { + lastAccessTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastAccessTime(com.google.protobuf.Timestamp value) { + if (lastAccessTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && lastAccessTime_ != null + && lastAccessTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastAccessTimeBuilder().mergeFrom(value); + } else { + lastAccessTime_ = value; + } + } else { + lastAccessTimeBuilder_.mergeFrom(value); + } + if (lastAccessTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastAccessTime() { + bitField0_ = (bitField0_ & ~0x00000004); + lastAccessTime_ = null; + if (lastAccessTimeBuilder_ != null) { + lastAccessTimeBuilder_.dispose(); + lastAccessTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastAccessTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetLastAccessTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastAccessTimeOrBuilder() { + if (lastAccessTimeBuilder_ != null) { + return lastAccessTimeBuilder_.getMessageOrBuilder(); + } else { + return lastAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAccessTime_; + } + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetLastAccessTimeFieldBuilder() { + if (lastAccessTimeBuilder_ == null) { + lastAccessTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastAccessTime(), getParentForChildren(), isClean()); + lastAccessTime_ = null; + } + return lastAccessTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object userId_ = ""; + + /** + * + * + *
+     * Output only. The user_id provided by the workload application for this
+     * user. Not verified by Google.
+     * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The user_id provided by the workload application for this
+     * user. Not verified by Google.
+     * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The user_id provided by the workload application for this
+     * user. Not verified by Google.
+     * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The user_id provided by the workload application for this
+     * user. Not verified by Google.
+     * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The user_id provided by the workload application for this
+     * user. Not verified by Google.
+     * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object workloadId_ = ""; + + /** + * + * + *
+     * Output only. The identity bound to the workload that this user interacted
+     * with to produce this AccessSummary. Will typically be an agentic spiffe id
+     * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadId. + */ + public java.lang.String getWorkloadId() { + java.lang.Object ref = workloadId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The identity bound to the workload that this user interacted
+     * with to produce this AccessSummary. Will typically be an agentic spiffe id
+     * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadId. + */ + public com.google.protobuf.ByteString getWorkloadIdBytes() { + java.lang.Object ref = workloadId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The identity bound to the workload that this user interacted
+     * with to produce this AccessSummary. Will typically be an agentic spiffe id
+     * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The workloadId to set. + * @return This builder for chaining. + */ + public Builder setWorkloadId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workloadId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The identity bound to the workload that this user interacted
+     * with to produce this AccessSummary. Will typically be an agentic spiffe id
+     * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadId() { + workloadId_ = getDefaultInstance().getWorkloadId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The identity bound to the workload that this user interacted
+     * with to produce this AccessSummary. Will typically be an agentic spiffe id
+     * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for workloadId to set. + * @return This builder for chaining. + */ + public Builder setWorkloadIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object tokenUrl_ = ""; + + /** + * + * + *
+     * Output only. The url of the authentication server that was accessed.
+     * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tokenUrl. + */ + public java.lang.String getTokenUrl() { + java.lang.Object ref = tokenUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The url of the authentication server that was accessed.
+     * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tokenUrl. + */ + public com.google.protobuf.ByteString getTokenUrlBytes() { + java.lang.Object ref = tokenUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The url of the authentication server that was accessed.
+     * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The tokenUrl to set. + * @return This builder for chaining. + */ + public Builder setTokenUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tokenUrl_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The url of the authentication server that was accessed.
+     * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTokenUrl() { + tokenUrl_ = getDefaultInstance().getTokenUrl(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The url of the authentication server that was accessed.
+     * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for tokenUrl to set. + * @return This builder for chaining. + */ + public Builder setTokenUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tokenUrl_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000080; + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes(java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object authProvider_ = ""; + + /** + * + * + *
+     * Output only. The auth_provider that this access summary is associated with.
+     * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The authProvider. + */ + public java.lang.String getAuthProvider() { + java.lang.Object ref = authProvider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProvider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The auth_provider that this access summary is associated with.
+     * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for authProvider. + */ + public com.google.protobuf.ByteString getAuthProviderBytes() { + java.lang.Object ref = authProvider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The auth_provider that this access summary is associated with.
+     * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The authProvider to set. + * @return This builder for chaining. + */ + public Builder setAuthProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authProvider_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The auth_provider that this access summary is associated with.
+     * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAuthProvider() { + authProvider_ = getDefaultInstance().getAuthProvider(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The auth_provider that this access summary is associated with.
+     * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for authProvider to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authProvider_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp purgeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + purgeTimeBuilder_; + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the purgeTime field is set. + */ + public boolean hasPurgeTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The purgeTime. + */ + public com.google.protobuf.Timestamp getPurgeTime() { + if (purgeTimeBuilder_ == null) { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } else { + return purgeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPurgeTime(com.google.protobuf.Timestamp value) { + if (purgeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + purgeTime_ = value; + } else { + purgeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPurgeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (purgeTimeBuilder_ == null) { + purgeTime_ = builderForValue.build(); + } else { + purgeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePurgeTime(com.google.protobuf.Timestamp value) { + if (purgeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && purgeTime_ != null + && purgeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getPurgeTimeBuilder().mergeFrom(value); + } else { + purgeTime_ = value; + } + } else { + purgeTimeBuilder_.mergeFrom(value); + } + if (purgeTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPurgeTime() { + bitField0_ = (bitField0_ & ~0x00000200); + purgeTime_ = null; + if (purgeTimeBuilder_ != null) { + purgeTimeBuilder_.dispose(); + purgeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getPurgeTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetPurgeTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { + if (purgeTimeBuilder_ != null) { + return purgeTimeBuilder_.getMessageOrBuilder(); + } else { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetPurgeTimeFieldBuilder() { + if (purgeTimeBuilder_ == null) { + purgeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPurgeTime(), getParentForChildren(), isClean()); + purgeTime_ = null; + } + return purgeTimeBuilder_; + } + + private int authProviderType_ = 0; + + /** + * + * + *
+     * Output only. The type of the connector that was used to create this access
+     * summary.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for authProviderType. + */ + @java.lang.Override + public int getAuthProviderTypeValue() { + return authProviderType_; + } + + /** + * + * + *
+     * Output only. The type of the connector that was used to create this access
+     * summary.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for authProviderType to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderTypeValue(int value) { + authProviderType_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the connector that was used to create this access
+     * summary.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The authProviderType. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProviderType getAuthProviderType() { + com.google.cloud.agentidentity.v1.AuthProviderType result = + com.google.cloud.agentidentity.v1.AuthProviderType.forNumber(authProviderType_); + return result == null + ? com.google.cloud.agentidentity.v1.AuthProviderType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The type of the connector that was used to create this access
+     * summary.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The authProviderType to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderType(com.google.cloud.agentidentity.v1.AuthProviderType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + authProviderType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the connector that was used to create this access
+     * summary.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAuthProviderType() { + bitField0_ = (bitField0_ & ~0x00000400); + authProviderType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.AccessSummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.AccessSummary) + private static final com.google.cloud.agentidentity.v1.AccessSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.AccessSummary(); + } + + public static com.google.cloud.agentidentity.v1.AccessSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.AccessSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AccessSummaryName.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AccessSummaryName.java new file mode 100644 index 000000000000..c9c6ea129a5f --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AccessSummaryName.java @@ -0,0 +1,230 @@ +/* + * Copyright 2026 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.agentidentity.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AccessSummaryName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ACCESS_SUMMARY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/accessSummaries/{access_summary}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String accessSummary; + + @Deprecated + protected AccessSummaryName() { + project = null; + location = null; + accessSummary = null; + } + + private AccessSummaryName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + accessSummary = Preconditions.checkNotNull(builder.getAccessSummary()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAccessSummary() { + return accessSummary; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AccessSummaryName of(String project, String location, String accessSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAccessSummary(accessSummary) + .build(); + } + + public static String format(String project, String location, String accessSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAccessSummary(accessSummary) + .build() + .toString(); + } + + public static @Nullable AccessSummaryName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ACCESS_SUMMARY.validatedMatch( + formattedString, "AccessSummaryName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("access_summary")); + } + + 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<@Nullable AccessSummaryName> values) { + List list = new ArrayList<>(values.size()); + for (AccessSummaryName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ACCESS_SUMMARY.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 (location != null) { + fieldMapBuilder.put("location", location); + } + if (accessSummary != null) { + fieldMapBuilder.put("access_summary", accessSummary); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ACCESS_SUMMARY.instantiate( + "project", project, "location", location, "access_summary", accessSummary); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AccessSummaryName that = ((AccessSummaryName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.accessSummary, that.accessSummary); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(accessSummary); + return h; + } + + /** Builder for projects/{project}/locations/{location}/accessSummaries/{access_summary}. */ + public static class Builder { + private String project; + private String location; + private String accessSummary; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAccessSummary() { + return accessSummary; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAccessSummary(String accessSummary) { + this.accessSummary = accessSummary; + return this; + } + + private Builder(AccessSummaryName accessSummaryName) { + this.project = accessSummaryName.project; + this.location = accessSummaryName.location; + this.accessSummary = accessSummaryName.accessSummary; + } + + public AccessSummaryName build() { + return new AccessSummaryName(this); + } + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AccessSummaryOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AccessSummaryOrBuilder.java new file mode 100644 index 000000000000..325a43623893 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AccessSummaryOrBuilder.java @@ -0,0 +1,455 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface AccessSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.AccessSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Identifier. Name of the AccessSummary
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Output only. Identifier. Name of the AccessSummary
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The first time this user has interacted with this workload.
+   * Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the firstAccessTime field is set. + */ + boolean hasFirstAccessTime(); + + /** + * + * + *
+   * Output only. The first time this user has interacted with this workload.
+   * Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firstAccessTime. + */ + com.google.protobuf.Timestamp getFirstAccessTime(); + + /** + * + * + *
+   * Output only. The first time this user has interacted with this workload.
+   * Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getFirstAccessTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The most recent time this user has interacted with this
+   * workload. Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastAccessTime field is set. + */ + boolean hasLastAccessTime(); + + /** + * + * + *
+   * Output only. The most recent time this user has interacted with this
+   * workload. Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastAccessTime. + */ + com.google.protobuf.Timestamp getLastAccessTime(); + + /** + * + * + *
+   * Output only. The most recent time this user has interacted with this
+   * workload. Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastAccessTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The user_id provided by the workload application for this
+   * user. Not verified by Google.
+   * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userId. + */ + java.lang.String getUserId(); + + /** + * + * + *
+   * Output only. The user_id provided by the workload application for this
+   * user. Not verified by Google.
+   * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for userId. + */ + com.google.protobuf.ByteString getUserIdBytes(); + + /** + * + * + *
+   * Output only. The identity bound to the workload that this user interacted
+   * with to produce this AccessSummary. Will typically be an agentic spiffe id
+   * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadId. + */ + java.lang.String getWorkloadId(); + + /** + * + * + *
+   * Output only. The identity bound to the workload that this user interacted
+   * with to produce this AccessSummary. Will typically be an agentic spiffe id
+   * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadId. + */ + com.google.protobuf.ByteString getWorkloadIdBytes(); + + /** + * + * + *
+   * Output only. The url of the authentication server that was accessed.
+   * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tokenUrl. + */ + java.lang.String getTokenUrl(); + + /** + * + * + *
+   * Output only. The url of the authentication server that was accessed.
+   * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tokenUrl. + */ + com.google.protobuf.ByteString getTokenUrlBytes(); + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scopes. + */ + java.util.List getScopesList(); + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scopes. + */ + int getScopesCount(); + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString getScopesBytes(int index); + + /** + * + * + *
+   * Output only. The auth_provider that this access summary is associated with.
+   * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The authProvider. + */ + java.lang.String getAuthProvider(); + + /** + * + * + *
+   * Output only. The auth_provider that this access summary is associated with.
+   * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for authProvider. + */ + com.google.protobuf.ByteString getAuthProviderBytes(); + + /** + * + * + *
+   * Output only. The time when this access summary is permanently deleted.
+   * 
+ * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the purgeTime field is set. + */ + boolean hasPurgeTime(); + + /** + * + * + *
+   * Output only. The time when this access summary is permanently deleted.
+   * 
+ * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The purgeTime. + */ + com.google.protobuf.Timestamp getPurgeTime(); + + /** + * + * + *
+   * Output only. The time when this access summary is permanently deleted.
+   * 
+ * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The type of the connector that was used to create this access
+   * summary.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for authProviderType. + */ + int getAuthProviderTypeValue(); + + /** + * + * + *
+   * Output only. The type of the connector that was used to create this access
+   * summary.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The authProviderType. + */ + com.google.cloud.agentidentity.v1.AuthProviderType getAuthProviderType(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ApiKeyParams.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ApiKeyParams.java new file mode 100644 index 000000000000..b45e7e28d8ad --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ApiKeyParams.java @@ -0,0 +1,609 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message describing ApiKeyParams object.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ApiKeyParams} + */ +@com.google.protobuf.Generated +public final class ApiKeyParams extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.ApiKeyParams) + ApiKeyParamsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ApiKeyParams"); + } + + // Use ApiKeyParams.newBuilder() to construct. + private ApiKeyParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ApiKeyParams() { + apiKey_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ApiKeyParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ApiKeyParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ApiKeyParams.class, + com.google.cloud.agentidentity.v1.ApiKeyParams.Builder.class); + } + + public static final int API_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiKey_ = ""; + + /** + * + * + *
+   * Optional. Input only. The API key for this auth_provider.
+   * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The apiKey. + */ + @java.lang.Override + public java.lang.String getApiKey() { + java.lang.Object ref = apiKey_; + 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(); + apiKey_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Input only. The API key for this auth_provider.
+   * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for apiKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiKeyBytes() { + java.lang.Object ref = apiKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKey_ = 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.GeneratedMessage.isStringEmpty(apiKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, apiKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, apiKey_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.ApiKeyParams)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.ApiKeyParams other = + (com.google.cloud.agentidentity.v1.ApiKeyParams) obj; + + if (!getApiKey().equals(other.getApiKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + API_KEY_FIELD_NUMBER; + hash = (53 * hash) + getApiKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.ApiKeyParams parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ApiKeyParams parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ApiKeyParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ApiKeyParams 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.cloud.agentidentity.v1.ApiKeyParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ApiKeyParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ApiKeyParams parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ApiKeyParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ApiKeyParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ApiKeyParams parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ApiKeyParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ApiKeyParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.ApiKeyParams 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing ApiKeyParams object.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ApiKeyParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.ApiKeyParams) + com.google.cloud.agentidentity.v1.ApiKeyParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ApiKeyParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ApiKeyParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ApiKeyParams.class, + com.google.cloud.agentidentity.v1.ApiKeyParams.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.ApiKeyParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apiKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ApiKeyParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ApiKeyParams getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.ApiKeyParams.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ApiKeyParams build() { + com.google.cloud.agentidentity.v1.ApiKeyParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ApiKeyParams buildPartial() { + com.google.cloud.agentidentity.v1.ApiKeyParams result = + new com.google.cloud.agentidentity.v1.ApiKeyParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.ApiKeyParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apiKey_ = apiKey_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.ApiKeyParams) { + return mergeFrom((com.google.cloud.agentidentity.v1.ApiKeyParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.ApiKeyParams other) { + if (other == com.google.cloud.agentidentity.v1.ApiKeyParams.getDefaultInstance()) return this; + if (!other.getApiKey().isEmpty()) { + apiKey_ = other.apiKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + apiKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object apiKey_ = ""; + + /** + * + * + *
+     * Optional. Input only. The API key for this auth_provider.
+     * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The apiKey. + */ + public java.lang.String getApiKey() { + java.lang.Object ref = apiKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Input only. The API key for this auth_provider.
+     * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for apiKey. + */ + public com.google.protobuf.ByteString getApiKeyBytes() { + java.lang.Object ref = apiKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Input only. The API key for this auth_provider.
+     * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The apiKey to set. + * @return This builder for chaining. + */ + public Builder setApiKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. The API key for this auth_provider.
+     * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearApiKey() { + apiKey_ = getDefaultInstance().getApiKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. The API key for this auth_provider.
+     * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The bytes for apiKey to set. + * @return This builder for chaining. + */ + public Builder setApiKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.ApiKeyParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.ApiKeyParams) + private static final com.google.cloud.agentidentity.v1.ApiKeyParams DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.ApiKeyParams(); + } + + public static com.google.cloud.agentidentity.v1.ApiKeyParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiKeyParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.ApiKeyParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ApiKeyParamsOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ApiKeyParamsOrBuilder.java new file mode 100644 index 000000000000..1170b302b114 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ApiKeyParamsOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface ApiKeyParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.ApiKeyParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Input only. The API key for this auth_provider.
+   * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The apiKey. + */ + java.lang.String getApiKey(); + + /** + * + * + *
+   * Optional. Input only. The API key for this auth_provider.
+   * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for apiKey. + */ + com.google.protobuf.ByteString getApiKeyBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProvider.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProvider.java new file mode 100644 index 000000000000..5ccc38807237 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProvider.java @@ -0,0 +1,5792 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message describing AuthProvider object
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.AuthProvider} + */ +@com.google.protobuf.Generated +public final class AuthProvider extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.AuthProvider) + AuthProviderOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthProvider"); + } + + // Use AuthProvider.newBuilder() to construct. + private AuthProvider(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AuthProvider() { + name_ = ""; + allowedScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockedScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + description_ = ""; + state_ = 0; + workloadIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AuthProvider_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AuthProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.AuthProvider.class, + com.google.cloud.agentidentity.v1.AuthProvider.Builder.class); + } + + /** + * + * + *
+   * Represents the state of the auth_provider.
+   * 
+ * + * Protobuf enum {@code google.cloud.agentidentity.v1.AuthProvider.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Enabled and can be used.
+     * 
+ * + * ENABLED = 1; + */ + ENABLED(1), + /** + * + * + *
+     * Disabled and cannot be used.
+     * 
+ * + * DISABLED = 2; + */ + DISABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Enabled and can be used.
+     * 
+ * + * ENABLED = 1; + */ + public static final int ENABLED_VALUE = 1; + + /** + * + * + *
+     * Disabled and cannot be used.
+     * 
+ * + * DISABLED = 2; + */ + public static final int DISABLED_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProvider.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentidentity.v1.AuthProvider.State) + } + + public interface AuthProviderTypeParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * ThreeLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + * + * @return Whether the threeLeggedOauth field is set. + */ + boolean hasThreeLeggedOauth(); + + /** + * + * + *
+     * ThreeLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + * + * @return The threeLeggedOauth. + */ + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth getThreeLeggedOauth(); + + /** + * + * + *
+     * ThreeLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + */ + com.google.cloud.agentidentity.v1.ThreeLeggedOAuthOrBuilder getThreeLeggedOauthOrBuilder(); + + /** + * + * + *
+     * TwoLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + * + * @return Whether the twoLeggedOauth field is set. + */ + boolean hasTwoLeggedOauth(); + + /** + * + * + *
+     * TwoLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + * + * @return The twoLeggedOauth. + */ + com.google.cloud.agentidentity.v1.TwoLeggedOAuth getTwoLeggedOauth(); + + /** + * + * + *
+     * TwoLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + */ + com.google.cloud.agentidentity.v1.TwoLeggedOAuthOrBuilder getTwoLeggedOauthOrBuilder(); + + /** + * + * + *
+     * ApiKey AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + * + * @return Whether the apiKey field is set. + */ + boolean hasApiKey(); + + /** + * + * + *
+     * ApiKey AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + * + * @return The apiKey. + */ + com.google.cloud.agentidentity.v1.ApiKeyParams getApiKey(); + + /** + * + * + *
+     * ApiKey AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + */ + com.google.cloud.agentidentity.v1.ApiKeyParamsOrBuilder getApiKeyOrBuilder(); + + /** + * + * + *
+     * GeminiEnterprise auth_provider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + * + * @return Whether the geAuthProvider field is set. + */ + boolean hasGeAuthProvider(); + + /** + * + * + *
+     * GeminiEnterprise auth_provider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + * + * @return The geAuthProvider. + */ + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams getGeAuthProvider(); + + /** + * + * + *
+     * GeminiEnterprise auth_provider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParamsOrBuilder + getGeAuthProviderOrBuilder(); + + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.TypeCase getTypeCase(); + } + + /** + * + * + *
+   * AuthProvider type specific parameters.
+   * Required when creating an auth_provider.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams} + */ + public static final class AuthProviderTypeParams extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams) + AuthProviderTypeParamsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthProviderTypeParams"); + } + + // Use AuthProviderTypeParams.newBuilder() to construct. + private AuthProviderTypeParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AuthProviderTypeParams() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AuthProvider_AuthProviderTypeParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AuthProvider_AuthProviderTypeParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.class, + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.Builder.class); + } + + private int typeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object type_; + + public enum TypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + THREE_LEGGED_OAUTH(1), + TWO_LEGGED_OAUTH(2), + API_KEY(3), + GE_AUTH_PROVIDER(4), + TYPE_NOT_SET(0); + private final int value; + + private TypeCase(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 TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: + return THREE_LEGGED_OAUTH; + case 2: + return TWO_LEGGED_OAUTH; + case 3: + return API_KEY; + case 4: + return GE_AUTH_PROVIDER; + case 0: + return TYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public static final int THREE_LEGGED_OAUTH_FIELD_NUMBER = 1; + + /** + * + * + *
+     * ThreeLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + * + * @return Whether the threeLeggedOauth field is set. + */ + @java.lang.Override + public boolean hasThreeLeggedOauth() { + return typeCase_ == 1; + } + + /** + * + * + *
+     * ThreeLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + * + * @return The threeLeggedOauth. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.ThreeLeggedOAuth getThreeLeggedOauth() { + if (typeCase_ == 1) { + return (com.google.cloud.agentidentity.v1.ThreeLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.getDefaultInstance(); + } + + /** + * + * + *
+     * ThreeLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.ThreeLeggedOAuthOrBuilder + getThreeLeggedOauthOrBuilder() { + if (typeCase_ == 1) { + return (com.google.cloud.agentidentity.v1.ThreeLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.getDefaultInstance(); + } + + public static final int TWO_LEGGED_OAUTH_FIELD_NUMBER = 2; + + /** + * + * + *
+     * TwoLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + * + * @return Whether the twoLeggedOauth field is set. + */ + @java.lang.Override + public boolean hasTwoLeggedOauth() { + return typeCase_ == 2; + } + + /** + * + * + *
+     * TwoLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + * + * @return The twoLeggedOauth. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.TwoLeggedOAuth getTwoLeggedOauth() { + if (typeCase_ == 2) { + return (com.google.cloud.agentidentity.v1.TwoLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1.TwoLeggedOAuth.getDefaultInstance(); + } + + /** + * + * + *
+     * TwoLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.TwoLeggedOAuthOrBuilder getTwoLeggedOauthOrBuilder() { + if (typeCase_ == 2) { + return (com.google.cloud.agentidentity.v1.TwoLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1.TwoLeggedOAuth.getDefaultInstance(); + } + + public static final int API_KEY_FIELD_NUMBER = 3; + + /** + * + * + *
+     * ApiKey AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + * + * @return Whether the apiKey field is set. + */ + @java.lang.Override + public boolean hasApiKey() { + return typeCase_ == 3; + } + + /** + * + * + *
+     * ApiKey AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + * + * @return The apiKey. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.ApiKeyParams getApiKey() { + if (typeCase_ == 3) { + return (com.google.cloud.agentidentity.v1.ApiKeyParams) type_; + } + return com.google.cloud.agentidentity.v1.ApiKeyParams.getDefaultInstance(); + } + + /** + * + * + *
+     * ApiKey AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.ApiKeyParamsOrBuilder getApiKeyOrBuilder() { + if (typeCase_ == 3) { + return (com.google.cloud.agentidentity.v1.ApiKeyParams) type_; + } + return com.google.cloud.agentidentity.v1.ApiKeyParams.getDefaultInstance(); + } + + public static final int GE_AUTH_PROVIDER_FIELD_NUMBER = 4; + + /** + * + * + *
+     * GeminiEnterprise auth_provider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + * + * @return Whether the geAuthProvider field is set. + */ + @java.lang.Override + public boolean hasGeAuthProvider() { + return typeCase_ == 4; + } + + /** + * + * + *
+     * GeminiEnterprise auth_provider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + * + * @return The geAuthProvider. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + getGeAuthProvider() { + if (typeCase_ == 4) { + return (com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) type_; + } + return com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + .getDefaultInstance(); + } + + /** + * + * + *
+     * GeminiEnterprise auth_provider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParamsOrBuilder + getGeAuthProviderOrBuilder() { + if (typeCase_ == 4) { + return (com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) type_; + } + return com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + .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 (typeCase_ == 1) { + output.writeMessage(1, (com.google.cloud.agentidentity.v1.ThreeLeggedOAuth) type_); + } + if (typeCase_ == 2) { + output.writeMessage(2, (com.google.cloud.agentidentity.v1.TwoLeggedOAuth) type_); + } + if (typeCase_ == 3) { + output.writeMessage(3, (com.google.cloud.agentidentity.v1.ApiKeyParams) type_); + } + if (typeCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.agentidentity.v1.ThreeLeggedOAuth) type_); + } + if (typeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.agentidentity.v1.TwoLeggedOAuth) type_); + } + if (typeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.agentidentity.v1.ApiKeyParams) type_); + } + if (typeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) type_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams other = + (com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams) obj; + + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 1: + if (!getThreeLeggedOauth().equals(other.getThreeLeggedOauth())) return false; + break; + case 2: + if (!getTwoLeggedOauth().equals(other.getTwoLeggedOauth())) return false; + break; + case 3: + if (!getApiKey().equals(other.getApiKey())) return false; + break; + case 4: + if (!getGeAuthProvider().equals(other.getGeAuthProvider())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (typeCase_) { + case 1: + hash = (37 * hash) + THREE_LEGGED_OAUTH_FIELD_NUMBER; + hash = (53 * hash) + getThreeLeggedOauth().hashCode(); + break; + case 2: + hash = (37 * hash) + TWO_LEGGED_OAUTH_FIELD_NUMBER; + hash = (53 * hash) + getTwoLeggedOauth().hashCode(); + break; + case 3: + hash = (37 * hash) + API_KEY_FIELD_NUMBER; + hash = (53 * hash) + getApiKey().hashCode(); + break; + case 4: + hash = (37 * hash) + GE_AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getGeAuthProvider().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams 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.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * AuthProvider type specific parameters.
+     * Required when creating an auth_provider.
+     * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams) + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AuthProvider_AuthProviderTypeParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AuthProvider_AuthProviderTypeParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.class, + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.Builder + .class); + } + + // Construct using + // com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (threeLeggedOauthBuilder_ != null) { + threeLeggedOauthBuilder_.clear(); + } + if (twoLeggedOauthBuilder_ != null) { + twoLeggedOauthBuilder_.clear(); + } + if (apiKeyBuilder_ != null) { + apiKeyBuilder_.clear(); + } + if (geAuthProviderBuilder_ != null) { + geAuthProviderBuilder_.clear(); + } + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AuthProvider_AuthProviderTypeParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams build() { + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams buildPartial() { + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams result = + new com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams result) { + result.typeCase_ = typeCase_; + result.type_ = this.type_; + if (typeCase_ == 1 && threeLeggedOauthBuilder_ != null) { + result.type_ = threeLeggedOauthBuilder_.build(); + } + if (typeCase_ == 2 && twoLeggedOauthBuilder_ != null) { + result.type_ = twoLeggedOauthBuilder_.build(); + } + if (typeCase_ == 3 && apiKeyBuilder_ != null) { + result.type_ = apiKeyBuilder_.build(); + } + if (typeCase_ == 4 && geAuthProviderBuilder_ != null) { + result.type_ = geAuthProviderBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams) { + return mergeFrom( + (com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams other) { + if (other + == com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + .getDefaultInstance()) return this; + switch (other.getTypeCase()) { + case THREE_LEGGED_OAUTH: + { + mergeThreeLeggedOauth(other.getThreeLeggedOauth()); + break; + } + case TWO_LEGGED_OAUTH: + { + mergeTwoLeggedOauth(other.getTwoLeggedOauth()); + break; + } + case API_KEY: + { + mergeApiKey(other.getApiKey()); + break; + } + case GE_AUTH_PROVIDER: + { + mergeGeAuthProvider(other.getGeAuthProvider()); + break; + } + case TYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetThreeLeggedOauthFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTwoLeggedOauthFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetApiKeyFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetGeAuthProviderFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int typeCase_ = 0; + private java.lang.Object type_; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth, + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.Builder, + com.google.cloud.agentidentity.v1.ThreeLeggedOAuthOrBuilder> + threeLeggedOauthBuilder_; + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + * + * @return Whether the threeLeggedOauth field is set. + */ + @java.lang.Override + public boolean hasThreeLeggedOauth() { + return typeCase_ == 1; + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + * + * @return The threeLeggedOauth. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.ThreeLeggedOAuth getThreeLeggedOauth() { + if (threeLeggedOauthBuilder_ == null) { + if (typeCase_ == 1) { + return (com.google.cloud.agentidentity.v1.ThreeLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.getDefaultInstance(); + } else { + if (typeCase_ == 1) { + return threeLeggedOauthBuilder_.getMessage(); + } + return com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.getDefaultInstance(); + } + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + */ + public Builder setThreeLeggedOauth(com.google.cloud.agentidentity.v1.ThreeLeggedOAuth value) { + if (threeLeggedOauthBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + threeLeggedOauthBuilder_.setMessage(value); + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + */ + public Builder setThreeLeggedOauth( + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.Builder builderForValue) { + if (threeLeggedOauthBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + threeLeggedOauthBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + */ + public Builder mergeThreeLeggedOauth( + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth value) { + if (threeLeggedOauthBuilder_ == null) { + if (typeCase_ == 1 + && type_ != com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.getDefaultInstance()) { + type_ = + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.newBuilder( + (com.google.cloud.agentidentity.v1.ThreeLeggedOAuth) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 1) { + threeLeggedOauthBuilder_.mergeFrom(value); + } else { + threeLeggedOauthBuilder_.setMessage(value); + } + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + */ + public Builder clearThreeLeggedOauth() { + if (threeLeggedOauthBuilder_ == null) { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + } + threeLeggedOauthBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + */ + public com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.Builder + getThreeLeggedOauthBuilder() { + return internalGetThreeLeggedOauthFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.ThreeLeggedOAuthOrBuilder + getThreeLeggedOauthOrBuilder() { + if ((typeCase_ == 1) && (threeLeggedOauthBuilder_ != null)) { + return threeLeggedOauthBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 1) { + return (com.google.cloud.agentidentity.v1.ThreeLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.getDefaultInstance(); + } + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ThreeLeggedOAuth three_legged_oauth = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth, + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.Builder, + com.google.cloud.agentidentity.v1.ThreeLeggedOAuthOrBuilder> + internalGetThreeLeggedOauthFieldBuilder() { + if (threeLeggedOauthBuilder_ == null) { + if (!(typeCase_ == 1)) { + type_ = com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.getDefaultInstance(); + } + threeLeggedOauthBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth, + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.Builder, + com.google.cloud.agentidentity.v1.ThreeLeggedOAuthOrBuilder>( + (com.google.cloud.agentidentity.v1.ThreeLeggedOAuth) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 1; + onChanged(); + return threeLeggedOauthBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.TwoLeggedOAuth, + com.google.cloud.agentidentity.v1.TwoLeggedOAuth.Builder, + com.google.cloud.agentidentity.v1.TwoLeggedOAuthOrBuilder> + twoLeggedOauthBuilder_; + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + * + * @return Whether the twoLeggedOauth field is set. + */ + @java.lang.Override + public boolean hasTwoLeggedOauth() { + return typeCase_ == 2; + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + * + * @return The twoLeggedOauth. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.TwoLeggedOAuth getTwoLeggedOauth() { + if (twoLeggedOauthBuilder_ == null) { + if (typeCase_ == 2) { + return (com.google.cloud.agentidentity.v1.TwoLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1.TwoLeggedOAuth.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return twoLeggedOauthBuilder_.getMessage(); + } + return com.google.cloud.agentidentity.v1.TwoLeggedOAuth.getDefaultInstance(); + } + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + */ + public Builder setTwoLeggedOauth(com.google.cloud.agentidentity.v1.TwoLeggedOAuth value) { + if (twoLeggedOauthBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + twoLeggedOauthBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + */ + public Builder setTwoLeggedOauth( + com.google.cloud.agentidentity.v1.TwoLeggedOAuth.Builder builderForValue) { + if (twoLeggedOauthBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + twoLeggedOauthBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + */ + public Builder mergeTwoLeggedOauth(com.google.cloud.agentidentity.v1.TwoLeggedOAuth value) { + if (twoLeggedOauthBuilder_ == null) { + if (typeCase_ == 2 + && type_ != com.google.cloud.agentidentity.v1.TwoLeggedOAuth.getDefaultInstance()) { + type_ = + com.google.cloud.agentidentity.v1.TwoLeggedOAuth.newBuilder( + (com.google.cloud.agentidentity.v1.TwoLeggedOAuth) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + twoLeggedOauthBuilder_.mergeFrom(value); + } else { + twoLeggedOauthBuilder_.setMessage(value); + } + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + */ + public Builder clearTwoLeggedOauth() { + if (twoLeggedOauthBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + twoLeggedOauthBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + */ + public com.google.cloud.agentidentity.v1.TwoLeggedOAuth.Builder getTwoLeggedOauthBuilder() { + return internalGetTwoLeggedOauthFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.TwoLeggedOAuthOrBuilder + getTwoLeggedOauthOrBuilder() { + if ((typeCase_ == 2) && (twoLeggedOauthBuilder_ != null)) { + return twoLeggedOauthBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (com.google.cloud.agentidentity.v1.TwoLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1.TwoLeggedOAuth.getDefaultInstance(); + } + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.TwoLeggedOAuth two_legged_oauth = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.TwoLeggedOAuth, + com.google.cloud.agentidentity.v1.TwoLeggedOAuth.Builder, + com.google.cloud.agentidentity.v1.TwoLeggedOAuthOrBuilder> + internalGetTwoLeggedOauthFieldBuilder() { + if (twoLeggedOauthBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = com.google.cloud.agentidentity.v1.TwoLeggedOAuth.getDefaultInstance(); + } + twoLeggedOauthBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.TwoLeggedOAuth, + com.google.cloud.agentidentity.v1.TwoLeggedOAuth.Builder, + com.google.cloud.agentidentity.v1.TwoLeggedOAuthOrBuilder>( + (com.google.cloud.agentidentity.v1.TwoLeggedOAuth) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged(); + return twoLeggedOauthBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.ApiKeyParams, + com.google.cloud.agentidentity.v1.ApiKeyParams.Builder, + com.google.cloud.agentidentity.v1.ApiKeyParamsOrBuilder> + apiKeyBuilder_; + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + * + * @return Whether the apiKey field is set. + */ + @java.lang.Override + public boolean hasApiKey() { + return typeCase_ == 3; + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + * + * @return The apiKey. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.ApiKeyParams getApiKey() { + if (apiKeyBuilder_ == null) { + if (typeCase_ == 3) { + return (com.google.cloud.agentidentity.v1.ApiKeyParams) type_; + } + return com.google.cloud.agentidentity.v1.ApiKeyParams.getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return apiKeyBuilder_.getMessage(); + } + return com.google.cloud.agentidentity.v1.ApiKeyParams.getDefaultInstance(); + } + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + */ + public Builder setApiKey(com.google.cloud.agentidentity.v1.ApiKeyParams value) { + if (apiKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + apiKeyBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + */ + public Builder setApiKey( + com.google.cloud.agentidentity.v1.ApiKeyParams.Builder builderForValue) { + if (apiKeyBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + apiKeyBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + */ + public Builder mergeApiKey(com.google.cloud.agentidentity.v1.ApiKeyParams value) { + if (apiKeyBuilder_ == null) { + if (typeCase_ == 3 + && type_ != com.google.cloud.agentidentity.v1.ApiKeyParams.getDefaultInstance()) { + type_ = + com.google.cloud.agentidentity.v1.ApiKeyParams.newBuilder( + (com.google.cloud.agentidentity.v1.ApiKeyParams) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + apiKeyBuilder_.mergeFrom(value); + } else { + apiKeyBuilder_.setMessage(value); + } + } + typeCase_ = 3; + return this; + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + */ + public Builder clearApiKey() { + if (apiKeyBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + apiKeyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + */ + public com.google.cloud.agentidentity.v1.ApiKeyParams.Builder getApiKeyBuilder() { + return internalGetApiKeyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.ApiKeyParamsOrBuilder getApiKeyOrBuilder() { + if ((typeCase_ == 3) && (apiKeyBuilder_ != null)) { + return apiKeyBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (com.google.cloud.agentidentity.v1.ApiKeyParams) type_; + } + return com.google.cloud.agentidentity.v1.ApiKeyParams.getDefaultInstance(); + } + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1.ApiKeyParams api_key = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.ApiKeyParams, + com.google.cloud.agentidentity.v1.ApiKeyParams.Builder, + com.google.cloud.agentidentity.v1.ApiKeyParamsOrBuilder> + internalGetApiKeyFieldBuilder() { + if (apiKeyBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = com.google.cloud.agentidentity.v1.ApiKeyParams.getDefaultInstance(); + } + apiKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.ApiKeyParams, + com.google.cloud.agentidentity.v1.ApiKeyParams.Builder, + com.google.cloud.agentidentity.v1.ApiKeyParamsOrBuilder>( + (com.google.cloud.agentidentity.v1.ApiKeyParams) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged(); + return apiKeyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams, + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams.Builder, + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParamsOrBuilder> + geAuthProviderBuilder_; + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + * + * @return Whether the geAuthProvider field is set. + */ + @java.lang.Override + public boolean hasGeAuthProvider() { + return typeCase_ == 4; + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + * + * @return The geAuthProvider. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + getGeAuthProvider() { + if (geAuthProviderBuilder_ == null) { + if (typeCase_ == 4) { + return (com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) type_; + } + return com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + .getDefaultInstance(); + } else { + if (typeCase_ == 4) { + return geAuthProviderBuilder_.getMessage(); + } + return com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + public Builder setGeAuthProvider( + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams value) { + if (geAuthProviderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + geAuthProviderBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + public Builder setGeAuthProvider( + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams.Builder + builderForValue) { + if (geAuthProviderBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + geAuthProviderBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 4; + return this; + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + public Builder mergeGeAuthProvider( + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams value) { + if (geAuthProviderBuilder_ == null) { + if (typeCase_ == 4 + && type_ + != com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + .getDefaultInstance()) { + type_ = + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams.newBuilder( + (com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) + type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 4) { + geAuthProviderBuilder_.mergeFrom(value); + } else { + geAuthProviderBuilder_.setMessage(value); + } + } + typeCase_ = 4; + return this; + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + public Builder clearGeAuthProvider() { + if (geAuthProviderBuilder_ == null) { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + } + geAuthProviderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + public com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams.Builder + getGeAuthProviderBuilder() { + return internalGetGeAuthProviderFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParamsOrBuilder + getGeAuthProviderOrBuilder() { + if ((typeCase_ == 4) && (geAuthProviderBuilder_ != null)) { + return geAuthProviderBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 4) { + return (com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) type_; + } + return com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams, + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams.Builder, + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParamsOrBuilder> + internalGetGeAuthProviderFieldBuilder() { + if (geAuthProviderBuilder_ == null) { + if (!(typeCase_ == 4)) { + type_ = + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + .getDefaultInstance(); + } + geAuthProviderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams, + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams.Builder, + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParamsOrBuilder>( + (com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 4; + onChanged(); + return geAuthProviderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams) + private static final com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams(); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthProviderTypeParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The full resource name of the auth_provider. Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The full resource name of the auth_provider. Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AuthProvider_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int AUTH_PROVIDER_TYPE_PARAMS_FIELD_NUMBER = 5; + private com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + authProviderTypeParams_; + + /** + * + * + *
+   * Required. AuthProvider type specific parameters.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProviderTypeParams field is set. + */ + @java.lang.Override + public boolean hasAuthProviderTypeParams() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Required. AuthProvider type specific parameters.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProviderTypeParams. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + getAuthProviderTypeParams() { + return authProviderTypeParams_ == null + ? com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.getDefaultInstance() + : authProviderTypeParams_; + } + + /** + * + * + *
+   * Required. AuthProvider type specific parameters.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParamsOrBuilder + getAuthProviderTypeParamsOrBuilder() { + return authProviderTypeParams_ == null + ? com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.getDefaultInstance() + : authProviderTypeParams_; + } + + public static final int ALLOWED_SCOPES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedScopes. + */ + public com.google.protobuf.ProtocolStringList getAllowedScopesList() { + return allowedScopes_; + } + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedScopes. + */ + public int getAllowedScopesCount() { + return allowedScopes_.size(); + } + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedScopes at the given index. + */ + public java.lang.String getAllowedScopes(int index) { + return allowedScopes_.get(index); + } + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedScopes at the given index. + */ + public com.google.protobuf.ByteString getAllowedScopesBytes(int index) { + return allowedScopes_.getByteString(index); + } + + public static final int BLOCKED_SCOPES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList blockedScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the blockedScopes. + */ + public com.google.protobuf.ProtocolStringList getBlockedScopesList() { + return blockedScopes_; + } + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of blockedScopes. + */ + public int getBlockedScopesCount() { + return blockedScopes_.size(); + } + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The blockedScopes at the given index. + */ + public java.lang.String getBlockedScopes(int index) { + return blockedScopes_.get(index); + } + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the blockedScopes at the given index. + */ + public com.google.protobuf.ByteString getBlockedScopesBytes(int index) { + return blockedScopes_.getByteString(index); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. Description of the resource.
+   * Must be less than 256 characters.
+   * 
+ * + * 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. Description of the resource.
+   * Must be less than 256 characters.
+   * 
+ * + * 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 DELETED_FIELD_NUMBER = 9; + private boolean deleted_ = false; + + /** + * + * + *
+   * Output only. This is set to true if the auth_provider is deleted.
+   * 
+ * + * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp expireTime_; + + /** + * + * + *
+   * Output only. The time when the auth_provider will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The time when the auth_provider will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + /** + * + * + *
+   * Output only. The time when the auth_provider will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + public static final int STATE_FIELD_NUMBER = 11; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The state of the auth_provider.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The state of the auth_provider.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider.State getState() { + com.google.cloud.agentidentity.v1.AuthProvider.State result = + com.google.cloud.agentidentity.v1.AuthProvider.State.forNumber(state_); + return result == null + ? com.google.cloud.agentidentity.v1.AuthProvider.State.UNRECOGNIZED + : result; + } + + public static final int WORKLOAD_IDS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList workloadIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return A list containing the workloadIds. + */ + public com.google.protobuf.ProtocolStringList getWorkloadIdsList() { + return workloadIds_; + } + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The count of workloadIds. + */ + public int getWorkloadIdsCount() { + return workloadIds_.size(); + } + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The workloadIds at the given index. + */ + public java.lang.String getWorkloadIds(int index) { + return workloadIds_.get(index); + } + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the workloadIds at the given index. + */ + public com.google.protobuf.ByteString getWorkloadIdsBytes(int index) { + return workloadIds_.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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getAuthProviderTypeParams()); + } + for (int i = 0; i < allowedScopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, allowedScopes_.getRaw(i)); + } + for (int i = 0; i < blockedScopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, blockedScopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, description_); + } + if (deleted_ != false) { + output.writeBool(9, deleted_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getExpireTime()); + } + if (state_ + != com.google.cloud.agentidentity.v1.AuthProvider.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(11, state_); + } + for (int i = 0; i < workloadIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, workloadIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthProviderTypeParams()); + } + { + int dataSize = 0; + for (int i = 0; i < allowedScopes_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedScopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedScopesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < blockedScopes_.size(); i++) { + dataSize += computeStringSizeNoTag(blockedScopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getBlockedScopesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, description_); + } + if (deleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, deleted_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getExpireTime()); + } + if (state_ + != com.google.cloud.agentidentity.v1.AuthProvider.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, state_); + } + { + int dataSize = 0; + for (int i = 0; i < workloadIds_.size(); i++) { + dataSize += computeStringSizeNoTag(workloadIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getWorkloadIdsList().size(); + } + size += getUnknownFields().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.cloud.agentidentity.v1.AuthProvider)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.AuthProvider other = + (com.google.cloud.agentidentity.v1.AuthProvider) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasAuthProviderTypeParams() != other.hasAuthProviderTypeParams()) return false; + if (hasAuthProviderTypeParams()) { + if (!getAuthProviderTypeParams().equals(other.getAuthProviderTypeParams())) return false; + } + if (!getAllowedScopesList().equals(other.getAllowedScopesList())) return false; + if (!getBlockedScopesList().equals(other.getBlockedScopesList())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getDeleted() != other.getDeleted()) return false; + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (state_ != other.state_) return false; + if (!getWorkloadIdsList().equals(other.getWorkloadIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasAuthProviderTypeParams()) { + hash = (37 * hash) + AUTH_PROVIDER_TYPE_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getAuthProviderTypeParams().hashCode(); + } + if (getAllowedScopesCount() > 0) { + hash = (37 * hash) + ALLOWED_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getAllowedScopesList().hashCode(); + } + if (getBlockedScopesCount() > 0) { + hash = (37 * hash) + BLOCKED_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getBlockedScopesList().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getWorkloadIdsCount() > 0) { + hash = (37 * hash) + WORKLOAD_IDS_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.AuthProvider parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider 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.cloud.agentidentity.v1.AuthProvider parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.AuthProvider 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing AuthProvider object
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.AuthProvider} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.AuthProvider) + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AuthProvider_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AuthProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.AuthProvider.class, + com.google.cloud.agentidentity.v1.AuthProvider.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.AuthProvider.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetAuthProviderTypeParamsFieldBuilder(); + internalGetExpireTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + authProviderTypeParams_ = null; + if (authProviderTypeParamsBuilder_ != null) { + authProviderTypeParamsBuilder_.dispose(); + authProviderTypeParamsBuilder_ = null; + } + allowedScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockedScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + description_ = ""; + deleted_ = false; + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + state_ = 0; + workloadIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_AuthProvider_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider build() { + com.google.cloud.agentidentity.v1.AuthProvider result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider buildPartial() { + com.google.cloud.agentidentity.v1.AuthProvider result = + new com.google.cloud.agentidentity.v1.AuthProvider(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.AuthProvider result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.authProviderTypeParams_ = + authProviderTypeParamsBuilder_ == null + ? authProviderTypeParams_ + : authProviderTypeParamsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + allowedScopes_.makeImmutable(); + result.allowedScopes_ = allowedScopes_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + blockedScopes_.makeImmutable(); + result.blockedScopes_ = blockedScopes_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.deleted_ = deleted_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + workloadIds_.makeImmutable(); + result.workloadIds_ = workloadIds_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.AuthProvider) { + return mergeFrom((com.google.cloud.agentidentity.v1.AuthProvider) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.AuthProvider other) { + if (other == com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (other.hasAuthProviderTypeParams()) { + mergeAuthProviderTypeParams(other.getAuthProviderTypeParams()); + } + if (!other.allowedScopes_.isEmpty()) { + if (allowedScopes_.isEmpty()) { + allowedScopes_ = other.allowedScopes_; + bitField0_ |= 0x00000020; + } else { + ensureAllowedScopesIsMutable(); + allowedScopes_.addAll(other.allowedScopes_); + } + onChanged(); + } + if (!other.blockedScopes_.isEmpty()) { + if (blockedScopes_.isEmpty()) { + blockedScopes_ = other.blockedScopes_; + bitField0_ |= 0x00000040; + } else { + ensureBlockedScopesIsMutable(); + blockedScopes_.addAll(other.blockedScopes_); + } + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.getDeleted() != false) { + setDeleted(other.getDeleted()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.workloadIds_.isEmpty()) { + if (workloadIds_.isEmpty()) { + workloadIds_ = other.workloadIds_; + bitField0_ |= 0x00000800; + } else { + ensureWorkloadIdsIsMutable(); + workloadIds_.addAll(other.workloadIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetAuthProviderTypeParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedScopesIsMutable(); + allowedScopes_.add(s); + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBlockedScopesIsMutable(); + blockedScopes_.add(s); + break; + } // case 58 + case 66: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: + { + deleted_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + input.readMessage( + internalGetExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWorkloadIdsIsMutable(); + workloadIds_.add(s); + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The full resource name of the auth_provider. Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The full resource name of the auth_provider. Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The full resource name of the auth_provider. Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The full resource name of the auth_provider. Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The full resource name of the auth_provider. Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + authProviderTypeParams_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams, + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.Builder, + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParamsOrBuilder> + authProviderTypeParamsBuilder_; + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProviderTypeParams field is set. + */ + public boolean hasAuthProviderTypeParams() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProviderTypeParams. + */ + public com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + getAuthProviderTypeParams() { + if (authProviderTypeParamsBuilder_ == null) { + return authProviderTypeParams_ == null + ? com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + .getDefaultInstance() + : authProviderTypeParams_; + } else { + return authProviderTypeParamsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthProviderTypeParams( + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams value) { + if (authProviderTypeParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authProviderTypeParams_ = value; + } else { + authProviderTypeParamsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthProviderTypeParams( + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.Builder + builderForValue) { + if (authProviderTypeParamsBuilder_ == null) { + authProviderTypeParams_ = builderForValue.build(); + } else { + authProviderTypeParamsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthProviderTypeParams( + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams value) { + if (authProviderTypeParamsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && authProviderTypeParams_ != null + && authProviderTypeParams_ + != com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + .getDefaultInstance()) { + getAuthProviderTypeParamsBuilder().mergeFrom(value); + } else { + authProviderTypeParams_ = value; + } + } else { + authProviderTypeParamsBuilder_.mergeFrom(value); + } + if (authProviderTypeParams_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthProviderTypeParams() { + bitField0_ = (bitField0_ & ~0x00000010); + authProviderTypeParams_ = null; + if (authProviderTypeParamsBuilder_ != null) { + authProviderTypeParamsBuilder_.dispose(); + authProviderTypeParamsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.Builder + getAuthProviderTypeParamsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetAuthProviderTypeParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParamsOrBuilder + getAuthProviderTypeParamsOrBuilder() { + if (authProviderTypeParamsBuilder_ != null) { + return authProviderTypeParamsBuilder_.getMessageOrBuilder(); + } else { + return authProviderTypeParams_ == null + ? com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams + .getDefaultInstance() + : authProviderTypeParams_; + } + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams, + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.Builder, + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParamsOrBuilder> + internalGetAuthProviderTypeParamsFieldBuilder() { + if (authProviderTypeParamsBuilder_ == null) { + authProviderTypeParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams, + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams.Builder, + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParamsOrBuilder>( + getAuthProviderTypeParams(), getParentForChildren(), isClean()); + authProviderTypeParams_ = null; + } + return authProviderTypeParamsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList allowedScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedScopesIsMutable() { + if (!allowedScopes_.isModifiable()) { + allowedScopes_ = new com.google.protobuf.LazyStringArrayList(allowedScopes_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedScopes. + */ + public com.google.protobuf.ProtocolStringList getAllowedScopesList() { + allowedScopes_.makeImmutable(); + return allowedScopes_; + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedScopes. + */ + public int getAllowedScopesCount() { + return allowedScopes_.size(); + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedScopes at the given index. + */ + public java.lang.String getAllowedScopes(int index) { + return allowedScopes_.get(index); + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedScopes at the given index. + */ + public com.google.protobuf.ByteString getAllowedScopesBytes(int index) { + return allowedScopes_.getByteString(index); + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The allowedScopes to set. + * @return This builder for chaining. + */ + public Builder setAllowedScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedScopesIsMutable(); + allowedScopes_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowedScopes to add. + * @return This builder for chaining. + */ + public Builder addAllowedScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedScopesIsMutable(); + allowedScopes_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The allowedScopes to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedScopes(java.lang.Iterable values) { + ensureAllowedScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedScopes_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowedScopes() { + allowedScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the allowedScopes to add. + * @return This builder for chaining. + */ + public Builder addAllowedScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedScopesIsMutable(); + allowedScopes_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList blockedScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureBlockedScopesIsMutable() { + if (!blockedScopes_.isModifiable()) { + blockedScopes_ = new com.google.protobuf.LazyStringArrayList(blockedScopes_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the blockedScopes. + */ + public com.google.protobuf.ProtocolStringList getBlockedScopesList() { + blockedScopes_.makeImmutable(); + return blockedScopes_; + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of blockedScopes. + */ + public int getBlockedScopesCount() { + return blockedScopes_.size(); + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The blockedScopes at the given index. + */ + public java.lang.String getBlockedScopes(int index) { + return blockedScopes_.get(index); + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the blockedScopes at the given index. + */ + public com.google.protobuf.ByteString getBlockedScopesBytes(int index) { + return blockedScopes_.getByteString(index); + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The blockedScopes to set. + * @return This builder for chaining. + */ + public Builder setBlockedScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockedScopesIsMutable(); + blockedScopes_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The blockedScopes to add. + * @return This builder for chaining. + */ + public Builder addBlockedScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockedScopesIsMutable(); + blockedScopes_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The blockedScopes to add. + * @return This builder for chaining. + */ + public Builder addAllBlockedScopes(java.lang.Iterable values) { + ensureBlockedScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blockedScopes_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBlockedScopes() { + blockedScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the blockedScopes to add. + * @return This builder for chaining. + */ + public Builder addBlockedScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBlockedScopesIsMutable(); + blockedScopes_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Description of the resource.
+     * Must be less than 256 characters.
+     * 
+ * + * 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. Description of the resource.
+     * Must be less than 256 characters.
+     * 
+ * + * 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. Description of the resource.
+     * Must be less than 256 characters.
+     * 
+ * + * 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; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the resource.
+     * Must be less than 256 characters.
+     * 
+ * + * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the resource.
+     * Must be less than 256 characters.
+     * 
+ * + * 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; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private boolean deleted_; + + /** + * + * + *
+     * Output only. This is set to true if the auth_provider is deleted.
+     * 
+ * + * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + + /** + * + * + *
+     * Output only. This is set to true if the auth_provider is deleted.
+     * 
+ * + * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deleted to set. + * @return This builder for chaining. + */ + public Builder setDeleted(boolean value) { + + deleted_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. This is set to true if the auth_provider is deleted.
+     * 
+ * + * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeleted() { + bitField0_ = (bitField0_ & ~0x00000100); + deleted_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + if (expireTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000200); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetExpireTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The state of the auth_provider.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The state of the auth_provider.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the auth_provider.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider.State getState() { + com.google.cloud.agentidentity.v1.AuthProvider.State result = + com.google.cloud.agentidentity.v1.AuthProvider.State.forNumber(state_); + return result == null + ? com.google.cloud.agentidentity.v1.AuthProvider.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The state of the auth_provider.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.agentidentity.v1.AuthProvider.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the auth_provider.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000400); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList workloadIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureWorkloadIdsIsMutable() { + if (!workloadIds_.isModifiable()) { + workloadIds_ = new com.google.protobuf.LazyStringArrayList(workloadIds_); + } + bitField0_ |= 0x00000800; + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return A list containing the workloadIds. + */ + public com.google.protobuf.ProtocolStringList getWorkloadIdsList() { + workloadIds_.makeImmutable(); + return workloadIds_; + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The count of workloadIds. + */ + public int getWorkloadIdsCount() { + return workloadIds_.size(); + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The workloadIds at the given index. + */ + public java.lang.String getWorkloadIds(int index) { + return workloadIds_.get(index); + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the workloadIds at the given index. + */ + public com.google.protobuf.ByteString getWorkloadIdsBytes(int index) { + return workloadIds_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The workloadIds to set. + * @return This builder for chaining. + */ + public Builder setWorkloadIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkloadIdsIsMutable(); + workloadIds_.set(index, value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The workloadIds to add. + * @return This builder for chaining. + */ + public Builder addWorkloadIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkloadIdsIsMutable(); + workloadIds_.add(value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param values The workloadIds to add. + * @return This builder for chaining. + */ + public Builder addAllWorkloadIds(java.lang.Iterable values) { + ensureWorkloadIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workloadIds_); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearWorkloadIds() { + workloadIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The bytes of the workloadIds to add. + * @return This builder for chaining. + */ + public Builder addWorkloadIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWorkloadIdsIsMutable(); + workloadIds_.add(value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.AuthProvider) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.AuthProvider) + private static final com.google.cloud.agentidentity.v1.AuthProvider DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.AuthProvider(); + } + + public static com.google.cloud.agentidentity.v1.AuthProvider getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.AuthProvider getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderName.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderName.java new file mode 100644 index 000000000000..68de028fc1b7 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderName.java @@ -0,0 +1,230 @@ +/* + * Copyright 2026 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.agentidentity.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AuthProviderName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AUTH_PROVIDER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/authProviders/{auth_provider}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String authProvider; + + @Deprecated + protected AuthProviderName() { + project = null; + location = null; + authProvider = null; + } + + private AuthProviderName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + authProvider = Preconditions.checkNotNull(builder.getAuthProvider()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAuthProvider() { + return authProvider; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AuthProviderName of(String project, String location, String authProvider) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAuthProvider(authProvider) + .build(); + } + + public static String format(String project, String location, String authProvider) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAuthProvider(authProvider) + .build() + .toString(); + } + + public static @Nullable AuthProviderName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AUTH_PROVIDER.validatedMatch( + formattedString, "AuthProviderName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("auth_provider")); + } + + 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<@Nullable AuthProviderName> values) { + List list = new ArrayList<>(values.size()); + for (AuthProviderName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AUTH_PROVIDER.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 (location != null) { + fieldMapBuilder.put("location", location); + } + if (authProvider != null) { + fieldMapBuilder.put("auth_provider", authProvider); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AUTH_PROVIDER.instantiate( + "project", project, "location", location, "auth_provider", authProvider); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AuthProviderName that = ((AuthProviderName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.authProvider, that.authProvider); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(authProvider); + return h; + } + + /** Builder for projects/{project}/locations/{location}/authProviders/{auth_provider}. */ + public static class Builder { + private String project; + private String location; + private String authProvider; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAuthProvider() { + return authProvider; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAuthProvider(String authProvider) { + this.authProvider = authProvider; + return this; + } + + private Builder(AuthProviderName authProviderName) { + this.project = authProviderName.project; + this.location = authProviderName.location; + this.authProvider = authProviderName.authProvider; + } + + public AuthProviderName build() { + return new AuthProviderName(this); + } + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderOrBuilder.java new file mode 100644 index 000000000000..65b2ed556a92 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderOrBuilder.java @@ -0,0 +1,572 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface AuthProviderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.AuthProvider) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The full resource name of the auth_provider. Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The full resource name of the auth_provider. Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Required. AuthProvider type specific parameters.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProviderTypeParams field is set. + */ + boolean hasAuthProviderTypeParams(); + + /** + * + * + *
+   * Required. AuthProvider type specific parameters.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProviderTypeParams. + */ + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams getAuthProviderTypeParams(); + + /** + * + * + *
+   * Required. AuthProvider type specific parameters.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentidentity.v1.AuthProvider.AuthProviderTypeParamsOrBuilder + getAuthProviderTypeParamsOrBuilder(); + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedScopes. + */ + java.util.List getAllowedScopesList(); + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedScopes. + */ + int getAllowedScopesCount(); + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedScopes at the given index. + */ + java.lang.String getAllowedScopes(int index); + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedScopes at the given index. + */ + com.google.protobuf.ByteString getAllowedScopesBytes(int index); + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the blockedScopes. + */ + java.util.List getBlockedScopesList(); + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of blockedScopes. + */ + int getBlockedScopesCount(); + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The blockedScopes at the given index. + */ + java.lang.String getBlockedScopes(int index); + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the blockedScopes at the given index. + */ + com.google.protobuf.ByteString getBlockedScopesBytes(int index); + + /** + * + * + *
+   * Optional. Description of the resource.
+   * Must be less than 256 characters.
+   * 
+ * + * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Description of the resource.
+   * Must be less than 256 characters.
+   * 
+ * + * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. This is set to true if the auth_provider is deleted.
+   * 
+ * + * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + boolean getDeleted(); + + /** + * + * + *
+   * Output only. The time when the auth_provider will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + + /** + * + * + *
+   * Output only. The time when the auth_provider will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + + /** + * + * + *
+   * Output only. The time when the auth_provider will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The state of the auth_provider.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The state of the auth_provider.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.agentidentity.v1.AuthProvider.State getState(); + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return A list containing the workloadIds. + */ + java.util.List getWorkloadIdsList(); + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The count of workloadIds. + */ + int getWorkloadIdsCount(); + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The workloadIds at the given index. + */ + java.lang.String getWorkloadIds(int index); + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the workloadIds at the given index. + */ + com.google.protobuf.ByteString getWorkloadIdsBytes(int index); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceProto.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceProto.java new file mode 100644 index 000000000000..66aeaa28e04a --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderServiceProto.java @@ -0,0 +1,774 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public final class AuthProviderServiceProto extends com.google.protobuf.GeneratedFile { + private AuthProviderServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthProviderServiceProto"); + } + + 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_cloud_agentidentity_v1_AuthProvider_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_AuthProvider_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_AuthProvider_AuthProviderTypeParams_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_AuthProvider_AuthProviderTypeParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_AuthProvider_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_AuthProvider_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_ThreeLeggedOAuth_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_ThreeLeggedOAuth_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_TwoLeggedOAuth_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_TwoLeggedOAuth_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_ApiKeyParams_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_ApiKeyParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_GeminiEnterpriseAuthProviderParams_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_GeminiEnterpriseAuthProviderParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_ListAuthProvidersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_ListAuthProvidersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_ListAuthProvidersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_ListAuthProvidersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_GetAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_GetAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_CreateAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_CreateAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_UpdateAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_UpdateAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_DeleteAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_DeleteAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_UndeleteAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_UndeleteAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_EnableAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_EnableAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_DisableAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_DisableAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_Authorization_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_Authorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_ListAuthorizationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_ListAuthorizationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_ListAuthorizationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_ListAuthorizationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_GetAuthorizationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_GetAuthorizationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_DeleteAuthorizationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_DeleteAuthorizationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_AccessSummary_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_AccessSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_AccessSummary_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_AccessSummary_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_ListAccessSummariesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_ListAccessSummariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_ListAccessSummariesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_ListAccessSummariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_GetAccessSummaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_GetAccessSummaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_QueryWorkloadsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_QueryWorkloadsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_QueryWorkloadsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_QueryWorkloadsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationResponse_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" + + "9google/cloud/agentidentity/v1/auth_provider_service.proto\022\035google.cloud.agenti" + + "dentity.v1\032\034google/api/annotations.proto" + + "\032\027google/api/client.proto\032\037google/api/fi" + + "eld_behavior.proto\032\033google/api/field_inf" + + "o.proto\032\031google/api/resource.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\250\t\n" + + "\014AuthProvider\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022L\n" + + "\006labels\030\004" + + " \003(\01327.google.cloud.agentidentity.v1.AuthProvider.LabelsEntryB\003\340A\001\022j\n" + + "\031auth_provider_type_params\030\005 \001(\0132B.google.clo" + + "ud.agentidentity.v1.AuthProvider.AuthProviderTypeParamsB\003\340A\002\022\033\n" + + "\016allowed_scopes\030\006 \003(\tB\003\340A\001\022\033\n" + + "\016blocked_scopes\030\007 \003(\tB\003\340A\001\022\030\n" + + "\013description\030\010 \001(\tB\003\340A\001\022\024\n" + + "\007deleted\030\t \001(\010B\003\340A\003\0224\n" + + "\013expire_time\030\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022E\n" + + "\005state\030\013 \001(\01621.go" + + "ogle.cloud.agentidentity.v1.AuthProvider.StateB\003\340A\003\022\034\n" + + "\014workload_ids\030\014 \003(\tB\006\340A\001\340A\004\032\331\002\n" + + "\026AuthProviderTypeParams\022M\n" + + "\022three_legged_oauth\030\001" + + " \001(\0132/.google.cloud.agentidentity.v1.ThreeLeggedOAuthH\000\022I\n" + + "\020two_legged_oauth\030\002" + + " \001(\0132-.google.cloud.agentidentity.v1.TwoLeggedOAuthH\000\022>\n" + + "\007api_key\030\003 \001(\0132+.google.cloud.agentidentity.v1.ApiKeyParamsH\000\022]\n" + + "\020ge_auth_provider\030\004 \001(\0132A.googl" + + "e.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParamsH\000B\006\n" + + "\004type\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"9\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007ENABLED\020\001\022\014\n" + + "\010DISABLED\020\002:\223\001\352A\217\001\n" + + ")agentidentity.googleapis.com/AuthProvider\022Eprojects/{pro" + + "ject}/locations/{location}/authProviders/{auth_provider}*\r" + + "authProviders2\014authProvider\"\331\001\n" + + "\020ThreeLeggedOAuth\022\035\n\r" + + "client_secret\030\001 \001(\tB\006\340A\001\340A\004\022\026\n" + + "\tclient_id\030\002 \001(\tB\003\340A\001\022\031\n" + + "\014redirect_url\030\003 \001(\tB\003\340A\003\022\036\n" + + "\021authorization_url\030\004 \001(\tB\003\340A\001\022\026\n" + + "\ttoken_url\030\005 \001(\tB\003\340A\001\022\030\n" + + "\013enable_pkce\030\006 \001(\010B\003\340A\001\022!\n" + + "\024default_continue_uri\030\007 \001(\tB\003\340A\001\"_\n" + + "\016TwoLeggedOAuth\022\035\n\r" + + "client_secret\030\001 \001(\tB\006\340A\001\340A\004\022\026\n" + + "\tclient_id\030\002 \001(\tB\003\340A\001\022\026\n" + + "\ttoken_url\030\003 \001(\tB\003\340A\001\"\'\n" + + "\014ApiKeyParams\022\027\n" + + "\007api_key\030\001 \001(\tB\006\340A\001\340A\004\"$\n" + + "\"GeminiEnterpriseAuthProviderParams\"\325\001\n" + + "\030ListAuthProvidersRequest\022A\n" + + "\006parent\030\001 \001(" + + "\tB1\340A\002\372A+\022)agentidentity.googleapis.com/AuthProvider\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022\031\n" + + "\014show_deleted\030\006 \001(\010B\003\340A\001\"\223\001\n" + + "\031ListAuthProvidersResponse\022C\n" + + "\016auth_providers\030\001" + + " \003(\0132+.google.cloud.agentidentity.v1.AuthProvider\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"Y\n" + + "\026GetAuthProviderRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\"\347\001\n" + + "\031CreateAuthProviderRequest\022A\n" + + "\006parent\030\001 \001(" + + "\tB1\340A\002\372A+\022)agentidentity.googleapis.com/AuthProvider\022\035\n" + + "\020auth_provider_id\030\002 \001(\tB\003\340A\002\022G\n\r" + + "auth_provider\030\003" + + " \001(\0132+.google.cloud.agentidentity.v1.AuthProviderB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\273\001\n" + + "\031UpdateAuthProviderRequest\0224\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022G\n\r" + + "auth_provider\030\002 \001(\0132" + + "+.google.cloud.agentidentity.v1.AuthProviderB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"}\n" + + "\031DeleteAuthProviderRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\177\n" + + "\033UndeleteAuthProviderRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"}\n" + + "\031EnableAuthProviderRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"~\n" + + "\032DisableAuthProviderRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\373\003\n\r" + + "Authorization\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\033\n" + + "\016client_user_id\030\005 \001(\tB\003\340A\003\022\023\n" + + "\006scopes\030\006 \003(\tB\003\340A\003\022F\n" + + "\005state\030\007 " + + "\001(\01622.google.cloud.agentidentity.v1.Authorization.StateB\003\340A\003\"9\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\r\n" + + "\tSUSPENDED\020\002:\265\001\352A\261\001\n" + + "*agentidentity.googleapis.com/Authorization\022dprojects/{project}/locations" + + "/{location}/authProviders/{auth_provider" + + "}/authorizations/{authorization}*\016authorizations2\r" + + "authorization\"\274\001\n" + + "\031ListAuthorizationsRequest\022B\n" + + "\006parent\030\001 \001(\tB2\340A\002\372A,\022*a" + + "gentidentity.googleapis.com/Authorization\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\225\001\n" + + "\032ListAuthorizationsResponse\022D\n" + + "\016authorizations\030\001" + + " \003(\0132,.google.cloud.agentidentity.v1.Authorization\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"[\n" + + "\027GetAuthorizationRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*agentidentity.googleapis.com/Authorization\"\177\n" + + "\032DeleteAuthorizationRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*agentidentity.googleapis.com/Authorization\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\345\005\n\r" + + "AccessSummary\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022:\n" + + "\021first_access_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0229\n" + + "\020last_access_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022M\n" + + "\006labels\030\004 " + + "\003(\01328.google.cloud.agentidentity.v1.AccessSummary.LabelsEntryB\003\340A\001\022\024\n" + + "\007user_id\030\005 \001(\tB\003\340A\003\022\030\n" + + "\013workload_id\030\006 \001(\tB\003\340A\003\022\026\n" + + "\ttoken_url\030\007 \001(\tB\003\340A\003\022\023\n" + + "\006scopes\030\010 \003(\tB\003\340A\003\022H\n\r" + + "auth_provider\030\t \001(\tB1\340A\003\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\0223\n\n" + + "purge_time\030\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022P\n" + + "\022auth_provider_type\030\013 \001(\0162/.goo" + + "gle.cloud.agentidentity.v1.AuthProviderTypeB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\232\001\352A\226\001\n" + + "*agentidentity.googleapis.com/AccessSummary\022Hprojects/{pr" + + "oject}/locations/{location}/accessSummaries/{access_summary}*\017accessSummaries2\r" + + "accessSummary\"\275\001\n" + + "\032ListAccessSummariesRequest\022B\n" + + "\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*agentidentity.googleapis.com/AccessSummary\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\230\001\n" + + "\033ListAccessSummariesResponse\022F\n" + + "\020access_summaries\030\001" + + " \003(\0132,.google.cloud.agentidentity.v1.AccessSummary\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"[\n" + + "\027GetAccessSummaryRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*agentidentity.googleapis.com/AccessSummary\"\251\001\n" + + "\031QueryAuthProvidersRequest\022A\n" + + "\006parent\030\001 \001(" + + "\tB1\340A\002\372A+\022)agentidentity.googleapis.com/AuthProvider\022\030\n" + + "\013workload_id\030\002 \001(\tB\003\340A\002\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\004 \001(\tB\003\340A\001\"R\n" + + "\032QueryAuthProvidersResponse\022\033\n" + + "\023auth_provider_names\030\001 \003(\t\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\211\001\n" + + "\025QueryWorkloadsRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"G\n" + + "\026QueryWorkloadsResponse\022\024\n" + + "\014workload_ids\030\001 \003(\t\022\027\n" + + "\017next_page_token\030\002 \001(\t\"s\n" + + "\032RevokeAuthorizationRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\022\024\n" + + "\007user_id\030\002 \001(\tB\003\340A\002\"\035\n" + + "\033RevokeAuthorizationResponse*\324\001\n" + + "\020AuthProviderType\022\"\n" + + "\036AUTH_PROVIDER_TYPE_UNSPECIFIED\020\000\022)\n" + + "%AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH\020\001\022\'\n" + + "#AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH\020\002\022\036\n" + + "\032AUTH_PROVIDER_TYPE_API_KEY\020\003\022(\n" + + "$AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE\020\0042\206\033\n" + + "\023AuthProviderService\022\312\001\n" + + "\021ListAuthProviders\0227.google.cloud.agentidentity." + + "v1.ListAuthProvidersRequest\0328.google.cloud.agentidentity.v1.ListAuthProvidersRes" + + "ponse\"B\332A\006parent\202\323\344\223\0023\0221/v1/{parent=projects/*/locations/*}/authProviders\022\267\001\n" + + "\017GetAuthProvider\0225.google.cloud.agentidenti" + + "ty.v1.GetAuthProviderRequest\032+.google.cl" + + "oud.agentidentity.v1.AuthProvider\"@\332A\004na" + + "me\202\323\344\223\0023\0221/v1/{name=projects/*/locations/*/authProviders/*}\022\355\001\n" + + "\022CreateAuthProvider\0228.google.cloud.agentidentity.v1.Creat" + + "eAuthProviderRequest\032+.google.cloud.agen" + + "tidentity.v1.AuthProvider\"p\332A%parent,aut" + + "h_provider,auth_provider_id\202\323\344\223\002B\"1/v1/{" + + "parent=projects/*/locations/*}/authProviders:\r" + + "auth_provider\022\357\001\n" + + "\022UpdateAuthProvider\0228.google.cloud.agentidentity.v1.Updat" + + "eAuthProviderRequest\032+.google.cloud.agen" + + "tidentity.v1.AuthProvider\"r\332A\031auth_provi" + + "der,update_mask\202\323\344\223\002P2?/v1/{auth_provide" + + "r.name=projects/*/locations/*/authProviders/*}:\r" + + "auth_provider\022\250\001\n" + + "\022DeleteAuthProvider\0228.google.cloud.agentidentity.v1.Del" + + "eteAuthProviderRequest\032\026.google.protobuf" + + ".Empty\"@\332A\004name\202\323\344\223\0023*1/v1/{name=projects/*/locations/*/authProviders/*}\022\315\001\n" + + "\024UndeleteAuthProvider\022:.google.cloud.agentid" + + "entity.v1.UndeleteAuthProviderRequest\032+.google.cloud.agentidentity.v1.AuthProvid" + + "er\"L\332A\004name\202\323\344\223\002?\":/v1/{name=projects/*/" + + "locations/*/authProviders/*}:undelete:\001*\022\337\001\n" + + "\022QueryAuthProviders\0228.google.cloud.agentidentity.v1.QueryAuthProvidersReques" + + "t\0329.google.cloud.agentidentity.v1.QueryA" + + "uthProvidersResponse\"T\332A\022parent,workload" + + "_id\202\323\344\223\0029\0227/v1/{parent=projects/*/locations/*}/authProviders:query\022\316\001\n" + + "\016QueryWorkloads\0224.google.cloud.agentidentity.v1.Qu" + + "eryWorkloadsRequest\0325.google.cloud.agent" + + "identity.v1.QueryWorkloadsResponse\"O\332A\004n" + + "ame\202\323\344\223\002B\022@/v1/{name=projects/*/locations/*/authProviders/*}:queryWorkloads\022\336\001\n" + + "\022ListAuthorizations\0228.google.cloud.agenti" + + "dentity.v1.ListAuthorizationsRequest\0329.google.cloud.agentidentity.v1.ListAuthori" + + "zationsResponse\"S\332A\006parent\202\323\344\223\002D\022B/v1/{p" + + "arent=projects/*/locations/*/authProviders/*}/authorizations\022\313\001\n" + + "\020GetAuthorization\0226.google.cloud.agentidentity.v1.GetAut" + + "horizationRequest\032,.google.cloud.agentid" + + "entity.v1.Authorization\"Q\332A\004name\202\323\344\223\002D\022B" + + "/v1/{name=projects/*/locations/*/authProviders/*/authorizations/*}\022\273\001\n" + + "\023DeleteAuthorization\0229.google.cloud.agentidentity." + + "v1.DeleteAuthorizationRequest\032\026.google.p" + + "rotobuf.Empty\"Q\332A\004name\202\323\344\223\002D*B/v1/{name=" + + "projects/*/locations/*/authProviders/*/authorizations/*}\022\322\001\n" + + "\023ListAccessSummaries\0229.google.cloud.agentidentity.v1.ListAcc" + + "essSummariesRequest\032:.google.cloud.agentidentity.v1.ListAccessSummariesResponse\"" + + "D\332A\006parent\202\323\344\223\0025\0223/v1/{parent=projects/*/locations/*}/accessSummaries\022\274\001\n" + + "\020GetAccessSummary\0226.google.cloud.agentidentity." + + "v1.GetAccessSummaryRequest\032,.google.clou" + + "d.agentidentity.v1.AccessSummary\"B\332A\004nam" + + "e\202\323\344\223\0025\0223/v1/{name=projects/*/locations/*/accessSummaries/*}\022\355\001\n" + + "\023RevokeAuthorization\0229.google.cloud.agentidentity.v1.Rev" + + "okeAuthorizationRequest\032:.google.cloud.agentidentity.v1.RevokeAuthorizationRespo" + + "nse\"_\332A\014name,user_id\202\323\344\223\002J\"E/v1/{name=pr" + + "ojects/*/locations/*/authProviders/*}:revokeAuthorization:\001*\022\307\001\n" + + "\022EnableAuthProvider\0228.google.cloud.agentidentity.v1.Enab" + + "leAuthProviderRequest\032+.google.cloud.age" + + "ntidentity.v1.AuthProvider\"J\332A\004name\202\323\344\223\002" + + "=\"8/v1/{name=projects/*/locations/*/authProviders/*}:enable:\001*\022\312\001\n" + + "\023DisableAuthProvider\0229.google.cloud.agentidentity.v1.D" + + "isableAuthProviderRequest\032+.google.cloud" + + ".agentidentity.v1.AuthProvider\"K\332A\004name\202" + + "\323\344\223\002>\"9/v1/{name=projects/*/locations/*/" + + "authProviders/*}:disable:\001*\032P\312A\034agentide" + + "ntity.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\210\001\n" + + "!com.google.cloud.agentidentity.v1B\030AuthProvide" + + "rServiceProtoP\001ZGcloud.google.com/go/agentidentity/apiv1/agentidentitypb;agentid" + + "entitypbb\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.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_agentidentity_v1_AuthProvider_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_agentidentity_v1_AuthProvider_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_AuthProvider_descriptor, + new java.lang.String[] { + "Name", + "CreateTime", + "UpdateTime", + "Labels", + "AuthProviderTypeParams", + "AllowedScopes", + "BlockedScopes", + "Description", + "Deleted", + "ExpireTime", + "State", + "WorkloadIds", + }); + internal_static_google_cloud_agentidentity_v1_AuthProvider_AuthProviderTypeParams_descriptor = + internal_static_google_cloud_agentidentity_v1_AuthProvider_descriptor.getNestedType(0); + internal_static_google_cloud_agentidentity_v1_AuthProvider_AuthProviderTypeParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_AuthProvider_AuthProviderTypeParams_descriptor, + new java.lang.String[] { + "ThreeLeggedOauth", "TwoLeggedOauth", "ApiKey", "GeAuthProvider", "Type", + }); + internal_static_google_cloud_agentidentity_v1_AuthProvider_LabelsEntry_descriptor = + internal_static_google_cloud_agentidentity_v1_AuthProvider_descriptor.getNestedType(1); + internal_static_google_cloud_agentidentity_v1_AuthProvider_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_AuthProvider_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_agentidentity_v1_ThreeLeggedOAuth_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_agentidentity_v1_ThreeLeggedOAuth_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_ThreeLeggedOAuth_descriptor, + new java.lang.String[] { + "ClientSecret", + "ClientId", + "RedirectUrl", + "AuthorizationUrl", + "TokenUrl", + "EnablePkce", + "DefaultContinueUri", + }); + internal_static_google_cloud_agentidentity_v1_TwoLeggedOAuth_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_agentidentity_v1_TwoLeggedOAuth_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_TwoLeggedOAuth_descriptor, + new java.lang.String[] { + "ClientSecret", "ClientId", "TokenUrl", + }); + internal_static_google_cloud_agentidentity_v1_ApiKeyParams_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_agentidentity_v1_ApiKeyParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_ApiKeyParams_descriptor, + new java.lang.String[] { + "ApiKey", + }); + internal_static_google_cloud_agentidentity_v1_GeminiEnterpriseAuthProviderParams_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_agentidentity_v1_GeminiEnterpriseAuthProviderParams_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_GeminiEnterpriseAuthProviderParams_descriptor, + new java.lang.String[] {}); + internal_static_google_cloud_agentidentity_v1_ListAuthProvidersRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_agentidentity_v1_ListAuthProvidersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_ListAuthProvidersRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", "ShowDeleted", + }); + internal_static_google_cloud_agentidentity_v1_ListAuthProvidersResponse_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_agentidentity_v1_ListAuthProvidersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_ListAuthProvidersResponse_descriptor, + new java.lang.String[] { + "AuthProviders", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_agentidentity_v1_GetAuthProviderRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_agentidentity_v1_GetAuthProviderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_GetAuthProviderRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentidentity_v1_CreateAuthProviderRequest_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_agentidentity_v1_CreateAuthProviderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_CreateAuthProviderRequest_descriptor, + new java.lang.String[] { + "Parent", "AuthProviderId", "AuthProvider", "RequestId", + }); + internal_static_google_cloud_agentidentity_v1_UpdateAuthProviderRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_agentidentity_v1_UpdateAuthProviderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_UpdateAuthProviderRequest_descriptor, + new java.lang.String[] { + "UpdateMask", "AuthProvider", "RequestId", + }); + internal_static_google_cloud_agentidentity_v1_DeleteAuthProviderRequest_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_agentidentity_v1_DeleteAuthProviderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_DeleteAuthProviderRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_agentidentity_v1_UndeleteAuthProviderRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_agentidentity_v1_UndeleteAuthProviderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_UndeleteAuthProviderRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_agentidentity_v1_EnableAuthProviderRequest_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_agentidentity_v1_EnableAuthProviderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_EnableAuthProviderRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_agentidentity_v1_DisableAuthProviderRequest_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_agentidentity_v1_DisableAuthProviderRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_DisableAuthProviderRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_agentidentity_v1_Authorization_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_agentidentity_v1_Authorization_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_Authorization_descriptor, + new java.lang.String[] { + "Name", "CreateTime", "UpdateTime", "ClientUserId", "Scopes", "State", + }); + internal_static_google_cloud_agentidentity_v1_ListAuthorizationsRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_agentidentity_v1_ListAuthorizationsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_ListAuthorizationsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_agentidentity_v1_ListAuthorizationsResponse_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_agentidentity_v1_ListAuthorizationsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_ListAuthorizationsResponse_descriptor, + new java.lang.String[] { + "Authorizations", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_agentidentity_v1_GetAuthorizationRequest_descriptor = + getDescriptor().getMessageType(17); + internal_static_google_cloud_agentidentity_v1_GetAuthorizationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_GetAuthorizationRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentidentity_v1_DeleteAuthorizationRequest_descriptor = + getDescriptor().getMessageType(18); + internal_static_google_cloud_agentidentity_v1_DeleteAuthorizationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_DeleteAuthorizationRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", + }); + internal_static_google_cloud_agentidentity_v1_AccessSummary_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_cloud_agentidentity_v1_AccessSummary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_AccessSummary_descriptor, + new java.lang.String[] { + "Name", + "FirstAccessTime", + "LastAccessTime", + "Labels", + "UserId", + "WorkloadId", + "TokenUrl", + "Scopes", + "AuthProvider", + "PurgeTime", + "AuthProviderType", + }); + internal_static_google_cloud_agentidentity_v1_AccessSummary_LabelsEntry_descriptor = + internal_static_google_cloud_agentidentity_v1_AccessSummary_descriptor.getNestedType(0); + internal_static_google_cloud_agentidentity_v1_AccessSummary_LabelsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_AccessSummary_LabelsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_agentidentity_v1_ListAccessSummariesRequest_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_agentidentity_v1_ListAccessSummariesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_ListAccessSummariesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_agentidentity_v1_ListAccessSummariesResponse_descriptor = + getDescriptor().getMessageType(21); + internal_static_google_cloud_agentidentity_v1_ListAccessSummariesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_ListAccessSummariesResponse_descriptor, + new java.lang.String[] { + "AccessSummaries", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_agentidentity_v1_GetAccessSummaryRequest_descriptor = + getDescriptor().getMessageType(22); + internal_static_google_cloud_agentidentity_v1_GetAccessSummaryRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_GetAccessSummaryRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersRequest_descriptor = + getDescriptor().getMessageType(23); + internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersRequest_descriptor, + new java.lang.String[] { + "Parent", "WorkloadId", "PageSize", "PageToken", + }); + internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersResponse_descriptor = + getDescriptor().getMessageType(24); + internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersResponse_descriptor, + new java.lang.String[] { + "AuthProviderNames", "NextPageToken", + }); + internal_static_google_cloud_agentidentity_v1_QueryWorkloadsRequest_descriptor = + getDescriptor().getMessageType(25); + internal_static_google_cloud_agentidentity_v1_QueryWorkloadsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_QueryWorkloadsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_cloud_agentidentity_v1_QueryWorkloadsResponse_descriptor = + getDescriptor().getMessageType(26); + internal_static_google_cloud_agentidentity_v1_QueryWorkloadsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_QueryWorkloadsResponse_descriptor, + new java.lang.String[] { + "WorkloadIds", "NextPageToken", + }); + internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationRequest_descriptor = + getDescriptor().getMessageType(27); + internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationRequest_descriptor, + new java.lang.String[] { + "Name", "UserId", + }); + internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationResponse_descriptor = + getDescriptor().getMessageType(28); + internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationResponse_descriptor, + new java.lang.String[] {}); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + 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.FieldInfoProto.fieldInfo); + 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); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderType.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderType.java new file mode 100644 index 000000000000..3e0d0c3bbe21 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthProviderType.java @@ -0,0 +1,239 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * The type of the AuthProvider.
+ * 
+ * + * Protobuf enum {@code google.cloud.agentidentity.v1.AuthProviderType} + */ +@com.google.protobuf.Generated +public enum AuthProviderType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_UNSPECIFIED = 0; + */ + AUTH_PROVIDER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Three Legged OAuth auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH = 1; + */ + AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH(1), + /** + * + * + *
+   * Two Legged OAuth auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH = 2; + */ + AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH(2), + /** + * + * + *
+   * API Key auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_API_KEY = 3; + */ + AUTH_PROVIDER_TYPE_API_KEY(3), + /** + * + * + *
+   * Gemini Enterprise auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE = 4; + */ + AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthProviderType"); + } + + /** + * + * + *
+   * Unspecified auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_UNSPECIFIED = 0; + */ + public static final int AUTH_PROVIDER_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Three Legged OAuth auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH = 1; + */ + public static final int AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH_VALUE = 1; + + /** + * + * + *
+   * Two Legged OAuth auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH = 2; + */ + public static final int AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH_VALUE = 2; + + /** + * + * + *
+   * API Key auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_API_KEY = 3; + */ + public static final int AUTH_PROVIDER_TYPE_API_KEY_VALUE = 3; + + /** + * + * + *
+   * Gemini Enterprise auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE = 4; + */ + public static final int AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE_VALUE = 4; + + 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 AuthProviderType 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 AuthProviderType forNumber(int value) { + switch (value) { + case 0: + return AUTH_PROVIDER_TYPE_UNSPECIFIED; + case 1: + return AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH; + case 2: + return AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH; + case 3: + return AUTH_PROVIDER_TYPE_API_KEY; + case 4: + return AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuthProviderType findValueByNumber(int number) { + return AuthProviderType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AuthProviderType[] VALUES = values(); + + public static AuthProviderType 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 AuthProviderType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentidentity.v1.AuthProviderType) +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/Authorization.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/Authorization.java new file mode 100644 index 000000000000..643a9ad1af89 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/Authorization.java @@ -0,0 +1,2046 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message describing Authorization object
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.Authorization} + */ +@com.google.protobuf.Generated +public final class Authorization extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.Authorization) + AuthorizationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Authorization"); + } + + // Use Authorization.newBuilder() to construct. + private Authorization(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Authorization() { + name_ = ""; + clientUserId_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_Authorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_Authorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.Authorization.class, + com.google.cloud.agentidentity.v1.Authorization.Builder.class); + } + + /** + * + * + *
+   * Represents the state of the authorization.
+   * 
+ * + * Protobuf enum {@code google.cloud.agentidentity.v1.Authorization.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Active.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * Suspended.
+     * 
+ * + * SUSPENDED = 2; + */ + SUSPENDED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Active.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
+     * Suspended.
+     * 
+ * + * SUSPENDED = 2; + */ + public static final int SUSPENDED_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return SUSPENDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.Authorization.getDescriptor().getEnumTypes().get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentidentity.v1.Authorization.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int CLIENT_USER_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientUserId_ = ""; + + /** + * + * + *
+   * Output only. The client_user_id provided by the client application for
+   * their end user. Not verified by Google.
+   * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clientUserId. + */ + @java.lang.Override + public java.lang.String getClientUserId() { + java.lang.Object ref = clientUserId_; + 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(); + clientUserId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The client_user_id provided by the client application for
+   * their end user. Not verified by Google.
+   * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clientUserId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientUserIdBytes() { + java.lang.Object ref = clientUserId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientUserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + return scopes_; + } + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The state of the authorization.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The state of the authorization.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.Authorization.State getState() { + com.google.cloud.agentidentity.v1.Authorization.State result = + com.google.cloud.agentidentity.v1.Authorization.State.forNumber(state_); + return result == null + ? com.google.cloud.agentidentity.v1.Authorization.State.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientUserId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, clientUserId_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, scopes_.getRaw(i)); + } + if (state_ + != com.google.cloud.agentidentity.v1.Authorization.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(7, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientUserId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, clientUserId_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (state_ + != com.google.cloud.agentidentity.v1.Authorization.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.Authorization)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.Authorization other = + (com.google.cloud.agentidentity.v1.Authorization) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getClientUserId().equals(other.getClientUserId())) return false; + if (!getScopesList().equals(other.getScopesList())) return false; + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + CLIENT_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientUserId().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.Authorization parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.Authorization parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.Authorization parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.Authorization 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.cloud.agentidentity.v1.Authorization parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.Authorization parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.Authorization parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.Authorization parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.Authorization parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.Authorization parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.Authorization parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.Authorization parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.Authorization 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing Authorization object
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.Authorization} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.Authorization) + com.google.cloud.agentidentity.v1.AuthorizationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_Authorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_Authorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.Authorization.class, + com.google.cloud.agentidentity.v1.Authorization.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.Authorization.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + clientUserId_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_Authorization_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.Authorization getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.Authorization.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.Authorization build() { + com.google.cloud.agentidentity.v1.Authorization result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.Authorization buildPartial() { + com.google.cloud.agentidentity.v1.Authorization result = + new com.google.cloud.agentidentity.v1.Authorization(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.Authorization result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clientUserId_ = clientUserId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.Authorization) { + return mergeFrom((com.google.cloud.agentidentity.v1.Authorization) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.Authorization other) { + if (other == com.google.cloud.agentidentity.v1.Authorization.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getClientUserId().isEmpty()) { + clientUserId_ = other.clientUserId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000010; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + clientUserId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. name of resource
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. name of resource
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. name of resource
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. name of resource
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. name of resource
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object clientUserId_ = ""; + + /** + * + * + *
+     * Output only. The client_user_id provided by the client application for
+     * their end user. Not verified by Google.
+     * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clientUserId. + */ + public java.lang.String getClientUserId() { + java.lang.Object ref = clientUserId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientUserId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The client_user_id provided by the client application for
+     * their end user. Not verified by Google.
+     * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clientUserId. + */ + public com.google.protobuf.ByteString getClientUserIdBytes() { + java.lang.Object ref = clientUserId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientUserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The client_user_id provided by the client application for
+     * their end user. Not verified by Google.
+     * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The clientUserId to set. + * @return This builder for chaining. + */ + public Builder setClientUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientUserId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The client_user_id provided by the client application for
+     * their end user. Not verified by Google.
+     * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearClientUserId() { + clientUserId_ = getDefaultInstance().getClientUserId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The client_user_id provided by the client application for
+     * their end user. Not verified by Google.
+     * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for clientUserId to set. + * @return This builder for chaining. + */ + public Builder setClientUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientUserId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes(java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The state of the authorization.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The state of the authorization.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the authorization.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.Authorization.State getState() { + com.google.cloud.agentidentity.v1.Authorization.State result = + com.google.cloud.agentidentity.v1.Authorization.State.forNumber(state_); + return result == null + ? com.google.cloud.agentidentity.v1.Authorization.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The state of the authorization.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.agentidentity.v1.Authorization.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the authorization.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.Authorization) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.Authorization) + private static final com.google.cloud.agentidentity.v1.Authorization DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.Authorization(); + } + + public static com.google.cloud.agentidentity.v1.Authorization getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authorization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.Authorization getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthorizationName.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthorizationName.java new file mode 100644 index 000000000000..07c45975a1b1 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthorizationName.java @@ -0,0 +1,272 @@ +/* + * Copyright 2026 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.agentidentity.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AuthorizationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AUTH_PROVIDER_AUTHORIZATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String authProvider; + private final String authorization; + + @Deprecated + protected AuthorizationName() { + project = null; + location = null; + authProvider = null; + authorization = null; + } + + private AuthorizationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + authProvider = Preconditions.checkNotNull(builder.getAuthProvider()); + authorization = Preconditions.checkNotNull(builder.getAuthorization()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAuthProvider() { + return authProvider; + } + + public String getAuthorization() { + return authorization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AuthorizationName of( + String project, String location, String authProvider, String authorization) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAuthProvider(authProvider) + .setAuthorization(authorization) + .build(); + } + + public static String format( + String project, String location, String authProvider, String authorization) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAuthProvider(authProvider) + .setAuthorization(authorization) + .build() + .toString(); + } + + public static @Nullable AuthorizationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AUTH_PROVIDER_AUTHORIZATION.validatedMatch( + formattedString, "AuthorizationName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("auth_provider"), + matchMap.get("authorization")); + } + + 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<@Nullable AuthorizationName> values) { + List list = new ArrayList<>(values.size()); + for (AuthorizationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AUTH_PROVIDER_AUTHORIZATION.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 (location != null) { + fieldMapBuilder.put("location", location); + } + if (authProvider != null) { + fieldMapBuilder.put("auth_provider", authProvider); + } + if (authorization != null) { + fieldMapBuilder.put("authorization", authorization); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AUTH_PROVIDER_AUTHORIZATION.instantiate( + "project", + project, + "location", + location, + "auth_provider", + authProvider, + "authorization", + authorization); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AuthorizationName that = ((AuthorizationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.authProvider, that.authProvider) + && Objects.equals(this.authorization, that.authorization); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(authProvider); + h *= 1000003; + h ^= Objects.hashCode(authorization); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}. + */ + public static class Builder { + private String project; + private String location; + private String authProvider; + private String authorization; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAuthProvider() { + return authProvider; + } + + public String getAuthorization() { + return authorization; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAuthProvider(String authProvider) { + this.authProvider = authProvider; + return this; + } + + public Builder setAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + private Builder(AuthorizationName authorizationName) { + this.project = authorizationName.project; + this.location = authorizationName.location; + this.authProvider = authorizationName.authProvider; + this.authorization = authorizationName.authorization; + } + + public AuthorizationName build() { + return new AuthorizationName(this); + } + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthorizationOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthorizationOrBuilder.java new file mode 100644 index 000000000000..076682fd9027 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/AuthorizationOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface AuthorizationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.Authorization) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The client_user_id provided by the client application for
+   * their end user. Not verified by Google.
+   * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clientUserId. + */ + java.lang.String getClientUserId(); + + /** + * + * + *
+   * Output only. The client_user_id provided by the client application for
+   * their end user. Not verified by Google.
+   * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clientUserId. + */ + com.google.protobuf.ByteString getClientUserIdBytes(); + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scopes. + */ + java.util.List getScopesList(); + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scopes. + */ + int getScopesCount(); + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString getScopesBytes(int index); + + /** + * + * + *
+   * Output only. The state of the authorization.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The state of the authorization.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.agentidentity.v1.Authorization.State getState(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/CreateAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/CreateAuthProviderRequest.java new file mode 100644 index 000000000000..742f8eaa7493 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/CreateAuthProviderRequest.java @@ -0,0 +1,1441 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for creating a AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.CreateAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class CreateAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.CreateAuthProviderRequest) + CreateAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateAuthProviderRequest"); + } + + // Use CreateAuthProviderRequest.newBuilder() to construct. + private CreateAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAuthProviderRequest() { + parent_ = ""; + authProviderId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_CreateAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_CreateAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where the AuthProvider is created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+   * Required. The parent resource where the AuthProvider is created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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 AUTH_PROVIDER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object authProviderId_ = ""; + + /** + * + * + *
+   * Required. The ID to use for the AuthProvider, which will become the final
+   * segment of the AuthProvider's resource name. This value should be 1-63
+   * characters, and valid characters are /[a-z][0-9]-/. The first character
+   * must be a lowercase letter, and the last character must be a lowercase
+   * letter or a number.
+   * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authProviderId. + */ + @java.lang.Override + public java.lang.String getAuthProviderId() { + java.lang.Object ref = authProviderId_; + 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(); + authProviderId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID to use for the AuthProvider, which will become the final
+   * segment of the AuthProvider's resource name. This value should be 1-63
+   * characters, and valid characters are /[a-z][0-9]-/. The first character
+   * must be a lowercase letter, and the last character must be a lowercase
+   * letter or a number.
+   * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authProviderId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthProviderIdBytes() { + java.lang.Object ref = authProviderId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authProviderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTH_PROVIDER_FIELD_NUMBER = 3; + private com.google.cloud.agentidentity.v1.AuthProvider authProvider_; + + /** + * + * + *
+   * Required. The AuthProvider to create.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProvider field is set. + */ + @java.lang.Override + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The AuthProvider to create.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProvider. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider getAuthProvider() { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance() + : authProvider_; + } + + /** + * + * + *
+   * Required. The AuthProvider to create.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProviderOrBuilder getAuthProviderOrBuilder() { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance() + : authProvider_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProviderId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, authProviderId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAuthProvider()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProviderId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, authProviderId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthProvider()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.CreateAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest other = + (com.google.cloud.agentidentity.v1.CreateAuthProviderRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAuthProviderId().equals(other.getAuthProviderId())) return false; + if (hasAuthProvider() != other.hasAuthProvider()) return false; + if (hasAuthProvider()) { + if (!getAuthProvider().equals(other.getAuthProvider())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + AUTH_PROVIDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAuthProviderId().hashCode(); + if (hasAuthProvider()) { + hash = (37 * hash) + AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvider().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.CreateAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.CreateAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.CreateAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.CreateAuthProviderRequest 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.cloud.agentidentity.v1.CreateAuthProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.CreateAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.CreateAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.CreateAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.CreateAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.CreateAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.CreateAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.CreateAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.CreateAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating a AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.CreateAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.CreateAuthProviderRequest) + com.google.cloud.agentidentity.v1.CreateAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_CreateAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_CreateAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.CreateAuthProviderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAuthProviderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + authProviderId_ = ""; + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_CreateAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.CreateAuthProviderRequest getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.CreateAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.CreateAuthProviderRequest build() { + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.CreateAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1.CreateAuthProviderRequest result = + new com.google.cloud.agentidentity.v1.CreateAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.CreateAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authProviderId_ = authProviderId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authProvider_ = + authProviderBuilder_ == null ? authProvider_ : authProviderBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.CreateAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.CreateAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.CreateAuthProviderRequest other) { + if (other == com.google.cloud.agentidentity.v1.CreateAuthProviderRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAuthProviderId().isEmpty()) { + authProviderId_ = other.authProviderId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAuthProvider()) { + mergeAuthProvider(other.getAuthProvider()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + authProviderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAuthProviderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where the AuthProvider is created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the AuthProvider is created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the AuthProvider is created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the AuthProvider is created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the AuthProvider is created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object authProviderId_ = ""; + + /** + * + * + *
+     * Required. The ID to use for the AuthProvider, which will become the final
+     * segment of the AuthProvider's resource name. This value should be 1-63
+     * characters, and valid characters are /[a-z][0-9]-/. The first character
+     * must be a lowercase letter, and the last character must be a lowercase
+     * letter or a number.
+     * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authProviderId. + */ + public java.lang.String getAuthProviderId() { + java.lang.Object ref = authProviderId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProviderId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the AuthProvider, which will become the final
+     * segment of the AuthProvider's resource name. This value should be 1-63
+     * characters, and valid characters are /[a-z][0-9]-/. The first character
+     * must be a lowercase letter, and the last character must be a lowercase
+     * letter or a number.
+     * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authProviderId. + */ + public com.google.protobuf.ByteString getAuthProviderIdBytes() { + java.lang.Object ref = authProviderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authProviderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the AuthProvider, which will become the final
+     * segment of the AuthProvider's resource name. This value should be 1-63
+     * characters, and valid characters are /[a-z][0-9]-/. The first character
+     * must be a lowercase letter, and the last character must be a lowercase
+     * letter or a number.
+     * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The authProviderId to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authProviderId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the AuthProvider, which will become the final
+     * segment of the AuthProvider's resource name. This value should be 1-63
+     * characters, and valid characters are /[a-z][0-9]-/. The first character
+     * must be a lowercase letter, and the last character must be a lowercase
+     * letter or a number.
+     * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAuthProviderId() { + authProviderId_ = getDefaultInstance().getAuthProviderId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the AuthProvider, which will become the final
+     * segment of the AuthProvider's resource name. This value should be 1-63
+     * characters, and valid characters are /[a-z][0-9]-/. The first character
+     * must be a lowercase letter, and the last character must be a lowercase
+     * letter or a number.
+     * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for authProviderId to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authProviderId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.agentidentity.v1.AuthProvider authProvider_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.AuthProvider, + com.google.cloud.agentidentity.v1.AuthProvider.Builder, + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder> + authProviderBuilder_; + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProvider field is set. + */ + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProvider. + */ + public com.google.cloud.agentidentity.v1.AuthProvider getAuthProvider() { + if (authProviderBuilder_ == null) { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance() + : authProvider_; + } else { + return authProviderBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthProvider(com.google.cloud.agentidentity.v1.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authProvider_ = value; + } else { + authProviderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthProvider( + com.google.cloud.agentidentity.v1.AuthProvider.Builder builderForValue) { + if (authProviderBuilder_ == null) { + authProvider_ = builderForValue.build(); + } else { + authProviderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthProvider(com.google.cloud.agentidentity.v1.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && authProvider_ != null + && authProvider_ + != com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance()) { + getAuthProviderBuilder().mergeFrom(value); + } else { + authProvider_ = value; + } + } else { + authProviderBuilder_.mergeFrom(value); + } + if (authProvider_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthProvider() { + bitField0_ = (bitField0_ & ~0x00000004); + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentidentity.v1.AuthProvider.Builder getAuthProviderBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAuthProviderFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentidentity.v1.AuthProviderOrBuilder getAuthProviderOrBuilder() { + if (authProviderBuilder_ != null) { + return authProviderBuilder_.getMessageOrBuilder(); + } else { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance() + : authProvider_; + } + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.AuthProvider, + com.google.cloud.agentidentity.v1.AuthProvider.Builder, + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder> + internalGetAuthProviderFieldBuilder() { + if (authProviderBuilder_ == null) { + authProviderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.AuthProvider, + com.google.cloud.agentidentity.v1.AuthProvider.Builder, + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder>( + getAuthProvider(), getParentForChildren(), isClean()); + authProvider_ = null; + } + return authProviderBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.CreateAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.CreateAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1.CreateAuthProviderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.CreateAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1.CreateAuthProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.CreateAuthProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/CreateAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/CreateAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..82197f240938 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/CreateAuthProviderRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface CreateAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.CreateAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the AuthProvider is created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where the AuthProvider is created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID to use for the AuthProvider, which will become the final
+   * segment of the AuthProvider's resource name. This value should be 1-63
+   * characters, and valid characters are /[a-z][0-9]-/. The first character
+   * must be a lowercase letter, and the last character must be a lowercase
+   * letter or a number.
+   * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authProviderId. + */ + java.lang.String getAuthProviderId(); + + /** + * + * + *
+   * Required. The ID to use for the AuthProvider, which will become the final
+   * segment of the AuthProvider's resource name. This value should be 1-63
+   * characters, and valid characters are /[a-z][0-9]-/. The first character
+   * must be a lowercase letter, and the last character must be a lowercase
+   * letter or a number.
+   * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authProviderId. + */ + com.google.protobuf.ByteString getAuthProviderIdBytes(); + + /** + * + * + *
+   * Required. The AuthProvider to create.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProvider field is set. + */ + boolean hasAuthProvider(); + + /** + * + * + *
+   * Required. The AuthProvider to create.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProvider. + */ + com.google.cloud.agentidentity.v1.AuthProvider getAuthProvider(); + + /** + * + * + *
+   * Required. The AuthProvider to create.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder getAuthProviderOrBuilder(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthProviderRequest.java new file mode 100644 index 000000000000..915c52b422ad --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthProviderRequest.java @@ -0,0 +1,898 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for deleting a AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.DeleteAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.DeleteAuthProviderRequest) + DeleteAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteAuthProviderRequest"); + } + + // Use DeleteAuthProviderRequest.newBuilder() to construct. + private DeleteAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAuthProviderRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DeleteAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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. Name of the resource
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.DeleteAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest other = + (com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest 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.cloud.agentidentity.v1.DeleteAuthProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.DeleteAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting a AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.DeleteAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.DeleteAuthProviderRequest) + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DeleteAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest build() { + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest result = + new com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest other) { + if (other == com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.DeleteAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.DeleteAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.DeleteAuthProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..6011b8f86e73 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthProviderRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface DeleteAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.DeleteAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthorizationRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthorizationRequest.java new file mode 100644 index 000000000000..c42980f389bd --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthorizationRequest.java @@ -0,0 +1,916 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for deleting an Authorization
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.DeleteAuthorizationRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAuthorizationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.DeleteAuthorizationRequest) + DeleteAuthorizationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteAuthorizationRequest"); + } + + // Use DeleteAuthorizationRequest.newBuilder() to construct. + private DeleteAuthorizationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAuthorizationRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DeleteAuthorizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DeleteAuthorizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest.class, + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the Authorization to delete.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+   * 
+ * + * + * 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 name of the Authorization to delete.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.DeleteAuthorizationRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest other = + (com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest 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.cloud.agentidentity.v1.DeleteAuthorizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.DeleteAuthorizationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting an Authorization
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.DeleteAuthorizationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.DeleteAuthorizationRequest) + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DeleteAuthorizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DeleteAuthorizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest.class, + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DeleteAuthorizationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest build() { + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest buildPartial() { + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest result = + new com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest other) { + if (other + == com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the Authorization to delete.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+     * 
+ * + * + * 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 name of the Authorization to delete.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+     * 
+ * + * + * 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 name of the Authorization to delete.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the Authorization to delete.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the Authorization to delete.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.DeleteAuthorizationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.DeleteAuthorizationRequest) + private static final com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest(); + } + + public static com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAuthorizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.DeleteAuthorizationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthorizationRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthorizationRequestOrBuilder.java new file mode 100644 index 000000000000..7ddd3900be4c --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DeleteAuthorizationRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface DeleteAuthorizationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.DeleteAuthorizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Authorization to delete.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the Authorization to delete.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DisableAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DisableAuthProviderRequest.java new file mode 100644 index 000000000000..04089324f149 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DisableAuthProviderRequest.java @@ -0,0 +1,874 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for disabling an AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.DisableAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class DisableAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.DisableAuthProviderRequest) + DisableAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DisableAuthProviderRequest"); + } + + // Use DisableAuthProviderRequest.newBuilder() to construct. + private DisableAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DisableAuthProviderRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DisableAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DisableAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.DisableAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest other = + (com.google.cloud.agentidentity.v1.DisableAuthProviderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.DisableAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.DisableAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.DisableAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.DisableAuthProviderRequest 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.cloud.agentidentity.v1.DisableAuthProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.DisableAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.DisableAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.DisableAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.DisableAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.DisableAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.DisableAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.DisableAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.DisableAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for disabling an AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.DisableAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.DisableAuthProviderRequest) + com.google.cloud.agentidentity.v1.DisableAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DisableAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DisableAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.DisableAuthProviderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_DisableAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.DisableAuthProviderRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.DisableAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.DisableAuthProviderRequest build() { + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.DisableAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest result = + new com.google.cloud.agentidentity.v1.DisableAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1.DisableAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.DisableAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.DisableAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.DisableAuthProviderRequest other) { + if (other + == com.google.cloud.agentidentity.v1.DisableAuthProviderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.DisableAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.DisableAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1.DisableAuthProviderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.DisableAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1.DisableAuthProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisableAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.DisableAuthProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DisableAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DisableAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..852e0a17b21c --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/DisableAuthProviderRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface DisableAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.DisableAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/EnableAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/EnableAuthProviderRequest.java new file mode 100644 index 000000000000..837147101b4d --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/EnableAuthProviderRequest.java @@ -0,0 +1,870 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for enabling an AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.EnableAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class EnableAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.EnableAuthProviderRequest) + EnableAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EnableAuthProviderRequest"); + } + + // Use EnableAuthProviderRequest.newBuilder() to construct. + private EnableAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EnableAuthProviderRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_EnableAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_EnableAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.EnableAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest other = + (com.google.cloud.agentidentity.v1.EnableAuthProviderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.EnableAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.EnableAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.EnableAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.EnableAuthProviderRequest 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.cloud.agentidentity.v1.EnableAuthProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.EnableAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.EnableAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.EnableAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.EnableAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.EnableAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.EnableAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.EnableAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.EnableAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for enabling an AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.EnableAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.EnableAuthProviderRequest) + com.google.cloud.agentidentity.v1.EnableAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_EnableAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_EnableAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.EnableAuthProviderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_EnableAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.EnableAuthProviderRequest getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.EnableAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.EnableAuthProviderRequest build() { + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.EnableAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1.EnableAuthProviderRequest result = + new com.google.cloud.agentidentity.v1.EnableAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.EnableAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.EnableAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.EnableAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.EnableAuthProviderRequest other) { + if (other == com.google.cloud.agentidentity.v1.EnableAuthProviderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.EnableAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.EnableAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1.EnableAuthProviderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.EnableAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1.EnableAuthProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnableAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.EnableAuthProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/EnableAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/EnableAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..d4d503bad6a8 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/EnableAuthProviderRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface EnableAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.EnableAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GeminiEnterpriseAuthProviderParams.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GeminiEnterpriseAuthProviderParams.java new file mode 100644 index 000000000000..ca30d712b268 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GeminiEnterpriseAuthProviderParams.java @@ -0,0 +1,408 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message describing GeminiEnterpriseAuthProviderParams object.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams} + */ +@com.google.protobuf.Generated +public final class GeminiEnterpriseAuthProviderParams extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) + GeminiEnterpriseAuthProviderParamsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GeminiEnterpriseAuthProviderParams"); + } + + // Use GeminiEnterpriseAuthProviderParams.newBuilder() to construct. + private GeminiEnterpriseAuthProviderParams( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GeminiEnterpriseAuthProviderParams() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GeminiEnterpriseAuthProviderParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GeminiEnterpriseAuthProviderParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams.class, + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams other = + (com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams 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.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing GeminiEnterpriseAuthProviderParams object.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GeminiEnterpriseAuthProviderParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GeminiEnterpriseAuthProviderParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams.class, + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams.Builder.class); + } + + // Construct using + // com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GeminiEnterpriseAuthProviderParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams build() { + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams buildPartial() { + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams result = + new com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) { + return mergeFrom( + (com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams other) { + if (other + == com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) + private static final com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams(); + } + + public static com.google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeminiEnterpriseAuthProviderParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GeminiEnterpriseAuthProviderParamsOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GeminiEnterpriseAuthProviderParamsOrBuilder.java new file mode 100644 index 000000000000..8f4c99d9488f --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GeminiEnterpriseAuthProviderParamsOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface GeminiEnterpriseAuthProviderParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.GeminiEnterpriseAuthProviderParams) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAccessSummaryRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAccessSummaryRequest.java new file mode 100644 index 000000000000..0101f149c623 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAccessSummaryRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for getting a AccessSummary
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.GetAccessSummaryRequest} + */ +@com.google.protobuf.Generated +public final class GetAccessSummaryRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.GetAccessSummaryRequest) + GetAccessSummaryRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAccessSummaryRequest"); + } + + // Use GetAccessSummaryRequest.newBuilder() to construct. + private GetAccessSummaryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAccessSummaryRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAccessSummaryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAccessSummaryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest.class, + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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. Name of the resource
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.GetAccessSummaryRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest other = + (com.google.cloud.agentidentity.v1.GetAccessSummaryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.GetAccessSummaryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.GetAccessSummaryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GetAccessSummaryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.GetAccessSummaryRequest 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.cloud.agentidentity.v1.GetAccessSummaryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.GetAccessSummaryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GetAccessSummaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.GetAccessSummaryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GetAccessSummaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.GetAccessSummaryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GetAccessSummaryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.GetAccessSummaryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.GetAccessSummaryRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a AccessSummary
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.GetAccessSummaryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.GetAccessSummaryRequest) + com.google.cloud.agentidentity.v1.GetAccessSummaryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAccessSummaryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAccessSummaryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest.class, + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.GetAccessSummaryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAccessSummaryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.GetAccessSummaryRequest getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.GetAccessSummaryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.GetAccessSummaryRequest build() { + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.GetAccessSummaryRequest buildPartial() { + com.google.cloud.agentidentity.v1.GetAccessSummaryRequest result = + new com.google.cloud.agentidentity.v1.GetAccessSummaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.GetAccessSummaryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.GetAccessSummaryRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.GetAccessSummaryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.GetAccessSummaryRequest other) { + if (other == com.google.cloud.agentidentity.v1.GetAccessSummaryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.GetAccessSummaryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.GetAccessSummaryRequest) + private static final com.google.cloud.agentidentity.v1.GetAccessSummaryRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.GetAccessSummaryRequest(); + } + + public static com.google.cloud.agentidentity.v1.GetAccessSummaryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAccessSummaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.GetAccessSummaryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAccessSummaryRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAccessSummaryRequestOrBuilder.java new file mode 100644 index 000000000000..8f81eb335d60 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAccessSummaryRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface GetAccessSummaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.GetAccessSummaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthProviderRequest.java new file mode 100644 index 000000000000..248c13a23e7d --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthProviderRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for getting a AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.GetAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class GetAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.GetAuthProviderRequest) + GetAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAuthProviderRequest"); + } + + // Use GetAuthProviderRequest.newBuilder() to construct. + private GetAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAuthProviderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.GetAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.GetAuthProviderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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. Name of the resource
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.GetAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.GetAuthProviderRequest other = + (com.google.cloud.agentidentity.v1.GetAuthProviderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.GetAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.GetAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GetAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.GetAuthProviderRequest 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.cloud.agentidentity.v1.GetAuthProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.GetAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GetAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.GetAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GetAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.GetAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GetAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.GetAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.GetAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.GetAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.GetAuthProviderRequest) + com.google.cloud.agentidentity.v1.GetAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.GetAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.GetAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.GetAuthProviderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.GetAuthProviderRequest getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.GetAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.GetAuthProviderRequest build() { + com.google.cloud.agentidentity.v1.GetAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.GetAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1.GetAuthProviderRequest result = + new com.google.cloud.agentidentity.v1.GetAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.GetAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.GetAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.GetAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.GetAuthProviderRequest other) { + if (other == com.google.cloud.agentidentity.v1.GetAuthProviderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.GetAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.GetAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1.GetAuthProviderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.GetAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1.GetAuthProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.GetAuthProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..c9db0326910f --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthProviderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface GetAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.GetAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthorizationRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthorizationRequest.java new file mode 100644 index 000000000000..18fa0732c535 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthorizationRequest.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for getting a Authorization
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.GetAuthorizationRequest} + */ +@com.google.protobuf.Generated +public final class GetAuthorizationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.GetAuthorizationRequest) + GetAuthorizationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAuthorizationRequest"); + } + + // Use GetAuthorizationRequest.newBuilder() to construct. + private GetAuthorizationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAuthorizationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAuthorizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAuthorizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.GetAuthorizationRequest.class, + com.google.cloud.agentidentity.v1.GetAuthorizationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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. Name of the resource
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.GetAuthorizationRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.GetAuthorizationRequest other = + (com.google.cloud.agentidentity.v1.GetAuthorizationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.GetAuthorizationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.GetAuthorizationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GetAuthorizationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.GetAuthorizationRequest 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.cloud.agentidentity.v1.GetAuthorizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.GetAuthorizationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GetAuthorizationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.GetAuthorizationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GetAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.GetAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.GetAuthorizationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.GetAuthorizationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.GetAuthorizationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a Authorization
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.GetAuthorizationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.GetAuthorizationRequest) + com.google.cloud.agentidentity.v1.GetAuthorizationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAuthorizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAuthorizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.GetAuthorizationRequest.class, + com.google.cloud.agentidentity.v1.GetAuthorizationRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.GetAuthorizationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_GetAuthorizationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.GetAuthorizationRequest getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.GetAuthorizationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.GetAuthorizationRequest build() { + com.google.cloud.agentidentity.v1.GetAuthorizationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.GetAuthorizationRequest buildPartial() { + com.google.cloud.agentidentity.v1.GetAuthorizationRequest result = + new com.google.cloud.agentidentity.v1.GetAuthorizationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.GetAuthorizationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.GetAuthorizationRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.GetAuthorizationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.GetAuthorizationRequest other) { + if (other == com.google.cloud.agentidentity.v1.GetAuthorizationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.GetAuthorizationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.GetAuthorizationRequest) + private static final com.google.cloud.agentidentity.v1.GetAuthorizationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.GetAuthorizationRequest(); + } + + public static com.google.cloud.agentidentity.v1.GetAuthorizationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthorizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.GetAuthorizationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthorizationRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthorizationRequestOrBuilder.java new file mode 100644 index 000000000000..fa6b2eb762c4 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/GetAuthorizationRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface GetAuthorizationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.GetAuthorizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesRequest.java new file mode 100644 index 000000000000..b52aef218f86 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesRequest.java @@ -0,0 +1,1332 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for requesting list of AccessSummaries
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ListAccessSummariesRequest} + */ +@com.google.protobuf.Generated +public final class ListAccessSummariesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.ListAccessSummariesRequest) + ListAccessSummariesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAccessSummariesRequest"); + } + + // Use ListAccessSummariesRequest.newBuilder() to construct. + private ListAccessSummariesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAccessSummariesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAccessSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAccessSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest.class, + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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_ = 0; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   *
+   * Currently supports filtering by `workload_id` or `auth_provider_name`.
+   * If no filter is provided, returns all access summaries for the requested
+   * project and location. Format: `workload_id="<value>"` or
+   * `auth_provider_name="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   *
+   * Currently supports filtering by `workload_id` or `auth_provider_name`.
+   * If no filter is provided, returns all access summaries for the requested
+   * project and location. Format: `workload_id="<value>"` or
+   * `auth_provider_name="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.ListAccessSummariesRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest other = + (com.google.cloud.agentidentity.v1.ListAccessSummariesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesRequest 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.cloud.agentidentity.v1.ListAccessSummariesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.ListAccessSummariesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting list of AccessSummaries
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ListAccessSummariesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.ListAccessSummariesRequest) + com.google.cloud.agentidentity.v1.ListAccessSummariesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAccessSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAccessSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest.class, + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.ListAccessSummariesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAccessSummariesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAccessSummariesRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.ListAccessSummariesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAccessSummariesRequest build() { + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAccessSummariesRequest buildPartial() { + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest result = + new com.google.cloud.agentidentity.v1.ListAccessSummariesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1.ListAccessSummariesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.ListAccessSummariesRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.ListAccessSummariesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.ListAccessSummariesRequest other) { + if (other + == com.google.cloud.agentidentity.v1.ListAccessSummariesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     *
+     * Currently supports filtering by `workload_id` or `auth_provider_name`.
+     * If no filter is provided, returns all access summaries for the requested
+     * project and location. Format: `workload_id="<value>"` or
+     * `auth_provider_name="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     *
+     * Currently supports filtering by `workload_id` or `auth_provider_name`.
+     * If no filter is provided, returns all access summaries for the requested
+     * project and location. Format: `workload_id="<value>"` or
+     * `auth_provider_name="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     *
+     * Currently supports filtering by `workload_id` or `auth_provider_name`.
+     * If no filter is provided, returns all access summaries for the requested
+     * project and location. Format: `workload_id="<value>"` or
+     * `auth_provider_name="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     *
+     * Currently supports filtering by `workload_id` or `auth_provider_name`.
+     * If no filter is provided, returns all access summaries for the requested
+     * project and location. Format: `workload_id="<value>"` or
+     * `auth_provider_name="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     *
+     * Currently supports filtering by `workload_id` or `auth_provider_name`.
+     * If no filter is provided, returns all access summaries for the requested
+     * project and location. Format: `workload_id="<value>"` or
+     * `auth_provider_name="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.ListAccessSummariesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.ListAccessSummariesRequest) + private static final com.google.cloud.agentidentity.v1.ListAccessSummariesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.ListAccessSummariesRequest(); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccessSummariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.ListAccessSummariesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesRequestOrBuilder.java new file mode 100644 index 000000000000..39955f905c72 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesRequestOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface ListAccessSummariesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.ListAccessSummariesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   *
+   * Currently supports filtering by `workload_id` or `auth_provider_name`.
+   * If no filter is provided, returns all access summaries for the requested
+   * project and location. Format: `workload_id="<value>"` or
+   * `auth_provider_name="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   *
+   * Currently supports filtering by `workload_id` or `auth_provider_name`.
+   * If no filter is provided, returns all access summaries for the requested
+   * project and location. Format: `workload_id="<value>"` or
+   * `auth_provider_name="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesResponse.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesResponse.java new file mode 100644 index 000000000000..48c2fd8e4688 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesResponse.java @@ -0,0 +1,1420 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for response to listing AccessSummaries
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ListAccessSummariesResponse} + */ +@com.google.protobuf.Generated +public final class ListAccessSummariesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.ListAccessSummariesResponse) + ListAccessSummariesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAccessSummariesResponse"); + } + + // Use ListAccessSummariesResponse.newBuilder() to construct. + private ListAccessSummariesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAccessSummariesResponse() { + accessSummaries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAccessSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAccessSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse.class, + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse.Builder.class); + } + + public static final int ACCESS_SUMMARIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accessSummaries_; + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + @java.lang.Override + public java.util.List getAccessSummariesList() { + return accessSummaries_; + } + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + @java.lang.Override + public java.util.List + getAccessSummariesOrBuilderList() { + return accessSummaries_; + } + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + @java.lang.Override + public int getAccessSummariesCount() { + return accessSummaries_.size(); + } + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AccessSummary getAccessSummaries(int index) { + return accessSummaries_.get(index); + } + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AccessSummaryOrBuilder getAccessSummariesOrBuilder( + int index) { + return accessSummaries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < accessSummaries_.size(); i++) { + output.writeMessage(1, accessSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accessSummaries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().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.cloud.agentidentity.v1.ListAccessSummariesResponse)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse other = + (com.google.cloud.agentidentity.v1.ListAccessSummariesResponse) obj; + + if (!getAccessSummariesList().equals(other.getAccessSummariesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccessSummariesCount() > 0) { + hash = (37 * hash) + ACCESS_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getAccessSummariesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesResponse 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.cloud.agentidentity.v1.ListAccessSummariesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.ListAccessSummariesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing AccessSummaries
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ListAccessSummariesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.ListAccessSummariesResponse) + com.google.cloud.agentidentity.v1.ListAccessSummariesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAccessSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAccessSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse.class, + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.ListAccessSummariesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accessSummariesBuilder_ == null) { + accessSummaries_ = java.util.Collections.emptyList(); + } else { + accessSummaries_ = null; + accessSummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAccessSummariesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAccessSummariesResponse + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.ListAccessSummariesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAccessSummariesResponse build() { + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAccessSummariesResponse buildPartial() { + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse result = + new com.google.cloud.agentidentity.v1.ListAccessSummariesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse result) { + if (accessSummariesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accessSummaries_ = java.util.Collections.unmodifiableList(accessSummaries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accessSummaries_ = accessSummaries_; + } else { + result.accessSummaries_ = accessSummariesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1.ListAccessSummariesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.ListAccessSummariesResponse) { + return mergeFrom((com.google.cloud.agentidentity.v1.ListAccessSummariesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.ListAccessSummariesResponse other) { + if (other + == com.google.cloud.agentidentity.v1.ListAccessSummariesResponse.getDefaultInstance()) + return this; + if (accessSummariesBuilder_ == null) { + if (!other.accessSummaries_.isEmpty()) { + if (accessSummaries_.isEmpty()) { + accessSummaries_ = other.accessSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccessSummariesIsMutable(); + accessSummaries_.addAll(other.accessSummaries_); + } + onChanged(); + } + } else { + if (!other.accessSummaries_.isEmpty()) { + if (accessSummariesBuilder_.isEmpty()) { + accessSummariesBuilder_.dispose(); + accessSummariesBuilder_ = null; + accessSummaries_ = other.accessSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + accessSummariesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAccessSummariesFieldBuilder() + : null; + } else { + accessSummariesBuilder_.addAllMessages(other.accessSummaries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.agentidentity.v1.AccessSummary m = + input.readMessage( + com.google.cloud.agentidentity.v1.AccessSummary.parser(), + extensionRegistry); + if (accessSummariesBuilder_ == null) { + ensureAccessSummariesIsMutable(); + accessSummaries_.add(m); + } else { + accessSummariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accessSummaries_ = + java.util.Collections.emptyList(); + + private void ensureAccessSummariesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accessSummaries_ = + new java.util.ArrayList( + accessSummaries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1.AccessSummary, + com.google.cloud.agentidentity.v1.AccessSummary.Builder, + com.google.cloud.agentidentity.v1.AccessSummaryOrBuilder> + accessSummariesBuilder_; + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public java.util.List + getAccessSummariesList() { + if (accessSummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessSummaries_); + } else { + return accessSummariesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public int getAccessSummariesCount() { + if (accessSummariesBuilder_ == null) { + return accessSummaries_.size(); + } else { + return accessSummariesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public com.google.cloud.agentidentity.v1.AccessSummary getAccessSummaries(int index) { + if (accessSummariesBuilder_ == null) { + return accessSummaries_.get(index); + } else { + return accessSummariesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public Builder setAccessSummaries( + int index, com.google.cloud.agentidentity.v1.AccessSummary value) { + if (accessSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessSummariesIsMutable(); + accessSummaries_.set(index, value); + onChanged(); + } else { + accessSummariesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public Builder setAccessSummaries( + int index, com.google.cloud.agentidentity.v1.AccessSummary.Builder builderForValue) { + if (accessSummariesBuilder_ == null) { + ensureAccessSummariesIsMutable(); + accessSummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + accessSummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public Builder addAccessSummaries(com.google.cloud.agentidentity.v1.AccessSummary value) { + if (accessSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessSummariesIsMutable(); + accessSummaries_.add(value); + onChanged(); + } else { + accessSummariesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public Builder addAccessSummaries( + int index, com.google.cloud.agentidentity.v1.AccessSummary value) { + if (accessSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessSummariesIsMutable(); + accessSummaries_.add(index, value); + onChanged(); + } else { + accessSummariesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public Builder addAccessSummaries( + com.google.cloud.agentidentity.v1.AccessSummary.Builder builderForValue) { + if (accessSummariesBuilder_ == null) { + ensureAccessSummariesIsMutable(); + accessSummaries_.add(builderForValue.build()); + onChanged(); + } else { + accessSummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public Builder addAccessSummaries( + int index, com.google.cloud.agentidentity.v1.AccessSummary.Builder builderForValue) { + if (accessSummariesBuilder_ == null) { + ensureAccessSummariesIsMutable(); + accessSummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + accessSummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public Builder addAllAccessSummaries( + java.lang.Iterable values) { + if (accessSummariesBuilder_ == null) { + ensureAccessSummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessSummaries_); + onChanged(); + } else { + accessSummariesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public Builder clearAccessSummaries() { + if (accessSummariesBuilder_ == null) { + accessSummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accessSummariesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public Builder removeAccessSummaries(int index) { + if (accessSummariesBuilder_ == null) { + ensureAccessSummariesIsMutable(); + accessSummaries_.remove(index); + onChanged(); + } else { + accessSummariesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public com.google.cloud.agentidentity.v1.AccessSummary.Builder getAccessSummariesBuilder( + int index) { + return internalGetAccessSummariesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public com.google.cloud.agentidentity.v1.AccessSummaryOrBuilder getAccessSummariesOrBuilder( + int index) { + if (accessSummariesBuilder_ == null) { + return accessSummaries_.get(index); + } else { + return accessSummariesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public java.util.List + getAccessSummariesOrBuilderList() { + if (accessSummariesBuilder_ != null) { + return accessSummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessSummaries_); + } + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public com.google.cloud.agentidentity.v1.AccessSummary.Builder addAccessSummariesBuilder() { + return internalGetAccessSummariesFieldBuilder() + .addBuilder(com.google.cloud.agentidentity.v1.AccessSummary.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public com.google.cloud.agentidentity.v1.AccessSummary.Builder addAccessSummariesBuilder( + int index) { + return internalGetAccessSummariesFieldBuilder() + .addBuilder(index, com.google.cloud.agentidentity.v1.AccessSummary.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + public java.util.List + getAccessSummariesBuilderList() { + return internalGetAccessSummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1.AccessSummary, + com.google.cloud.agentidentity.v1.AccessSummary.Builder, + com.google.cloud.agentidentity.v1.AccessSummaryOrBuilder> + internalGetAccessSummariesFieldBuilder() { + if (accessSummariesBuilder_ == null) { + accessSummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1.AccessSummary, + com.google.cloud.agentidentity.v1.AccessSummary.Builder, + com.google.cloud.agentidentity.v1.AccessSummaryOrBuilder>( + accessSummaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accessSummaries_ = null; + } + return accessSummariesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.ListAccessSummariesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.ListAccessSummariesResponse) + private static final com.google.cloud.agentidentity.v1.ListAccessSummariesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.ListAccessSummariesResponse(); + } + + public static com.google.cloud.agentidentity.v1.ListAccessSummariesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccessSummariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.ListAccessSummariesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesResponseOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesResponseOrBuilder.java new file mode 100644 index 000000000000..c88222a31cde --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAccessSummariesResponseOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface ListAccessSummariesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.ListAccessSummariesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + java.util.List getAccessSummariesList(); + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + com.google.cloud.agentidentity.v1.AccessSummary getAccessSummaries(int index); + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + int getAccessSummariesCount(); + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + java.util.List + getAccessSummariesOrBuilderList(); + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AccessSummary access_summaries = 1; + */ + com.google.cloud.agentidentity.v1.AccessSummaryOrBuilder getAccessSummariesOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersRequest.java new file mode 100644 index 000000000000..badf3f5ef7bb --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersRequest.java @@ -0,0 +1,1409 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for requesting list of AuthProviders
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ListAuthProvidersRequest} + */ +@com.google.protobuf.Generated +public final class ListAuthProvidersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.ListAuthProvidersRequest) + ListAuthProvidersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAuthProvidersRequest"); + } + + // Use ListAuthProvidersRequest.newBuilder() to construct. + private ListAuthProvidersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAuthProvidersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthProvidersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthProvidersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest.class, + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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_ = 0; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filter results. This field is currently ignored.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Filter results. This field is currently ignored.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Currently ignored.
+   * Defaults to ordering by auth_provider_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Currently ignored.
+   * Defaults to ordering by auth_provider_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHOW_DELETED_FIELD_NUMBER = 6; + private boolean showDeleted_ = false; + + /** + * + * + *
+   * Optional. Deleted auth_providers will be kept with a soft-delete for 30
+   * days before being purged. If this field is set to true, deleted
+   * auth_providers will also
+   * be returned.
+   * 
+ * + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + if (showDeleted_ != false) { + output.writeBool(6, showDeleted_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + if (showDeleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, showDeleted_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.ListAuthProvidersRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest other = + (com.google.cloud.agentidentity.v1.ListAuthProvidersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getShowDeleted() != other.getShowDeleted()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersRequest 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.cloud.agentidentity.v1.ListAuthProvidersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.ListAuthProvidersRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting list of AuthProviders
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ListAuthProvidersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.ListAuthProvidersRequest) + com.google.cloud.agentidentity.v1.ListAuthProvidersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthProvidersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthProvidersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest.class, + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.ListAuthProvidersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + showDeleted_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthProvidersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAuthProvidersRequest getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.ListAuthProvidersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAuthProvidersRequest build() { + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAuthProvidersRequest buildPartial() { + com.google.cloud.agentidentity.v1.ListAuthProvidersRequest result = + new com.google.cloud.agentidentity.v1.ListAuthProvidersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.ListAuthProvidersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.showDeleted_ = showDeleted_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.ListAuthProvidersRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.ListAuthProvidersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.ListAuthProvidersRequest other) { + if (other == com.google.cloud.agentidentity.v1.ListAuthProvidersRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getShowDeleted() != false) { + setShowDeleted(other.getShowDeleted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + showDeleted_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filter results. This field is currently ignored.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Filter results. This field is currently ignored.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Filter results. This field is currently ignored.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter results. This field is currently ignored.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter results. This field is currently ignored.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Currently ignored.
+     * Defaults to ordering by auth_provider_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Currently ignored.
+     * Defaults to ordering by auth_provider_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Currently ignored.
+     * Defaults to ordering by auth_provider_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Currently ignored.
+     * Defaults to ordering by auth_provider_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Currently ignored.
+     * Defaults to ordering by auth_provider_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean showDeleted_; + + /** + * + * + *
+     * Optional. Deleted auth_providers will be kept with a soft-delete for 30
+     * days before being purged. If this field is set to true, deleted
+     * auth_providers will also
+     * be returned.
+     * 
+ * + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The showDeleted. + */ + @java.lang.Override + public boolean getShowDeleted() { + return showDeleted_; + } + + /** + * + * + *
+     * Optional. Deleted auth_providers will be kept with a soft-delete for 30
+     * days before being purged. If this field is set to true, deleted
+     * auth_providers will also
+     * be returned.
+     * 
+ * + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The showDeleted to set. + * @return This builder for chaining. + */ + public Builder setShowDeleted(boolean value) { + + showDeleted_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deleted auth_providers will be kept with a soft-delete for 30
+     * days before being purged. If this field is set to true, deleted
+     * auth_providers will also
+     * be returned.
+     * 
+ * + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearShowDeleted() { + bitField0_ = (bitField0_ & ~0x00000020); + showDeleted_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.ListAuthProvidersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.ListAuthProvidersRequest) + private static final com.google.cloud.agentidentity.v1.ListAuthProvidersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.ListAuthProvidersRequest(); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthProvidersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.ListAuthProvidersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersRequestOrBuilder.java new file mode 100644 index 000000000000..888d77ea5e90 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersRequestOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface ListAuthProvidersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.ListAuthProvidersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter results. This field is currently ignored.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter results. This field is currently ignored.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Currently ignored.
+   * Defaults to ordering by auth_provider_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Currently ignored.
+   * Defaults to ordering by auth_provider_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Deleted auth_providers will be kept with a soft-delete for 30
+   * days before being purged. If this field is set to true, deleted
+   * auth_providers will also
+   * be returned.
+   * 
+ * + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The showDeleted. + */ + boolean getShowDeleted(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersResponse.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersResponse.java new file mode 100644 index 000000000000..e4dab09ff5c7 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersResponse.java @@ -0,0 +1,1413 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for response to listing AuthProviders
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ListAuthProvidersResponse} + */ +@com.google.protobuf.Generated +public final class ListAuthProvidersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.ListAuthProvidersResponse) + ListAuthProvidersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAuthProvidersResponse"); + } + + // Use ListAuthProvidersResponse.newBuilder() to construct. + private ListAuthProvidersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAuthProvidersResponse() { + authProviders_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthProvidersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthProvidersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse.class, + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse.Builder.class); + } + + public static final int AUTH_PROVIDERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List authProviders_; + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + @java.lang.Override + public java.util.List getAuthProvidersList() { + return authProviders_; + } + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + @java.lang.Override + public java.util.List + getAuthProvidersOrBuilderList() { + return authProviders_; + } + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + @java.lang.Override + public int getAuthProvidersCount() { + return authProviders_.size(); + } + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider getAuthProviders(int index) { + return authProviders_.get(index); + } + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProviderOrBuilder getAuthProvidersOrBuilder( + int index) { + return authProviders_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < authProviders_.size(); i++) { + output.writeMessage(1, authProviders_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < authProviders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, authProviders_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().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.cloud.agentidentity.v1.ListAuthProvidersResponse)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse other = + (com.google.cloud.agentidentity.v1.ListAuthProvidersResponse) obj; + + if (!getAuthProvidersList().equals(other.getAuthProvidersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAuthProvidersCount() > 0) { + hash = (37 * hash) + AUTH_PROVIDERS_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvidersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersResponse 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.cloud.agentidentity.v1.ListAuthProvidersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.ListAuthProvidersResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing AuthProviders
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ListAuthProvidersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.ListAuthProvidersResponse) + com.google.cloud.agentidentity.v1.ListAuthProvidersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthProvidersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthProvidersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse.class, + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.ListAuthProvidersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (authProvidersBuilder_ == null) { + authProviders_ = java.util.Collections.emptyList(); + } else { + authProviders_ = null; + authProvidersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthProvidersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAuthProvidersResponse getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.ListAuthProvidersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAuthProvidersResponse build() { + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAuthProvidersResponse buildPartial() { + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse result = + new com.google.cloud.agentidentity.v1.ListAuthProvidersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentidentity.v1.ListAuthProvidersResponse result) { + if (authProvidersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + authProviders_ = java.util.Collections.unmodifiableList(authProviders_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.authProviders_ = authProviders_; + } else { + result.authProviders_ = authProvidersBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.ListAuthProvidersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.ListAuthProvidersResponse) { + return mergeFrom((com.google.cloud.agentidentity.v1.ListAuthProvidersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.ListAuthProvidersResponse other) { + if (other == com.google.cloud.agentidentity.v1.ListAuthProvidersResponse.getDefaultInstance()) + return this; + if (authProvidersBuilder_ == null) { + if (!other.authProviders_.isEmpty()) { + if (authProviders_.isEmpty()) { + authProviders_ = other.authProviders_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthProvidersIsMutable(); + authProviders_.addAll(other.authProviders_); + } + onChanged(); + } + } else { + if (!other.authProviders_.isEmpty()) { + if (authProvidersBuilder_.isEmpty()) { + authProvidersBuilder_.dispose(); + authProvidersBuilder_ = null; + authProviders_ = other.authProviders_; + bitField0_ = (bitField0_ & ~0x00000001); + authProvidersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAuthProvidersFieldBuilder() + : null; + } else { + authProvidersBuilder_.addAllMessages(other.authProviders_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.agentidentity.v1.AuthProvider m = + input.readMessage( + com.google.cloud.agentidentity.v1.AuthProvider.parser(), extensionRegistry); + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.add(m); + } else { + authProvidersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List authProviders_ = + java.util.Collections.emptyList(); + + private void ensureAuthProvidersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + authProviders_ = + new java.util.ArrayList(authProviders_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1.AuthProvider, + com.google.cloud.agentidentity.v1.AuthProvider.Builder, + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder> + authProvidersBuilder_; + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public java.util.List getAuthProvidersList() { + if (authProvidersBuilder_ == null) { + return java.util.Collections.unmodifiableList(authProviders_); + } else { + return authProvidersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public int getAuthProvidersCount() { + if (authProvidersBuilder_ == null) { + return authProviders_.size(); + } else { + return authProvidersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public com.google.cloud.agentidentity.v1.AuthProvider getAuthProviders(int index) { + if (authProvidersBuilder_ == null) { + return authProviders_.get(index); + } else { + return authProvidersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public Builder setAuthProviders( + int index, com.google.cloud.agentidentity.v1.AuthProvider value) { + if (authProvidersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProvidersIsMutable(); + authProviders_.set(index, value); + onChanged(); + } else { + authProvidersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public Builder setAuthProviders( + int index, com.google.cloud.agentidentity.v1.AuthProvider.Builder builderForValue) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.set(index, builderForValue.build()); + onChanged(); + } else { + authProvidersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public Builder addAuthProviders(com.google.cloud.agentidentity.v1.AuthProvider value) { + if (authProvidersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProvidersIsMutable(); + authProviders_.add(value); + onChanged(); + } else { + authProvidersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public Builder addAuthProviders( + int index, com.google.cloud.agentidentity.v1.AuthProvider value) { + if (authProvidersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProvidersIsMutable(); + authProviders_.add(index, value); + onChanged(); + } else { + authProvidersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public Builder addAuthProviders( + com.google.cloud.agentidentity.v1.AuthProvider.Builder builderForValue) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.add(builderForValue.build()); + onChanged(); + } else { + authProvidersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public Builder addAuthProviders( + int index, com.google.cloud.agentidentity.v1.AuthProvider.Builder builderForValue) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.add(index, builderForValue.build()); + onChanged(); + } else { + authProvidersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public Builder addAllAuthProviders( + java.lang.Iterable values) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authProviders_); + onChanged(); + } else { + authProvidersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public Builder clearAuthProviders() { + if (authProvidersBuilder_ == null) { + authProviders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + authProvidersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public Builder removeAuthProviders(int index) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.remove(index); + onChanged(); + } else { + authProvidersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public com.google.cloud.agentidentity.v1.AuthProvider.Builder getAuthProvidersBuilder( + int index) { + return internalGetAuthProvidersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public com.google.cloud.agentidentity.v1.AuthProviderOrBuilder getAuthProvidersOrBuilder( + int index) { + if (authProvidersBuilder_ == null) { + return authProviders_.get(index); + } else { + return authProvidersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public java.util.List + getAuthProvidersOrBuilderList() { + if (authProvidersBuilder_ != null) { + return authProvidersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(authProviders_); + } + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public com.google.cloud.agentidentity.v1.AuthProvider.Builder addAuthProvidersBuilder() { + return internalGetAuthProvidersFieldBuilder() + .addBuilder(com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public com.google.cloud.agentidentity.v1.AuthProvider.Builder addAuthProvidersBuilder( + int index) { + return internalGetAuthProvidersFieldBuilder() + .addBuilder(index, com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + public java.util.List + getAuthProvidersBuilderList() { + return internalGetAuthProvidersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1.AuthProvider, + com.google.cloud.agentidentity.v1.AuthProvider.Builder, + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder> + internalGetAuthProvidersFieldBuilder() { + if (authProvidersBuilder_ == null) { + authProvidersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1.AuthProvider, + com.google.cloud.agentidentity.v1.AuthProvider.Builder, + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder>( + authProviders_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + authProviders_ = null; + } + return authProvidersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.ListAuthProvidersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.ListAuthProvidersResponse) + private static final com.google.cloud.agentidentity.v1.ListAuthProvidersResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.ListAuthProvidersResponse(); + } + + public static com.google.cloud.agentidentity.v1.ListAuthProvidersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthProvidersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.ListAuthProvidersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersResponseOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersResponseOrBuilder.java new file mode 100644 index 000000000000..54a88dfe1407 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthProvidersResponseOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface ListAuthProvidersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.ListAuthProvidersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + java.util.List getAuthProvidersList(); + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + com.google.cloud.agentidentity.v1.AuthProvider getAuthProviders(int index); + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + int getAuthProvidersCount(); + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + java.util.List + getAuthProvidersOrBuilderList(); + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.AuthProvider auth_providers = 1; + */ + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder getAuthProvidersOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsRequest.java new file mode 100644 index 000000000000..d42a8d0dec6d --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsRequest.java @@ -0,0 +1,1335 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for requesting list of Authorizations
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ListAuthorizationsRequest} + */ +@com.google.protobuf.Generated +public final class ListAuthorizationsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.ListAuthorizationsRequest) + ListAuthorizationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAuthorizationsRequest"); + } + + // Use ListAuthorizationsRequest.newBuilder() to construct. + private ListAuthorizationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAuthorizationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthorizationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthorizationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest.class, + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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_ = 0; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListAuthorizations` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAuthorizations`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A page token, received from a previous `ListAuthorizations` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAuthorizations`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   * Currently supports filtering by `client_user_id` only.
+   * Format: `client_user_id="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   * Currently supports filtering by `client_user_id` only.
+   * Format: `client_user_id="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by authorization_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by authorization_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.ListAuthorizationsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest other = + (com.google.cloud.agentidentity.v1.ListAuthorizationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsRequest 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.cloud.agentidentity.v1.ListAuthorizationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.ListAuthorizationsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting list of Authorizations
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ListAuthorizationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.ListAuthorizationsRequest) + com.google.cloud.agentidentity.v1.ListAuthorizationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthorizationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthorizationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest.class, + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.ListAuthorizationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthorizationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAuthorizationsRequest getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.ListAuthorizationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAuthorizationsRequest build() { + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAuthorizationsRequest buildPartial() { + com.google.cloud.agentidentity.v1.ListAuthorizationsRequest result = + new com.google.cloud.agentidentity.v1.ListAuthorizationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.ListAuthorizationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.ListAuthorizationsRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.ListAuthorizationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.ListAuthorizationsRequest other) { + if (other == com.google.cloud.agentidentity.v1.ListAuthorizationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListAuthorizations` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAuthorizations`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A page token, received from a previous `ListAuthorizations` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAuthorizations`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A page token, received from a previous `ListAuthorizations` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAuthorizations`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListAuthorizations` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAuthorizations`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListAuthorizations` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAuthorizations`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     * Currently supports filtering by `client_user_id` only.
+     * Format: `client_user_id="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     * Currently supports filtering by `client_user_id` only.
+     * Format: `client_user_id="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     * Currently supports filtering by `client_user_id` only.
+     * Format: `client_user_id="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     * Currently supports filtering by `client_user_id` only.
+     * Format: `client_user_id="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     * Currently supports filtering by `client_user_id` only.
+     * Format: `client_user_id="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by authorization_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by authorization_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by authorization_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by authorization_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by authorization_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.ListAuthorizationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.ListAuthorizationsRequest) + private static final com.google.cloud.agentidentity.v1.ListAuthorizationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.ListAuthorizationsRequest(); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthorizationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.ListAuthorizationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsRequestOrBuilder.java new file mode 100644 index 000000000000..5cbf076f9588 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsRequestOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface ListAuthorizationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.ListAuthorizationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListAuthorizations` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAuthorizations`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListAuthorizations` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAuthorizations`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   * Currently supports filtering by `client_user_id` only.
+   * Format: `client_user_id="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   * Currently supports filtering by `client_user_id` only.
+   * Format: `client_user_id="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by authorization_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by authorization_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsResponse.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsResponse.java new file mode 100644 index 000000000000..fa80bb0dafb1 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsResponse.java @@ -0,0 +1,1419 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for response to listing Authorizations
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ListAuthorizationsResponse} + */ +@com.google.protobuf.Generated +public final class ListAuthorizationsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.ListAuthorizationsResponse) + ListAuthorizationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAuthorizationsResponse"); + } + + // Use ListAuthorizationsResponse.newBuilder() to construct. + private ListAuthorizationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAuthorizationsResponse() { + authorizations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthorizationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthorizationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse.class, + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse.Builder.class); + } + + public static final int AUTHORIZATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List authorizations_; + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + @java.lang.Override + public java.util.List getAuthorizationsList() { + return authorizations_; + } + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + @java.lang.Override + public java.util.List + getAuthorizationsOrBuilderList() { + return authorizations_; + } + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + @java.lang.Override + public int getAuthorizationsCount() { + return authorizations_.size(); + } + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.Authorization getAuthorizations(int index) { + return authorizations_.get(index); + } + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthorizationOrBuilder getAuthorizationsOrBuilder( + int index) { + return authorizations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < authorizations_.size(); i++) { + output.writeMessage(1, authorizations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < authorizations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, authorizations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().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.cloud.agentidentity.v1.ListAuthorizationsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse other = + (com.google.cloud.agentidentity.v1.ListAuthorizationsResponse) obj; + + if (!getAuthorizationsList().equals(other.getAuthorizationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAuthorizationsCount() > 0) { + hash = (37 * hash) + AUTHORIZATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsResponse 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.cloud.agentidentity.v1.ListAuthorizationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.ListAuthorizationsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing Authorizations
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ListAuthorizationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.ListAuthorizationsResponse) + com.google.cloud.agentidentity.v1.ListAuthorizationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthorizationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthorizationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse.class, + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.ListAuthorizationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (authorizationsBuilder_ == null) { + authorizations_ = java.util.Collections.emptyList(); + } else { + authorizations_ = null; + authorizationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ListAuthorizationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAuthorizationsResponse + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.ListAuthorizationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAuthorizationsResponse build() { + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ListAuthorizationsResponse buildPartial() { + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse result = + new com.google.cloud.agentidentity.v1.ListAuthorizationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse result) { + if (authorizationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + authorizations_ = java.util.Collections.unmodifiableList(authorizations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.authorizations_ = authorizations_; + } else { + result.authorizations_ = authorizationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1.ListAuthorizationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.ListAuthorizationsResponse) { + return mergeFrom((com.google.cloud.agentidentity.v1.ListAuthorizationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.ListAuthorizationsResponse other) { + if (other + == com.google.cloud.agentidentity.v1.ListAuthorizationsResponse.getDefaultInstance()) + return this; + if (authorizationsBuilder_ == null) { + if (!other.authorizations_.isEmpty()) { + if (authorizations_.isEmpty()) { + authorizations_ = other.authorizations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthorizationsIsMutable(); + authorizations_.addAll(other.authorizations_); + } + onChanged(); + } + } else { + if (!other.authorizations_.isEmpty()) { + if (authorizationsBuilder_.isEmpty()) { + authorizationsBuilder_.dispose(); + authorizationsBuilder_ = null; + authorizations_ = other.authorizations_; + bitField0_ = (bitField0_ & ~0x00000001); + authorizationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAuthorizationsFieldBuilder() + : null; + } else { + authorizationsBuilder_.addAllMessages(other.authorizations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.agentidentity.v1.Authorization m = + input.readMessage( + com.google.cloud.agentidentity.v1.Authorization.parser(), + extensionRegistry); + if (authorizationsBuilder_ == null) { + ensureAuthorizationsIsMutable(); + authorizations_.add(m); + } else { + authorizationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List authorizations_ = + java.util.Collections.emptyList(); + + private void ensureAuthorizationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + authorizations_ = + new java.util.ArrayList( + authorizations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1.Authorization, + com.google.cloud.agentidentity.v1.Authorization.Builder, + com.google.cloud.agentidentity.v1.AuthorizationOrBuilder> + authorizationsBuilder_; + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public java.util.List getAuthorizationsList() { + if (authorizationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(authorizations_); + } else { + return authorizationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public int getAuthorizationsCount() { + if (authorizationsBuilder_ == null) { + return authorizations_.size(); + } else { + return authorizationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public com.google.cloud.agentidentity.v1.Authorization getAuthorizations(int index) { + if (authorizationsBuilder_ == null) { + return authorizations_.get(index); + } else { + return authorizationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public Builder setAuthorizations( + int index, com.google.cloud.agentidentity.v1.Authorization value) { + if (authorizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorizationsIsMutable(); + authorizations_.set(index, value); + onChanged(); + } else { + authorizationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public Builder setAuthorizations( + int index, com.google.cloud.agentidentity.v1.Authorization.Builder builderForValue) { + if (authorizationsBuilder_ == null) { + ensureAuthorizationsIsMutable(); + authorizations_.set(index, builderForValue.build()); + onChanged(); + } else { + authorizationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public Builder addAuthorizations(com.google.cloud.agentidentity.v1.Authorization value) { + if (authorizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorizationsIsMutable(); + authorizations_.add(value); + onChanged(); + } else { + authorizationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public Builder addAuthorizations( + int index, com.google.cloud.agentidentity.v1.Authorization value) { + if (authorizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorizationsIsMutable(); + authorizations_.add(index, value); + onChanged(); + } else { + authorizationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public Builder addAuthorizations( + com.google.cloud.agentidentity.v1.Authorization.Builder builderForValue) { + if (authorizationsBuilder_ == null) { + ensureAuthorizationsIsMutable(); + authorizations_.add(builderForValue.build()); + onChanged(); + } else { + authorizationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public Builder addAuthorizations( + int index, com.google.cloud.agentidentity.v1.Authorization.Builder builderForValue) { + if (authorizationsBuilder_ == null) { + ensureAuthorizationsIsMutable(); + authorizations_.add(index, builderForValue.build()); + onChanged(); + } else { + authorizationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public Builder addAllAuthorizations( + java.lang.Iterable values) { + if (authorizationsBuilder_ == null) { + ensureAuthorizationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authorizations_); + onChanged(); + } else { + authorizationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public Builder clearAuthorizations() { + if (authorizationsBuilder_ == null) { + authorizations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + authorizationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public Builder removeAuthorizations(int index) { + if (authorizationsBuilder_ == null) { + ensureAuthorizationsIsMutable(); + authorizations_.remove(index); + onChanged(); + } else { + authorizationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public com.google.cloud.agentidentity.v1.Authorization.Builder getAuthorizationsBuilder( + int index) { + return internalGetAuthorizationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public com.google.cloud.agentidentity.v1.AuthorizationOrBuilder getAuthorizationsOrBuilder( + int index) { + if (authorizationsBuilder_ == null) { + return authorizations_.get(index); + } else { + return authorizationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public java.util.List + getAuthorizationsOrBuilderList() { + if (authorizationsBuilder_ != null) { + return authorizationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(authorizations_); + } + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public com.google.cloud.agentidentity.v1.Authorization.Builder addAuthorizationsBuilder() { + return internalGetAuthorizationsFieldBuilder() + .addBuilder(com.google.cloud.agentidentity.v1.Authorization.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public com.google.cloud.agentidentity.v1.Authorization.Builder addAuthorizationsBuilder( + int index) { + return internalGetAuthorizationsFieldBuilder() + .addBuilder(index, com.google.cloud.agentidentity.v1.Authorization.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + public java.util.List + getAuthorizationsBuilderList() { + return internalGetAuthorizationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1.Authorization, + com.google.cloud.agentidentity.v1.Authorization.Builder, + com.google.cloud.agentidentity.v1.AuthorizationOrBuilder> + internalGetAuthorizationsFieldBuilder() { + if (authorizationsBuilder_ == null) { + authorizationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1.Authorization, + com.google.cloud.agentidentity.v1.Authorization.Builder, + com.google.cloud.agentidentity.v1.AuthorizationOrBuilder>( + authorizations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + authorizations_ = null; + } + return authorizationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.ListAuthorizationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.ListAuthorizationsResponse) + private static final com.google.cloud.agentidentity.v1.ListAuthorizationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.ListAuthorizationsResponse(); + } + + public static com.google.cloud.agentidentity.v1.ListAuthorizationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthorizationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.ListAuthorizationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsResponseOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsResponseOrBuilder.java new file mode 100644 index 000000000000..553af9aea128 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ListAuthorizationsResponseOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface ListAuthorizationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.ListAuthorizationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + java.util.List getAuthorizationsList(); + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + com.google.cloud.agentidentity.v1.Authorization getAuthorizations(int index); + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + int getAuthorizationsCount(); + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + java.util.List + getAuthorizationsOrBuilderList(); + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1.Authorization authorizations = 1; + */ + com.google.cloud.agentidentity.v1.AuthorizationOrBuilder getAuthorizationsOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/LocationName.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/LocationName.java new file mode 100644 index 000000000000..1511d30a68d3 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/LocationName.java @@ -0,0 +1,195 @@ +/* + * Copyright 2026 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.agentidentity.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static @Nullable LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + 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<@Nullable LocationName> values) { + List list = new ArrayList<>(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.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 (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersRequest.java new file mode 100644 index 000000000000..57d74d85dff4 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersRequest.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Request message for QueryAuthProviders.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.QueryAuthProvidersRequest} + */ +@com.google.protobuf.Generated +public final class QueryAuthProvidersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.QueryAuthProvidersRequest) + QueryAuthProvidersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryAuthProvidersRequest"); + } + + // Use QueryAuthProvidersRequest.newBuilder() to construct. + private QueryAuthProvidersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryAuthProvidersRequest() { + parent_ = ""; + workloadId_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest.class, + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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 WORKLOAD_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object workloadId_ = ""; + + /** + * + * + *
+   * Required. The workload identifier to filter by.
+   * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The workloadId. + */ + @java.lang.Override + public java.lang.String getWorkloadId() { + java.lang.Object ref = workloadId_; + 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(); + workloadId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The workload identifier to filter by.
+   * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for workloadId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkloadIdBytes() { + java.lang.Object ref = workloadId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default. The
+   * maximum page size is 1000.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   *
+   * A page token, received from a previous QueryAuthProviders call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to QueryAuthProviders must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   *
+   * A page token, received from a previous QueryAuthProviders call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to QueryAuthProviders must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workloadId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, workloadId_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workloadId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, workloadId_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.QueryAuthProvidersRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest other = + (com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getWorkloadId().equals(other.getWorkloadId())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + WORKLOAD_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadId().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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest 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.cloud.agentidentity.v1.QueryAuthProvidersRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.QueryAuthProvidersRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for QueryAuthProviders.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.QueryAuthProvidersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.QueryAuthProvidersRequest) + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest.class, + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + workloadId_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest build() { + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest buildPartial() { + com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest result = + new com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workloadId_ = workloadId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest other) { + if (other == com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWorkloadId().isEmpty()) { + workloadId_ = other.workloadId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workloadId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object workloadId_ = ""; + + /** + * + * + *
+     * Required. The workload identifier to filter by.
+     * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The workloadId. + */ + public java.lang.String getWorkloadId() { + java.lang.Object ref = workloadId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The workload identifier to filter by.
+     * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for workloadId. + */ + public com.google.protobuf.ByteString getWorkloadIdBytes() { + java.lang.Object ref = workloadId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The workload identifier to filter by.
+     * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The workloadId to set. + * @return This builder for chaining. + */ + public Builder setWorkloadId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workloadId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The workload identifier to filter by.
+     * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadId() { + workloadId_ = getDefaultInstance().getWorkloadId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The workload identifier to filter by.
+     * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for workloadId to set. + * @return This builder for chaining. + */ + public Builder setWorkloadIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default. The
+     * maximum page size is 1000.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default. The
+     * maximum page size is 1000.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default. The
+     * maximum page size is 1000.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     *
+     * A page token, received from a previous QueryAuthProviders call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to QueryAuthProviders must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     *
+     * A page token, received from a previous QueryAuthProviders call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to QueryAuthProviders must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     *
+     * A page token, received from a previous QueryAuthProviders call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to QueryAuthProviders must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     *
+     * A page token, received from a previous QueryAuthProviders call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to QueryAuthProviders must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     *
+     * A page token, received from a previous QueryAuthProviders call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to QueryAuthProviders must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.QueryAuthProvidersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.QueryAuthProvidersRequest) + private static final com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest(); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryAuthProvidersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.QueryAuthProvidersRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersRequestOrBuilder.java new file mode 100644 index 000000000000..a37d7b389875 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersRequestOrBuilder.java @@ -0,0 +1,139 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface QueryAuthProvidersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.QueryAuthProvidersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The workload identifier to filter by.
+   * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The workloadId. + */ + java.lang.String getWorkloadId(); + + /** + * + * + *
+   * Required. The workload identifier to filter by.
+   * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for workloadId. + */ + com.google.protobuf.ByteString getWorkloadIdBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default. The
+   * maximum page size is 1000.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   *
+   * A page token, received from a previous QueryAuthProviders call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to QueryAuthProviders must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   *
+   * A page token, received from a previous QueryAuthProviders call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to QueryAuthProviders must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersResponse.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersResponse.java new file mode 100644 index 000000000000..f07d84b1c2fc --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersResponse.java @@ -0,0 +1,898 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Response message for QueryAuthProviders.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.QueryAuthProvidersResponse} + */ +@com.google.protobuf.Generated +public final class QueryAuthProvidersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.QueryAuthProvidersResponse) + QueryAuthProvidersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryAuthProvidersResponse"); + } + + // Use QueryAuthProvidersResponse.newBuilder() to construct. + private QueryAuthProvidersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryAuthProvidersResponse() { + authProviderNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse.class, + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse.Builder.class); + } + + public static final int AUTH_PROVIDER_NAMES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList authProviderNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @return A list containing the authProviderNames. + */ + public com.google.protobuf.ProtocolStringList getAuthProviderNamesList() { + return authProviderNames_; + } + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @return The count of authProviderNames. + */ + public int getAuthProviderNamesCount() { + return authProviderNames_.size(); + } + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index of the element to return. + * @return The authProviderNames at the given index. + */ + public java.lang.String getAuthProviderNames(int index) { + return authProviderNames_.get(index); + } + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the authProviderNames at the given index. + */ + public com.google.protobuf.ByteString getAuthProviderNamesBytes(int index) { + return authProviderNames_.getByteString(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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 < authProviderNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, authProviderNames_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().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 < authProviderNames_.size(); i++) { + dataSize += computeStringSizeNoTag(authProviderNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getAuthProviderNamesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.QueryAuthProvidersResponse)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse other = + (com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse) obj; + + if (!getAuthProviderNamesList().equals(other.getAuthProviderNamesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAuthProviderNamesCount() > 0) { + hash = (37 * hash) + AUTH_PROVIDER_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getAuthProviderNamesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse 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.cloud.agentidentity.v1.QueryAuthProvidersResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.QueryAuthProvidersResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for QueryAuthProviders.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.QueryAuthProvidersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.QueryAuthProvidersResponse) + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse.class, + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authProviderNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryAuthProvidersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse build() { + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse buildPartial() { + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse result = + new com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + authProviderNames_.makeImmutable(); + result.authProviderNames_ = authProviderNames_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse) { + return mergeFrom((com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse other) { + if (other + == com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse.getDefaultInstance()) + return this; + if (!other.authProviderNames_.isEmpty()) { + if (authProviderNames_.isEmpty()) { + authProviderNames_ = other.authProviderNames_; + bitField0_ |= 0x00000001; + } else { + ensureAuthProviderNamesIsMutable(); + authProviderNames_.addAll(other.authProviderNames_); + } + onChanged(); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureAuthProviderNamesIsMutable(); + authProviderNames_.add(s); + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList authProviderNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAuthProviderNamesIsMutable() { + if (!authProviderNames_.isModifiable()) { + authProviderNames_ = new com.google.protobuf.LazyStringArrayList(authProviderNames_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @return A list containing the authProviderNames. + */ + public com.google.protobuf.ProtocolStringList getAuthProviderNamesList() { + authProviderNames_.makeImmutable(); + return authProviderNames_; + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @return The count of authProviderNames. + */ + public int getAuthProviderNamesCount() { + return authProviderNames_.size(); + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index of the element to return. + * @return The authProviderNames at the given index. + */ + public java.lang.String getAuthProviderNames(int index) { + return authProviderNames_.get(index); + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the authProviderNames at the given index. + */ + public com.google.protobuf.ByteString getAuthProviderNamesBytes(int index) { + return authProviderNames_.getByteString(index); + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index to set the value at. + * @param value The authProviderNames to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProviderNamesIsMutable(); + authProviderNames_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @param value The authProviderNames to add. + * @return This builder for chaining. + */ + public Builder addAuthProviderNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProviderNamesIsMutable(); + authProviderNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @param values The authProviderNames to add. + * @return This builder for chaining. + */ + public Builder addAllAuthProviderNames(java.lang.Iterable values) { + ensureAuthProviderNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authProviderNames_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @return This builder for chaining. + */ + public Builder clearAuthProviderNames() { + authProviderNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @param value The bytes of the authProviderNames to add. + * @return This builder for chaining. + */ + public Builder addAuthProviderNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAuthProviderNamesIsMutable(); + authProviderNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.QueryAuthProvidersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.QueryAuthProvidersResponse) + private static final com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse(); + } + + public static com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryAuthProvidersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.QueryAuthProvidersResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersResponseOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersResponseOrBuilder.java new file mode 100644 index 000000000000..c7d03cad980d --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryAuthProvidersResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface QueryAuthProvidersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.QueryAuthProvidersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @return A list containing the authProviderNames. + */ + java.util.List getAuthProviderNamesList(); + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @return The count of authProviderNames. + */ + int getAuthProviderNamesCount(); + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index of the element to return. + * @return The authProviderNames at the given index. + */ + java.lang.String getAuthProviderNames(int index); + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the authProviderNames at the given index. + */ + com.google.protobuf.ByteString getAuthProviderNamesBytes(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsRequest.java new file mode 100644 index 000000000000..a25d67d4c6d2 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsRequest.java @@ -0,0 +1,936 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Request message for QueryWorkloads.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.QueryWorkloadsRequest} + */ +@com.google.protobuf.Generated +public final class QueryWorkloadsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.QueryWorkloadsRequest) + QueryWorkloadsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryWorkloadsRequest"); + } + + // Use QueryWorkloadsRequest.newBuilder() to construct. + private QueryWorkloadsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryWorkloadsRequest() { + name_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryWorkloadsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryWorkloadsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest.class, + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the auth_provider to query.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 name of the auth_provider to query.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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_ = 0; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. When paginating, all other parameters provided to QueryWorkloads must
+   * match the call that provided the page token. If this field is omitted, the
+   * first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+   * page. When paginating, all other parameters provided to QueryWorkloads must
+   * match the call that provided the page token. If this field is omitted, the
+   * first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.QueryWorkloadsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest other = + (com.google.cloud.agentidentity.v1.QueryWorkloadsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsRequest 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.cloud.agentidentity.v1.QueryWorkloadsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.QueryWorkloadsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for QueryWorkloads.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.QueryWorkloadsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.QueryWorkloadsRequest) + com.google.cloud.agentidentity.v1.QueryWorkloadsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryWorkloadsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryWorkloadsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest.class, + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.QueryWorkloadsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryWorkloadsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.QueryWorkloadsRequest getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.QueryWorkloadsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.QueryWorkloadsRequest build() { + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.QueryWorkloadsRequest buildPartial() { + com.google.cloud.agentidentity.v1.QueryWorkloadsRequest result = + new com.google.cloud.agentidentity.v1.QueryWorkloadsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.QueryWorkloadsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.QueryWorkloadsRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.QueryWorkloadsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.QueryWorkloadsRequest other) { + if (other == com.google.cloud.agentidentity.v1.QueryWorkloadsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the auth_provider to query.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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 name of the auth_provider to query.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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 name of the auth_provider to query.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the auth_provider to query.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the auth_provider to query.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. When paginating, all other parameters provided to QueryWorkloads must
+     * match the call that provided the page token. If this field is omitted, the
+     * first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+     * page. When paginating, all other parameters provided to QueryWorkloads must
+     * match the call that provided the page token. If this field is omitted, the
+     * first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+     * page. When paginating, all other parameters provided to QueryWorkloads must
+     * match the call that provided the page token. If this field is omitted, the
+     * first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. When paginating, all other parameters provided to QueryWorkloads must
+     * match the call that provided the page token. If this field is omitted, the
+     * first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. When paginating, all other parameters provided to QueryWorkloads must
+     * match the call that provided the page token. If this field is omitted, the
+     * first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.QueryWorkloadsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.QueryWorkloadsRequest) + private static final com.google.cloud.agentidentity.v1.QueryWorkloadsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.QueryWorkloadsRequest(); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryWorkloadsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.QueryWorkloadsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsRequestOrBuilder.java new file mode 100644 index 000000000000..a87d6b2bb6c7 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface QueryWorkloadsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.QueryWorkloadsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the auth_provider to query.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the auth_provider to query.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. When paginating, all other parameters provided to QueryWorkloads must
+   * match the call that provided the page token. If this field is omitted, the
+   * first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. When paginating, all other parameters provided to QueryWorkloads must
+   * match the call that provided the page token. If this field is omitted, the
+   * first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsResponse.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsResponse.java new file mode 100644 index 000000000000..be2abb493afe --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsResponse.java @@ -0,0 +1,900 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Response message for QueryWorkloads.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.QueryWorkloadsResponse} + */ +@com.google.protobuf.Generated +public final class QueryWorkloadsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.QueryWorkloadsResponse) + QueryWorkloadsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryWorkloadsResponse"); + } + + // Use QueryWorkloadsResponse.newBuilder() to construct. + private QueryWorkloadsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryWorkloadsResponse() { + workloadIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryWorkloadsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryWorkloadsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse.class, + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse.Builder.class); + } + + public static final int WORKLOAD_IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList workloadIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @return A list containing the workloadIds. + */ + public com.google.protobuf.ProtocolStringList getWorkloadIdsList() { + return workloadIds_; + } + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @return The count of workloadIds. + */ + public int getWorkloadIdsCount() { + return workloadIds_.size(); + } + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index of the element to return. + * @return The workloadIds at the given index. + */ + public java.lang.String getWorkloadIds(int index) { + return workloadIds_.get(index); + } + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the workloadIds at the given index. + */ + public com.google.protobuf.ByteString getWorkloadIdsBytes(int index) { + return workloadIds_.getByteString(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * 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 < workloadIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workloadIds_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().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 < workloadIds_.size(); i++) { + dataSize += computeStringSizeNoTag(workloadIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getWorkloadIdsList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.QueryWorkloadsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse other = + (com.google.cloud.agentidentity.v1.QueryWorkloadsResponse) obj; + + if (!getWorkloadIdsList().equals(other.getWorkloadIdsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getWorkloadIdsCount() > 0) { + hash = (37 * hash) + WORKLOAD_IDS_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadIdsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsResponse 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.cloud.agentidentity.v1.QueryWorkloadsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.QueryWorkloadsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for QueryWorkloads.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.QueryWorkloadsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.QueryWorkloadsResponse) + com.google.cloud.agentidentity.v1.QueryWorkloadsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryWorkloadsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryWorkloadsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse.class, + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.QueryWorkloadsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workloadIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_QueryWorkloadsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.QueryWorkloadsResponse getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.QueryWorkloadsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.QueryWorkloadsResponse build() { + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.QueryWorkloadsResponse buildPartial() { + com.google.cloud.agentidentity.v1.QueryWorkloadsResponse result = + new com.google.cloud.agentidentity.v1.QueryWorkloadsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.QueryWorkloadsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + workloadIds_.makeImmutable(); + result.workloadIds_ = workloadIds_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.QueryWorkloadsResponse) { + return mergeFrom((com.google.cloud.agentidentity.v1.QueryWorkloadsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.QueryWorkloadsResponse other) { + if (other == com.google.cloud.agentidentity.v1.QueryWorkloadsResponse.getDefaultInstance()) + return this; + if (!other.workloadIds_.isEmpty()) { + if (workloadIds_.isEmpty()) { + workloadIds_ = other.workloadIds_; + bitField0_ |= 0x00000001; + } else { + ensureWorkloadIdsIsMutable(); + workloadIds_.addAll(other.workloadIds_); + } + onChanged(); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureWorkloadIdsIsMutable(); + workloadIds_.add(s); + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList workloadIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureWorkloadIdsIsMutable() { + if (!workloadIds_.isModifiable()) { + workloadIds_ = new com.google.protobuf.LazyStringArrayList(workloadIds_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @return A list containing the workloadIds. + */ + public com.google.protobuf.ProtocolStringList getWorkloadIdsList() { + workloadIds_.makeImmutable(); + return workloadIds_; + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @return The count of workloadIds. + */ + public int getWorkloadIdsCount() { + return workloadIds_.size(); + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index of the element to return. + * @return The workloadIds at the given index. + */ + public java.lang.String getWorkloadIds(int index) { + return workloadIds_.get(index); + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the workloadIds at the given index. + */ + public com.google.protobuf.ByteString getWorkloadIdsBytes(int index) { + return workloadIds_.getByteString(index); + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index to set the value at. + * @param value The workloadIds to set. + * @return This builder for chaining. + */ + public Builder setWorkloadIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkloadIdsIsMutable(); + workloadIds_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @param value The workloadIds to add. + * @return This builder for chaining. + */ + public Builder addWorkloadIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkloadIdsIsMutable(); + workloadIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @param values The workloadIds to add. + * @return This builder for chaining. + */ + public Builder addAllWorkloadIds(java.lang.Iterable values) { + ensureWorkloadIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workloadIds_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadIds() { + workloadIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @param value The bytes of the workloadIds to add. + * @return This builder for chaining. + */ + public Builder addWorkloadIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWorkloadIdsIsMutable(); + workloadIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.QueryWorkloadsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.QueryWorkloadsResponse) + private static final com.google.cloud.agentidentity.v1.QueryWorkloadsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.QueryWorkloadsResponse(); + } + + public static com.google.cloud.agentidentity.v1.QueryWorkloadsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryWorkloadsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.QueryWorkloadsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsResponseOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsResponseOrBuilder.java new file mode 100644 index 000000000000..58f5a50d25a8 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/QueryWorkloadsResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface QueryWorkloadsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.QueryWorkloadsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @return A list containing the workloadIds. + */ + java.util.List getWorkloadIdsList(); + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @return The count of workloadIds. + */ + int getWorkloadIdsCount(); + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index of the element to return. + * @return The workloadIds at the given index. + */ + java.lang.String getWorkloadIds(int index); + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the workloadIds at the given index. + */ + com.google.protobuf.ByteString getWorkloadIdsBytes(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationRequest.java new file mode 100644 index 000000000000..6ffcef6fd3cf --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationRequest.java @@ -0,0 +1,818 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Request message for RevokeAuthorization.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.RevokeAuthorizationRequest} + */ +@com.google.protobuf.Generated +public final class RevokeAuthorizationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.RevokeAuthorizationRequest) + RevokeAuthorizationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RevokeAuthorizationRequest"); + } + + // Use RevokeAuthorizationRequest.newBuilder() to construct. + private RevokeAuthorizationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RevokeAuthorizationRequest() { + name_ = ""; + userId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest.class, + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the AuthProvider.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 AuthProvider.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 USER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + + /** + * + * + *
+   * Required. The identity of the user to revoke authorization for.
+   * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + 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(); + userId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The identity of the user to revoke authorization for.
+   * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, userId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, userId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.RevokeAuthorizationRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest other = + (com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUserId().equals(other.getUserId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest 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.cloud.agentidentity.v1.RevokeAuthorizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.RevokeAuthorizationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for RevokeAuthorization.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.RevokeAuthorizationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.RevokeAuthorizationRequest) + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest.class, + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + userId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest build() { + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest buildPartial() { + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest result = + new com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userId_ = userId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest other) { + if (other + == com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the AuthProvider.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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 AuthProvider.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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 AuthProvider.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the AuthProvider.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the AuthProvider.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object userId_ = ""; + + /** + * + * + *
+     * Required. The identity of the user to revoke authorization for.
+     * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The identity of the user to revoke authorization for.
+     * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The identity of the user to revoke authorization for.
+     * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The identity of the user to revoke authorization for.
+     * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The identity of the user to revoke authorization for.
+     * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.RevokeAuthorizationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.RevokeAuthorizationRequest) + private static final com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest(); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokeAuthorizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.RevokeAuthorizationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationRequestOrBuilder.java new file mode 100644 index 000000000000..2a448928d4fd --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface RevokeAuthorizationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.RevokeAuthorizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the AuthProvider.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 AuthProvider.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The identity of the user to revoke authorization for.
+   * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userId. + */ + java.lang.String getUserId(); + + /** + * + * + *
+   * Required. The identity of the user to revoke authorization for.
+   * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for userId. + */ + com.google.protobuf.ByteString getUserIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationResponse.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationResponse.java new file mode 100644 index 000000000000..75fc1f92bfa4 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationResponse.java @@ -0,0 +1,400 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Response message for RevokeAuthorization.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.RevokeAuthorizationResponse} + */ +@com.google.protobuf.Generated +public final class RevokeAuthorizationResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.RevokeAuthorizationResponse) + RevokeAuthorizationResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RevokeAuthorizationResponse"); + } + + // Use RevokeAuthorizationResponse.newBuilder() to construct. + private RevokeAuthorizationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RevokeAuthorizationResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse.class, + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.cloud.agentidentity.v1.RevokeAuthorizationResponse)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse other = + (com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse 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.cloud.agentidentity.v1.RevokeAuthorizationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.RevokeAuthorizationResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for RevokeAuthorization.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.RevokeAuthorizationResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.RevokeAuthorizationResponse) + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse.class, + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_RevokeAuthorizationResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse build() { + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse buildPartial() { + com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse result = + new com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse) { + return mergeFrom((com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse other) { + if (other + == com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.RevokeAuthorizationResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.RevokeAuthorizationResponse) + private static final com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse(); + } + + public static com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokeAuthorizationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.RevokeAuthorizationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationResponseOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationResponseOrBuilder.java new file mode 100644 index 000000000000..23519b9ae8fe --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/RevokeAuthorizationResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface RevokeAuthorizationResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.RevokeAuthorizationResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ThreeLeggedOAuth.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ThreeLeggedOAuth.java new file mode 100644 index 000000000000..ac722610fc1f --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ThreeLeggedOAuth.java @@ -0,0 +1,1684 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message describing ThreeLeggedOAuth object.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ThreeLeggedOAuth} + */ +@com.google.protobuf.Generated +public final class ThreeLeggedOAuth extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.ThreeLeggedOAuth) + ThreeLeggedOAuthOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ThreeLeggedOAuth"); + } + + // Use ThreeLeggedOAuth.newBuilder() to construct. + private ThreeLeggedOAuth(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ThreeLeggedOAuth() { + clientSecret_ = ""; + clientId_ = ""; + redirectUrl_ = ""; + authorizationUrl_ = ""; + tokenUrl_ = ""; + defaultContinueUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ThreeLeggedOAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ThreeLeggedOAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.class, + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.Builder.class); + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientSecret_ = ""; + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The clientSecret. + */ + @java.lang.Override + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + 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(); + clientSecret_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for clientSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + 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(); + clientId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REDIRECT_URL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object redirectUrl_ = ""; + + /** + * + * + *
+   * Output only. The redirect URL this auth_provider uses for the OAuth
+   * exchange. This is deterministic based on the name of the auth_provider.
+   * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The redirectUrl. + */ + @java.lang.Override + public java.lang.String getRedirectUrl() { + java.lang.Object ref = redirectUrl_; + 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(); + redirectUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The redirect URL this auth_provider uses for the OAuth
+   * exchange. This is deterministic based on the name of the auth_provider.
+   * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for redirectUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRedirectUrlBytes() { + java.lang.Object ref = redirectUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redirectUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHORIZATION_URL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object authorizationUrl_ = ""; + + /** + * + * + *
+   * Optional. The authorization endpoint to send users to for consenting to
+   * delegate to the agent. eg. "https://auth.example.com/authorize"
+   * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The authorizationUrl. + */ + @java.lang.Override + public java.lang.String getAuthorizationUrl() { + java.lang.Object ref = authorizationUrl_; + 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(); + authorizationUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The authorization endpoint to send users to for consenting to
+   * delegate to the agent. eg. "https://auth.example.com/authorize"
+   * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for authorizationUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorizationUrlBytes() { + java.lang.Object ref = authorizationUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authorizationUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_URL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object tokenUrl_ = ""; + + /** + * + * + *
+   * Optional. The token endpoint for requesting tokens on behalf of an end
+   * user. eg. "https://auth.example.com/oauth/token"
+   * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tokenUrl. + */ + @java.lang.Override + public java.lang.String getTokenUrl() { + java.lang.Object ref = tokenUrl_; + 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(); + tokenUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The token endpoint for requesting tokens on behalf of an end
+   * user. eg. "https://auth.example.com/oauth/token"
+   * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tokenUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenUrlBytes() { + java.lang.Object ref = tokenUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_PKCE_FIELD_NUMBER = 6; + private boolean enablePkce_ = false; + + /** + * + * + *
+   * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to
+   * prevent authorization code interception attacks.
+   * 
+ * + * bool enable_pkce = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePkce. + */ + @java.lang.Override + public boolean getEnablePkce() { + return enablePkce_; + } + + public static final int DEFAULT_CONTINUE_URI_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultContinueUri_ = ""; + + /** + * + * + *
+   * Optional. The default continue URI for 3LO flow and it will be used when no
+   * continue URI is provided in the RetrieveCredentials request.
+   * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultContinueUri. + */ + @java.lang.Override + public java.lang.String getDefaultContinueUri() { + java.lang.Object ref = defaultContinueUri_; + 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(); + defaultContinueUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The default continue URI for 3LO flow and it will be used when no
+   * continue URI is provided in the RetrieveCredentials request.
+   * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultContinueUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultContinueUriBytes() { + java.lang.Object ref = defaultContinueUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultContinueUri_ = 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.GeneratedMessage.isStringEmpty(clientSecret_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(redirectUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, redirectUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorizationUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, authorizationUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, tokenUrl_); + } + if (enablePkce_ != false) { + output.writeBool(6, enablePkce_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultContinueUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, defaultContinueUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientSecret_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(redirectUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, redirectUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorizationUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, authorizationUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, tokenUrl_); + } + if (enablePkce_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, enablePkce_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultContinueUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, defaultContinueUri_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.ThreeLeggedOAuth)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth other = + (com.google.cloud.agentidentity.v1.ThreeLeggedOAuth) obj; + + if (!getClientSecret().equals(other.getClientSecret())) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (!getRedirectUrl().equals(other.getRedirectUrl())) return false; + if (!getAuthorizationUrl().equals(other.getAuthorizationUrl())) return false; + if (!getTokenUrl().equals(other.getTokenUrl())) return false; + if (getEnablePkce() != other.getEnablePkce()) return false; + if (!getDefaultContinueUri().equals(other.getDefaultContinueUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + REDIRECT_URL_FIELD_NUMBER; + hash = (53 * hash) + getRedirectUrl().hashCode(); + hash = (37 * hash) + AUTHORIZATION_URL_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizationUrl().hashCode(); + hash = (37 * hash) + TOKEN_URL_FIELD_NUMBER; + hash = (53 * hash) + getTokenUrl().hashCode(); + hash = (37 * hash) + ENABLE_PKCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePkce()); + hash = (37 * hash) + DEFAULT_CONTINUE_URI_FIELD_NUMBER; + hash = (53 * hash) + getDefaultContinueUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.ThreeLeggedOAuth parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ThreeLeggedOAuth parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ThreeLeggedOAuth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ThreeLeggedOAuth 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.cloud.agentidentity.v1.ThreeLeggedOAuth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.ThreeLeggedOAuth parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ThreeLeggedOAuth parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ThreeLeggedOAuth parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ThreeLeggedOAuth parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ThreeLeggedOAuth parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.ThreeLeggedOAuth parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.ThreeLeggedOAuth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.ThreeLeggedOAuth 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing ThreeLeggedOAuth object.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.ThreeLeggedOAuth} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.ThreeLeggedOAuth) + com.google.cloud.agentidentity.v1.ThreeLeggedOAuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ThreeLeggedOAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ThreeLeggedOAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.class, + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clientSecret_ = ""; + clientId_ = ""; + redirectUrl_ = ""; + authorizationUrl_ = ""; + tokenUrl_ = ""; + enablePkce_ = false; + defaultContinueUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_ThreeLeggedOAuth_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ThreeLeggedOAuth getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ThreeLeggedOAuth build() { + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.ThreeLeggedOAuth buildPartial() { + com.google.cloud.agentidentity.v1.ThreeLeggedOAuth result = + new com.google.cloud.agentidentity.v1.ThreeLeggedOAuth(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.ThreeLeggedOAuth result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clientSecret_ = clientSecret_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.redirectUrl_ = redirectUrl_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.authorizationUrl_ = authorizationUrl_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tokenUrl_ = tokenUrl_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.enablePkce_ = enablePkce_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.defaultContinueUri_ = defaultContinueUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.ThreeLeggedOAuth) { + return mergeFrom((com.google.cloud.agentidentity.v1.ThreeLeggedOAuth) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.ThreeLeggedOAuth other) { + if (other == com.google.cloud.agentidentity.v1.ThreeLeggedOAuth.getDefaultInstance()) + return this; + if (!other.getClientSecret().isEmpty()) { + clientSecret_ = other.clientSecret_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRedirectUrl().isEmpty()) { + redirectUrl_ = other.redirectUrl_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAuthorizationUrl().isEmpty()) { + authorizationUrl_ = other.authorizationUrl_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTokenUrl().isEmpty()) { + tokenUrl_ = other.tokenUrl_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getEnablePkce() != false) { + setEnablePkce(other.getEnablePkce()); + } + if (!other.getDefaultContinueUri().isEmpty()) { + defaultContinueUri_ = other.defaultContinueUri_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clientSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + redirectUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + authorizationUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + tokenUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + enablePkce_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + defaultContinueUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object clientSecret_ = ""; + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The clientSecret. + */ + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for clientSecret. + */ + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecret(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientSecret_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearClientSecret() { + clientSecret_ = getDefaultInstance().getClientSecret(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The bytes for clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecretBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientSecret_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object redirectUrl_ = ""; + + /** + * + * + *
+     * Output only. The redirect URL this auth_provider uses for the OAuth
+     * exchange. This is deterministic based on the name of the auth_provider.
+     * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The redirectUrl. + */ + public java.lang.String getRedirectUrl() { + java.lang.Object ref = redirectUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redirectUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The redirect URL this auth_provider uses for the OAuth
+     * exchange. This is deterministic based on the name of the auth_provider.
+     * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for redirectUrl. + */ + public com.google.protobuf.ByteString getRedirectUrlBytes() { + java.lang.Object ref = redirectUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redirectUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The redirect URL this auth_provider uses for the OAuth
+     * exchange. This is deterministic based on the name of the auth_provider.
+     * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The redirectUrl to set. + * @return This builder for chaining. + */ + public Builder setRedirectUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + redirectUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The redirect URL this auth_provider uses for the OAuth
+     * exchange. This is deterministic based on the name of the auth_provider.
+     * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRedirectUrl() { + redirectUrl_ = getDefaultInstance().getRedirectUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The redirect URL this auth_provider uses for the OAuth
+     * exchange. This is deterministic based on the name of the auth_provider.
+     * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for redirectUrl to set. + * @return This builder for chaining. + */ + public Builder setRedirectUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redirectUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object authorizationUrl_ = ""; + + /** + * + * + *
+     * Optional. The authorization endpoint to send users to for consenting to
+     * delegate to the agent. eg. "https://auth.example.com/authorize"
+     * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The authorizationUrl. + */ + public java.lang.String getAuthorizationUrl() { + java.lang.Object ref = authorizationUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizationUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The authorization endpoint to send users to for consenting to
+     * delegate to the agent. eg. "https://auth.example.com/authorize"
+     * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for authorizationUrl. + */ + public com.google.protobuf.ByteString getAuthorizationUrlBytes() { + java.lang.Object ref = authorizationUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authorizationUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The authorization endpoint to send users to for consenting to
+     * delegate to the agent. eg. "https://auth.example.com/authorize"
+     * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The authorizationUrl to set. + * @return This builder for chaining. + */ + public Builder setAuthorizationUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authorizationUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The authorization endpoint to send users to for consenting to
+     * delegate to the agent. eg. "https://auth.example.com/authorize"
+     * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAuthorizationUrl() { + authorizationUrl_ = getDefaultInstance().getAuthorizationUrl(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The authorization endpoint to send users to for consenting to
+     * delegate to the agent. eg. "https://auth.example.com/authorize"
+     * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for authorizationUrl to set. + * @return This builder for chaining. + */ + public Builder setAuthorizationUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizationUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object tokenUrl_ = ""; + + /** + * + * + *
+     * Optional. The token endpoint for requesting tokens on behalf of an end
+     * user. eg. "https://auth.example.com/oauth/token"
+     * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tokenUrl. + */ + public java.lang.String getTokenUrl() { + java.lang.Object ref = tokenUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The token endpoint for requesting tokens on behalf of an end
+     * user. eg. "https://auth.example.com/oauth/token"
+     * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tokenUrl. + */ + public com.google.protobuf.ByteString getTokenUrlBytes() { + java.lang.Object ref = tokenUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The token endpoint for requesting tokens on behalf of an end
+     * user. eg. "https://auth.example.com/oauth/token"
+     * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tokenUrl to set. + * @return This builder for chaining. + */ + public Builder setTokenUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tokenUrl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The token endpoint for requesting tokens on behalf of an end
+     * user. eg. "https://auth.example.com/oauth/token"
+     * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTokenUrl() { + tokenUrl_ = getDefaultInstance().getTokenUrl(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The token endpoint for requesting tokens on behalf of an end
+     * user. eg. "https://auth.example.com/oauth/token"
+     * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tokenUrl to set. + * @return This builder for chaining. + */ + public Builder setTokenUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tokenUrl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean enablePkce_; + + /** + * + * + *
+     * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to
+     * prevent authorization code interception attacks.
+     * 
+ * + * bool enable_pkce = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePkce. + */ + @java.lang.Override + public boolean getEnablePkce() { + return enablePkce_; + } + + /** + * + * + *
+     * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to
+     * prevent authorization code interception attacks.
+     * 
+ * + * bool enable_pkce = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enablePkce to set. + * @return This builder for chaining. + */ + public Builder setEnablePkce(boolean value) { + + enablePkce_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to
+     * prevent authorization code interception attacks.
+     * 
+ * + * bool enable_pkce = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnablePkce() { + bitField0_ = (bitField0_ & ~0x00000020); + enablePkce_ = false; + onChanged(); + return this; + } + + private java.lang.Object defaultContinueUri_ = ""; + + /** + * + * + *
+     * Optional. The default continue URI for 3LO flow and it will be used when no
+     * continue URI is provided in the RetrieveCredentials request.
+     * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultContinueUri. + */ + public java.lang.String getDefaultContinueUri() { + java.lang.Object ref = defaultContinueUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultContinueUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The default continue URI for 3LO flow and it will be used when no
+     * continue URI is provided in the RetrieveCredentials request.
+     * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultContinueUri. + */ + public com.google.protobuf.ByteString getDefaultContinueUriBytes() { + java.lang.Object ref = defaultContinueUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultContinueUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The default continue URI for 3LO flow and it will be used when no
+     * continue URI is provided in the RetrieveCredentials request.
+     * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultContinueUri to set. + * @return This builder for chaining. + */ + public Builder setDefaultContinueUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultContinueUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default continue URI for 3LO flow and it will be used when no
+     * continue URI is provided in the RetrieveCredentials request.
+     * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultContinueUri() { + defaultContinueUri_ = getDefaultInstance().getDefaultContinueUri(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default continue URI for 3LO flow and it will be used when no
+     * continue URI is provided in the RetrieveCredentials request.
+     * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for defaultContinueUri to set. + * @return This builder for chaining. + */ + public Builder setDefaultContinueUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultContinueUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.ThreeLeggedOAuth) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.ThreeLeggedOAuth) + private static final com.google.cloud.agentidentity.v1.ThreeLeggedOAuth DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.ThreeLeggedOAuth(); + } + + public static com.google.cloud.agentidentity.v1.ThreeLeggedOAuth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThreeLeggedOAuth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.ThreeLeggedOAuth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ThreeLeggedOAuthOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ThreeLeggedOAuthOrBuilder.java new file mode 100644 index 000000000000..7a44eda9c9c0 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/ThreeLeggedOAuthOrBuilder.java @@ -0,0 +1,210 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface ThreeLeggedOAuthOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.ThreeLeggedOAuth) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The clientSecret. + */ + java.lang.String getClientSecret(); + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for clientSecret. + */ + com.google.protobuf.ByteString getClientSecretBytes(); + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
+   * Output only. The redirect URL this auth_provider uses for the OAuth
+   * exchange. This is deterministic based on the name of the auth_provider.
+   * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The redirectUrl. + */ + java.lang.String getRedirectUrl(); + + /** + * + * + *
+   * Output only. The redirect URL this auth_provider uses for the OAuth
+   * exchange. This is deterministic based on the name of the auth_provider.
+   * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for redirectUrl. + */ + com.google.protobuf.ByteString getRedirectUrlBytes(); + + /** + * + * + *
+   * Optional. The authorization endpoint to send users to for consenting to
+   * delegate to the agent. eg. "https://auth.example.com/authorize"
+   * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The authorizationUrl. + */ + java.lang.String getAuthorizationUrl(); + + /** + * + * + *
+   * Optional. The authorization endpoint to send users to for consenting to
+   * delegate to the agent. eg. "https://auth.example.com/authorize"
+   * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for authorizationUrl. + */ + com.google.protobuf.ByteString getAuthorizationUrlBytes(); + + /** + * + * + *
+   * Optional. The token endpoint for requesting tokens on behalf of an end
+   * user. eg. "https://auth.example.com/oauth/token"
+   * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tokenUrl. + */ + java.lang.String getTokenUrl(); + + /** + * + * + *
+   * Optional. The token endpoint for requesting tokens on behalf of an end
+   * user. eg. "https://auth.example.com/oauth/token"
+   * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tokenUrl. + */ + com.google.protobuf.ByteString getTokenUrlBytes(); + + /** + * + * + *
+   * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to
+   * prevent authorization code interception attacks.
+   * 
+ * + * bool enable_pkce = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePkce. + */ + boolean getEnablePkce(); + + /** + * + * + *
+   * Optional. The default continue URI for 3LO flow and it will be used when no
+   * continue URI is provided in the RetrieveCredentials request.
+   * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultContinueUri. + */ + java.lang.String getDefaultContinueUri(); + + /** + * + * + *
+   * Optional. The default continue URI for 3LO flow and it will be used when no
+   * continue URI is provided in the RetrieveCredentials request.
+   * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultContinueUri. + */ + com.google.protobuf.ByteString getDefaultContinueUriBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/TwoLeggedOAuth.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/TwoLeggedOAuth.java new file mode 100644 index 000000000000..47eb18221405 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/TwoLeggedOAuth.java @@ -0,0 +1,988 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message describing TwoLeggedOAuth object.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.TwoLeggedOAuth} + */ +@com.google.protobuf.Generated +public final class TwoLeggedOAuth extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.TwoLeggedOAuth) + TwoLeggedOAuthOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TwoLeggedOAuth"); + } + + // Use TwoLeggedOAuth.newBuilder() to construct. + private TwoLeggedOAuth(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TwoLeggedOAuth() { + clientSecret_ = ""; + clientId_ = ""; + tokenUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_TwoLeggedOAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_TwoLeggedOAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.TwoLeggedOAuth.class, + com.google.cloud.agentidentity.v1.TwoLeggedOAuth.Builder.class); + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientSecret_ = ""; + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The clientSecret. + */ + @java.lang.Override + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + 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(); + clientSecret_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for clientSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + 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(); + clientId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_URL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object tokenUrl_ = ""; + + /** + * + * + *
+   * Optional. The token endpoint of the OAuth client.
+   * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tokenUrl. + */ + @java.lang.Override + public java.lang.String getTokenUrl() { + java.lang.Object ref = tokenUrl_; + 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(); + tokenUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The token endpoint of the OAuth client.
+   * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tokenUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenUrlBytes() { + java.lang.Object ref = tokenUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenUrl_ = 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.GeneratedMessage.isStringEmpty(clientSecret_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, tokenUrl_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientSecret_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, tokenUrl_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.TwoLeggedOAuth)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.TwoLeggedOAuth other = + (com.google.cloud.agentidentity.v1.TwoLeggedOAuth) obj; + + if (!getClientSecret().equals(other.getClientSecret())) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (!getTokenUrl().equals(other.getTokenUrl())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + TOKEN_URL_FIELD_NUMBER; + hash = (53 * hash) + getTokenUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.TwoLeggedOAuth parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.TwoLeggedOAuth parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.TwoLeggedOAuth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.TwoLeggedOAuth 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.cloud.agentidentity.v1.TwoLeggedOAuth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.TwoLeggedOAuth parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.TwoLeggedOAuth parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.TwoLeggedOAuth parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.TwoLeggedOAuth parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.TwoLeggedOAuth parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.TwoLeggedOAuth parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.TwoLeggedOAuth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.TwoLeggedOAuth 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing TwoLeggedOAuth object.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.TwoLeggedOAuth} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.TwoLeggedOAuth) + com.google.cloud.agentidentity.v1.TwoLeggedOAuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_TwoLeggedOAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_TwoLeggedOAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.TwoLeggedOAuth.class, + com.google.cloud.agentidentity.v1.TwoLeggedOAuth.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.TwoLeggedOAuth.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clientSecret_ = ""; + clientId_ = ""; + tokenUrl_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_TwoLeggedOAuth_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.TwoLeggedOAuth getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.TwoLeggedOAuth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.TwoLeggedOAuth build() { + com.google.cloud.agentidentity.v1.TwoLeggedOAuth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.TwoLeggedOAuth buildPartial() { + com.google.cloud.agentidentity.v1.TwoLeggedOAuth result = + new com.google.cloud.agentidentity.v1.TwoLeggedOAuth(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.TwoLeggedOAuth result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clientSecret_ = clientSecret_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tokenUrl_ = tokenUrl_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.TwoLeggedOAuth) { + return mergeFrom((com.google.cloud.agentidentity.v1.TwoLeggedOAuth) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.TwoLeggedOAuth other) { + if (other == com.google.cloud.agentidentity.v1.TwoLeggedOAuth.getDefaultInstance()) + return this; + if (!other.getClientSecret().isEmpty()) { + clientSecret_ = other.clientSecret_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTokenUrl().isEmpty()) { + tokenUrl_ = other.tokenUrl_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clientSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + tokenUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object clientSecret_ = ""; + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The clientSecret. + */ + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for clientSecret. + */ + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecret(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientSecret_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearClientSecret() { + clientSecret_ = getDefaultInstance().getClientSecret(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The bytes for clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecretBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientSecret_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object tokenUrl_ = ""; + + /** + * + * + *
+     * Optional. The token endpoint of the OAuth client.
+     * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tokenUrl. + */ + public java.lang.String getTokenUrl() { + java.lang.Object ref = tokenUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The token endpoint of the OAuth client.
+     * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tokenUrl. + */ + public com.google.protobuf.ByteString getTokenUrlBytes() { + java.lang.Object ref = tokenUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The token endpoint of the OAuth client.
+     * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tokenUrl to set. + * @return This builder for chaining. + */ + public Builder setTokenUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tokenUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The token endpoint of the OAuth client.
+     * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTokenUrl() { + tokenUrl_ = getDefaultInstance().getTokenUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The token endpoint of the OAuth client.
+     * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tokenUrl to set. + * @return This builder for chaining. + */ + public Builder setTokenUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tokenUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.TwoLeggedOAuth) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.TwoLeggedOAuth) + private static final com.google.cloud.agentidentity.v1.TwoLeggedOAuth DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.TwoLeggedOAuth(); + } + + public static com.google.cloud.agentidentity.v1.TwoLeggedOAuth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TwoLeggedOAuth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.TwoLeggedOAuth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/TwoLeggedOAuthOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/TwoLeggedOAuthOrBuilder.java new file mode 100644 index 000000000000..f1102c6bd065 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/TwoLeggedOAuthOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface TwoLeggedOAuthOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.TwoLeggedOAuth) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The clientSecret. + */ + java.lang.String getClientSecret(); + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for clientSecret. + */ + com.google.protobuf.ByteString getClientSecretBytes(); + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
+   * Optional. The token endpoint of the OAuth client.
+   * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tokenUrl. + */ + java.lang.String getTokenUrl(); + + /** + * + * + *
+   * Optional. The token endpoint of the OAuth client.
+   * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tokenUrl. + */ + com.google.protobuf.ByteString getTokenUrlBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UndeleteAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UndeleteAuthProviderRequest.java new file mode 100644 index 000000000000..f4cf3c542d31 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UndeleteAuthProviderRequest.java @@ -0,0 +1,874 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for undeleting a AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.UndeleteAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class UndeleteAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.UndeleteAuthProviderRequest) + UndeleteAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UndeleteAuthProviderRequest"); + } + + // Use UndeleteAuthProviderRequest.newBuilder() to construct. + private UndeleteAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UndeleteAuthProviderRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_UndeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_UndeleteAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.UndeleteAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest other = + (com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest 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.cloud.agentidentity.v1.UndeleteAuthProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.UndeleteAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for undeleting a AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.UndeleteAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.UndeleteAuthProviderRequest) + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_UndeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_UndeleteAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_UndeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest build() { + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest result = + new com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest other) { + if (other + == com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.UndeleteAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.UndeleteAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.UndeleteAuthProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UndeleteAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UndeleteAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..9ab25be6bf9c --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UndeleteAuthProviderRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface UndeleteAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.UndeleteAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UpdateAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UpdateAuthProviderRequest.java new file mode 100644 index 000000000000..365fd659525a --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UpdateAuthProviderRequest.java @@ -0,0 +1,1375 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +/** + * + * + *
+ * Message for updating a AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.UpdateAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1.UpdateAuthProviderRequest) + UpdateAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateAuthProviderRequest"); + } + + // Use UpdateAuthProviderRequest.newBuilder() to construct. + private UpdateAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAuthProviderRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_UpdateAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_UpdateAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AuthProvider resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AuthProvider resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AuthProvider resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int AUTH_PROVIDER_FIELD_NUMBER = 2; + private com.google.cloud.agentidentity.v1.AuthProvider authProvider_; + + /** + * + * + *
+   * Required. The AuthProvider resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProvider field is set. + */ + @java.lang.Override + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The AuthProvider resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProvider. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProvider getAuthProvider() { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance() + : authProvider_; + } + + /** + * + * + *
+   * Required. The AuthProvider resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1.AuthProviderOrBuilder getAuthProviderOrBuilder() { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance() + : authProvider_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAuthProvider()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAuthProvider()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1.UpdateAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest other = + (com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasAuthProvider() != other.hasAuthProvider()) return false; + if (hasAuthProvider()) { + if (!getAuthProvider().equals(other.getAuthProvider())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasAuthProvider()) { + hash = (37 * hash) + AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvider().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest 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.cloud.agentidentity.v1.UpdateAuthProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1.UpdateAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for updating a AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1.UpdateAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1.UpdateAuthProviderRequest) + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_UpdateAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_UpdateAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest.class, + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetAuthProviderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1_UpdateAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest build() { + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest result = + new com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authProvider_ = + authProviderBuilder_ == null ? authProvider_ : authProviderBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest other) { + if (other == com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasAuthProvider()) { + mergeAuthProvider(other.getAuthProvider()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAuthProviderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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(); + } + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.agentidentity.v1.AuthProvider authProvider_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.AuthProvider, + com.google.cloud.agentidentity.v1.AuthProvider.Builder, + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder> + authProviderBuilder_; + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProvider field is set. + */ + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProvider. + */ + public com.google.cloud.agentidentity.v1.AuthProvider getAuthProvider() { + if (authProviderBuilder_ == null) { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance() + : authProvider_; + } else { + return authProviderBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthProvider(com.google.cloud.agentidentity.v1.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authProvider_ = value; + } else { + authProviderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthProvider( + com.google.cloud.agentidentity.v1.AuthProvider.Builder builderForValue) { + if (authProviderBuilder_ == null) { + authProvider_ = builderForValue.build(); + } else { + authProviderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthProvider(com.google.cloud.agentidentity.v1.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && authProvider_ != null + && authProvider_ + != com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance()) { + getAuthProviderBuilder().mergeFrom(value); + } else { + authProvider_ = value; + } + } else { + authProviderBuilder_.mergeFrom(value); + } + if (authProvider_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthProvider() { + bitField0_ = (bitField0_ & ~0x00000002); + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentidentity.v1.AuthProvider.Builder getAuthProviderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAuthProviderFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentidentity.v1.AuthProviderOrBuilder getAuthProviderOrBuilder() { + if (authProviderBuilder_ != null) { + return authProviderBuilder_.getMessageOrBuilder(); + } else { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1.AuthProvider.getDefaultInstance() + : authProvider_; + } + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.AuthProvider, + com.google.cloud.agentidentity.v1.AuthProvider.Builder, + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder> + internalGetAuthProviderFieldBuilder() { + if (authProviderBuilder_ == null) { + authProviderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1.AuthProvider, + com.google.cloud.agentidentity.v1.AuthProvider.Builder, + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder>( + getAuthProvider(), getParentForChildren(), isClean()); + authProvider_ = null; + } + return authProviderBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1.UpdateAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1.UpdateAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1.UpdateAuthProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UpdateAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UpdateAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..f82f94e62bb8 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/java/com/google/cloud/agentidentity/v1/UpdateAuthProviderRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1; + +@com.google.protobuf.Generated +public interface UpdateAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1.UpdateAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AuthProvider resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AuthProvider resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AuthProvider resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The AuthProvider resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProvider field is set. + */ + boolean hasAuthProvider(); + + /** + * + * + *
+   * Required. The AuthProvider resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProvider. + */ + com.google.cloud.agentidentity.v1.AuthProvider getAuthProvider(); + + /** + * + * + *
+   * Required. The AuthProvider resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.agentidentity.v1.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentidentity.v1.AuthProviderOrBuilder getAuthProviderOrBuilder(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/proto/google/cloud/agentidentity/v1/auth_provider_service.proto b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/proto/google/cloud/agentidentity/v1/auth_provider_service.proto new file mode 100644 index 000000000000..421045601751 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1/src/main/proto/google/cloud/agentidentity/v1/auth_provider_service.proto @@ -0,0 +1,933 @@ +// Copyright 2026 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.cloud.agentidentity.v1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/agentidentity/apiv1/agentidentitypb;agentidentitypb"; +option java_multiple_files = true; +option java_outer_classname = "AuthProviderServiceProto"; +option java_package = "com.google.cloud.agentidentity.v1"; + +// Service describing handlers for resources +service AuthProviderService { + option (google.api.default_host) = "agentidentity.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists AuthProviders in a given project and location. + rpc ListAuthProviders(ListAuthProvidersRequest) + returns (ListAuthProvidersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/authProviders" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single AuthProvider. + rpc GetAuthProvider(GetAuthProviderRequest) returns (AuthProvider) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/authProviders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new AuthProvider in a given project and location. + rpc CreateAuthProvider(CreateAuthProviderRequest) returns (AuthProvider) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/authProviders" + body: "auth_provider" + }; + option (google.api.method_signature) = + "parent,auth_provider,auth_provider_id"; + } + + // Updates the parameters of a single AuthProvider. + rpc UpdateAuthProvider(UpdateAuthProviderRequest) returns (AuthProvider) { + option (google.api.http) = { + patch: "/v1/{auth_provider.name=projects/*/locations/*/authProviders/*}" + body: "auth_provider" + }; + option (google.api.method_signature) = "auth_provider,update_mask"; + } + + // Deletes a single AuthProvider. + rpc DeleteAuthProvider(DeleteAuthProviderRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/authProviders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Undeletes a single AuthProvider. + rpc UndeleteAuthProvider(UndeleteAuthProviderRequest) returns (AuthProvider) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/authProviders/*}:undelete" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Queries what all auth_providers are used by a given workload_id. + rpc QueryAuthProviders(QueryAuthProvidersRequest) + returns (QueryAuthProvidersResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/authProviders:query" + }; + option (google.api.method_signature) = "parent,workload_id"; + } + + // Queries what all workloads are using a given auth_provider. + rpc QueryWorkloads(QueryWorkloadsRequest) returns (QueryWorkloadsResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/authProviders/*}:queryWorkloads" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Authorizations in a given project and location. + rpc ListAuthorizations(ListAuthorizationsRequest) + returns (ListAuthorizationsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/authProviders/*}/authorizations" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Authorization. + rpc GetAuthorization(GetAuthorizationRequest) returns (Authorization) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/authProviders/*/authorizations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a single Authorization. + rpc DeleteAuthorization(DeleteAuthorizationRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/authProviders/*/authorizations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists AccessSummaries in a given project and location. + // Supported Filters: + // - `workload_id`: Filter by the SPIFFE ID of the agent. + // Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + rpc ListAccessSummaries(ListAccessSummariesRequest) + returns (ListAccessSummariesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/accessSummaries" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single AccessSummary. + rpc GetAccessSummary(GetAccessSummaryRequest) returns (AccessSummary) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/accessSummaries/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Revokes all authorizations for a specific user on an AuthProvider. + // This deletes all authorization records associated with the user and + // AuthProvider, effectively revoking access across all agents. + rpc RevokeAuthorization(RevokeAuthorizationRequest) + returns (RevokeAuthorizationResponse) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/authProviders/*}:revokeAuthorization" + body: "*" + }; + option (google.api.method_signature) = "name,user_id"; + } + + // Enables a single AuthProvider. + rpc EnableAuthProvider(EnableAuthProviderRequest) returns (AuthProvider) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/authProviders/*}:enable" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Disables a single AuthProvider. + rpc DisableAuthProvider(DisableAuthProviderRequest) returns (AuthProvider) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/authProviders/*}:disable" + body: "*" + }; + option (google.api.method_signature) = "name"; + } +} + +// The type of the AuthProvider. +enum AuthProviderType { + // Unspecified auth-provider type. + AUTH_PROVIDER_TYPE_UNSPECIFIED = 0; + + // Three Legged OAuth auth-provider type. + AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH = 1; + + // Two Legged OAuth auth-provider type. + AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH = 2; + + // API Key auth-provider type. + AUTH_PROVIDER_TYPE_API_KEY = 3; + + // Gemini Enterprise auth-provider type. + AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE = 4; +} + +// Message describing AuthProvider object +message AuthProvider { + option (google.api.resource) = { + type: "agentidentity.googleapis.com/AuthProvider" + pattern: "projects/{project}/locations/{location}/authProviders/{auth_provider}" + plural: "authProviders" + singular: "authProvider" + }; + + // AuthProvider type specific parameters. + // Required when creating an auth_provider. + message AuthProviderTypeParams { + // AuthProvider type. + oneof type { + // ThreeLeggedOAuth AuthProvider type parameters. + ThreeLeggedOAuth three_legged_oauth = 1; + + // TwoLeggedOAuth AuthProvider type parameters. + TwoLeggedOAuth two_legged_oauth = 2; + + // ApiKey AuthProvider type parameters. + ApiKeyParams api_key = 3; + + // GeminiEnterprise auth_provider type parameters. + GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + } + } + + // Represents the state of the auth_provider. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // Enabled and can be used. + ENABLED = 1; + + // Disabled and cannot be used. + DISABLED = 2; + } + + // Identifier. The full resource name of the auth_provider. Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. [Output only] Create time stamp + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Update time stamp + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels as key value pairs + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. AuthProvider type specific parameters. + AuthProviderTypeParams auth_provider_type_params = 5 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. List of scopes that are allowed to be requested for this + // auth_provider. If this list is non-empty, only scopes within this list may + // be requested. If this list is empty, all scopes may be requested. Scopes + // appearing in `blocked_scopes` are disallowed even if they appear in + // `allowed_scopes`. + // The number of allowed scopes is limited to 200. + repeated string allowed_scopes = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of scopes that are blocked from being requested for this + // auth_provider. If a scope appears in this list, it will not be requested, + // even if it also appears in `allowed_scopes`. `blocked_scopes` takes + // precedence over `allowed_scopes`. The number of blocked scopes is limited + // to 200. + repeated string blocked_scopes = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the resource. + // Must be less than 256 characters. + string description = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. This is set to true if the auth_provider is deleted. + bool deleted = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the auth_provider will expire. + google.protobuf.Timestamp expire_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the auth_provider. + State state = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Input only. Represents the workload identity in IAM + // `principal://` format of the agent(s) that will use this AuthProvider. + // Example: + // `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}` + repeated string workload_ids = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; +} + +// Message describing ThreeLeggedOAuth object. +message ThreeLeggedOAuth { + // Optional. Input only. The client secret of the OAuth client. + string client_secret = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Optional. The client ID of the OAuth client. + string client_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The redirect URL this auth_provider uses for the OAuth + // exchange. This is deterministic based on the name of the auth_provider. + string redirect_url = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The authorization endpoint to send users to for consenting to + // delegate to the agent. eg. "https://auth.example.com/authorize" + string authorization_url = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The token endpoint for requesting tokens on behalf of an end + // user. eg. "https://auth.example.com/oauth/token" + string token_url = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to + // prevent authorization code interception attacks. + bool enable_pkce = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default continue URI for 3LO flow and it will be used when no + // continue URI is provided in the RetrieveCredentials request. + string default_continue_uri = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message describing TwoLeggedOAuth object. +message TwoLeggedOAuth { + // Optional. Input only. The client secret of the OAuth client. + string client_secret = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Optional. The client ID of the OAuth client. + string client_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The token endpoint of the OAuth client. + string token_url = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message describing ApiKeyParams object. +message ApiKeyParams { + // Optional. Input only. The API key for this auth_provider. + string api_key = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; +} + +// Message describing GeminiEnterpriseAuthProviderParams object. +message GeminiEnterpriseAuthProviderParams {} + +// Message for requesting list of AuthProviders +message ListAuthProvidersRequest { + // Required. The parent resource where the search is performed. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token, which can be sent as `page_token` to retrieve the next + // page. If this field is omitted, the first page is returned. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter results. This field is currently ignored. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Currently ignored. + // Defaults to ordering by auth_provider_id in ascending order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Deleted auth_providers will be kept with a soft-delete for 30 + // days before being purged. If this field is set to true, deleted + // auth_providers will also + // be returned. + bool show_deleted = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing AuthProviders +message ListAuthProvidersResponse { + // The list of AuthProvider + repeated AuthProvider auth_providers = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Message for getting a AuthProvider +message GetAuthProviderRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; +} + +// Message for creating a AuthProvider +message CreateAuthProviderRequest { + // Required. The parent resource where the AuthProvider is created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Required. The ID to use for the AuthProvider, which will become the final + // segment of the AuthProvider's resource name. This value should be 1-63 + // characters, and valid characters are /[a-z][0-9]-/. The first character + // must be a lowercase letter, and the last character must be a lowercase + // letter or a number. + string auth_provider_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The AuthProvider to create. + AuthProvider auth_provider = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for updating a AuthProvider +message UpdateAuthProviderRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // AuthProvider resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields present in the request will be + // overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The AuthProvider resource which replaces the resource on the + // server. + AuthProvider auth_provider = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for deleting a AuthProvider +message DeleteAuthProviderRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for undeleting a AuthProvider +message UndeleteAuthProviderRequest { + // Required. Name of the resource + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for enabling an AuthProvider +message EnableAuthProviderRequest { + // Required. Name of the resource + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for disabling an AuthProvider +message DisableAuthProviderRequest { + // Required. Name of the resource + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message describing Authorization object +message Authorization { + option (google.api.resource) = { + type: "agentidentity.googleapis.com/Authorization" + pattern: "projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}" + plural: "authorizations" + singular: "authorization" + }; + + // Represents the state of the authorization. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // Active. + ACTIVE = 1; + + // Suspended. + SUSPENDED = 2; + } + + // Identifier. name of resource + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. [Output only] Create time stamp + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Update time stamp + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The client_user_id provided by the client application for + // their end user. Not verified by Google. + string client_user_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The scopes actually granted by the end user during the consent + // flow. + repeated string scopes = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the authorization. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Message for requesting list of Authorizations +message ListAuthorizationsRequest { + // Required. The parent resource where the search is performed. + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentidentity.googleapis.com/Authorization" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListAuthorizations` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListAuthorizations` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter string to restrict the results. + // Currently supports filtering by `client_user_id` only. + // Format: `client_user_id=""` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field is currently ignored. + // Defaults to ordering by authorization_id in ascending order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Authorizations +message ListAuthorizationsResponse { + // The list of Authorization + repeated Authorization authorizations = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Message for getting a Authorization +message GetAuthorizationRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/Authorization" + } + ]; +} + +// Message for deleting an Authorization +message DeleteAuthorizationRequest { + // Required. The name of the Authorization to delete. + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/Authorization" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message describing AccessSummary object +message AccessSummary { + option (google.api.resource) = { + type: "agentidentity.googleapis.com/AccessSummary" + pattern: "projects/{project}/locations/{location}/accessSummaries/{access_summary}" + plural: "accessSummaries" + singular: "accessSummary" + }; + + // Output only. Identifier. Name of the AccessSummary + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Output only. The first time this user has interacted with this workload. + // Rounded to the previous hour. + google.protobuf.Timestamp first_access_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The most recent time this user has interacted with this + // workload. Rounded to the previous hour. + google.protobuf.Timestamp last_access_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels as key value pairs + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The user_id provided by the workload application for this + // user. Not verified by Google. + string user_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The identity bound to the workload that this user interacted + // with to produce this AccessSummary. Will typically be an agentic spiffe id + string workload_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The url of the authentication server that was accessed. + string token_url = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. All scopes that have been used by this user with this + // workload. The number of scopes is limited to 200. + repeated string scopes = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The auth_provider that this access summary is associated with. + string auth_provider = 9 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Output only. The time when this access summary is permanently deleted. + google.protobuf.Timestamp purge_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the connector that was used to create this access + // summary. + AuthProviderType auth_provider_type = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Message for requesting list of AccessSummaries +message ListAccessSummariesRequest { + // Required. The parent resource where the search is performed. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentidentity.googleapis.com/AccessSummary" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter string to restrict the results. + // + // Currently supports filtering by `workload_id` or `auth_provider_name`. + // If no filter is provided, returns all access summaries for the requested + // project and location. Format: `workload_id=""` or + // `auth_provider_name=""` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field is currently ignored. + // Defaults to ordering by (auth_provider_id, user_id) in ascending order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing AccessSummaries +message ListAccessSummariesResponse { + // The list of AccessSummary + repeated AccessSummary access_summaries = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Message for getting a AccessSummary +message GetAccessSummaryRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AccessSummary" + } + ]; +} + +// Request message for QueryAuthProviders. +message QueryAuthProvidersRequest { + // Required. The parent resource where the search is performed. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Required. The workload identifier to filter by. + string workload_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. The + // maximum page size is 1000. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token, which can be sent as `page_token` to retrieve the next + // page. If this field is omitted, the first page is returned. + // + // A page token, received from a previous QueryAuthProviders call. + // Provide this to retrieve the subsequent page. When paginating, all other + // parameters provided to QueryAuthProviders must match the call that provided + // the page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for QueryAuthProviders. +message QueryAuthProvidersResponse { + // The unique list of auth_provider resource names used by the workload. + repeated string auth_provider_names = 1; + + // A token identifying a page of results the server should return. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for QueryWorkloads. +message QueryWorkloadsRequest { + // Required. The name of the auth_provider to query. + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token, which can be sent as `page_token` to retrieve the next + // page. When paginating, all other parameters provided to QueryWorkloads must + // match the call that provided the page token. If this field is omitted, the + // first page is returned. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for QueryWorkloads. +message QueryWorkloadsResponse { + // The unique list of workload identifiers (agents) that used the + // auth_provider. + repeated string workload_ids = 1; + + // A token to retrieve the next page of results. + string next_page_token = 2; +} + +// Request message for RevokeAuthorization. +message RevokeAuthorizationRequest { + // Required. The resource name of the AuthProvider. + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Required. The identity of the user to revoke authorization for. + string user_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for RevokeAuthorization. +message RevokeAuthorizationResponse {} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/clirr-ignored-differences.xml b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/clirr-ignored-differences.xml new file mode 100644 index 000000000000..5734011ac9a3 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/clirr-ignored-differences.xml @@ -0,0 +1,80 @@ + + + + + 7012 + com/google/cloud/agentidentity/v1beta/*OrBuilder + * get*(*) + + + 7012 + com/google/cloud/agentidentity/v1beta/*OrBuilder + boolean contains*(*) + + + 7012 + com/google/cloud/agentidentity/v1beta/*OrBuilder + boolean has*(*) + + + + 7006 + com/google/cloud/agentidentity/v1beta/** + * getDefaultInstanceForType() + ** + + + 7006 + com/google/cloud/agentidentity/v1beta/** + * addRepeatedField(*) + ** + + + 7006 + com/google/cloud/agentidentity/v1beta/** + * clear() + ** + + + 7006 + com/google/cloud/agentidentity/v1beta/** + * clearField(*) + ** + + + 7006 + com/google/cloud/agentidentity/v1beta/** + * clearOneof(*) + ** + + + 7006 + com/google/cloud/agentidentity/v1beta/** + * clone() + ** + + + 7006 + com/google/cloud/agentidentity/v1beta/** + * mergeUnknownFields(*) + ** + + + 7006 + com/google/cloud/agentidentity/v1beta/** + * setField(*) + ** + + + 7006 + com/google/cloud/agentidentity/v1beta/** + * setRepeatedField(*) + ** + + + 7006 + com/google/cloud/agentidentity/v1beta/** + * setUnknownFields(*) + ** + + diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/pom.xml b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/pom.xml new file mode 100644 index 000000000000..149f7bd3422f --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/pom.xml @@ -0,0 +1,41 @@ + + 4.0.0 + com.google.api.grpc + proto-google-cloud-agentidentity-v1beta + 0.1.0-SNAPSHOT + proto-google-cloud-agentidentity-v1beta + Proto library for google-cloud-agentidentity + + com.google.cloud + google-cloud-agentidentity-parent + 0.1.0-SNAPSHOT + + + + com.google.protobuf + protobuf-java + + + com.google.api.grpc + proto-google-common-protos + + + com.google.api.grpc + proto-google-iam-v1 + + + com.google.api + api-common + + + com.google.guava + guava + + + org.jspecify + jspecify + + + diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AccessSummary.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AccessSummary.java new file mode 100644 index 000000000000..b329efa362d8 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AccessSummary.java @@ -0,0 +1,3172 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message describing AccessSummary object
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.AccessSummary} + */ +@com.google.protobuf.Generated +public final class AccessSummary extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.AccessSummary) + AccessSummaryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AccessSummary"); + } + + // Use AccessSummary.newBuilder() to construct. + private AccessSummary(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AccessSummary() { + name_ = ""; + userId_ = ""; + workloadId_ = ""; + tokenUrl_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + authProvider_ = ""; + authProviderType_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AccessSummary_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AccessSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.AccessSummary.class, + com.google.cloud.agentidentity.v1beta.AccessSummary.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Output only. Identifier. Name of the AccessSummary
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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; + } + } + + /** + * + * + *
+   * Output only. Identifier. Name of the AccessSummary
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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 FIRST_ACCESS_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp firstAccessTime_; + + /** + * + * + *
+   * Output only. The first time this user has interacted with this workload.
+   * Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the firstAccessTime field is set. + */ + @java.lang.Override + public boolean hasFirstAccessTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The first time this user has interacted with this workload.
+   * Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firstAccessTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getFirstAccessTime() { + return firstAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : firstAccessTime_; + } + + /** + * + * + *
+   * Output only. The first time this user has interacted with this workload.
+   * Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getFirstAccessTimeOrBuilder() { + return firstAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : firstAccessTime_; + } + + public static final int LAST_ACCESS_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp lastAccessTime_; + + /** + * + * + *
+   * Output only. The most recent time this user has interacted with this
+   * workload. Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastAccessTime field is set. + */ + @java.lang.Override + public boolean hasLastAccessTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The most recent time this user has interacted with this
+   * workload. Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastAccessTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastAccessTime() { + return lastAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAccessTime_; + } + + /** + * + * + *
+   * Output only. The most recent time this user has interacted with this
+   * workload. Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastAccessTimeOrBuilder() { + return lastAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAccessTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AccessSummary_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int USER_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + + /** + * + * + *
+   * Output only. The user_id provided by the workload application for this
+   * user. Not verified by Google.
+   * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + 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(); + userId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The user_id provided by the workload application for this
+   * user. Not verified by Google.
+   * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WORKLOAD_ID_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object workloadId_ = ""; + + /** + * + * + *
+   * Output only. The identity bound to the workload that this user interacted
+   * with to produce this AccessSummary. Will typically be an agentic spiffe id
+   * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadId. + */ + @java.lang.Override + public java.lang.String getWorkloadId() { + java.lang.Object ref = workloadId_; + 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(); + workloadId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The identity bound to the workload that this user interacted
+   * with to produce this AccessSummary. Will typically be an agentic spiffe id
+   * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkloadIdBytes() { + java.lang.Object ref = workloadId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_URL_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object tokenUrl_ = ""; + + /** + * + * + *
+   * Output only. The url of the authentication server that was accessed.
+   * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tokenUrl. + */ + @java.lang.Override + public java.lang.String getTokenUrl() { + java.lang.Object ref = tokenUrl_; + 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(); + tokenUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The url of the authentication server that was accessed.
+   * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tokenUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenUrlBytes() { + java.lang.Object ref = tokenUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + return scopes_; + } + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + public static final int AUTH_PROVIDER_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object authProvider_ = ""; + + /** + * + * + *
+   * Output only. The auth_provider that this access summary is associated with.
+   * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The authProvider. + */ + @java.lang.Override + public java.lang.String getAuthProvider() { + java.lang.Object ref = authProvider_; + 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(); + authProvider_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The auth_provider that this access summary is associated with.
+   * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for authProvider. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthProviderBytes() { + java.lang.Object ref = authProvider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PURGE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp purgeTime_; + + /** + * + * + *
+   * Output only. The time when this access summary is permanently deleted.
+   * 
+ * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the purgeTime field is set. + */ + @java.lang.Override + public boolean hasPurgeTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. The time when this access summary is permanently deleted.
+   * 
+ * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The purgeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getPurgeTime() { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } + + /** + * + * + *
+   * Output only. The time when this access summary is permanently deleted.
+   * 
+ * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } + + public static final int AUTH_PROVIDER_TYPE_FIELD_NUMBER = 11; + private int authProviderType_ = 0; + + /** + * + * + *
+   * Output only. The type of the connector that was used to create this access
+   * summary.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for authProviderType. + */ + @java.lang.Override + public int getAuthProviderTypeValue() { + return authProviderType_; + } + + /** + * + * + *
+   * Output only. The type of the connector that was used to create this access
+   * summary.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The authProviderType. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProviderType getAuthProviderType() { + com.google.cloud.agentidentity.v1beta.AuthProviderType result = + com.google.cloud.agentidentity.v1beta.AuthProviderType.forNumber(authProviderType_); + return result == null + ? com.google.cloud.agentidentity.v1beta.AuthProviderType.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFirstAccessTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getLastAccessTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, userId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workloadId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, workloadId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, tokenUrl_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, scopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProvider_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, authProvider_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getPurgeTime()); + } + if (authProviderType_ + != com.google.cloud.agentidentity.v1beta.AuthProviderType.AUTH_PROVIDER_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(11, authProviderType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFirstAccessTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getLastAccessTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, userId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workloadId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, workloadId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, tokenUrl_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProvider_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, authProvider_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getPurgeTime()); + } + if (authProviderType_ + != com.google.cloud.agentidentity.v1beta.AuthProviderType.AUTH_PROVIDER_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, authProviderType_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.AccessSummary)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.AccessSummary other = + (com.google.cloud.agentidentity.v1beta.AccessSummary) obj; + + if (!getName().equals(other.getName())) return false; + if (hasFirstAccessTime() != other.hasFirstAccessTime()) return false; + if (hasFirstAccessTime()) { + if (!getFirstAccessTime().equals(other.getFirstAccessTime())) return false; + } + if (hasLastAccessTime() != other.hasLastAccessTime()) return false; + if (hasLastAccessTime()) { + if (!getLastAccessTime().equals(other.getLastAccessTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (!getUserId().equals(other.getUserId())) return false; + if (!getWorkloadId().equals(other.getWorkloadId())) return false; + if (!getTokenUrl().equals(other.getTokenUrl())) return false; + if (!getScopesList().equals(other.getScopesList())) return false; + if (!getAuthProvider().equals(other.getAuthProvider())) return false; + if (hasPurgeTime() != other.hasPurgeTime()) return false; + if (hasPurgeTime()) { + if (!getPurgeTime().equals(other.getPurgeTime())) return false; + } + if (authProviderType_ != other.authProviderType_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasFirstAccessTime()) { + hash = (37 * hash) + FIRST_ACCESS_TIME_FIELD_NUMBER; + hash = (53 * hash) + getFirstAccessTime().hashCode(); + } + if (hasLastAccessTime()) { + hash = (37 * hash) + LAST_ACCESS_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastAccessTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (37 * hash) + WORKLOAD_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadId().hashCode(); + hash = (37 * hash) + TOKEN_URL_FIELD_NUMBER; + hash = (53 * hash) + getTokenUrl().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvider().hashCode(); + if (hasPurgeTime()) { + hash = (37 * hash) + PURGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getPurgeTime().hashCode(); + } + hash = (37 * hash) + AUTH_PROVIDER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + authProviderType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.AccessSummary parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.AccessSummary parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.AccessSummary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.AccessSummary 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.cloud.agentidentity.v1beta.AccessSummary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.AccessSummary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.AccessSummary parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.AccessSummary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.AccessSummary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.AccessSummary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.AccessSummary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.AccessSummary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.AccessSummary 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing AccessSummary object
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.AccessSummary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.AccessSummary) + com.google.cloud.agentidentity.v1beta.AccessSummaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AccessSummary_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AccessSummary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.AccessSummary.class, + com.google.cloud.agentidentity.v1beta.AccessSummary.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.AccessSummary.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFirstAccessTimeFieldBuilder(); + internalGetLastAccessTimeFieldBuilder(); + internalGetPurgeTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + firstAccessTime_ = null; + if (firstAccessTimeBuilder_ != null) { + firstAccessTimeBuilder_.dispose(); + firstAccessTimeBuilder_ = null; + } + lastAccessTime_ = null; + if (lastAccessTimeBuilder_ != null) { + lastAccessTimeBuilder_.dispose(); + lastAccessTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + userId_ = ""; + workloadId_ = ""; + tokenUrl_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + authProvider_ = ""; + purgeTime_ = null; + if (purgeTimeBuilder_ != null) { + purgeTimeBuilder_.dispose(); + purgeTimeBuilder_ = null; + } + authProviderType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AccessSummary_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AccessSummary getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.AccessSummary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AccessSummary build() { + com.google.cloud.agentidentity.v1beta.AccessSummary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AccessSummary buildPartial() { + com.google.cloud.agentidentity.v1beta.AccessSummary result = + new com.google.cloud.agentidentity.v1beta.AccessSummary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1beta.AccessSummary result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.firstAccessTime_ = + firstAccessTimeBuilder_ == null ? firstAccessTime_ : firstAccessTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.lastAccessTime_ = + lastAccessTimeBuilder_ == null ? lastAccessTime_ : lastAccessTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.userId_ = userId_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.workloadId_ = workloadId_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.tokenUrl_ = tokenUrl_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.authProvider_ = authProvider_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.purgeTime_ = purgeTimeBuilder_ == null ? purgeTime_ : purgeTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.authProviderType_ = authProviderType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.AccessSummary) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.AccessSummary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1beta.AccessSummary other) { + if (other == com.google.cloud.agentidentity.v1beta.AccessSummary.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasFirstAccessTime()) { + mergeFirstAccessTime(other.getFirstAccessTime()); + } + if (other.hasLastAccessTime()) { + mergeLastAccessTime(other.getLastAccessTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getWorkloadId().isEmpty()) { + workloadId_ = other.workloadId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getTokenUrl().isEmpty()) { + tokenUrl_ = other.tokenUrl_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000080; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (!other.getAuthProvider().isEmpty()) { + authProvider_ = other.authProvider_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (other.hasPurgeTime()) { + mergePurgeTime(other.getPurgeTime()); + } + if (other.authProviderType_ != 0) { + setAuthProviderTypeValue(other.getAuthProviderTypeValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetFirstAccessTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetLastAccessTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + workloadId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + tokenUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 66 + case 74: + { + authProvider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetPurgeTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: + { + authProviderType_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 88 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Output only. Identifier. Name of the AccessSummary
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Identifier. Name of the AccessSummary
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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; + } + } + + /** + * + * + *
+     * Output only. Identifier. Name of the AccessSummary
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. Name of the AccessSummary
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Identifier. Name of the AccessSummary
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp firstAccessTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + firstAccessTimeBuilder_; + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the firstAccessTime field is set. + */ + public boolean hasFirstAccessTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firstAccessTime. + */ + public com.google.protobuf.Timestamp getFirstAccessTime() { + if (firstAccessTimeBuilder_ == null) { + return firstAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : firstAccessTime_; + } else { + return firstAccessTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFirstAccessTime(com.google.protobuf.Timestamp value) { + if (firstAccessTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + firstAccessTime_ = value; + } else { + firstAccessTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setFirstAccessTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (firstAccessTimeBuilder_ == null) { + firstAccessTime_ = builderForValue.build(); + } else { + firstAccessTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeFirstAccessTime(com.google.protobuf.Timestamp value) { + if (firstAccessTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && firstAccessTime_ != null + && firstAccessTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getFirstAccessTimeBuilder().mergeFrom(value); + } else { + firstAccessTime_ = value; + } + } else { + firstAccessTimeBuilder_.mergeFrom(value); + } + if (firstAccessTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearFirstAccessTime() { + bitField0_ = (bitField0_ & ~0x00000002); + firstAccessTime_ = null; + if (firstAccessTimeBuilder_ != null) { + firstAccessTimeBuilder_.dispose(); + firstAccessTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getFirstAccessTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFirstAccessTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getFirstAccessTimeOrBuilder() { + if (firstAccessTimeBuilder_ != null) { + return firstAccessTimeBuilder_.getMessageOrBuilder(); + } else { + return firstAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : firstAccessTime_; + } + } + + /** + * + * + *
+     * Output only. The first time this user has interacted with this workload.
+     * Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetFirstAccessTimeFieldBuilder() { + if (firstAccessTimeBuilder_ == null) { + firstAccessTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getFirstAccessTime(), getParentForChildren(), isClean()); + firstAccessTime_ = null; + } + return firstAccessTimeBuilder_; + } + + private com.google.protobuf.Timestamp lastAccessTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastAccessTimeBuilder_; + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastAccessTime field is set. + */ + public boolean hasLastAccessTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastAccessTime. + */ + public com.google.protobuf.Timestamp getLastAccessTime() { + if (lastAccessTimeBuilder_ == null) { + return lastAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAccessTime_; + } else { + return lastAccessTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastAccessTime(com.google.protobuf.Timestamp value) { + if (lastAccessTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastAccessTime_ = value; + } else { + lastAccessTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastAccessTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastAccessTimeBuilder_ == null) { + lastAccessTime_ = builderForValue.build(); + } else { + lastAccessTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastAccessTime(com.google.protobuf.Timestamp value) { + if (lastAccessTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && lastAccessTime_ != null + && lastAccessTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastAccessTimeBuilder().mergeFrom(value); + } else { + lastAccessTime_ = value; + } + } else { + lastAccessTimeBuilder_.mergeFrom(value); + } + if (lastAccessTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastAccessTime() { + bitField0_ = (bitField0_ & ~0x00000004); + lastAccessTime_ = null; + if (lastAccessTimeBuilder_ != null) { + lastAccessTimeBuilder_.dispose(); + lastAccessTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastAccessTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetLastAccessTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastAccessTimeOrBuilder() { + if (lastAccessTimeBuilder_ != null) { + return lastAccessTimeBuilder_.getMessageOrBuilder(); + } else { + return lastAccessTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastAccessTime_; + } + } + + /** + * + * + *
+     * Output only. The most recent time this user has interacted with this
+     * workload. Rounded to the previous hour.
+     * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetLastAccessTimeFieldBuilder() { + if (lastAccessTimeBuilder_ == null) { + lastAccessTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastAccessTime(), getParentForChildren(), isClean()); + lastAccessTime_ = null; + } + return lastAccessTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private java.lang.Object userId_ = ""; + + /** + * + * + *
+     * Output only. The user_id provided by the workload application for this
+     * user. Not verified by Google.
+     * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The user_id provided by the workload application for this
+     * user. Not verified by Google.
+     * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The user_id provided by the workload application for this
+     * user. Not verified by Google.
+     * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The user_id provided by the workload application for this
+     * user. Not verified by Google.
+     * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The user_id provided by the workload application for this
+     * user. Not verified by Google.
+     * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object workloadId_ = ""; + + /** + * + * + *
+     * Output only. The identity bound to the workload that this user interacted
+     * with to produce this AccessSummary. Will typically be an agentic spiffe id
+     * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadId. + */ + public java.lang.String getWorkloadId() { + java.lang.Object ref = workloadId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The identity bound to the workload that this user interacted
+     * with to produce this AccessSummary. Will typically be an agentic spiffe id
+     * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadId. + */ + public com.google.protobuf.ByteString getWorkloadIdBytes() { + java.lang.Object ref = workloadId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The identity bound to the workload that this user interacted
+     * with to produce this AccessSummary. Will typically be an agentic spiffe id
+     * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The workloadId to set. + * @return This builder for chaining. + */ + public Builder setWorkloadId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workloadId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The identity bound to the workload that this user interacted
+     * with to produce this AccessSummary. Will typically be an agentic spiffe id
+     * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadId() { + workloadId_ = getDefaultInstance().getWorkloadId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The identity bound to the workload that this user interacted
+     * with to produce this AccessSummary. Will typically be an agentic spiffe id
+     * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for workloadId to set. + * @return This builder for chaining. + */ + public Builder setWorkloadIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object tokenUrl_ = ""; + + /** + * + * + *
+     * Output only. The url of the authentication server that was accessed.
+     * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tokenUrl. + */ + public java.lang.String getTokenUrl() { + java.lang.Object ref = tokenUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The url of the authentication server that was accessed.
+     * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tokenUrl. + */ + public com.google.protobuf.ByteString getTokenUrlBytes() { + java.lang.Object ref = tokenUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The url of the authentication server that was accessed.
+     * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The tokenUrl to set. + * @return This builder for chaining. + */ + public Builder setTokenUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tokenUrl_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The url of the authentication server that was accessed.
+     * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTokenUrl() { + tokenUrl_ = getDefaultInstance().getTokenUrl(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The url of the authentication server that was accessed.
+     * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for tokenUrl to set. + * @return This builder for chaining. + */ + public Builder setTokenUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tokenUrl_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000080; + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes(java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. All scopes that have been used by this user with this
+     * workload. The number of scopes is limited to 200.
+     * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object authProvider_ = ""; + + /** + * + * + *
+     * Output only. The auth_provider that this access summary is associated with.
+     * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The authProvider. + */ + public java.lang.String getAuthProvider() { + java.lang.Object ref = authProvider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProvider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The auth_provider that this access summary is associated with.
+     * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for authProvider. + */ + public com.google.protobuf.ByteString getAuthProviderBytes() { + java.lang.Object ref = authProvider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authProvider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The auth_provider that this access summary is associated with.
+     * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The authProvider to set. + * @return This builder for chaining. + */ + public Builder setAuthProvider(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authProvider_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The auth_provider that this access summary is associated with.
+     * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAuthProvider() { + authProvider_ = getDefaultInstance().getAuthProvider(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The auth_provider that this access summary is associated with.
+     * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for authProvider to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authProvider_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp purgeTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + purgeTimeBuilder_; + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the purgeTime field is set. + */ + public boolean hasPurgeTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The purgeTime. + */ + public com.google.protobuf.Timestamp getPurgeTime() { + if (purgeTimeBuilder_ == null) { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } else { + return purgeTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPurgeTime(com.google.protobuf.Timestamp value) { + if (purgeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + purgeTime_ = value; + } else { + purgeTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setPurgeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (purgeTimeBuilder_ == null) { + purgeTime_ = builderForValue.build(); + } else { + purgeTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergePurgeTime(com.google.protobuf.Timestamp value) { + if (purgeTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && purgeTime_ != null + && purgeTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getPurgeTimeBuilder().mergeFrom(value); + } else { + purgeTime_ = value; + } + } else { + purgeTimeBuilder_.mergeFrom(value); + } + if (purgeTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearPurgeTime() { + bitField0_ = (bitField0_ & ~0x00000200); + purgeTime_ = null; + if (purgeTimeBuilder_ != null) { + purgeTimeBuilder_.dispose(); + purgeTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getPurgeTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetPurgeTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder() { + if (purgeTimeBuilder_ != null) { + return purgeTimeBuilder_.getMessageOrBuilder(); + } else { + return purgeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : purgeTime_; + } + } + + /** + * + * + *
+     * Output only. The time when this access summary is permanently deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetPurgeTimeFieldBuilder() { + if (purgeTimeBuilder_ == null) { + purgeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getPurgeTime(), getParentForChildren(), isClean()); + purgeTime_ = null; + } + return purgeTimeBuilder_; + } + + private int authProviderType_ = 0; + + /** + * + * + *
+     * Output only. The type of the connector that was used to create this access
+     * summary.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for authProviderType. + */ + @java.lang.Override + public int getAuthProviderTypeValue() { + return authProviderType_; + } + + /** + * + * + *
+     * Output only. The type of the connector that was used to create this access
+     * summary.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for authProviderType to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderTypeValue(int value) { + authProviderType_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the connector that was used to create this access
+     * summary.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The authProviderType. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProviderType getAuthProviderType() { + com.google.cloud.agentidentity.v1beta.AuthProviderType result = + com.google.cloud.agentidentity.v1beta.AuthProviderType.forNumber(authProviderType_); + return result == null + ? com.google.cloud.agentidentity.v1beta.AuthProviderType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The type of the connector that was used to create this access
+     * summary.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The authProviderType to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderType( + com.google.cloud.agentidentity.v1beta.AuthProviderType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + authProviderType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The type of the connector that was used to create this access
+     * summary.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAuthProviderType() { + bitField0_ = (bitField0_ & ~0x00000400); + authProviderType_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.AccessSummary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.AccessSummary) + private static final com.google.cloud.agentidentity.v1beta.AccessSummary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.AccessSummary(); + } + + public static com.google.cloud.agentidentity.v1beta.AccessSummary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessSummary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.AccessSummary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AccessSummaryName.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AccessSummaryName.java new file mode 100644 index 000000000000..2a32723d6ae9 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AccessSummaryName.java @@ -0,0 +1,230 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AccessSummaryName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ACCESS_SUMMARY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/accessSummaries/{access_summary}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String accessSummary; + + @Deprecated + protected AccessSummaryName() { + project = null; + location = null; + accessSummary = null; + } + + private AccessSummaryName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + accessSummary = Preconditions.checkNotNull(builder.getAccessSummary()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAccessSummary() { + return accessSummary; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AccessSummaryName of(String project, String location, String accessSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAccessSummary(accessSummary) + .build(); + } + + public static String format(String project, String location, String accessSummary) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAccessSummary(accessSummary) + .build() + .toString(); + } + + public static @Nullable AccessSummaryName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ACCESS_SUMMARY.validatedMatch( + formattedString, "AccessSummaryName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("access_summary")); + } + + 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<@Nullable AccessSummaryName> values) { + List list = new ArrayList<>(values.size()); + for (AccessSummaryName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ACCESS_SUMMARY.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 (location != null) { + fieldMapBuilder.put("location", location); + } + if (accessSummary != null) { + fieldMapBuilder.put("access_summary", accessSummary); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ACCESS_SUMMARY.instantiate( + "project", project, "location", location, "access_summary", accessSummary); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AccessSummaryName that = ((AccessSummaryName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.accessSummary, that.accessSummary); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(accessSummary); + return h; + } + + /** Builder for projects/{project}/locations/{location}/accessSummaries/{access_summary}. */ + public static class Builder { + private String project; + private String location; + private String accessSummary; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAccessSummary() { + return accessSummary; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAccessSummary(String accessSummary) { + this.accessSummary = accessSummary; + return this; + } + + private Builder(AccessSummaryName accessSummaryName) { + this.project = accessSummaryName.project; + this.location = accessSummaryName.location; + this.accessSummary = accessSummaryName.accessSummary; + } + + public AccessSummaryName build() { + return new AccessSummaryName(this); + } + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AccessSummaryOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AccessSummaryOrBuilder.java new file mode 100644 index 000000000000..a1a49eceded7 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AccessSummaryOrBuilder.java @@ -0,0 +1,455 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface AccessSummaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.AccessSummary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Identifier. Name of the AccessSummary
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Output only. Identifier. Name of the AccessSummary
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_behavior) = IDENTIFIER]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The first time this user has interacted with this workload.
+   * Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the firstAccessTime field is set. + */ + boolean hasFirstAccessTime(); + + /** + * + * + *
+   * Output only. The first time this user has interacted with this workload.
+   * Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The firstAccessTime. + */ + com.google.protobuf.Timestamp getFirstAccessTime(); + + /** + * + * + *
+   * Output only. The first time this user has interacted with this workload.
+   * Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp first_access_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getFirstAccessTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The most recent time this user has interacted with this
+   * workload. Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastAccessTime field is set. + */ + boolean hasLastAccessTime(); + + /** + * + * + *
+   * Output only. The most recent time this user has interacted with this
+   * workload. Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastAccessTime. + */ + com.google.protobuf.Timestamp getLastAccessTime(); + + /** + * + * + *
+   * Output only. The most recent time this user has interacted with this
+   * workload. Rounded to the previous hour.
+   * 
+ * + * + * .google.protobuf.Timestamp last_access_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastAccessTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Output only. The user_id provided by the workload application for this
+   * user. Not verified by Google.
+   * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The userId. + */ + java.lang.String getUserId(); + + /** + * + * + *
+   * Output only. The user_id provided by the workload application for this
+   * user. Not verified by Google.
+   * 
+ * + * string user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for userId. + */ + com.google.protobuf.ByteString getUserIdBytes(); + + /** + * + * + *
+   * Output only. The identity bound to the workload that this user interacted
+   * with to produce this AccessSummary. Will typically be an agentic spiffe id
+   * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The workloadId. + */ + java.lang.String getWorkloadId(); + + /** + * + * + *
+   * Output only. The identity bound to the workload that this user interacted
+   * with to produce this AccessSummary. Will typically be an agentic spiffe id
+   * 
+ * + * string workload_id = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for workloadId. + */ + com.google.protobuf.ByteString getWorkloadIdBytes(); + + /** + * + * + *
+   * Output only. The url of the authentication server that was accessed.
+   * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The tokenUrl. + */ + java.lang.String getTokenUrl(); + + /** + * + * + *
+   * Output only. The url of the authentication server that was accessed.
+   * 
+ * + * string token_url = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for tokenUrl. + */ + com.google.protobuf.ByteString getTokenUrlBytes(); + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scopes. + */ + java.util.List getScopesList(); + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scopes. + */ + int getScopesCount(); + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + + /** + * + * + *
+   * Output only. All scopes that have been used by this user with this
+   * workload. The number of scopes is limited to 200.
+   * 
+ * + * repeated string scopes = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString getScopesBytes(int index); + + /** + * + * + *
+   * Output only. The auth_provider that this access summary is associated with.
+   * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The authProvider. + */ + java.lang.String getAuthProvider(); + + /** + * + * + *
+   * Output only. The auth_provider that this access summary is associated with.
+   * 
+ * + * + * string auth_provider = 9 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for authProvider. + */ + com.google.protobuf.ByteString getAuthProviderBytes(); + + /** + * + * + *
+   * Output only. The time when this access summary is permanently deleted.
+   * 
+ * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the purgeTime field is set. + */ + boolean hasPurgeTime(); + + /** + * + * + *
+   * Output only. The time when this access summary is permanently deleted.
+   * 
+ * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The purgeTime. + */ + com.google.protobuf.Timestamp getPurgeTime(); + + /** + * + * + *
+   * Output only. The time when this access summary is permanently deleted.
+   * 
+ * + * .google.protobuf.Timestamp purge_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getPurgeTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The type of the connector that was used to create this access
+   * summary.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for authProviderType. + */ + int getAuthProviderTypeValue(); + + /** + * + * + *
+   * Output only. The type of the connector that was used to create this access
+   * summary.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProviderType auth_provider_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The authProviderType. + */ + com.google.cloud.agentidentity.v1beta.AuthProviderType getAuthProviderType(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ApiKeyParams.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ApiKeyParams.java new file mode 100644 index 000000000000..fe9612522538 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ApiKeyParams.java @@ -0,0 +1,610 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message describing ApiKeyParams object.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ApiKeyParams} + */ +@com.google.protobuf.Generated +public final class ApiKeyParams extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.ApiKeyParams) + ApiKeyParamsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ApiKeyParams"); + } + + // Use ApiKeyParams.newBuilder() to construct. + private ApiKeyParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ApiKeyParams() { + apiKey_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ApiKeyParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ApiKeyParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ApiKeyParams.class, + com.google.cloud.agentidentity.v1beta.ApiKeyParams.Builder.class); + } + + public static final int API_KEY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object apiKey_ = ""; + + /** + * + * + *
+   * Optional. Input only. The API key for this auth_provider.
+   * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The apiKey. + */ + @java.lang.Override + public java.lang.String getApiKey() { + java.lang.Object ref = apiKey_; + 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(); + apiKey_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Input only. The API key for this auth_provider.
+   * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for apiKey. + */ + @java.lang.Override + public com.google.protobuf.ByteString getApiKeyBytes() { + java.lang.Object ref = apiKey_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKey_ = 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.GeneratedMessage.isStringEmpty(apiKey_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, apiKey_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(apiKey_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, apiKey_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.ApiKeyParams)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.ApiKeyParams other = + (com.google.cloud.agentidentity.v1beta.ApiKeyParams) obj; + + if (!getApiKey().equals(other.getApiKey())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + API_KEY_FIELD_NUMBER; + hash = (53 * hash) + getApiKey().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.ApiKeyParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ApiKeyParams parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ApiKeyParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ApiKeyParams 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.cloud.agentidentity.v1beta.ApiKeyParams parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ApiKeyParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ApiKeyParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ApiKeyParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ApiKeyParams parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ApiKeyParams parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ApiKeyParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ApiKeyParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.ApiKeyParams 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing ApiKeyParams object.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ApiKeyParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.ApiKeyParams) + com.google.cloud.agentidentity.v1beta.ApiKeyParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ApiKeyParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ApiKeyParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ApiKeyParams.class, + com.google.cloud.agentidentity.v1beta.ApiKeyParams.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.ApiKeyParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + apiKey_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ApiKeyParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ApiKeyParams getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.ApiKeyParams.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ApiKeyParams build() { + com.google.cloud.agentidentity.v1beta.ApiKeyParams result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ApiKeyParams buildPartial() { + com.google.cloud.agentidentity.v1beta.ApiKeyParams result = + new com.google.cloud.agentidentity.v1beta.ApiKeyParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1beta.ApiKeyParams result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.apiKey_ = apiKey_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.ApiKeyParams) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.ApiKeyParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1beta.ApiKeyParams other) { + if (other == com.google.cloud.agentidentity.v1beta.ApiKeyParams.getDefaultInstance()) + return this; + if (!other.getApiKey().isEmpty()) { + apiKey_ = other.apiKey_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + apiKey_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object apiKey_ = ""; + + /** + * + * + *
+     * Optional. Input only. The API key for this auth_provider.
+     * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The apiKey. + */ + public java.lang.String getApiKey() { + java.lang.Object ref = apiKey_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + apiKey_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Input only. The API key for this auth_provider.
+     * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for apiKey. + */ + public com.google.protobuf.ByteString getApiKeyBytes() { + java.lang.Object ref = apiKey_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + apiKey_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Input only. The API key for this auth_provider.
+     * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The apiKey to set. + * @return This builder for chaining. + */ + public Builder setApiKey(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + apiKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. The API key for this auth_provider.
+     * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearApiKey() { + apiKey_ = getDefaultInstance().getApiKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. The API key for this auth_provider.
+     * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The bytes for apiKey to set. + * @return This builder for chaining. + */ + public Builder setApiKeyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + apiKey_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.ApiKeyParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.ApiKeyParams) + private static final com.google.cloud.agentidentity.v1beta.ApiKeyParams DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.ApiKeyParams(); + } + + public static com.google.cloud.agentidentity.v1beta.ApiKeyParams getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApiKeyParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.ApiKeyParams getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ApiKeyParamsOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ApiKeyParamsOrBuilder.java new file mode 100644 index 000000000000..c6816a2d6059 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ApiKeyParamsOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface ApiKeyParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.ApiKeyParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Input only. The API key for this auth_provider.
+   * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The apiKey. + */ + java.lang.String getApiKey(); + + /** + * + * + *
+   * Optional. Input only. The API key for this auth_provider.
+   * 
+ * + * + * string api_key = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for apiKey. + */ + com.google.protobuf.ByteString getApiKeyBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProvider.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProvider.java new file mode 100644 index 000000000000..1878959c94a0 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProvider.java @@ -0,0 +1,5820 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message describing AuthProvider object
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.AuthProvider} + */ +@com.google.protobuf.Generated +public final class AuthProvider extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.AuthProvider) + AuthProviderOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthProvider"); + } + + // Use AuthProvider.newBuilder() to construct. + private AuthProvider(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AuthProvider() { + name_ = ""; + allowedScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockedScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + description_ = ""; + state_ = 0; + workloadIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AuthProvider_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AuthProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.AuthProvider.class, + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder.class); + } + + /** + * + * + *
+   * Represents the state of the auth_provider.
+   * 
+ * + * Protobuf enum {@code google.cloud.agentidentity.v1beta.AuthProvider.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Enabled and can be used.
+     * 
+ * + * ENABLED = 1; + */ + ENABLED(1), + /** + * + * + *
+     * Disabled and cannot be used.
+     * 
+ * + * DISABLED = 2; + */ + DISABLED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Enabled and can be used.
+     * 
+ * + * ENABLED = 1; + */ + public static final int ENABLED_VALUE = 1; + + /** + * + * + *
+     * Disabled and cannot be used.
+     * 
+ * + * DISABLED = 2; + */ + public static final int DISABLED_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ENABLED; + case 2: + return DISABLED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProvider.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentidentity.v1beta.AuthProvider.State) + } + + public interface AuthProviderTypeParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * ThreeLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + * + * @return Whether the threeLeggedOauth field is set. + */ + boolean hasThreeLeggedOauth(); + + /** + * + * + *
+     * ThreeLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + * + * @return The threeLeggedOauth. + */ + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth getThreeLeggedOauth(); + + /** + * + * + *
+     * ThreeLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + */ + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuthOrBuilder getThreeLeggedOauthOrBuilder(); + + /** + * + * + *
+     * TwoLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + * + * @return Whether the twoLeggedOauth field is set. + */ + boolean hasTwoLeggedOauth(); + + /** + * + * + *
+     * TwoLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + * + * @return The twoLeggedOauth. + */ + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth getTwoLeggedOauth(); + + /** + * + * + *
+     * TwoLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + */ + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuthOrBuilder getTwoLeggedOauthOrBuilder(); + + /** + * + * + *
+     * ApiKey AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + * + * @return Whether the apiKey field is set. + */ + boolean hasApiKey(); + + /** + * + * + *
+     * ApiKey AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + * + * @return The apiKey. + */ + com.google.cloud.agentidentity.v1beta.ApiKeyParams getApiKey(); + + /** + * + * + *
+     * ApiKey AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + */ + com.google.cloud.agentidentity.v1beta.ApiKeyParamsOrBuilder getApiKeyOrBuilder(); + + /** + * + * + *
+     * GeminiEnterprise auth_provider type parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + * + * @return Whether the geAuthProvider field is set. + */ + boolean hasGeAuthProvider(); + + /** + * + * + *
+     * GeminiEnterprise auth_provider type parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + * + * @return The geAuthProvider. + */ + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams getGeAuthProvider(); + + /** + * + * + *
+     * GeminiEnterprise auth_provider type parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParamsOrBuilder + getGeAuthProviderOrBuilder(); + + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams.TypeCase + getTypeCase(); + } + + /** + * + * + *
+   * AuthProvider type specific parameters.
+   * Required when creating an auth_provider.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams} + */ + public static final class AuthProviderTypeParams extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams) + AuthProviderTypeParamsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthProviderTypeParams"); + } + + // Use AuthProviderTypeParams.newBuilder() to construct. + private AuthProviderTypeParams(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AuthProviderTypeParams() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AuthProvider_AuthProviderTypeParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AuthProvider_AuthProviderTypeParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams.class, + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams.Builder + .class); + } + + private int typeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object type_; + + public enum TypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + THREE_LEGGED_OAUTH(1), + TWO_LEGGED_OAUTH(2), + API_KEY(3), + GE_AUTH_PROVIDER(4), + TYPE_NOT_SET(0); + private final int value; + + private TypeCase(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 TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: + return THREE_LEGGED_OAUTH; + case 2: + return TWO_LEGGED_OAUTH; + case 3: + return API_KEY; + case 4: + return GE_AUTH_PROVIDER; + case 0: + return TYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public static final int THREE_LEGGED_OAUTH_FIELD_NUMBER = 1; + + /** + * + * + *
+     * ThreeLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + * + * @return Whether the threeLeggedOauth field is set. + */ + @java.lang.Override + public boolean hasThreeLeggedOauth() { + return typeCase_ == 1; + } + + /** + * + * + *
+     * ThreeLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + * + * @return The threeLeggedOauth. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth getThreeLeggedOauth() { + if (typeCase_ == 1) { + return (com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.getDefaultInstance(); + } + + /** + * + * + *
+     * ThreeLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuthOrBuilder + getThreeLeggedOauthOrBuilder() { + if (typeCase_ == 1) { + return (com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.getDefaultInstance(); + } + + public static final int TWO_LEGGED_OAUTH_FIELD_NUMBER = 2; + + /** + * + * + *
+     * TwoLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + * + * @return Whether the twoLeggedOauth field is set. + */ + @java.lang.Override + public boolean hasTwoLeggedOauth() { + return typeCase_ == 2; + } + + /** + * + * + *
+     * TwoLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + * + * @return The twoLeggedOauth. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth getTwoLeggedOauth() { + if (typeCase_ == 2) { + return (com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.getDefaultInstance(); + } + + /** + * + * + *
+     * TwoLeggedOAuth AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.TwoLeggedOAuthOrBuilder + getTwoLeggedOauthOrBuilder() { + if (typeCase_ == 2) { + return (com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.getDefaultInstance(); + } + + public static final int API_KEY_FIELD_NUMBER = 3; + + /** + * + * + *
+     * ApiKey AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + * + * @return Whether the apiKey field is set. + */ + @java.lang.Override + public boolean hasApiKey() { + return typeCase_ == 3; + } + + /** + * + * + *
+     * ApiKey AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + * + * @return The apiKey. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ApiKeyParams getApiKey() { + if (typeCase_ == 3) { + return (com.google.cloud.agentidentity.v1beta.ApiKeyParams) type_; + } + return com.google.cloud.agentidentity.v1beta.ApiKeyParams.getDefaultInstance(); + } + + /** + * + * + *
+     * ApiKey AuthProvider type parameters.
+     * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ApiKeyParamsOrBuilder getApiKeyOrBuilder() { + if (typeCase_ == 3) { + return (com.google.cloud.agentidentity.v1beta.ApiKeyParams) type_; + } + return com.google.cloud.agentidentity.v1beta.ApiKeyParams.getDefaultInstance(); + } + + public static final int GE_AUTH_PROVIDER_FIELD_NUMBER = 4; + + /** + * + * + *
+     * GeminiEnterprise auth_provider type parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + * + * @return Whether the geAuthProvider field is set. + */ + @java.lang.Override + public boolean hasGeAuthProvider() { + return typeCase_ == 4; + } + + /** + * + * + *
+     * GeminiEnterprise auth_provider type parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + * + * @return The geAuthProvider. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + getGeAuthProvider() { + if (typeCase_ == 4) { + return (com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) type_; + } + return com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + .getDefaultInstance(); + } + + /** + * + * + *
+     * GeminiEnterprise auth_provider type parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParamsOrBuilder + getGeAuthProviderOrBuilder() { + if (typeCase_ == 4) { + return (com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) type_; + } + return com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + .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 (typeCase_ == 1) { + output.writeMessage(1, (com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) type_); + } + if (typeCase_ == 2) { + output.writeMessage(2, (com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth) type_); + } + if (typeCase_ == 3) { + output.writeMessage(3, (com.google.cloud.agentidentity.v1beta.ApiKeyParams) type_); + } + if (typeCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) type_); + } + if (typeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth) type_); + } + if (typeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.cloud.agentidentity.v1beta.ApiKeyParams) type_); + } + if (typeCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) type_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams other = + (com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams) obj; + + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 1: + if (!getThreeLeggedOauth().equals(other.getThreeLeggedOauth())) return false; + break; + case 2: + if (!getTwoLeggedOauth().equals(other.getTwoLeggedOauth())) return false; + break; + case 3: + if (!getApiKey().equals(other.getApiKey())) return false; + break; + case 4: + if (!getGeAuthProvider().equals(other.getGeAuthProvider())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (typeCase_) { + case 1: + hash = (37 * hash) + THREE_LEGGED_OAUTH_FIELD_NUMBER; + hash = (53 * hash) + getThreeLeggedOauth().hashCode(); + break; + case 2: + hash = (37 * hash) + TWO_LEGGED_OAUTH_FIELD_NUMBER; + hash = (53 * hash) + getTwoLeggedOauth().hashCode(); + break; + case 3: + hash = (37 * hash) + API_KEY_FIELD_NUMBER; + hash = (53 * hash) + getApiKey().hashCode(); + break; + case 4: + hash = (37 * hash) + GE_AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getGeAuthProvider().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + 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.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * AuthProvider type specific parameters.
+     * Required when creating an auth_provider.
+     * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams) + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AuthProvider_AuthProviderTypeParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AuthProvider_AuthProviderTypeParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams.class, + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams.Builder + .class); + } + + // Construct using + // com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (threeLeggedOauthBuilder_ != null) { + threeLeggedOauthBuilder_.clear(); + } + if (twoLeggedOauthBuilder_ != null) { + twoLeggedOauthBuilder_.clear(); + } + if (apiKeyBuilder_ != null) { + apiKeyBuilder_.clear(); + } + if (geAuthProviderBuilder_ != null) { + geAuthProviderBuilder_.clear(); + } + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AuthProvider_AuthProviderTypeParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams build() { + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + buildPartial() { + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams result = + new com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams result) { + result.typeCase_ = typeCase_; + result.type_ = this.type_; + if (typeCase_ == 1 && threeLeggedOauthBuilder_ != null) { + result.type_ = threeLeggedOauthBuilder_.build(); + } + if (typeCase_ == 2 && twoLeggedOauthBuilder_ != null) { + result.type_ = twoLeggedOauthBuilder_.build(); + } + if (typeCase_ == 3 && apiKeyBuilder_ != null) { + result.type_ = apiKeyBuilder_.build(); + } + if (typeCase_ == 4 && geAuthProviderBuilder_ != null) { + result.type_ = geAuthProviderBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams) { + return mergeFrom( + (com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams other) { + if (other + == com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + .getDefaultInstance()) return this; + switch (other.getTypeCase()) { + case THREE_LEGGED_OAUTH: + { + mergeThreeLeggedOauth(other.getThreeLeggedOauth()); + break; + } + case TWO_LEGGED_OAUTH: + { + mergeTwoLeggedOauth(other.getTwoLeggedOauth()); + break; + } + case API_KEY: + { + mergeApiKey(other.getApiKey()); + break; + } + case GE_AUTH_PROVIDER: + { + mergeGeAuthProvider(other.getGeAuthProvider()); + break; + } + case TYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetThreeLeggedOauthFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTwoLeggedOauthFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetApiKeyFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetGeAuthProviderFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 4; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int typeCase_ = 0; + private java.lang.Object type_; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth, + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.Builder, + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuthOrBuilder> + threeLeggedOauthBuilder_; + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + * + * @return Whether the threeLeggedOauth field is set. + */ + @java.lang.Override + public boolean hasThreeLeggedOauth() { + return typeCase_ == 1; + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + * + * @return The threeLeggedOauth. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth getThreeLeggedOauth() { + if (threeLeggedOauthBuilder_ == null) { + if (typeCase_ == 1) { + return (com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.getDefaultInstance(); + } else { + if (typeCase_ == 1) { + return threeLeggedOauthBuilder_.getMessage(); + } + return com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.getDefaultInstance(); + } + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + */ + public Builder setThreeLeggedOauth( + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth value) { + if (threeLeggedOauthBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + threeLeggedOauthBuilder_.setMessage(value); + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + */ + public Builder setThreeLeggedOauth( + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.Builder builderForValue) { + if (threeLeggedOauthBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + threeLeggedOauthBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + */ + public Builder mergeThreeLeggedOauth( + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth value) { + if (threeLeggedOauthBuilder_ == null) { + if (typeCase_ == 1 + && type_ + != com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.getDefaultInstance()) { + type_ = + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.newBuilder( + (com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 1) { + threeLeggedOauthBuilder_.mergeFrom(value); + } else { + threeLeggedOauthBuilder_.setMessage(value); + } + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + */ + public Builder clearThreeLeggedOauth() { + if (threeLeggedOauthBuilder_ == null) { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + } + threeLeggedOauthBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + */ + public com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.Builder + getThreeLeggedOauthBuilder() { + return internalGetThreeLeggedOauthFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuthOrBuilder + getThreeLeggedOauthOrBuilder() { + if ((typeCase_ == 1) && (threeLeggedOauthBuilder_ != null)) { + return threeLeggedOauthBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 1) { + return (com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.getDefaultInstance(); + } + } + + /** + * + * + *
+       * ThreeLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ThreeLeggedOAuth three_legged_oauth = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth, + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.Builder, + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuthOrBuilder> + internalGetThreeLeggedOauthFieldBuilder() { + if (threeLeggedOauthBuilder_ == null) { + if (!(typeCase_ == 1)) { + type_ = com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.getDefaultInstance(); + } + threeLeggedOauthBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth, + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.Builder, + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuthOrBuilder>( + (com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 1; + onChanged(); + return threeLeggedOauthBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth, + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.Builder, + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuthOrBuilder> + twoLeggedOauthBuilder_; + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + * + * @return Whether the twoLeggedOauth field is set. + */ + @java.lang.Override + public boolean hasTwoLeggedOauth() { + return typeCase_ == 2; + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + * + * @return The twoLeggedOauth. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth getTwoLeggedOauth() { + if (twoLeggedOauthBuilder_ == null) { + if (typeCase_ == 2) { + return (com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return twoLeggedOauthBuilder_.getMessage(); + } + return com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.getDefaultInstance(); + } + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + */ + public Builder setTwoLeggedOauth(com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth value) { + if (twoLeggedOauthBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + twoLeggedOauthBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + */ + public Builder setTwoLeggedOauth( + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.Builder builderForValue) { + if (twoLeggedOauthBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + twoLeggedOauthBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + */ + public Builder mergeTwoLeggedOauth( + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth value) { + if (twoLeggedOauthBuilder_ == null) { + if (typeCase_ == 2 + && type_ + != com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.getDefaultInstance()) { + type_ = + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.newBuilder( + (com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + twoLeggedOauthBuilder_.mergeFrom(value); + } else { + twoLeggedOauthBuilder_.setMessage(value); + } + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + */ + public Builder clearTwoLeggedOauth() { + if (twoLeggedOauthBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + twoLeggedOauthBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + */ + public com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.Builder + getTwoLeggedOauthBuilder() { + return internalGetTwoLeggedOauthFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.TwoLeggedOAuthOrBuilder + getTwoLeggedOauthOrBuilder() { + if ((typeCase_ == 2) && (twoLeggedOauthBuilder_ != null)) { + return twoLeggedOauthBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth) type_; + } + return com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.getDefaultInstance(); + } + } + + /** + * + * + *
+       * TwoLeggedOAuth AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.TwoLeggedOAuth two_legged_oauth = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth, + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.Builder, + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuthOrBuilder> + internalGetTwoLeggedOauthFieldBuilder() { + if (twoLeggedOauthBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.getDefaultInstance(); + } + twoLeggedOauthBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth, + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.Builder, + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuthOrBuilder>( + (com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged(); + return twoLeggedOauthBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.ApiKeyParams, + com.google.cloud.agentidentity.v1beta.ApiKeyParams.Builder, + com.google.cloud.agentidentity.v1beta.ApiKeyParamsOrBuilder> + apiKeyBuilder_; + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + * + * @return Whether the apiKey field is set. + */ + @java.lang.Override + public boolean hasApiKey() { + return typeCase_ == 3; + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + * + * @return The apiKey. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ApiKeyParams getApiKey() { + if (apiKeyBuilder_ == null) { + if (typeCase_ == 3) { + return (com.google.cloud.agentidentity.v1beta.ApiKeyParams) type_; + } + return com.google.cloud.agentidentity.v1beta.ApiKeyParams.getDefaultInstance(); + } else { + if (typeCase_ == 3) { + return apiKeyBuilder_.getMessage(); + } + return com.google.cloud.agentidentity.v1beta.ApiKeyParams.getDefaultInstance(); + } + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + */ + public Builder setApiKey(com.google.cloud.agentidentity.v1beta.ApiKeyParams value) { + if (apiKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + apiKeyBuilder_.setMessage(value); + } + typeCase_ = 3; + return this; + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + */ + public Builder setApiKey( + com.google.cloud.agentidentity.v1beta.ApiKeyParams.Builder builderForValue) { + if (apiKeyBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + apiKeyBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 3; + return this; + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + */ + public Builder mergeApiKey(com.google.cloud.agentidentity.v1beta.ApiKeyParams value) { + if (apiKeyBuilder_ == null) { + if (typeCase_ == 3 + && type_ != com.google.cloud.agentidentity.v1beta.ApiKeyParams.getDefaultInstance()) { + type_ = + com.google.cloud.agentidentity.v1beta.ApiKeyParams.newBuilder( + (com.google.cloud.agentidentity.v1beta.ApiKeyParams) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 3) { + apiKeyBuilder_.mergeFrom(value); + } else { + apiKeyBuilder_.setMessage(value); + } + } + typeCase_ = 3; + return this; + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + */ + public Builder clearApiKey() { + if (apiKeyBuilder_ == null) { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 3) { + typeCase_ = 0; + type_ = null; + } + apiKeyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + */ + public com.google.cloud.agentidentity.v1beta.ApiKeyParams.Builder getApiKeyBuilder() { + return internalGetApiKeyFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ApiKeyParamsOrBuilder getApiKeyOrBuilder() { + if ((typeCase_ == 3) && (apiKeyBuilder_ != null)) { + return apiKeyBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 3) { + return (com.google.cloud.agentidentity.v1beta.ApiKeyParams) type_; + } + return com.google.cloud.agentidentity.v1beta.ApiKeyParams.getDefaultInstance(); + } + } + + /** + * + * + *
+       * ApiKey AuthProvider type parameters.
+       * 
+ * + * .google.cloud.agentidentity.v1beta.ApiKeyParams api_key = 3; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.ApiKeyParams, + com.google.cloud.agentidentity.v1beta.ApiKeyParams.Builder, + com.google.cloud.agentidentity.v1beta.ApiKeyParamsOrBuilder> + internalGetApiKeyFieldBuilder() { + if (apiKeyBuilder_ == null) { + if (!(typeCase_ == 3)) { + type_ = com.google.cloud.agentidentity.v1beta.ApiKeyParams.getDefaultInstance(); + } + apiKeyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.ApiKeyParams, + com.google.cloud.agentidentity.v1beta.ApiKeyParams.Builder, + com.google.cloud.agentidentity.v1beta.ApiKeyParamsOrBuilder>( + (com.google.cloud.agentidentity.v1beta.ApiKeyParams) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 3; + onChanged(); + return apiKeyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams, + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams.Builder, + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParamsOrBuilder> + geAuthProviderBuilder_; + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + * + * @return Whether the geAuthProvider field is set. + */ + @java.lang.Override + public boolean hasGeAuthProvider() { + return typeCase_ == 4; + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + * + * @return The geAuthProvider. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + getGeAuthProvider() { + if (geAuthProviderBuilder_ == null) { + if (typeCase_ == 4) { + return (com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) type_; + } + return com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + .getDefaultInstance(); + } else { + if (typeCase_ == 4) { + return geAuthProviderBuilder_.getMessage(); + } + return com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + public Builder setGeAuthProvider( + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams value) { + if (geAuthProviderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + geAuthProviderBuilder_.setMessage(value); + } + typeCase_ = 4; + return this; + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + public Builder setGeAuthProvider( + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams.Builder + builderForValue) { + if (geAuthProviderBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + geAuthProviderBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 4; + return this; + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + public Builder mergeGeAuthProvider( + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams value) { + if (geAuthProviderBuilder_ == null) { + if (typeCase_ == 4 + && type_ + != com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + .getDefaultInstance()) { + type_ = + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams.newBuilder( + (com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) + type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 4) { + geAuthProviderBuilder_.mergeFrom(value); + } else { + geAuthProviderBuilder_.setMessage(value); + } + } + typeCase_ = 4; + return this; + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + public Builder clearGeAuthProvider() { + if (geAuthProviderBuilder_ == null) { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 4) { + typeCase_ = 0; + type_ = null; + } + geAuthProviderBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + public com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams.Builder + getGeAuthProviderBuilder() { + return internalGetGeAuthProviderFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParamsOrBuilder + getGeAuthProviderOrBuilder() { + if ((typeCase_ == 4) && (geAuthProviderBuilder_ != null)) { + return geAuthProviderBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 4) { + return (com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) type_; + } + return com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + .getDefaultInstance(); + } + } + + /** + * + * + *
+       * GeminiEnterprise auth_provider type parameters.
+       * 
+ * + * + * .google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams, + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams.Builder, + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParamsOrBuilder> + internalGetGeAuthProviderFieldBuilder() { + if (geAuthProviderBuilder_ == null) { + if (!(typeCase_ == 4)) { + type_ = + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + .getDefaultInstance(); + } + geAuthProviderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams, + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams.Builder, + com.google.cloud.agentidentity.v1beta + .GeminiEnterpriseAuthProviderParamsOrBuilder>( + (com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 4; + onChanged(); + return geAuthProviderBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams) + private static final com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams(); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthProviderTypeParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException() + .setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. The full resource name of the auth_provider. Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. The full resource name of the auth_provider. Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int LABELS_FIELD_NUMBER = 4; + + private static final class LabelsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AuthProvider_LabelsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int AUTH_PROVIDER_TYPE_PARAMS_FIELD_NUMBER = 5; + private com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + authProviderTypeParams_; + + /** + * + * + *
+   * Required. AuthProvider type specific parameters.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProviderTypeParams field is set. + */ + @java.lang.Override + public boolean hasAuthProviderTypeParams() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Required. AuthProvider type specific parameters.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProviderTypeParams. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + getAuthProviderTypeParams() { + return authProviderTypeParams_ == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + .getDefaultInstance() + : authProviderTypeParams_; + } + + /** + * + * + *
+   * Required. AuthProvider type specific parameters.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParamsOrBuilder + getAuthProviderTypeParamsOrBuilder() { + return authProviderTypeParams_ == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + .getDefaultInstance() + : authProviderTypeParams_; + } + + public static final int ALLOWED_SCOPES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList allowedScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedScopes. + */ + public com.google.protobuf.ProtocolStringList getAllowedScopesList() { + return allowedScopes_; + } + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedScopes. + */ + public int getAllowedScopesCount() { + return allowedScopes_.size(); + } + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedScopes at the given index. + */ + public java.lang.String getAllowedScopes(int index) { + return allowedScopes_.get(index); + } + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedScopes at the given index. + */ + public com.google.protobuf.ByteString getAllowedScopesBytes(int index) { + return allowedScopes_.getByteString(index); + } + + public static final int BLOCKED_SCOPES_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList blockedScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the blockedScopes. + */ + public com.google.protobuf.ProtocolStringList getBlockedScopesList() { + return blockedScopes_; + } + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of blockedScopes. + */ + public int getBlockedScopesCount() { + return blockedScopes_.size(); + } + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The blockedScopes at the given index. + */ + public java.lang.String getBlockedScopes(int index) { + return blockedScopes_.get(index); + } + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the blockedScopes at the given index. + */ + public com.google.protobuf.ByteString getBlockedScopesBytes(int index) { + return blockedScopes_.getByteString(index); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
+   * Optional. Description of the resource.
+   * Must be less than 256 characters.
+   * 
+ * + * 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. Description of the resource.
+   * Must be less than 256 characters.
+   * 
+ * + * 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 DELETED_FIELD_NUMBER = 9; + private boolean deleted_ = false; + + /** + * + * + *
+   * Output only. This is set to true if the auth_provider is deleted.
+   * 
+ * + * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 10; + private com.google.protobuf.Timestamp expireTime_; + + /** + * + * + *
+   * Output only. The time when the auth_provider will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. The time when the auth_provider will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + /** + * + * + *
+   * Output only. The time when the auth_provider will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + public static final int STATE_FIELD_NUMBER = 11; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The state of the auth_provider.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The state of the auth_provider.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider.State getState() { + com.google.cloud.agentidentity.v1beta.AuthProvider.State result = + com.google.cloud.agentidentity.v1beta.AuthProvider.State.forNumber(state_); + return result == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.State.UNRECOGNIZED + : result; + } + + public static final int WORKLOAD_IDS_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList workloadIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return A list containing the workloadIds. + */ + public com.google.protobuf.ProtocolStringList getWorkloadIdsList() { + return workloadIds_; + } + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The count of workloadIds. + */ + public int getWorkloadIdsCount() { + return workloadIds_.size(); + } + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The workloadIds at the given index. + */ + public java.lang.String getWorkloadIds(int index) { + return workloadIds_.get(index); + } + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the workloadIds at the given index. + */ + public com.google.protobuf.ByteString getWorkloadIdsBytes(int index) { + return workloadIds_.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 { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetLabels(), LabelsDefaultEntryHolder.defaultEntry, 4); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getAuthProviderTypeParams()); + } + for (int i = 0; i < allowedScopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, allowedScopes_.getRaw(i)); + } + for (int i = 0; i < blockedScopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, blockedScopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, description_); + } + if (deleted_ != false) { + output.writeBool(9, deleted_); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getExpireTime()); + } + if (state_ + != com.google.cloud.agentidentity.v1beta.AuthProvider.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(11, state_); + } + for (int i = 0; i < workloadIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 12, workloadIds_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + for (java.util.Map.Entry entry : + internalGetLabels().getMap().entrySet()) { + com.google.protobuf.MapEntry labels__ = + LabelsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, labels__); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAuthProviderTypeParams()); + } + { + int dataSize = 0; + for (int i = 0; i < allowedScopes_.size(); i++) { + dataSize += computeStringSizeNoTag(allowedScopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getAllowedScopesList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < blockedScopes_.size(); i++) { + dataSize += computeStringSizeNoTag(blockedScopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getBlockedScopesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, description_); + } + if (deleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, deleted_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getExpireTime()); + } + if (state_ + != com.google.cloud.agentidentity.v1beta.AuthProvider.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(11, state_); + } + { + int dataSize = 0; + for (int i = 0; i < workloadIds_.size(); i++) { + dataSize += computeStringSizeNoTag(workloadIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getWorkloadIdsList().size(); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.AuthProvider)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.AuthProvider other = + (com.google.cloud.agentidentity.v1beta.AuthProvider) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!internalGetLabels().equals(other.internalGetLabels())) return false; + if (hasAuthProviderTypeParams() != other.hasAuthProviderTypeParams()) return false; + if (hasAuthProviderTypeParams()) { + if (!getAuthProviderTypeParams().equals(other.getAuthProviderTypeParams())) return false; + } + if (!getAllowedScopesList().equals(other.getAllowedScopesList())) return false; + if (!getBlockedScopesList().equals(other.getBlockedScopesList())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (getDeleted() != other.getDeleted()) return false; + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (state_ != other.state_) return false; + if (!getWorkloadIdsList().equals(other.getWorkloadIdsList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (!internalGetLabels().getMap().isEmpty()) { + hash = (37 * hash) + LABELS_FIELD_NUMBER; + hash = (53 * hash) + internalGetLabels().hashCode(); + } + if (hasAuthProviderTypeParams()) { + hash = (37 * hash) + AUTH_PROVIDER_TYPE_PARAMS_FIELD_NUMBER; + hash = (53 * hash) + getAuthProviderTypeParams().hashCode(); + } + if (getAllowedScopesCount() > 0) { + hash = (37 * hash) + ALLOWED_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getAllowedScopesList().hashCode(); + } + if (getBlockedScopesCount() > 0) { + hash = (37 * hash) + BLOCKED_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getBlockedScopesList().hashCode(); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getWorkloadIdsCount() > 0) { + hash = (37 * hash) + WORKLOAD_IDS_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider 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.cloud.agentidentity.v1beta.AuthProvider parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.AuthProvider 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing AuthProvider object
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.AuthProvider} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.AuthProvider) + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AuthProvider_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 4: + return internalGetMutableLabels(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AuthProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.AuthProvider.class, + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.AuthProvider.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetAuthProviderTypeParamsFieldBuilder(); + internalGetExpireTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + internalGetMutableLabels().clear(); + authProviderTypeParams_ = null; + if (authProviderTypeParamsBuilder_ != null) { + authProviderTypeParamsBuilder_.dispose(); + authProviderTypeParamsBuilder_ = null; + } + allowedScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + blockedScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + description_ = ""; + deleted_ = false; + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + state_ = 0; + workloadIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_AuthProvider_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider build() { + com.google.cloud.agentidentity.v1beta.AuthProvider result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider buildPartial() { + com.google.cloud.agentidentity.v1beta.AuthProvider result = + new com.google.cloud.agentidentity.v1beta.AuthProvider(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1beta.AuthProvider result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.labels_ = internalGetLabels(); + result.labels_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.authProviderTypeParams_ = + authProviderTypeParamsBuilder_ == null + ? authProviderTypeParams_ + : authProviderTypeParamsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + allowedScopes_.makeImmutable(); + result.allowedScopes_ = allowedScopes_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + blockedScopes_.makeImmutable(); + result.blockedScopes_ = blockedScopes_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.deleted_ = deleted_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + workloadIds_.makeImmutable(); + result.workloadIds_ = workloadIds_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.AuthProvider) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.AuthProvider) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1beta.AuthProvider other) { + if (other == com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + internalGetMutableLabels().mergeFrom(other.internalGetLabels()); + bitField0_ |= 0x00000008; + if (other.hasAuthProviderTypeParams()) { + mergeAuthProviderTypeParams(other.getAuthProviderTypeParams()); + } + if (!other.allowedScopes_.isEmpty()) { + if (allowedScopes_.isEmpty()) { + allowedScopes_ = other.allowedScopes_; + bitField0_ |= 0x00000020; + } else { + ensureAllowedScopesIsMutable(); + allowedScopes_.addAll(other.allowedScopes_); + } + onChanged(); + } + if (!other.blockedScopes_.isEmpty()) { + if (blockedScopes_.isEmpty()) { + blockedScopes_ = other.blockedScopes_; + bitField0_ |= 0x00000040; + } else { + ensureBlockedScopesIsMutable(); + blockedScopes_.addAll(other.blockedScopes_); + } + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.getDeleted() != false) { + setDeleted(other.getDeleted()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.workloadIds_.isEmpty()) { + if (workloadIds_.isEmpty()) { + workloadIds_ = other.workloadIds_; + bitField0_ |= 0x00000800; + } else { + ensureWorkloadIdsIsMutable(); + workloadIds_.addAll(other.workloadIds_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + com.google.protobuf.MapEntry labels__ = + input.readMessage( + LabelsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableLabels() + .getMutableMap() + .put(labels__.getKey(), labels__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetAuthProviderTypeParamsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAllowedScopesIsMutable(); + allowedScopes_.add(s); + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureBlockedScopesIsMutable(); + blockedScopes_.add(s); + break; + } // case 58 + case 66: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: + { + deleted_ = input.readBool(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: + { + input.readMessage( + internalGetExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 88: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureWorkloadIdsIsMutable(); + workloadIds_.add(s); + break; + } // case 98 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. The full resource name of the auth_provider. Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The full resource name of the auth_provider. Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. The full resource name of the auth_provider. Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The full resource name of the auth_provider. Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. The full resource name of the auth_provider. Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.protobuf.MapField labels_; + + private com.google.protobuf.MapField internalGetLabels() { + if (labels_ == null) { + return com.google.protobuf.MapField.emptyMapField(LabelsDefaultEntryHolder.defaultEntry); + } + return labels_; + } + + private com.google.protobuf.MapField + internalGetMutableLabels() { + if (labels_ == null) { + labels_ = com.google.protobuf.MapField.newMapField(LabelsDefaultEntryHolder.defaultEntry); + } + if (!labels_.isMutable()) { + labels_ = labels_.copy(); + } + bitField0_ |= 0x00000008; + onChanged(); + return labels_; + } + + public int getLabelsCount() { + return internalGetLabels().getMap().size(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public boolean containsLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetLabels().getMap().containsKey(key); + } + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getLabels() { + return getLabelsMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.util.Map getLabelsMap() { + return internalGetLabels().getMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public /* nullable */ java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public java.lang.String getLabelsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetLabels().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearLabels() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableLabels().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder removeLabels(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableLabels().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableLabels() { + bitField0_ |= 0x00000008; + return internalGetMutableLabels().getMutableMap(); + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putLabels(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableLabels().getMutableMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
+     * Optional. Labels as key value pairs
+     * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder putAllLabels(java.util.Map values) { + internalGetMutableLabels().getMutableMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + private com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + authProviderTypeParams_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams, + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams.Builder, + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParamsOrBuilder> + authProviderTypeParamsBuilder_; + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProviderTypeParams field is set. + */ + public boolean hasAuthProviderTypeParams() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProviderTypeParams. + */ + public com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + getAuthProviderTypeParams() { + if (authProviderTypeParamsBuilder_ == null) { + return authProviderTypeParams_ == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + .getDefaultInstance() + : authProviderTypeParams_; + } else { + return authProviderTypeParamsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthProviderTypeParams( + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams value) { + if (authProviderTypeParamsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authProviderTypeParams_ = value; + } else { + authProviderTypeParamsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthProviderTypeParams( + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams.Builder + builderForValue) { + if (authProviderTypeParamsBuilder_ == null) { + authProviderTypeParams_ = builderForValue.build(); + } else { + authProviderTypeParamsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthProviderTypeParams( + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams value) { + if (authProviderTypeParamsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && authProviderTypeParams_ != null + && authProviderTypeParams_ + != com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + .getDefaultInstance()) { + getAuthProviderTypeParamsBuilder().mergeFrom(value); + } else { + authProviderTypeParams_ = value; + } + } else { + authProviderTypeParamsBuilder_.mergeFrom(value); + } + if (authProviderTypeParams_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthProviderTypeParams() { + bitField0_ = (bitField0_ & ~0x00000010); + authProviderTypeParams_ = null; + if (authProviderTypeParamsBuilder_ != null) { + authProviderTypeParamsBuilder_.dispose(); + authProviderTypeParamsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams.Builder + getAuthProviderTypeParamsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetAuthProviderTypeParamsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParamsOrBuilder + getAuthProviderTypeParamsOrBuilder() { + if (authProviderTypeParamsBuilder_ != null) { + return authProviderTypeParamsBuilder_.getMessageOrBuilder(); + } else { + return authProviderTypeParams_ == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + .getDefaultInstance() + : authProviderTypeParams_; + } + } + + /** + * + * + *
+     * Required. AuthProvider type specific parameters.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams, + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams.Builder, + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParamsOrBuilder> + internalGetAuthProviderTypeParamsFieldBuilder() { + if (authProviderTypeParamsBuilder_ == null) { + authProviderTypeParamsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams, + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams.Builder, + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParamsOrBuilder>( + getAuthProviderTypeParams(), getParentForChildren(), isClean()); + authProviderTypeParams_ = null; + } + return authProviderTypeParamsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList allowedScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAllowedScopesIsMutable() { + if (!allowedScopes_.isModifiable()) { + allowedScopes_ = new com.google.protobuf.LazyStringArrayList(allowedScopes_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedScopes. + */ + public com.google.protobuf.ProtocolStringList getAllowedScopesList() { + allowedScopes_.makeImmutable(); + return allowedScopes_; + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedScopes. + */ + public int getAllowedScopesCount() { + return allowedScopes_.size(); + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedScopes at the given index. + */ + public java.lang.String getAllowedScopes(int index) { + return allowedScopes_.get(index); + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedScopes at the given index. + */ + public com.google.protobuf.ByteString getAllowedScopesBytes(int index) { + return allowedScopes_.getByteString(index); + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The allowedScopes to set. + * @return This builder for chaining. + */ + public Builder setAllowedScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedScopesIsMutable(); + allowedScopes_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The allowedScopes to add. + * @return This builder for chaining. + */ + public Builder addAllowedScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAllowedScopesIsMutable(); + allowedScopes_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The allowedScopes to add. + * @return This builder for chaining. + */ + public Builder addAllAllowedScopes(java.lang.Iterable values) { + ensureAllowedScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, allowedScopes_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAllowedScopes() { + allowedScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are allowed to be requested for this
+     * auth_provider. If this list is non-empty, only scopes within this list may
+     * be requested. If this list is empty, all scopes may be requested. Scopes
+     * appearing in `blocked_scopes` are disallowed even if they appear in
+     * `allowed_scopes`.
+     * The number of allowed scopes is limited to 200.
+     * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the allowedScopes to add. + * @return This builder for chaining. + */ + public Builder addAllowedScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAllowedScopesIsMutable(); + allowedScopes_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList blockedScopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureBlockedScopesIsMutable() { + if (!blockedScopes_.isModifiable()) { + blockedScopes_ = new com.google.protobuf.LazyStringArrayList(blockedScopes_); + } + bitField0_ |= 0x00000040; + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the blockedScopes. + */ + public com.google.protobuf.ProtocolStringList getBlockedScopesList() { + blockedScopes_.makeImmutable(); + return blockedScopes_; + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of blockedScopes. + */ + public int getBlockedScopesCount() { + return blockedScopes_.size(); + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The blockedScopes at the given index. + */ + public java.lang.String getBlockedScopes(int index) { + return blockedScopes_.get(index); + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the blockedScopes at the given index. + */ + public com.google.protobuf.ByteString getBlockedScopesBytes(int index) { + return blockedScopes_.getByteString(index); + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The blockedScopes to set. + * @return This builder for chaining. + */ + public Builder setBlockedScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockedScopesIsMutable(); + blockedScopes_.set(index, value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The blockedScopes to add. + * @return This builder for chaining. + */ + public Builder addBlockedScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureBlockedScopesIsMutable(); + blockedScopes_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The blockedScopes to add. + * @return This builder for chaining. + */ + public Builder addAllBlockedScopes(java.lang.Iterable values) { + ensureBlockedScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, blockedScopes_); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearBlockedScopes() { + blockedScopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. List of scopes that are blocked from being requested for this
+     * auth_provider. If a scope appears in this list, it will not be requested,
+     * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+     * precedence over `allowed_scopes`. The number of blocked scopes is limited
+     * to 200.
+     * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the blockedScopes to add. + * @return This builder for chaining. + */ + public Builder addBlockedScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureBlockedScopesIsMutable(); + blockedScopes_.add(value); + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
+     * Optional. Description of the resource.
+     * Must be less than 256 characters.
+     * 
+ * + * 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. Description of the resource.
+     * Must be less than 256 characters.
+     * 
+ * + * 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. Description of the resource.
+     * Must be less than 256 characters.
+     * 
+ * + * 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; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the resource.
+     * Must be less than 256 characters.
+     * 
+ * + * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Description of the resource.
+     * Must be less than 256 characters.
+     * 
+ * + * 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; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private boolean deleted_; + + /** + * + * + *
+     * Output only. This is set to true if the auth_provider is deleted.
+     * 
+ * + * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + @java.lang.Override + public boolean getDeleted() { + return deleted_; + } + + /** + * + * + *
+     * Output only. This is set to true if the auth_provider is deleted.
+     * 
+ * + * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The deleted to set. + * @return This builder for chaining. + */ + public Builder setDeleted(boolean value) { + + deleted_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. This is set to true if the auth_provider is deleted.
+     * 
+ * + * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeleted() { + bitField0_ = (bitField0_ & ~0x00000100); + deleted_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + if (expireTime_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000200); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetExpireTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + + /** + * + * + *
+     * Output only. The time when the auth_provider will expire.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The state of the auth_provider.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The state of the auth_provider.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the auth_provider.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider.State getState() { + com.google.cloud.agentidentity.v1beta.AuthProvider.State result = + com.google.cloud.agentidentity.v1beta.AuthProvider.State.forNumber(state_); + return result == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The state of the auth_provider.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.agentidentity.v1beta.AuthProvider.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the auth_provider.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000400); + state_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList workloadIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureWorkloadIdsIsMutable() { + if (!workloadIds_.isModifiable()) { + workloadIds_ = new com.google.protobuf.LazyStringArrayList(workloadIds_); + } + bitField0_ |= 0x00000800; + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return A list containing the workloadIds. + */ + public com.google.protobuf.ProtocolStringList getWorkloadIdsList() { + workloadIds_.makeImmutable(); + return workloadIds_; + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The count of workloadIds. + */ + public int getWorkloadIdsCount() { + return workloadIds_.size(); + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The workloadIds at the given index. + */ + public java.lang.String getWorkloadIds(int index) { + return workloadIds_.get(index); + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the workloadIds at the given index. + */ + public com.google.protobuf.ByteString getWorkloadIdsBytes(int index) { + return workloadIds_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The workloadIds to set. + * @return This builder for chaining. + */ + public Builder setWorkloadIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkloadIdsIsMutable(); + workloadIds_.set(index, value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The workloadIds to add. + * @return This builder for chaining. + */ + public Builder addWorkloadIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkloadIdsIsMutable(); + workloadIds_.add(value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param values The workloadIds to add. + * @return This builder for chaining. + */ + public Builder addAllWorkloadIds(java.lang.Iterable values) { + ensureWorkloadIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workloadIds_); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearWorkloadIds() { + workloadIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000800); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. Represents the workload identity in IAM
+     * `principal://` format of the agent(s) that will use this AuthProvider.
+     * Example:
+     * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+     * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The bytes of the workloadIds to add. + * @return This builder for chaining. + */ + public Builder addWorkloadIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWorkloadIdsIsMutable(); + workloadIds_.add(value); + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.AuthProvider) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.AuthProvider) + private static final com.google.cloud.agentidentity.v1beta.AuthProvider DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.AuthProvider(); + } + + public static com.google.cloud.agentidentity.v1beta.AuthProvider getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AuthProvider parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.AuthProvider getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderName.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderName.java new file mode 100644 index 000000000000..9f4cda9a036f --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderName.java @@ -0,0 +1,230 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AuthProviderName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AUTH_PROVIDER = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/authProviders/{auth_provider}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String authProvider; + + @Deprecated + protected AuthProviderName() { + project = null; + location = null; + authProvider = null; + } + + private AuthProviderName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + authProvider = Preconditions.checkNotNull(builder.getAuthProvider()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAuthProvider() { + return authProvider; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AuthProviderName of(String project, String location, String authProvider) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAuthProvider(authProvider) + .build(); + } + + public static String format(String project, String location, String authProvider) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAuthProvider(authProvider) + .build() + .toString(); + } + + public static @Nullable AuthProviderName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AUTH_PROVIDER.validatedMatch( + formattedString, "AuthProviderName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("auth_provider")); + } + + 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<@Nullable AuthProviderName> values) { + List list = new ArrayList<>(values.size()); + for (AuthProviderName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AUTH_PROVIDER.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 (location != null) { + fieldMapBuilder.put("location", location); + } + if (authProvider != null) { + fieldMapBuilder.put("auth_provider", authProvider); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AUTH_PROVIDER.instantiate( + "project", project, "location", location, "auth_provider", authProvider); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AuthProviderName that = ((AuthProviderName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.authProvider, that.authProvider); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(authProvider); + return h; + } + + /** Builder for projects/{project}/locations/{location}/authProviders/{auth_provider}. */ + public static class Builder { + private String project; + private String location; + private String authProvider; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAuthProvider() { + return authProvider; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAuthProvider(String authProvider) { + this.authProvider = authProvider; + return this; + } + + private Builder(AuthProviderName authProviderName) { + this.project = authProviderName.project; + this.location = authProviderName.location; + this.authProvider = authProviderName.authProvider; + } + + public AuthProviderName build() { + return new AuthProviderName(this); + } + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderOrBuilder.java new file mode 100644 index 000000000000..ae40249e3284 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderOrBuilder.java @@ -0,0 +1,573 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface AuthProviderOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.AuthProvider) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. The full resource name of the auth_provider. Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. The full resource name of the auth_provider. Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + int getLabelsCount(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + boolean containsLabels(java.lang.String key); + + /** Use {@link #getLabelsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getLabels(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.util.Map getLabelsMap(); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + /* nullable */ + java.lang.String getLabelsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Optional. Labels as key value pairs
+   * 
+ * + * map<string, string> labels = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + java.lang.String getLabelsOrThrow(java.lang.String key); + + /** + * + * + *
+   * Required. AuthProvider type specific parameters.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProviderTypeParams field is set. + */ + boolean hasAuthProviderTypeParams(); + + /** + * + * + *
+   * Required. AuthProvider type specific parameters.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProviderTypeParams. + */ + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams + getAuthProviderTypeParams(); + + /** + * + * + *
+   * Required. AuthProvider type specific parameters.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParams auth_provider_type_params = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParamsOrBuilder + getAuthProviderTypeParamsOrBuilder(); + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the allowedScopes. + */ + java.util.List getAllowedScopesList(); + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of allowedScopes. + */ + int getAllowedScopesCount(); + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The allowedScopes at the given index. + */ + java.lang.String getAllowedScopes(int index); + + /** + * + * + *
+   * Optional. List of scopes that are allowed to be requested for this
+   * auth_provider. If this list is non-empty, only scopes within this list may
+   * be requested. If this list is empty, all scopes may be requested. Scopes
+   * appearing in `blocked_scopes` are disallowed even if they appear in
+   * `allowed_scopes`.
+   * The number of allowed scopes is limited to 200.
+   * 
+ * + * repeated string allowed_scopes = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the allowedScopes at the given index. + */ + com.google.protobuf.ByteString getAllowedScopesBytes(int index); + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the blockedScopes. + */ + java.util.List getBlockedScopesList(); + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of blockedScopes. + */ + int getBlockedScopesCount(); + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The blockedScopes at the given index. + */ + java.lang.String getBlockedScopes(int index); + + /** + * + * + *
+   * Optional. List of scopes that are blocked from being requested for this
+   * auth_provider. If a scope appears in this list, it will not be requested,
+   * even if it also appears in `allowed_scopes`. `blocked_scopes` takes
+   * precedence over `allowed_scopes`. The number of blocked scopes is limited
+   * to 200.
+   * 
+ * + * repeated string blocked_scopes = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the blockedScopes at the given index. + */ + com.google.protobuf.ByteString getBlockedScopesBytes(int index); + + /** + * + * + *
+   * Optional. Description of the resource.
+   * Must be less than 256 characters.
+   * 
+ * + * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
+   * Optional. Description of the resource.
+   * Must be less than 256 characters.
+   * 
+ * + * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Output only. This is set to true if the auth_provider is deleted.
+   * 
+ * + * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deleted. + */ + boolean getDeleted(); + + /** + * + * + *
+   * Output only. The time when the auth_provider will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + + /** + * + * + *
+   * Output only. The time when the auth_provider will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + + /** + * + * + *
+   * Output only. The time when the auth_provider will expire.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The state of the auth_provider.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The state of the auth_provider.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider.State state = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.agentidentity.v1beta.AuthProvider.State getState(); + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return A list containing the workloadIds. + */ + java.util.List getWorkloadIdsList(); + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The count of workloadIds. + */ + int getWorkloadIdsCount(); + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The workloadIds at the given index. + */ + java.lang.String getWorkloadIds(int index); + + /** + * + * + *
+   * Optional. Input only. Represents the workload identity in IAM
+   * `principal://` format of the agent(s) that will use this AuthProvider.
+   * Example:
+   * `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}`
+   * 
+ * + * + * repeated string workload_ids = 12 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the workloadIds at the given index. + */ + com.google.protobuf.ByteString getWorkloadIdsBytes(int index); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceProto.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceProto.java new file mode 100644 index 000000000000..233956ed462a --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthProviderServiceProto.java @@ -0,0 +1,774 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public final class AuthProviderServiceProto extends com.google.protobuf.GeneratedFile { + private AuthProviderServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthProviderServiceProto"); + } + + 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_cloud_agentidentity_v1beta_AuthProvider_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_AuthProvider_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_AuthProvider_AuthProviderTypeParams_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_AuthProvider_AuthProviderTypeParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_AuthProvider_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_AuthProvider_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_ThreeLeggedOAuth_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_ThreeLeggedOAuth_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_TwoLeggedOAuth_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_TwoLeggedOAuth_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_ApiKeyParams_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_ApiKeyParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_GeminiEnterpriseAuthProviderParams_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_GeminiEnterpriseAuthProviderParams_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_GetAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_GetAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_CreateAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_CreateAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_UpdateAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_UpdateAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_DeleteAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_DeleteAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_UndeleteAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_UndeleteAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_EnableAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_EnableAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_DisableAuthProviderRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_DisableAuthProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_Authorization_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_Authorization_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_GetAuthorizationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_GetAuthorizationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_DeleteAuthorizationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_DeleteAuthorizationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_AccessSummary_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_AccessSummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_AccessSummary_LabelsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_AccessSummary_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_GetAccessSummaryRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_GetAccessSummaryRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationResponse_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/cloud/agentidentity/v1beta/auth_provider_service.proto\022!google.cloud.ag" + + "entidentity.v1beta\032\034google/api/annotatio" + + "ns.proto\032\027google/api/client.proto\032\037googl" + + "e/api/field_behavior.proto\032\033google/api/f" + + "ield_info.proto\032\031google/api/resource.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"\304\t\n" + + "\014AuthProvider\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022P\n" + + "\006labels\030\004 \003(\0132;.google.cloud.agenti" + + "dentity.v1beta.AuthProvider.LabelsEntryB\003\340A\001\022n\n" + + "\031auth_provider_type_params\030\005 \001(\0132" + + "F.google.cloud.agentidentity.v1beta.AuthProvider.AuthProviderTypeParamsB\003\340A\002\022\033\n" + + "\016allowed_scopes\030\006 \003(\tB\003\340A\001\022\033\n" + + "\016blocked_scopes\030\007 \003(\tB\003\340A\001\022\030\n" + + "\013description\030\010 \001(\tB\003\340A\001\022\024\n" + + "\007deleted\030\t \001(\010B\003\340A\003\0224\n" + + "\013expire_time\030\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022I\n" + + "\005state\030\013" + + " \001(\01625.google.cloud.agentidentity.v1beta.AuthProvider.StateB\003\340A\003\022\034\n" + + "\014workload_ids\030\014 \003(\tB\006\340A\001\340A\004\032\351\002\n" + + "\026AuthProviderTypeParams\022Q\n" + + "\022three_legged_oauth\030\001 \001(\01323.g" + + "oogle.cloud.agentidentity.v1beta.ThreeLeggedOAuthH\000\022M\n" + + "\020two_legged_oauth\030\002 \001(\01321." + + "google.cloud.agentidentity.v1beta.TwoLeggedOAuthH\000\022B\n" + + "\007api_key\030\003 \001(\0132/.google.clo" + + "ud.agentidentity.v1beta.ApiKeyParamsH\000\022a\n" + + "\020ge_auth_provider\030\004 \001(\0132E.google.cloud." + + "agentidentity.v1beta.GeminiEnterpriseAuthProviderParamsH\000B\006\n" + + "\004type\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\"9\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\013\n" + + "\007ENABLED\020\001\022\014\n" + + "\010DISABLED\020\002:\223\001\352A\217\001\n" + + ")agentidentity.googleapis.com/AuthProvider\022Eprojects/{project" + + "}/locations/{location}/authProviders/{auth_provider}*\r" + + "authProviders2\014authProvider\"\331\001\n" + + "\020ThreeLeggedOAuth\022\035\n\r" + + "client_secret\030\001 \001(\tB\006\340A\001\340A\004\022\026\n" + + "\tclient_id\030\002 \001(\tB\003\340A\001\022\031\n" + + "\014redirect_url\030\003 \001(\tB\003\340A\003\022\036\n" + + "\021authorization_url\030\004 \001(\tB\003\340A\001\022\026\n" + + "\ttoken_url\030\005 \001(\tB\003\340A\001\022\030\n" + + "\013enable_pkce\030\006 \001(\010B\003\340A\001\022!\n" + + "\024default_continue_uri\030\007 \001(\tB\003\340A\001\"_\n" + + "\016TwoLeggedOAuth\022\035\n\r" + + "client_secret\030\001 \001(\tB\006\340A\001\340A\004\022\026\n" + + "\tclient_id\030\002 \001(\tB\003\340A\001\022\026\n" + + "\ttoken_url\030\003 \001(\tB\003\340A\001\"\'\n" + + "\014ApiKeyParams\022\027\n" + + "\007api_key\030\001 \001(\tB\006\340A\001\340A\004\"$\n" + + "\"GeminiEnterpriseAuthProviderParams\"\325\001\n" + + "\030ListAuthProvidersRequest\022A\n" + + "\006parent\030\001 \001(" + + "\tB1\340A\002\372A+\022)agentidentity.googleapis.com/AuthProvider\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\022\031\n" + + "\014show_deleted\030\006 \001(\010B\003\340A\001\"\227\001\n" + + "\031ListAuthProvidersResponse\022G\n" + + "\016auth_providers\030\001" + + " \003(\0132/.google.cloud.agentidentity.v1beta.AuthProvider\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"Y\n" + + "\026GetAuthProviderRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\"\353\001\n" + + "\031CreateAuthProviderRequest\022A\n" + + "\006parent\030\001 \001(" + + "\tB1\340A\002\372A+\022)agentidentity.googleapis.com/AuthProvider\022\035\n" + + "\020auth_provider_id\030\002 \001(\tB\003\340A\002\022K\n\r" + + "auth_provider\030\003" + + " \001(\0132/.google.cloud.agentidentity.v1beta.AuthProviderB\003\340A\002\022\037\n\n" + + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\277\001\n" + + "\031UpdateAuthProviderRequest\0224\n" + + "\013update_mask\030\001" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\022K\n\r" + + "auth_provider\030\002 " + + "\001(\0132/.google.cloud.agentidentity.v1beta.AuthProviderB\003\340A\002\022\037\n\n" + + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"}\n" + + "\031DeleteAuthProviderRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\177\n" + + "\033UndeleteAuthProviderRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"}\n" + + "\031EnableAuthProviderRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"~\n" + + "\032DisableAuthProviderRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\377\003\n\r" + + "Authorization\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0224\n" + + "\013create_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\033\n" + + "\016client_user_id\030\005 \001(\tB\003\340A\003\022\023\n" + + "\006scopes\030\006 \003(\tB\003\340A\003\022J\n" + + "\005state\030\007" + + " \001(\01626.google.cloud.agentidentity.v1beta.Authorization.StateB\003\340A\003\"9\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\r\n" + + "\tSUSPENDED\020\002:\265\001\352A\261\001\n" + + "*agentidentity.googleapis.com/Authorization\022dprojects/{projec" + + "t}/locations/{location}/authProviders/{a" + + "uth_provider}/authorizations/{authorization}*\016authorizations2\r" + + "authorization\"\274\001\n" + + "\031ListAuthorizationsRequest\022B\n" + + "\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*agentidentity.googleapis.com/Authorization\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n" + + "\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\231\001\n" + + "\032ListAuthorizationsResponse\022H\n" + + "\016authorizations\030\001 \003(" + + "\01320.google.cloud.agentidentity.v1beta.Authorization\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"[\n" + + "\027GetAuthorizationRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*agentidentity.googleapis.com/Authorization\"\177\n" + + "\032DeleteAuthorizationRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*agentidentity.googleapis.com/Authorization\022\037\n\n" + + "request_id\030\002 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\355\005\n\r" + + "AccessSummary\022\024\n" + + "\004name\030\001 \001(\tB\006\340A\003\340A\010\022:\n" + + "\021first_access_time\030\002" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0229\n" + + "\020last_access_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022Q\n" + + "\006labels\030\004 \003(\0132<.google.cloud.agent" + + "identity.v1beta.AccessSummary.LabelsEntryB\003\340A\001\022\024\n" + + "\007user_id\030\005 \001(\tB\003\340A\003\022\030\n" + + "\013workload_id\030\006 \001(\tB\003\340A\003\022\026\n" + + "\ttoken_url\030\007 \001(\tB\003\340A\003\022\023\n" + + "\006scopes\030\010 \003(\tB\003\340A\003\022H\n\r" + + "auth_provider\030\t \001(\tB1\340A\003\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\0223\n\n" + + "purge_time\030\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022T\n" + + "\022auth_provider_type\030\013" + + " \001(\01623.google.cloud.agentidentity.v1beta.AuthProviderTypeB\003\340A\003\032-\n" + + "\013LabelsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\232\001\352A\226\001\n" + + "*agentidentity.googleapis.com/AccessSummary\022Hprojects/{project}/locations" + + "/{location}/accessSummaries/{access_summary}*\017accessSummaries2\r" + + "accessSummary\"\275\001\n" + + "\032ListAccessSummariesRequest\022B\n" + + "\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*agentidentity.googleapis.com/AccessSummary\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\234\001\n" + + "\033ListAccessSummariesResponse\022J\n" + + "\020access_summaries\030\001" + + " \003(\01320.google.cloud.agentidentity.v1beta.AccessSummary\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\030\n" + + "\013unreachable\030\003 \003(\tB\003\340A\006\"[\n" + + "\027GetAccessSummaryRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*agentidentity.googleapis.com/AccessSummary\"\251\001\n" + + "\031QueryAuthProvidersRequest\022A\n" + + "\006parent\030\001 \001(" + + "\tB1\340A\002\372A+\022)agentidentity.googleapis.com/AuthProvider\022\030\n" + + "\013workload_id\030\002 \001(\tB\003\340A\002\022\026\n" + + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\004 \001(\tB\003\340A\001\"R\n" + + "\032QueryAuthProvidersResponse\022\033\n" + + "\023auth_provider_names\030\001 \003(\t\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\211\001\n" + + "\025QueryWorkloadsRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\"G\n" + + "\026QueryWorkloadsResponse\022\024\n" + + "\014workload_ids\030\001 \003(\t\022\027\n" + + "\017next_page_token\030\002 \001(\t\"s\n" + + "\032RevokeAuthorizationRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")agentidentity.googleapis.com/AuthProvider\022\024\n" + + "\007user_id\030\002 \001(\tB\003\340A\002\"\035\n" + + "\033RevokeAuthorizationResponse*\324\001\n" + + "\020AuthProviderType\022\"\n" + + "\036AUTH_PROVIDER_TYPE_UNSPECIFIED\020\000\022)\n" + + "%AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH\020\001\022\'\n" + + "#AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH\020\002\022\036\n" + + "\032AUTH_PROVIDER_TYPE_API_KEY\020\003\022(\n" + + "$AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE\020\0042\276\034\n" + + "\023AuthProviderService\022\326\001\n" + + "\021ListAuthProviders\022;.google.cloud.agentidentity.v1beta.ListA" + + "uthProvidersRequest\032<.google.cloud.agentidentity.v1beta.ListAuthProvidersRespons" + + "e\"F\332A\006parent\202\323\344\223\0027\0225/v1beta/{parent=projects/*/locations/*}/authProviders\022\303\001\n" + + "\017GetAuthProvider\0229.google.cloud.agentidenti" + + "ty.v1beta.GetAuthProviderRequest\032/.google.cloud.agentidentity.v1beta.AuthProvide" + + "r\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=projects/*/locations/*/authProviders/*}\022\371\001\n" + + "\022CreateAuthProvider\022<.google.cloud.agentident" + + "ity.v1beta.CreateAuthProviderRequest\032/.google.cloud.agentidentity.v1beta.AuthPro" + + "vider\"t\332A%parent,auth_provider,auth_prov" + + "ider_id\202\323\344\223\002F\"5/v1beta/{parent=projects/*/locations/*}/authProviders:\r" + + "auth_provider\022\373\001\n" + + "\022UpdateAuthProvider\022<.google.cloud.agentidentity.v1beta.UpdateAuthProvide" + + "rRequest\032/.google.cloud.agentidentity.v1" + + "beta.AuthProvider\"v\332A\031auth_provider,upda" + + "te_mask\202\323\344\223\002T2C/v1beta/{auth_provider.na" + + "me=projects/*/locations/*/authProviders/*}:\r" + + "auth_provider\022\260\001\n" + + "\022DeleteAuthProvider\022<.google.cloud.agentidentity.v1beta.Del" + + "eteAuthProviderRequest\032\026.google.protobuf" + + ".Empty\"D\332A\004name\202\323\344\223\0027*5/v1beta/{name=projects/*/locations/*/authProviders/*}\022\331\001\n" + + "\024UndeleteAuthProvider\022>.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRe" + + "quest\032/.google.cloud.agentidentity.v1bet" + + "a.AuthProvider\"P\332A\004name\202\323\344\223\002C\">/v1beta/{" + + "name=projects/*/locations/*/authProviders/*}:undelete:\001*\022\353\001\n" + + "\022QueryAuthProviders\022<.google.cloud.agentidentity.v1beta.Quer" + + "yAuthProvidersRequest\032=.google.cloud.agentidentity.v1beta.QueryAuthProvidersResp" + + "onse\"X\332A\022parent,workload_id\202\323\344\223\002=\022;/v1be" + + "ta/{parent=projects/*/locations/*}/authProviders:query\022\332\001\n" + + "\016QueryWorkloads\0228.google.cloud.agentidentity.v1beta.QueryWorkl" + + "oadsRequest\0329.google.cloud.agentidentity" + + ".v1beta.QueryWorkloadsResponse\"S\332A\004name\202" + + "\323\344\223\002F\022D/v1beta/{name=projects/*/locations/*/authProviders/*}:queryWorkloads\022\352\001\n" + + "\022ListAuthorizations\022<.google.cloud.agenti" + + "dentity.v1beta.ListAuthorizationsRequest\032=.google.cloud.agentidentity.v1beta.Lis" + + "tAuthorizationsResponse\"W\332A\006parent\202\323\344\223\002H" + + "\022F/v1beta/{parent=projects/*/locations/*/authProviders/*}/authorizations\022\327\001\n" + + "\020GetAuthorization\022:.google.cloud.agentidenti" + + "ty.v1beta.GetAuthorizationRequest\0320.google.cloud.agentidentity.v1beta.Authorizat" + + "ion\"U\332A\004name\202\323\344\223\002H\022F/v1beta/{name=projec" + + "ts/*/locations/*/authProviders/*/authorizations/*}\022\303\001\n" + + "\023DeleteAuthorization\022=.google.cloud.agentidentity.v1beta.DeleteAut" + + "horizationRequest\032\026.google.protobuf.Empt" + + "y\"U\332A\004name\202\323\344\223\002H*F/v1beta/{name=projects" + + "/*/locations/*/authProviders/*/authorizations/*}\022\336\001\n" + + "\023ListAccessSummaries\022=.google.cloud.agentidentity.v1beta.ListAccessS" + + "ummariesRequest\032>.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse\"" + + "H\332A\006parent\202\323\344\223\0029\0227/v1beta/{parent=projects/*/locations/*}/accessSummaries\022\310\001\n" + + "\020GetAccessSummary\022:.google.cloud.agentident" + + "ity.v1beta.GetAccessSummaryRequest\0320.google.cloud.agentidentity.v1beta.AccessSum" + + "mary\"F\332A\004name\202\323\344\223\0029\0227/v1beta/{name=projects/*/locations/*/accessSummaries/*}\022\371\001\n" + + "\023RevokeAuthorization\022=.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequ" + + "est\032>.google.cloud.agentidentity.v1beta." + + "RevokeAuthorizationResponse\"c\332A\014name,use" + + "r_id\202\323\344\223\002N\"I/v1beta/{name=projects/*/loc" + + "ations/*/authProviders/*}:revokeAuthorization:\001*\022\323\001\n" + + "\022EnableAuthProvider\022<.google.cloud.agentidentity.v1beta.EnableAuthPr" + + "oviderRequest\032/.google.cloud.agentidenti" + + "ty.v1beta.AuthProvider\"N\332A\004name\202\323\344\223\002A\" + * The type of the AuthProvider. + * + * + * Protobuf enum {@code google.cloud.agentidentity.v1beta.AuthProviderType} + */ +@com.google.protobuf.Generated +public enum AuthProviderType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_UNSPECIFIED = 0; + */ + AUTH_PROVIDER_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Three Legged OAuth auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH = 1; + */ + AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH(1), + /** + * + * + *
+   * Two Legged OAuth auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH = 2; + */ + AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH(2), + /** + * + * + *
+   * API Key auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_API_KEY = 3; + */ + AUTH_PROVIDER_TYPE_API_KEY(3), + /** + * + * + *
+   * Gemini Enterprise auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE = 4; + */ + AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AuthProviderType"); + } + + /** + * + * + *
+   * Unspecified auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_UNSPECIFIED = 0; + */ + public static final int AUTH_PROVIDER_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * Three Legged OAuth auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH = 1; + */ + public static final int AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH_VALUE = 1; + + /** + * + * + *
+   * Two Legged OAuth auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH = 2; + */ + public static final int AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH_VALUE = 2; + + /** + * + * + *
+   * API Key auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_API_KEY = 3; + */ + public static final int AUTH_PROVIDER_TYPE_API_KEY_VALUE = 3; + + /** + * + * + *
+   * Gemini Enterprise auth-provider type.
+   * 
+ * + * AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE = 4; + */ + public static final int AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE_VALUE = 4; + + 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 AuthProviderType 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 AuthProviderType forNumber(int value) { + switch (value) { + case 0: + return AUTH_PROVIDER_TYPE_UNSPECIFIED; + case 1: + return AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH; + case 2: + return AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH; + case 3: + return AUTH_PROVIDER_TYPE_API_KEY; + case 4: + return AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AuthProviderType findValueByNumber(int number) { + return AuthProviderType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final AuthProviderType[] VALUES = values(); + + public static AuthProviderType 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 AuthProviderType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentidentity.v1beta.AuthProviderType) +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/Authorization.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/Authorization.java new file mode 100644 index 000000000000..f3e747b7498b --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/Authorization.java @@ -0,0 +1,2050 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message describing Authorization object
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.Authorization} + */ +@com.google.protobuf.Generated +public final class Authorization extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.Authorization) + AuthorizationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Authorization"); + } + + // Use Authorization.newBuilder() to construct. + private Authorization(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Authorization() { + name_ = ""; + clientUserId_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_Authorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_Authorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.Authorization.class, + com.google.cloud.agentidentity.v1beta.Authorization.Builder.class); + } + + /** + * + * + *
+   * Represents the state of the authorization.
+   * 
+ * + * Protobuf enum {@code google.cloud.agentidentity.v1beta.Authorization.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * Active.
+     * 
+ * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
+     * Suspended.
+     * 
+ * + * SUSPENDED = 2; + */ + SUSPENDED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Unspecified state.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Active.
+     * 
+ * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
+     * Suspended.
+     * 
+ * + * SUSPENDED = 2; + */ + public static final int SUSPENDED_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 State 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 State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return SUSPENDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.Authorization.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State 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 State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.agentidentity.v1beta.Authorization.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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 CREATE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int CLIENT_USER_ID_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientUserId_ = ""; + + /** + * + * + *
+   * Output only. The client_user_id provided by the client application for
+   * their end user. Not verified by Google.
+   * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clientUserId. + */ + @java.lang.Override + public java.lang.String getClientUserId() { + java.lang.Object ref = clientUserId_; + 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(); + clientUserId_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The client_user_id provided by the client application for
+   * their end user. Not verified by Google.
+   * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clientUserId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientUserIdBytes() { + java.lang.Object ref = clientUserId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientUserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + return scopes_; + } + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + public static final int STATE_FIELD_NUMBER = 7; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The state of the authorization.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Output only. The state of the authorization.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.Authorization.State getState() { + com.google.cloud.agentidentity.v1beta.Authorization.State result = + com.google.cloud.agentidentity.v1beta.Authorization.State.forNumber(state_); + return result == null + ? com.google.cloud.agentidentity.v1beta.Authorization.State.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientUserId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, clientUserId_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, scopes_.getRaw(i)); + } + if (state_ + != com.google.cloud.agentidentity.v1beta.Authorization.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientUserId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, clientUserId_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (state_ + != com.google.cloud.agentidentity.v1beta.Authorization.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, state_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.Authorization)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.Authorization other = + (com.google.cloud.agentidentity.v1beta.Authorization) obj; + + if (!getName().equals(other.getName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getClientUserId().equals(other.getClientUserId())) return false; + if (!getScopesList().equals(other.getScopesList())) return false; + if (state_ != other.state_) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + CLIENT_USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientUserId().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.Authorization parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.Authorization parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.Authorization parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.Authorization 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.cloud.agentidentity.v1beta.Authorization parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.Authorization parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.Authorization parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.Authorization parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.Authorization parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.Authorization parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.Authorization parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.Authorization parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.Authorization 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing Authorization object
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.Authorization} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.Authorization) + com.google.cloud.agentidentity.v1beta.AuthorizationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_Authorization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_Authorization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.Authorization.class, + com.google.cloud.agentidentity.v1beta.Authorization.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.Authorization.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + clientUserId_ = ""; + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_Authorization_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.Authorization getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.Authorization.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.Authorization build() { + com.google.cloud.agentidentity.v1beta.Authorization result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.Authorization buildPartial() { + com.google.cloud.agentidentity.v1beta.Authorization result = + new com.google.cloud.agentidentity.v1beta.Authorization(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1beta.Authorization result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.clientUserId_ = clientUserId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.Authorization) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.Authorization) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1beta.Authorization other) { + if (other == com.google.cloud.agentidentity.v1beta.Authorization.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getClientUserId().isEmpty()) { + clientUserId_ = other.clientUserId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000010; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + clientUserId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 50 + case 56: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 56 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. name of resource
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. name of resource
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + } + } + + /** + * + * + *
+     * Identifier. name of resource
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. name of resource
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. name of resource
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000002); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Create time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000004); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
+     * Output only. [Output only] Update time stamp
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object clientUserId_ = ""; + + /** + * + * + *
+     * Output only. The client_user_id provided by the client application for
+     * their end user. Not verified by Google.
+     * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clientUserId. + */ + public java.lang.String getClientUserId() { + java.lang.Object ref = clientUserId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientUserId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The client_user_id provided by the client application for
+     * their end user. Not verified by Google.
+     * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clientUserId. + */ + public com.google.protobuf.ByteString getClientUserIdBytes() { + java.lang.Object ref = clientUserId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientUserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The client_user_id provided by the client application for
+     * their end user. Not verified by Google.
+     * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The clientUserId to set. + * @return This builder for chaining. + */ + public Builder setClientUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientUserId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The client_user_id provided by the client application for
+     * their end user. Not verified by Google.
+     * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearClientUserId() { + clientUserId_ = getDefaultInstance().getClientUserId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The client_user_id provided by the client application for
+     * their end user. Not verified by Google.
+     * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for clientUserId to set. + * @return This builder for chaining. + */ + public Builder setClientUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientUserId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + public java.lang.String getScopes(int index) { + return scopes_.get(index); + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + public com.google.protobuf.ByteString getScopesBytes(int index) { + return scopes_.getByteString(index); + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index to set the value at. + * @param value The scopes to set. + * @return This builder for chaining. + */ + public Builder setScopes(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The scopes to add. + * @return This builder for chaining. + */ + public Builder addScopes(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param values The scopes to add. + * @return This builder for chaining. + */ + public Builder addAllScopes(java.lang.Iterable values) { + ensureScopesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, scopes_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The scopes actually granted by the end user during the consent
+     * flow.
+     * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes of the scopes to add. + * @return This builder for chaining. + */ + public Builder addScopesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureScopesIsMutable(); + scopes_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The state of the authorization.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Output only. The state of the authorization.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the authorization.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.Authorization.State getState() { + com.google.cloud.agentidentity.v1beta.Authorization.State result = + com.google.cloud.agentidentity.v1beta.Authorization.State.forNumber(state_); + return result == null + ? com.google.cloud.agentidentity.v1beta.Authorization.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The state of the authorization.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.agentidentity.v1beta.Authorization.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The state of the authorization.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.Authorization) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.Authorization) + private static final com.google.cloud.agentidentity.v1beta.Authorization DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.Authorization(); + } + + public static com.google.cloud.agentidentity.v1beta.Authorization getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Authorization parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.Authorization getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthorizationName.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthorizationName.java new file mode 100644 index 000000000000..12149a3bafe6 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthorizationName.java @@ -0,0 +1,272 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AuthorizationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_AUTH_PROVIDER_AUTHORIZATION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String authProvider; + private final String authorization; + + @Deprecated + protected AuthorizationName() { + project = null; + location = null; + authProvider = null; + authorization = null; + } + + private AuthorizationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + authProvider = Preconditions.checkNotNull(builder.getAuthProvider()); + authorization = Preconditions.checkNotNull(builder.getAuthorization()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAuthProvider() { + return authProvider; + } + + public String getAuthorization() { + return authorization; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AuthorizationName of( + String project, String location, String authProvider, String authorization) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAuthProvider(authProvider) + .setAuthorization(authorization) + .build(); + } + + public static String format( + String project, String location, String authProvider, String authorization) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAuthProvider(authProvider) + .setAuthorization(authorization) + .build() + .toString(); + } + + public static @Nullable AuthorizationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_AUTH_PROVIDER_AUTHORIZATION.validatedMatch( + formattedString, "AuthorizationName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("auth_provider"), + matchMap.get("authorization")); + } + + 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<@Nullable AuthorizationName> values) { + List list = new ArrayList<>(values.size()); + for (AuthorizationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_AUTH_PROVIDER_AUTHORIZATION.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 (location != null) { + fieldMapBuilder.put("location", location); + } + if (authProvider != null) { + fieldMapBuilder.put("auth_provider", authProvider); + } + if (authorization != null) { + fieldMapBuilder.put("authorization", authorization); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_AUTH_PROVIDER_AUTHORIZATION.instantiate( + "project", + project, + "location", + location, + "auth_provider", + authProvider, + "authorization", + authorization); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AuthorizationName that = ((AuthorizationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.authProvider, that.authProvider) + && Objects.equals(this.authorization, that.authorization); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(authProvider); + h *= 1000003; + h ^= Objects.hashCode(authorization); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}. + */ + public static class Builder { + private String project; + private String location; + private String authProvider; + private String authorization; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAuthProvider() { + return authProvider; + } + + public String getAuthorization() { + return authorization; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAuthProvider(String authProvider) { + this.authProvider = authProvider; + return this; + } + + public Builder setAuthorization(String authorization) { + this.authorization = authorization; + return this; + } + + private Builder(AuthorizationName authorizationName) { + this.project = authorizationName.project; + this.location = authorizationName.location; + this.authProvider = authorizationName.authProvider; + this.authorization = authorizationName.authorization; + } + + public AuthorizationName build() { + return new AuthorizationName(this); + } + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthorizationOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthorizationOrBuilder.java new file mode 100644 index 000000000000..62509e0def54 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/AuthorizationOrBuilder.java @@ -0,0 +1,250 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface AuthorizationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.Authorization) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. name of resource
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. [Output only] Create time stamp
+   * 
+ * + * .google.protobuf.Timestamp create_time = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. [Output only] Update time stamp
+   * 
+ * + * .google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The client_user_id provided by the client application for
+   * their end user. Not verified by Google.
+   * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The clientUserId. + */ + java.lang.String getClientUserId(); + + /** + * + * + *
+   * Output only. The client_user_id provided by the client application for
+   * their end user. Not verified by Google.
+   * 
+ * + * string client_user_id = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for clientUserId. + */ + com.google.protobuf.ByteString getClientUserIdBytes(); + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return A list containing the scopes. + */ + java.util.List getScopesList(); + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The count of scopes. + */ + int getScopesCount(); + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + + /** + * + * + *
+   * Output only. The scopes actually granted by the end user during the consent
+   * flow.
+   * 
+ * + * repeated string scopes = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param index The index of the value to return. + * @return The bytes of the scopes at the given index. + */ + com.google.protobuf.ByteString getScopesBytes(int index); + + /** + * + * + *
+   * Output only. The state of the authorization.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The state of the authorization.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.Authorization.State state = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.agentidentity.v1beta.Authorization.State getState(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/CreateAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/CreateAuthProviderRequest.java new file mode 100644 index 000000000000..02592625dd7b --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/CreateAuthProviderRequest.java @@ -0,0 +1,1448 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for creating a AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.CreateAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class CreateAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.CreateAuthProviderRequest) + CreateAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateAuthProviderRequest"); + } + + // Use CreateAuthProviderRequest.newBuilder() to construct. + private CreateAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAuthProviderRequest() { + parent_ = ""; + authProviderId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_CreateAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_CreateAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where the AuthProvider is created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+   * Required. The parent resource where the AuthProvider is created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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 AUTH_PROVIDER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object authProviderId_ = ""; + + /** + * + * + *
+   * Required. The ID to use for the AuthProvider, which will become the final
+   * segment of the AuthProvider's resource name. This value should be 1-63
+   * characters, and valid characters are /[a-z][0-9]-/. The first character
+   * must be a lowercase letter, and the last character must be a lowercase
+   * letter or a number.
+   * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authProviderId. + */ + @java.lang.Override + public java.lang.String getAuthProviderId() { + java.lang.Object ref = authProviderId_; + 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(); + authProviderId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The ID to use for the AuthProvider, which will become the final
+   * segment of the AuthProvider's resource name. This value should be 1-63
+   * characters, and valid characters are /[a-z][0-9]-/. The first character
+   * must be a lowercase letter, and the last character must be a lowercase
+   * letter or a number.
+   * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authProviderId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthProviderIdBytes() { + java.lang.Object ref = authProviderId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authProviderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTH_PROVIDER_FIELD_NUMBER = 3; + private com.google.cloud.agentidentity.v1beta.AuthProvider authProvider_; + + /** + * + * + *
+   * Required. The AuthProvider to create.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProvider field is set. + */ + @java.lang.Override + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The AuthProvider to create.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProvider. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider getAuthProvider() { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance() + : authProvider_; + } + + /** + * + * + *
+   * Required. The AuthProvider to create.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder getAuthProviderOrBuilder() { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance() + : authProvider_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProviderId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, authProviderId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAuthProvider()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authProviderId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, authProviderId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAuthProvider()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.CreateAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest other = + (com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAuthProviderId().equals(other.getAuthProviderId())) return false; + if (hasAuthProvider() != other.hasAuthProvider()) return false; + if (hasAuthProvider()) { + if (!getAuthProvider().equals(other.getAuthProvider())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + AUTH_PROVIDER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAuthProviderId().hashCode(); + if (hasAuthProvider()) { + hash = (37 * hash) + AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvider().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest 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.cloud.agentidentity.v1beta.CreateAuthProviderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.CreateAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for creating a AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.CreateAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.CreateAuthProviderRequest) + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_CreateAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_CreateAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAuthProviderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + authProviderId_ = ""; + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_CreateAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest build() { + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest result = + new com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authProviderId_ = authProviderId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authProvider_ = + authProviderBuilder_ == null ? authProvider_ : authProviderBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAuthProviderId().isEmpty()) { + authProviderId_ = other.authProviderId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAuthProvider()) { + mergeAuthProvider(other.getAuthProvider()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + authProviderId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAuthProviderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where the AuthProvider is created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the AuthProvider is created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the AuthProvider is created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the AuthProvider is created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the AuthProvider is created.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object authProviderId_ = ""; + + /** + * + * + *
+     * Required. The ID to use for the AuthProvider, which will become the final
+     * segment of the AuthProvider's resource name. This value should be 1-63
+     * characters, and valid characters are /[a-z][0-9]-/. The first character
+     * must be a lowercase letter, and the last character must be a lowercase
+     * letter or a number.
+     * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authProviderId. + */ + public java.lang.String getAuthProviderId() { + java.lang.Object ref = authProviderId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authProviderId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the AuthProvider, which will become the final
+     * segment of the AuthProvider's resource name. This value should be 1-63
+     * characters, and valid characters are /[a-z][0-9]-/. The first character
+     * must be a lowercase letter, and the last character must be a lowercase
+     * letter or a number.
+     * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authProviderId. + */ + public com.google.protobuf.ByteString getAuthProviderIdBytes() { + java.lang.Object ref = authProviderId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authProviderId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The ID to use for the AuthProvider, which will become the final
+     * segment of the AuthProvider's resource name. This value should be 1-63
+     * characters, and valid characters are /[a-z][0-9]-/. The first character
+     * must be a lowercase letter, and the last character must be a lowercase
+     * letter or a number.
+     * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The authProviderId to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authProviderId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the AuthProvider, which will become the final
+     * segment of the AuthProvider's resource name. This value should be 1-63
+     * characters, and valid characters are /[a-z][0-9]-/. The first character
+     * must be a lowercase letter, and the last character must be a lowercase
+     * letter or a number.
+     * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAuthProviderId() { + authProviderId_ = getDefaultInstance().getAuthProviderId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The ID to use for the AuthProvider, which will become the final
+     * segment of the AuthProvider's resource name. This value should be 1-63
+     * characters, and valid characters are /[a-z][0-9]-/. The first character
+     * must be a lowercase letter, and the last character must be a lowercase
+     * letter or a number.
+     * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for authProviderId to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authProviderId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.agentidentity.v1beta.AuthProvider authProvider_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.AuthProvider, + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder, + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder> + authProviderBuilder_; + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProvider field is set. + */ + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProvider. + */ + public com.google.cloud.agentidentity.v1beta.AuthProvider getAuthProvider() { + if (authProviderBuilder_ == null) { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance() + : authProvider_; + } else { + return authProviderBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthProvider(com.google.cloud.agentidentity.v1beta.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authProvider_ = value; + } else { + authProviderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthProvider( + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder builderForValue) { + if (authProviderBuilder_ == null) { + authProvider_ = builderForValue.build(); + } else { + authProviderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthProvider(com.google.cloud.agentidentity.v1beta.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && authProvider_ != null + && authProvider_ + != com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance()) { + getAuthProviderBuilder().mergeFrom(value); + } else { + authProvider_ = value; + } + } else { + authProviderBuilder_.mergeFrom(value); + } + if (authProvider_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthProvider() { + bitField0_ = (bitField0_ & ~0x00000004); + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentidentity.v1beta.AuthProvider.Builder getAuthProviderBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAuthProviderFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder getAuthProviderOrBuilder() { + if (authProviderBuilder_ != null) { + return authProviderBuilder_.getMessageOrBuilder(); + } else { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance() + : authProvider_; + } + } + + /** + * + * + *
+     * Required. The AuthProvider to create.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.AuthProvider, + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder, + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder> + internalGetAuthProviderFieldBuilder() { + if (authProviderBuilder_ == null) { + authProviderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.AuthProvider, + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder, + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder>( + getAuthProvider(), getParentForChildren(), isClean()); + authProvider_ = null; + } + return authProviderBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.CreateAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.CreateAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.CreateAuthProviderRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/CreateAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/CreateAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..6ced66f6d139 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/CreateAuthProviderRequestOrBuilder.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface CreateAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.CreateAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the AuthProvider is created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where the AuthProvider is created.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The ID to use for the AuthProvider, which will become the final
+   * segment of the AuthProvider's resource name. This value should be 1-63
+   * characters, and valid characters are /[a-z][0-9]-/. The first character
+   * must be a lowercase letter, and the last character must be a lowercase
+   * letter or a number.
+   * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The authProviderId. + */ + java.lang.String getAuthProviderId(); + + /** + * + * + *
+   * Required. The ID to use for the AuthProvider, which will become the final
+   * segment of the AuthProvider's resource name. This value should be 1-63
+   * characters, and valid characters are /[a-z][0-9]-/. The first character
+   * must be a lowercase letter, and the last character must be a lowercase
+   * letter or a number.
+   * 
+ * + * string auth_provider_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for authProviderId. + */ + com.google.protobuf.ByteString getAuthProviderIdBytes(); + + /** + * + * + *
+   * Required. The AuthProvider to create.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProvider field is set. + */ + boolean hasAuthProvider(); + + /** + * + * + *
+   * Required. The AuthProvider to create.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProvider. + */ + com.google.cloud.agentidentity.v1beta.AuthProvider getAuthProvider(); + + /** + * + * + *
+   * Required. The AuthProvider to create.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder getAuthProviderOrBuilder(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthProviderRequest.java new file mode 100644 index 000000000000..ca88de87a066 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthProviderRequest.java @@ -0,0 +1,905 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for deleting a AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest) + DeleteAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteAuthProviderRequest"); + } + + // Use DeleteAuthProviderRequest.newBuilder() to construct. + private DeleteAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAuthProviderRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DeleteAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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. Name of the resource
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.DeleteAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest other = + (com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest 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.cloud.agentidentity.v1beta.DeleteAuthProviderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.DeleteAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting a AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest) + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DeleteAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest build() { + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest result = + new com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.DeleteAuthProviderRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..b7410cefe1d2 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthProviderRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface DeleteAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthorizationRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthorizationRequest.java new file mode 100644 index 000000000000..034ad329dd26 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthorizationRequest.java @@ -0,0 +1,919 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for deleting an Authorization
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAuthorizationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest) + DeleteAuthorizationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteAuthorizationRequest"); + } + + // Use DeleteAuthorizationRequest.newBuilder() to construct. + private DeleteAuthorizationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAuthorizationRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DeleteAuthorizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DeleteAuthorizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest.class, + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the Authorization to delete.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+   * 
+ * + * + * 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 name of the Authorization to delete.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.DeleteAuthorizationRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest other = + (com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest 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.cloud.agentidentity.v1beta.DeleteAuthorizationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.DeleteAuthorizationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for deleting an Authorization
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest) + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DeleteAuthorizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DeleteAuthorizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest.class, + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DeleteAuthorizationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest build() { + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest result = + new com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the Authorization to delete.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+     * 
+ * + * + * 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 name of the Authorization to delete.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+     * 
+ * + * + * 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 name of the Authorization to delete.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the Authorization to delete.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the Authorization to delete.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest) + private static final com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAuthorizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.DeleteAuthorizationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthorizationRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthorizationRequestOrBuilder.java new file mode 100644 index 000000000000..ffb37eb5c922 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DeleteAuthorizationRequestOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface DeleteAuthorizationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the Authorization to delete.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the Authorization to delete.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DisableAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DisableAuthProviderRequest.java new file mode 100644 index 000000000000..713c2f5d04c8 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DisableAuthProviderRequest.java @@ -0,0 +1,877 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for disabling an AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.DisableAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class DisableAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.DisableAuthProviderRequest) + DisableAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DisableAuthProviderRequest"); + } + + // Use DisableAuthProviderRequest.newBuilder() to construct. + private DisableAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DisableAuthProviderRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DisableAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DisableAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.DisableAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest other = + (com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest 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.cloud.agentidentity.v1beta.DisableAuthProviderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.DisableAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for disabling an AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.DisableAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.DisableAuthProviderRequest) + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DisableAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DisableAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_DisableAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest build() { + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest result = + new com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.DisableAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.DisableAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisableAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.DisableAuthProviderRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DisableAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DisableAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..7942d7a2924c --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/DisableAuthProviderRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface DisableAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.DisableAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/EnableAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/EnableAuthProviderRequest.java new file mode 100644 index 000000000000..6696e78759d1 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/EnableAuthProviderRequest.java @@ -0,0 +1,877 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for enabling an AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.EnableAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class EnableAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.EnableAuthProviderRequest) + EnableAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EnableAuthProviderRequest"); + } + + // Use EnableAuthProviderRequest.newBuilder() to construct. + private EnableAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EnableAuthProviderRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_EnableAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_EnableAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.EnableAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest other = + (com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest 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.cloud.agentidentity.v1beta.EnableAuthProviderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.EnableAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for enabling an AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.EnableAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.EnableAuthProviderRequest) + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_EnableAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_EnableAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_EnableAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest build() { + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest result = + new com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.EnableAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.EnableAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnableAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.EnableAuthProviderRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/EnableAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/EnableAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..b4895af74c4c --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/EnableAuthProviderRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface EnableAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.EnableAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GeminiEnterpriseAuthProviderParams.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GeminiEnterpriseAuthProviderParams.java new file mode 100644 index 000000000000..bc2fa12c4b09 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GeminiEnterpriseAuthProviderParams.java @@ -0,0 +1,413 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message describing GeminiEnterpriseAuthProviderParams object.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams} + */ +@com.google.protobuf.Generated +public final class GeminiEnterpriseAuthProviderParams extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) + GeminiEnterpriseAuthProviderParamsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GeminiEnterpriseAuthProviderParams"); + } + + // Use GeminiEnterpriseAuthProviderParams.newBuilder() to construct. + private GeminiEnterpriseAuthProviderParams( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GeminiEnterpriseAuthProviderParams() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GeminiEnterpriseAuthProviderParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GeminiEnterpriseAuthProviderParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams.class, + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams other = + (com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams 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.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing GeminiEnterpriseAuthProviderParams object.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParamsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GeminiEnterpriseAuthProviderParams_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GeminiEnterpriseAuthProviderParams_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams.class, + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams.Builder + .class); + } + + // Construct using + // com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GeminiEnterpriseAuthProviderParams_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams build() { + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams buildPartial() { + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams result = + new com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) { + return mergeFrom( + (com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams other) { + if (other + == com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + .getDefaultInstance()) return this; + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) + private static final com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams(); + } + + public static com.google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GeminiEnterpriseAuthProviderParams parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GeminiEnterpriseAuthProviderParamsOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GeminiEnterpriseAuthProviderParamsOrBuilder.java new file mode 100644 index 000000000000..f150e8b9dc56 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GeminiEnterpriseAuthProviderParamsOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface GeminiEnterpriseAuthProviderParamsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.GeminiEnterpriseAuthProviderParams) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAccessSummaryRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAccessSummaryRequest.java new file mode 100644 index 000000000000..65e62f7d785e --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAccessSummaryRequest.java @@ -0,0 +1,615 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for getting a AccessSummary
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.GetAccessSummaryRequest} + */ +@com.google.protobuf.Generated +public final class GetAccessSummaryRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.GetAccessSummaryRequest) + GetAccessSummaryRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAccessSummaryRequest"); + } + + // Use GetAccessSummaryRequest.newBuilder() to construct. + private GetAccessSummaryRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAccessSummaryRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAccessSummaryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAccessSummaryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest.class, + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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. Name of the resource
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.GetAccessSummaryRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest other = + (com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest 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.cloud.agentidentity.v1beta.GetAccessSummaryRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.GetAccessSummaryRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a AccessSummary
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.GetAccessSummaryRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.GetAccessSummaryRequest) + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAccessSummaryRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAccessSummaryRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest.class, + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAccessSummaryRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest build() { + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest result = + new com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.GetAccessSummaryRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.GetAccessSummaryRequest) + private static final com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAccessSummaryRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.GetAccessSummaryRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAccessSummaryRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAccessSummaryRequestOrBuilder.java new file mode 100644 index 000000000000..96b2532c5b75 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAccessSummaryRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface GetAccessSummaryRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.GetAccessSummaryRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthProviderRequest.java new file mode 100644 index 000000000000..b185d60e81d3 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthProviderRequest.java @@ -0,0 +1,615 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for getting a AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.GetAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class GetAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.GetAuthProviderRequest) + GetAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAuthProviderRequest"); + } + + // Use GetAuthProviderRequest.newBuilder() to construct. + private GetAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAuthProviderRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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. Name of the resource
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.GetAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest other = + (com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest 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.cloud.agentidentity.v1beta.GetAuthProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.GetAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.GetAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.GetAuthProviderRequest) + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest build() { + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest result = + new com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.GetAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.GetAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.GetAuthProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..6fdfc582deef --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthProviderRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface GetAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.GetAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthorizationRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthorizationRequest.java new file mode 100644 index 000000000000..19f0888fbbea --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthorizationRequest.java @@ -0,0 +1,615 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for getting a Authorization
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.GetAuthorizationRequest} + */ +@com.google.protobuf.Generated +public final class GetAuthorizationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.GetAuthorizationRequest) + GetAuthorizationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAuthorizationRequest"); + } + + // Use GetAuthorizationRequest.newBuilder() to construct. + private GetAuthorizationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAuthorizationRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAuthorizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAuthorizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest.class, + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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. Name of the resource
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.GetAuthorizationRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest other = + (com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest 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.cloud.agentidentity.v1beta.GetAuthorizationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.GetAuthorizationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for getting a Authorization
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.GetAuthorizationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.GetAuthorizationRequest) + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAuthorizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAuthorizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest.class, + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_GetAuthorizationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest build() { + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest result = + new com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.GetAuthorizationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.GetAuthorizationRequest) + private static final com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAuthorizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.GetAuthorizationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthorizationRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthorizationRequestOrBuilder.java new file mode 100644 index 000000000000..a62b9a49d184 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/GetAuthorizationRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface GetAuthorizationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.GetAuthorizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * 
+ * + * + * 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/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesRequest.java new file mode 100644 index 000000000000..2797e44ae663 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesRequest.java @@ -0,0 +1,1335 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for requesting list of AccessSummaries
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ListAccessSummariesRequest} + */ +@com.google.protobuf.Generated +public final class ListAccessSummariesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.ListAccessSummariesRequest) + ListAccessSummariesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAccessSummariesRequest"); + } + + // Use ListAccessSummariesRequest.newBuilder() to construct. + private ListAccessSummariesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAccessSummariesRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest.class, + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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_ = 0; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   *
+   * Currently supports filtering by `workload_id` or `auth_provider_name`.
+   * If no filter is provided, returns all access summaries for the requested
+   * project and location. Format: `workload_id="<value>"` or
+   * `auth_provider_name="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   *
+   * Currently supports filtering by `workload_id` or `auth_provider_name`.
+   * If no filter is provided, returns all access summaries for the requested
+   * project and location. Format: `workload_id="<value>"` or
+   * `auth_provider_name="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.ListAccessSummariesRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest other = + (com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest 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.cloud.agentidentity.v1beta.ListAccessSummariesRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.ListAccessSummariesRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting list of AccessSummaries
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ListAccessSummariesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.ListAccessSummariesRequest) + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest.class, + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest build() { + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest result = + new com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token identifying a page of results the server should return.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     *
+     * Currently supports filtering by `workload_id` or `auth_provider_name`.
+     * If no filter is provided, returns all access summaries for the requested
+     * project and location. Format: `workload_id="<value>"` or
+     * `auth_provider_name="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     *
+     * Currently supports filtering by `workload_id` or `auth_provider_name`.
+     * If no filter is provided, returns all access summaries for the requested
+     * project and location. Format: `workload_id="<value>"` or
+     * `auth_provider_name="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     *
+     * Currently supports filtering by `workload_id` or `auth_provider_name`.
+     * If no filter is provided, returns all access summaries for the requested
+     * project and location. Format: `workload_id="<value>"` or
+     * `auth_provider_name="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     *
+     * Currently supports filtering by `workload_id` or `auth_provider_name`.
+     * If no filter is provided, returns all access summaries for the requested
+     * project and location. Format: `workload_id="<value>"` or
+     * `auth_provider_name="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     *
+     * Currently supports filtering by `workload_id` or `auth_provider_name`.
+     * If no filter is provided, returns all access summaries for the requested
+     * project and location. Format: `workload_id="<value>"` or
+     * `auth_provider_name="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.ListAccessSummariesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.ListAccessSummariesRequest) + private static final com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccessSummariesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.ListAccessSummariesRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesRequestOrBuilder.java new file mode 100644 index 000000000000..a61d4efa2543 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesRequestOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface ListAccessSummariesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.ListAccessSummariesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token identifying a page of results the server should return.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   *
+   * Currently supports filtering by `workload_id` or `auth_provider_name`.
+   * If no filter is provided, returns all access summaries for the requested
+   * project and location. Format: `workload_id="<value>"` or
+   * `auth_provider_name="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   *
+   * Currently supports filtering by `workload_id` or `auth_provider_name`.
+   * If no filter is provided, returns all access summaries for the requested
+   * project and location. Format: `workload_id="<value>"` or
+   * `auth_provider_name="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by (auth_provider_id, user_id) in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesResponse.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesResponse.java new file mode 100644 index 000000000000..1ae567fb110e --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesResponse.java @@ -0,0 +1,1427 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for response to listing AccessSummaries
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ListAccessSummariesResponse} + */ +@com.google.protobuf.Generated +public final class ListAccessSummariesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.ListAccessSummariesResponse) + ListAccessSummariesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAccessSummariesResponse"); + } + + // Use ListAccessSummariesResponse.newBuilder() to construct. + private ListAccessSummariesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAccessSummariesResponse() { + accessSummaries_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse.class, + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse.Builder.class); + } + + public static final int ACCESS_SUMMARIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accessSummaries_; + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + @java.lang.Override + public java.util.List + getAccessSummariesList() { + return accessSummaries_; + } + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + @java.lang.Override + public java.util.List + getAccessSummariesOrBuilderList() { + return accessSummaries_; + } + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + @java.lang.Override + public int getAccessSummariesCount() { + return accessSummaries_.size(); + } + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AccessSummary getAccessSummaries(int index) { + return accessSummaries_.get(index); + } + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AccessSummaryOrBuilder getAccessSummariesOrBuilder( + int index) { + return accessSummaries_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < accessSummaries_.size(); i++) { + output.writeMessage(1, accessSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accessSummaries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessSummaries_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.ListAccessSummariesResponse)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse other = + (com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse) obj; + + if (!getAccessSummariesList().equals(other.getAccessSummariesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAccessSummariesCount() > 0) { + hash = (37 * hash) + ACCESS_SUMMARIES_FIELD_NUMBER; + hash = (53 * hash) + getAccessSummariesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse 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.cloud.agentidentity.v1beta.ListAccessSummariesResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.ListAccessSummariesResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing AccessSummaries
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ListAccessSummariesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.ListAccessSummariesResponse) + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse.class, + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse.Builder.class); + } + + // Construct using + // com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accessSummariesBuilder_ == null) { + accessSummaries_ = java.util.Collections.emptyList(); + } else { + accessSummaries_ = null; + accessSummariesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAccessSummariesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse build() { + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse buildPartial() { + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse result = + new com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse result) { + if (accessSummariesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accessSummaries_ = java.util.Collections.unmodifiableList(accessSummaries_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accessSummaries_ = accessSummaries_; + } else { + result.accessSummaries_ = accessSummariesBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse other) { + if (other + == com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse.getDefaultInstance()) + return this; + if (accessSummariesBuilder_ == null) { + if (!other.accessSummaries_.isEmpty()) { + if (accessSummaries_.isEmpty()) { + accessSummaries_ = other.accessSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccessSummariesIsMutable(); + accessSummaries_.addAll(other.accessSummaries_); + } + onChanged(); + } + } else { + if (!other.accessSummaries_.isEmpty()) { + if (accessSummariesBuilder_.isEmpty()) { + accessSummariesBuilder_.dispose(); + accessSummariesBuilder_ = null; + accessSummaries_ = other.accessSummaries_; + bitField0_ = (bitField0_ & ~0x00000001); + accessSummariesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAccessSummariesFieldBuilder() + : null; + } else { + accessSummariesBuilder_.addAllMessages(other.accessSummaries_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.agentidentity.v1beta.AccessSummary m = + input.readMessage( + com.google.cloud.agentidentity.v1beta.AccessSummary.parser(), + extensionRegistry); + if (accessSummariesBuilder_ == null) { + ensureAccessSummariesIsMutable(); + accessSummaries_.add(m); + } else { + accessSummariesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List accessSummaries_ = + java.util.Collections.emptyList(); + + private void ensureAccessSummariesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accessSummaries_ = + new java.util.ArrayList( + accessSummaries_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1beta.AccessSummary, + com.google.cloud.agentidentity.v1beta.AccessSummary.Builder, + com.google.cloud.agentidentity.v1beta.AccessSummaryOrBuilder> + accessSummariesBuilder_; + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public java.util.List + getAccessSummariesList() { + if (accessSummariesBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessSummaries_); + } else { + return accessSummariesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public int getAccessSummariesCount() { + if (accessSummariesBuilder_ == null) { + return accessSummaries_.size(); + } else { + return accessSummariesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public com.google.cloud.agentidentity.v1beta.AccessSummary getAccessSummaries(int index) { + if (accessSummariesBuilder_ == null) { + return accessSummaries_.get(index); + } else { + return accessSummariesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public Builder setAccessSummaries( + int index, com.google.cloud.agentidentity.v1beta.AccessSummary value) { + if (accessSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessSummariesIsMutable(); + accessSummaries_.set(index, value); + onChanged(); + } else { + accessSummariesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public Builder setAccessSummaries( + int index, com.google.cloud.agentidentity.v1beta.AccessSummary.Builder builderForValue) { + if (accessSummariesBuilder_ == null) { + ensureAccessSummariesIsMutable(); + accessSummaries_.set(index, builderForValue.build()); + onChanged(); + } else { + accessSummariesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public Builder addAccessSummaries(com.google.cloud.agentidentity.v1beta.AccessSummary value) { + if (accessSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessSummariesIsMutable(); + accessSummaries_.add(value); + onChanged(); + } else { + accessSummariesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public Builder addAccessSummaries( + int index, com.google.cloud.agentidentity.v1beta.AccessSummary value) { + if (accessSummariesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessSummariesIsMutable(); + accessSummaries_.add(index, value); + onChanged(); + } else { + accessSummariesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public Builder addAccessSummaries( + com.google.cloud.agentidentity.v1beta.AccessSummary.Builder builderForValue) { + if (accessSummariesBuilder_ == null) { + ensureAccessSummariesIsMutable(); + accessSummaries_.add(builderForValue.build()); + onChanged(); + } else { + accessSummariesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public Builder addAccessSummaries( + int index, com.google.cloud.agentidentity.v1beta.AccessSummary.Builder builderForValue) { + if (accessSummariesBuilder_ == null) { + ensureAccessSummariesIsMutable(); + accessSummaries_.add(index, builderForValue.build()); + onChanged(); + } else { + accessSummariesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public Builder addAllAccessSummaries( + java.lang.Iterable values) { + if (accessSummariesBuilder_ == null) { + ensureAccessSummariesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessSummaries_); + onChanged(); + } else { + accessSummariesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public Builder clearAccessSummaries() { + if (accessSummariesBuilder_ == null) { + accessSummaries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accessSummariesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public Builder removeAccessSummaries(int index) { + if (accessSummariesBuilder_ == null) { + ensureAccessSummariesIsMutable(); + accessSummaries_.remove(index); + onChanged(); + } else { + accessSummariesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public com.google.cloud.agentidentity.v1beta.AccessSummary.Builder getAccessSummariesBuilder( + int index) { + return internalGetAccessSummariesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public com.google.cloud.agentidentity.v1beta.AccessSummaryOrBuilder getAccessSummariesOrBuilder( + int index) { + if (accessSummariesBuilder_ == null) { + return accessSummaries_.get(index); + } else { + return accessSummariesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public java.util.List + getAccessSummariesOrBuilderList() { + if (accessSummariesBuilder_ != null) { + return accessSummariesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessSummaries_); + } + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public com.google.cloud.agentidentity.v1beta.AccessSummary.Builder addAccessSummariesBuilder() { + return internalGetAccessSummariesFieldBuilder() + .addBuilder(com.google.cloud.agentidentity.v1beta.AccessSummary.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public com.google.cloud.agentidentity.v1beta.AccessSummary.Builder addAccessSummariesBuilder( + int index) { + return internalGetAccessSummariesFieldBuilder() + .addBuilder( + index, com.google.cloud.agentidentity.v1beta.AccessSummary.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of AccessSummary
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + public java.util.List + getAccessSummariesBuilderList() { + return internalGetAccessSummariesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1beta.AccessSummary, + com.google.cloud.agentidentity.v1beta.AccessSummary.Builder, + com.google.cloud.agentidentity.v1beta.AccessSummaryOrBuilder> + internalGetAccessSummariesFieldBuilder() { + if (accessSummariesBuilder_ == null) { + accessSummariesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1beta.AccessSummary, + com.google.cloud.agentidentity.v1beta.AccessSummary.Builder, + com.google.cloud.agentidentity.v1beta.AccessSummaryOrBuilder>( + accessSummaries_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accessSummaries_ = null; + } + return accessSummariesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.ListAccessSummariesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.ListAccessSummariesResponse) + private static final com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse(); + } + + public static com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccessSummariesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.ListAccessSummariesResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesResponseOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesResponseOrBuilder.java new file mode 100644 index 000000000000..4ab695c1b299 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAccessSummariesResponseOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface ListAccessSummariesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.ListAccessSummariesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + java.util.List getAccessSummariesList(); + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + com.google.cloud.agentidentity.v1beta.AccessSummary getAccessSummaries(int index); + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + int getAccessSummariesCount(); + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + java.util.List + getAccessSummariesOrBuilderList(); + + /** + * + * + *
+   * The list of AccessSummary
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AccessSummary access_summaries = 1; + */ + com.google.cloud.agentidentity.v1beta.AccessSummaryOrBuilder getAccessSummariesOrBuilder( + int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersRequest.java new file mode 100644 index 000000000000..a15d7138a024 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersRequest.java @@ -0,0 +1,1415 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for requesting list of AuthProviders
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ListAuthProvidersRequest} + */ +@com.google.protobuf.Generated +public final class ListAuthProvidersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.ListAuthProvidersRequest) + ListAuthProvidersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAuthProvidersRequest"); + } + + // Use ListAuthProvidersRequest.newBuilder() to construct. + private ListAuthProvidersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAuthProvidersRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest.class, + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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_ = 0; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filter results. This field is currently ignored.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Filter results. This field is currently ignored.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. Currently ignored.
+   * Defaults to ordering by auth_provider_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Currently ignored.
+   * Defaults to ordering by auth_provider_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHOW_DELETED_FIELD_NUMBER = 6; + private boolean showDeleted_ = false; + + /** + * + * + *
+   * Optional. Deleted auth_providers will be kept with a soft-delete for 30
+   * days before being purged. If this field is set to true, deleted
+   * auth_providers will also
+   * be returned.
+   * 
+ * + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + if (showDeleted_ != false) { + output.writeBool(6, showDeleted_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + if (showDeleted_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, showDeleted_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.ListAuthProvidersRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest other = + (com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (getShowDeleted() != other.getShowDeleted()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getShowDeleted()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest 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.cloud.agentidentity.v1beta.ListAuthProvidersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.ListAuthProvidersRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting list of AuthProviders
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ListAuthProvidersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.ListAuthProvidersRequest) + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest.class, + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + showDeleted_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest build() { + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest result = + new com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.showDeleted_ = showDeleted_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getShowDeleted() != false) { + setShowDeleted(other.getShowDeleted()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + showDeleted_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filter results. This field is currently ignored.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Filter results. This field is currently ignored.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Filter results. This field is currently ignored.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter results. This field is currently ignored.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter results. This field is currently ignored.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. Currently ignored.
+     * Defaults to ordering by auth_provider_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Currently ignored.
+     * Defaults to ordering by auth_provider_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Currently ignored.
+     * Defaults to ordering by auth_provider_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Currently ignored.
+     * Defaults to ordering by auth_provider_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Currently ignored.
+     * Defaults to ordering by auth_provider_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean showDeleted_; + + /** + * + * + *
+     * Optional. Deleted auth_providers will be kept with a soft-delete for 30
+     * days before being purged. If this field is set to true, deleted
+     * auth_providers will also
+     * be returned.
+     * 
+ * + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The showDeleted. + */ + @java.lang.Override + public boolean getShowDeleted() { + return showDeleted_; + } + + /** + * + * + *
+     * Optional. Deleted auth_providers will be kept with a soft-delete for 30
+     * days before being purged. If this field is set to true, deleted
+     * auth_providers will also
+     * be returned.
+     * 
+ * + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The showDeleted to set. + * @return This builder for chaining. + */ + public Builder setShowDeleted(boolean value) { + + showDeleted_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deleted auth_providers will be kept with a soft-delete for 30
+     * days before being purged. If this field is set to true, deleted
+     * auth_providers will also
+     * be returned.
+     * 
+ * + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearShowDeleted() { + bitField0_ = (bitField0_ & ~0x00000020); + showDeleted_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.ListAuthProvidersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.ListAuthProvidersRequest) + private static final com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthProvidersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.ListAuthProvidersRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersRequestOrBuilder.java new file mode 100644 index 000000000000..a6885c901c02 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersRequestOrBuilder.java @@ -0,0 +1,172 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface ListAuthProvidersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.ListAuthProvidersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter results. This field is currently ignored.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter results. This field is currently ignored.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. Currently ignored.
+   * Defaults to ordering by auth_provider_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. Currently ignored.
+   * Defaults to ordering by auth_provider_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); + + /** + * + * + *
+   * Optional. Deleted auth_providers will be kept with a soft-delete for 30
+   * days before being purged. If this field is set to true, deleted
+   * auth_providers will also
+   * be returned.
+   * 
+ * + * bool show_deleted = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The showDeleted. + */ + boolean getShowDeleted(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersResponse.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersResponse.java new file mode 100644 index 000000000000..073ae14ab281 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersResponse.java @@ -0,0 +1,1424 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for response to listing AuthProviders
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ListAuthProvidersResponse} + */ +@com.google.protobuf.Generated +public final class ListAuthProvidersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.ListAuthProvidersResponse) + ListAuthProvidersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAuthProvidersResponse"); + } + + // Use ListAuthProvidersResponse.newBuilder() to construct. + private ListAuthProvidersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAuthProvidersResponse() { + authProviders_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse.class, + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse.Builder.class); + } + + public static final int AUTH_PROVIDERS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List authProviders_; + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + @java.lang.Override + public java.util.List getAuthProvidersList() { + return authProviders_; + } + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + @java.lang.Override + public java.util.List + getAuthProvidersOrBuilderList() { + return authProviders_; + } + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + @java.lang.Override + public int getAuthProvidersCount() { + return authProviders_.size(); + } + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider getAuthProviders(int index) { + return authProviders_.get(index); + } + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder getAuthProvidersOrBuilder( + int index) { + return authProviders_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < authProviders_.size(); i++) { + output.writeMessage(1, authProviders_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < authProviders_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, authProviders_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.ListAuthProvidersResponse)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse other = + (com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse) obj; + + if (!getAuthProvidersList().equals(other.getAuthProvidersList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAuthProvidersCount() > 0) { + hash = (37 * hash) + AUTH_PROVIDERS_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvidersList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse 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.cloud.agentidentity.v1beta.ListAuthProvidersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.ListAuthProvidersResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing AuthProviders
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ListAuthProvidersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.ListAuthProvidersResponse) + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse.class, + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (authProvidersBuilder_ == null) { + authProviders_ = java.util.Collections.emptyList(); + } else { + authProviders_ = null; + authProvidersBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthProvidersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse build() { + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse buildPartial() { + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse result = + new com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse result) { + if (authProvidersBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + authProviders_ = java.util.Collections.unmodifiableList(authProviders_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.authProviders_ = authProviders_; + } else { + result.authProviders_ = authProvidersBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse other) { + if (other + == com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse.getDefaultInstance()) + return this; + if (authProvidersBuilder_ == null) { + if (!other.authProviders_.isEmpty()) { + if (authProviders_.isEmpty()) { + authProviders_ = other.authProviders_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthProvidersIsMutable(); + authProviders_.addAll(other.authProviders_); + } + onChanged(); + } + } else { + if (!other.authProviders_.isEmpty()) { + if (authProvidersBuilder_.isEmpty()) { + authProvidersBuilder_.dispose(); + authProvidersBuilder_ = null; + authProviders_ = other.authProviders_; + bitField0_ = (bitField0_ & ~0x00000001); + authProvidersBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAuthProvidersFieldBuilder() + : null; + } else { + authProvidersBuilder_.addAllMessages(other.authProviders_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.agentidentity.v1beta.AuthProvider m = + input.readMessage( + com.google.cloud.agentidentity.v1beta.AuthProvider.parser(), + extensionRegistry); + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.add(m); + } else { + authProvidersBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List authProviders_ = + java.util.Collections.emptyList(); + + private void ensureAuthProvidersIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + authProviders_ = + new java.util.ArrayList( + authProviders_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1beta.AuthProvider, + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder, + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder> + authProvidersBuilder_; + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public java.util.List + getAuthProvidersList() { + if (authProvidersBuilder_ == null) { + return java.util.Collections.unmodifiableList(authProviders_); + } else { + return authProvidersBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public int getAuthProvidersCount() { + if (authProvidersBuilder_ == null) { + return authProviders_.size(); + } else { + return authProvidersBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public com.google.cloud.agentidentity.v1beta.AuthProvider getAuthProviders(int index) { + if (authProvidersBuilder_ == null) { + return authProviders_.get(index); + } else { + return authProvidersBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public Builder setAuthProviders( + int index, com.google.cloud.agentidentity.v1beta.AuthProvider value) { + if (authProvidersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProvidersIsMutable(); + authProviders_.set(index, value); + onChanged(); + } else { + authProvidersBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public Builder setAuthProviders( + int index, com.google.cloud.agentidentity.v1beta.AuthProvider.Builder builderForValue) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.set(index, builderForValue.build()); + onChanged(); + } else { + authProvidersBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public Builder addAuthProviders(com.google.cloud.agentidentity.v1beta.AuthProvider value) { + if (authProvidersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProvidersIsMutable(); + authProviders_.add(value); + onChanged(); + } else { + authProvidersBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public Builder addAuthProviders( + int index, com.google.cloud.agentidentity.v1beta.AuthProvider value) { + if (authProvidersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProvidersIsMutable(); + authProviders_.add(index, value); + onChanged(); + } else { + authProvidersBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public Builder addAuthProviders( + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder builderForValue) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.add(builderForValue.build()); + onChanged(); + } else { + authProvidersBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public Builder addAuthProviders( + int index, com.google.cloud.agentidentity.v1beta.AuthProvider.Builder builderForValue) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.add(index, builderForValue.build()); + onChanged(); + } else { + authProvidersBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public Builder addAllAuthProviders( + java.lang.Iterable values) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authProviders_); + onChanged(); + } else { + authProvidersBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public Builder clearAuthProviders() { + if (authProvidersBuilder_ == null) { + authProviders_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + authProvidersBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public Builder removeAuthProviders(int index) { + if (authProvidersBuilder_ == null) { + ensureAuthProvidersIsMutable(); + authProviders_.remove(index); + onChanged(); + } else { + authProvidersBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public com.google.cloud.agentidentity.v1beta.AuthProvider.Builder getAuthProvidersBuilder( + int index) { + return internalGetAuthProvidersFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder getAuthProvidersOrBuilder( + int index) { + if (authProvidersBuilder_ == null) { + return authProviders_.get(index); + } else { + return authProvidersBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public java.util.List + getAuthProvidersOrBuilderList() { + if (authProvidersBuilder_ != null) { + return authProvidersBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(authProviders_); + } + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public com.google.cloud.agentidentity.v1beta.AuthProvider.Builder addAuthProvidersBuilder() { + return internalGetAuthProvidersFieldBuilder() + .addBuilder(com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public com.google.cloud.agentidentity.v1beta.AuthProvider.Builder addAuthProvidersBuilder( + int index) { + return internalGetAuthProvidersFieldBuilder() + .addBuilder( + index, com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of AuthProvider
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + public java.util.List + getAuthProvidersBuilderList() { + return internalGetAuthProvidersFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1beta.AuthProvider, + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder, + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder> + internalGetAuthProvidersFieldBuilder() { + if (authProvidersBuilder_ == null) { + authProvidersBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1beta.AuthProvider, + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder, + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder>( + authProviders_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + authProviders_ = null; + } + return authProvidersBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.ListAuthProvidersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.ListAuthProvidersResponse) + private static final com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse(); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthProvidersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.ListAuthProvidersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersResponseOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersResponseOrBuilder.java new file mode 100644 index 000000000000..c50fb6b40eac --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthProvidersResponseOrBuilder.java @@ -0,0 +1,164 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface ListAuthProvidersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.ListAuthProvidersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + java.util.List getAuthProvidersList(); + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + com.google.cloud.agentidentity.v1beta.AuthProvider getAuthProviders(int index); + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + int getAuthProvidersCount(); + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + java.util.List + getAuthProvidersOrBuilderList(); + + /** + * + * + *
+   * The list of AuthProvider
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.AuthProvider auth_providers = 1; + */ + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder getAuthProvidersOrBuilder(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsRequest.java new file mode 100644 index 000000000000..b8910534b551 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsRequest.java @@ -0,0 +1,1342 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for requesting list of Authorizations
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ListAuthorizationsRequest} + */ +@com.google.protobuf.Generated +public final class ListAuthorizationsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.ListAuthorizationsRequest) + ListAuthorizationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAuthorizationsRequest"); + } + + // Use ListAuthorizationsRequest.newBuilder() to construct. + private ListAuthorizationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAuthorizationsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest.class, + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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_ = 0; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListAuthorizations` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAuthorizations`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A page token, received from a previous `ListAuthorizations` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAuthorizations`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   * Currently supports filtering by `client_user_id` only.
+   * Format: `client_user_id="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   * Currently supports filtering by `client_user_id` only.
+   * Format: `client_user_id="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by authorization_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by authorization_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.ListAuthorizationsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest other = + (com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest 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.cloud.agentidentity.v1beta.ListAuthorizationsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.ListAuthorizationsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for requesting list of Authorizations
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ListAuthorizationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.ListAuthorizationsRequest) + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest.class, + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest build() { + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest result = + new com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListAuthorizations` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAuthorizations`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A page token, received from a previous `ListAuthorizations` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAuthorizations`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A page token, received from a previous `ListAuthorizations` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAuthorizations`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListAuthorizations` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAuthorizations`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A page token, received from a previous `ListAuthorizations` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListAuthorizations`
+     * must match the call that provided the page token.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     * Currently supports filtering by `client_user_id` only.
+     * Format: `client_user_id="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     * Currently supports filtering by `client_user_id` only.
+     * Format: `client_user_id="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     * Currently supports filtering by `client_user_id` only.
+     * Format: `client_user_id="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     * Currently supports filtering by `client_user_id` only.
+     * Format: `client_user_id="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter string to restrict the results.
+     * Currently supports filtering by `client_user_id` only.
+     * Format: `client_user_id="<value>"`
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by authorization_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by authorization_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by authorization_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by authorization_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. This field is currently ignored.
+     * Defaults to ordering by authorization_id in ascending order.
+     * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.ListAuthorizationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.ListAuthorizationsRequest) + private static final com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthorizationsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.ListAuthorizationsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsRequestOrBuilder.java new file mode 100644 index 000000000000..bf0c8da708e0 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsRequestOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface ListAuthorizationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.ListAuthorizationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListAuthorizations` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAuthorizations`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `ListAuthorizations` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListAuthorizations`
+   * must match the call that provided the page token.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   * Currently supports filtering by `client_user_id` only.
+   * Format: `client_user_id="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter string to restrict the results.
+   * Currently supports filtering by `client_user_id` only.
+   * Format: `client_user_id="<value>"`
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by authorization_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
+   * Optional. This field is currently ignored.
+   * Defaults to ordering by authorization_id in ascending order.
+   * 
+ * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsResponse.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsResponse.java new file mode 100644 index 000000000000..ef43bbaf565c --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsResponse.java @@ -0,0 +1,1425 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for response to listing Authorizations
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ListAuthorizationsResponse} + */ +@com.google.protobuf.Generated +public final class ListAuthorizationsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.ListAuthorizationsResponse) + ListAuthorizationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAuthorizationsResponse"); + } + + // Use ListAuthorizationsResponse.newBuilder() to construct. + private ListAuthorizationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAuthorizationsResponse() { + authorizations_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse.class, + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse.Builder.class); + } + + public static final int AUTHORIZATIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List authorizations_; + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + @java.lang.Override + public java.util.List + getAuthorizationsList() { + return authorizations_; + } + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + @java.lang.Override + public java.util.List + getAuthorizationsOrBuilderList() { + return authorizations_; + } + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + @java.lang.Override + public int getAuthorizationsCount() { + return authorizations_.size(); + } + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.Authorization getAuthorizations(int index) { + return authorizations_.get(index); + } + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthorizationOrBuilder getAuthorizationsOrBuilder( + int index) { + return authorizations_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * 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; + } + } + + public static final int UNREACHABLE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.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 < authorizations_.size(); i++) { + output.writeMessage(1, authorizations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, unreachable_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < authorizations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, authorizations_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + { + int dataSize = 0; + for (int i = 0; i < unreachable_.size(); i++) { + dataSize += computeStringSizeNoTag(unreachable_.getRaw(i)); + } + size += dataSize; + size += 1 * getUnreachableList().size(); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.ListAuthorizationsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse other = + (com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse) obj; + + if (!getAuthorizationsList().equals(other.getAuthorizationsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnreachableList().equals(other.getUnreachableList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAuthorizationsCount() > 0) { + hash = (37 * hash) + AUTHORIZATIONS_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizationsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + if (getUnreachableCount() > 0) { + hash = (37 * hash) + UNREACHABLE_FIELD_NUMBER; + hash = (53 * hash) + getUnreachableList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse 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.cloud.agentidentity.v1beta.ListAuthorizationsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.ListAuthorizationsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for response to listing Authorizations
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ListAuthorizationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.ListAuthorizationsResponse) + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse.class, + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (authorizationsBuilder_ == null) { + authorizations_ = java.util.Collections.emptyList(); + } else { + authorizations_ = null; + authorizationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ListAuthorizationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse build() { + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse buildPartial() { + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse result = + new com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse result) { + if (authorizationsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + authorizations_ = java.util.Collections.unmodifiableList(authorizations_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.authorizations_ = authorizations_; + } else { + result.authorizations_ = authorizationsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + unreachable_.makeImmutable(); + result.unreachable_ = unreachable_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse other) { + if (other + == com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse.getDefaultInstance()) + return this; + if (authorizationsBuilder_ == null) { + if (!other.authorizations_.isEmpty()) { + if (authorizations_.isEmpty()) { + authorizations_ = other.authorizations_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAuthorizationsIsMutable(); + authorizations_.addAll(other.authorizations_); + } + onChanged(); + } + } else { + if (!other.authorizations_.isEmpty()) { + if (authorizationsBuilder_.isEmpty()) { + authorizationsBuilder_.dispose(); + authorizationsBuilder_ = null; + authorizations_ = other.authorizations_; + bitField0_ = (bitField0_ & ~0x00000001); + authorizationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAuthorizationsFieldBuilder() + : null; + } else { + authorizationsBuilder_.addAllMessages(other.authorizations_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.unreachable_.isEmpty()) { + if (unreachable_.isEmpty()) { + unreachable_ = other.unreachable_; + bitField0_ |= 0x00000004; + } else { + ensureUnreachableIsMutable(); + unreachable_.addAll(other.unreachable_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + com.google.cloud.agentidentity.v1beta.Authorization m = + input.readMessage( + com.google.cloud.agentidentity.v1beta.Authorization.parser(), + extensionRegistry); + if (authorizationsBuilder_ == null) { + ensureAuthorizationsIsMutable(); + authorizations_.add(m); + } else { + authorizationsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUnreachableIsMutable(); + unreachable_.add(s); + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List authorizations_ = + java.util.Collections.emptyList(); + + private void ensureAuthorizationsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + authorizations_ = + new java.util.ArrayList( + authorizations_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1beta.Authorization, + com.google.cloud.agentidentity.v1beta.Authorization.Builder, + com.google.cloud.agentidentity.v1beta.AuthorizationOrBuilder> + authorizationsBuilder_; + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public java.util.List + getAuthorizationsList() { + if (authorizationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(authorizations_); + } else { + return authorizationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public int getAuthorizationsCount() { + if (authorizationsBuilder_ == null) { + return authorizations_.size(); + } else { + return authorizationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public com.google.cloud.agentidentity.v1beta.Authorization getAuthorizations(int index) { + if (authorizationsBuilder_ == null) { + return authorizations_.get(index); + } else { + return authorizationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public Builder setAuthorizations( + int index, com.google.cloud.agentidentity.v1beta.Authorization value) { + if (authorizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorizationsIsMutable(); + authorizations_.set(index, value); + onChanged(); + } else { + authorizationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public Builder setAuthorizations( + int index, com.google.cloud.agentidentity.v1beta.Authorization.Builder builderForValue) { + if (authorizationsBuilder_ == null) { + ensureAuthorizationsIsMutable(); + authorizations_.set(index, builderForValue.build()); + onChanged(); + } else { + authorizationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public Builder addAuthorizations(com.google.cloud.agentidentity.v1beta.Authorization value) { + if (authorizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorizationsIsMutable(); + authorizations_.add(value); + onChanged(); + } else { + authorizationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public Builder addAuthorizations( + int index, com.google.cloud.agentidentity.v1beta.Authorization value) { + if (authorizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthorizationsIsMutable(); + authorizations_.add(index, value); + onChanged(); + } else { + authorizationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public Builder addAuthorizations( + com.google.cloud.agentidentity.v1beta.Authorization.Builder builderForValue) { + if (authorizationsBuilder_ == null) { + ensureAuthorizationsIsMutable(); + authorizations_.add(builderForValue.build()); + onChanged(); + } else { + authorizationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public Builder addAuthorizations( + int index, com.google.cloud.agentidentity.v1beta.Authorization.Builder builderForValue) { + if (authorizationsBuilder_ == null) { + ensureAuthorizationsIsMutable(); + authorizations_.add(index, builderForValue.build()); + onChanged(); + } else { + authorizationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public Builder addAllAuthorizations( + java.lang.Iterable values) { + if (authorizationsBuilder_ == null) { + ensureAuthorizationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authorizations_); + onChanged(); + } else { + authorizationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public Builder clearAuthorizations() { + if (authorizationsBuilder_ == null) { + authorizations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + authorizationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public Builder removeAuthorizations(int index) { + if (authorizationsBuilder_ == null) { + ensureAuthorizationsIsMutable(); + authorizations_.remove(index); + onChanged(); + } else { + authorizationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public com.google.cloud.agentidentity.v1beta.Authorization.Builder getAuthorizationsBuilder( + int index) { + return internalGetAuthorizationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public com.google.cloud.agentidentity.v1beta.AuthorizationOrBuilder getAuthorizationsOrBuilder( + int index) { + if (authorizationsBuilder_ == null) { + return authorizations_.get(index); + } else { + return authorizationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public java.util.List + getAuthorizationsOrBuilderList() { + if (authorizationsBuilder_ != null) { + return authorizationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(authorizations_); + } + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public com.google.cloud.agentidentity.v1beta.Authorization.Builder addAuthorizationsBuilder() { + return internalGetAuthorizationsFieldBuilder() + .addBuilder(com.google.cloud.agentidentity.v1beta.Authorization.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public com.google.cloud.agentidentity.v1beta.Authorization.Builder addAuthorizationsBuilder( + int index) { + return internalGetAuthorizationsFieldBuilder() + .addBuilder( + index, com.google.cloud.agentidentity.v1beta.Authorization.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of Authorization
+     * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + public java.util.List + getAuthorizationsBuilderList() { + return internalGetAuthorizationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1beta.Authorization, + com.google.cloud.agentidentity.v1beta.Authorization.Builder, + com.google.cloud.agentidentity.v1beta.AuthorizationOrBuilder> + internalGetAuthorizationsFieldBuilder() { + if (authorizationsBuilder_ == null) { + authorizationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.agentidentity.v1beta.Authorization, + com.google.cloud.agentidentity.v1beta.Authorization.Builder, + com.google.cloud.agentidentity.v1beta.AuthorizationOrBuilder>( + authorizations_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + authorizations_ = null; + } + return authorizationsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList unreachable_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUnreachableIsMutable() { + if (!unreachable_.isModifiable()) { + unreachable_ = new com.google.protobuf.LazyStringArrayList(unreachable_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + public java.lang.String getUnreachable(int index) { + return unreachable_.get(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + public com.google.protobuf.ByteString getUnreachableBytes(int index) { + return unreachable_.getByteString(index); + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index to set the value at. + * @param value The unreachable to set. + * @return This builder for chaining. + */ + public Builder setUnreachable(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachable(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param values The unreachable to add. + * @return This builder for chaining. + */ + public Builder addAllUnreachable(java.lang.Iterable values) { + ensureUnreachableIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, unreachable_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unordered list. Locations that could not be reached.
+     * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param value The bytes of the unreachable to add. + * @return This builder for chaining. + */ + public Builder addUnreachableBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUnreachableIsMutable(); + unreachable_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.ListAuthorizationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.ListAuthorizationsResponse) + private static final com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse(); + } + + public static com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAuthorizationsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.ListAuthorizationsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsResponseOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsResponseOrBuilder.java new file mode 100644 index 000000000000..bb7b886f437b --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ListAuthorizationsResponseOrBuilder.java @@ -0,0 +1,165 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface ListAuthorizationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.ListAuthorizationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + java.util.List getAuthorizationsList(); + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + com.google.cloud.agentidentity.v1beta.Authorization getAuthorizations(int index); + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + int getAuthorizationsCount(); + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + java.util.List + getAuthorizationsOrBuilderList(); + + /** + * + * + *
+   * The list of Authorization
+   * 
+ * + * repeated .google.cloud.agentidentity.v1beta.Authorization authorizations = 1; + */ + com.google.cloud.agentidentity.v1beta.AuthorizationOrBuilder getAuthorizationsOrBuilder( + int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
+   * Unordered list. Locations that could not be reached.
+   * 
+ * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the value to return. + * @return The bytes of the unreachable at the given index. + */ + com.google.protobuf.ByteString getUnreachableBytes(int index); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/LocationName.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/LocationName.java new file mode 100644 index 000000000000..38b004e1ee19 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/LocationName.java @@ -0,0 +1,195 @@ +/* + * Copyright 2026 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.agentidentity.v1beta; + +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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class LocationName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION = + PathTemplate.createWithoutUrlEncoding("projects/{project}/locations/{location}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + + @Deprecated + protected LocationName() { + project = null; + location = null; + } + + private LocationName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static LocationName of(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build(); + } + + public static String format(String project, String location) { + return newBuilder().setProject(project).setLocation(location).build().toString(); + } + + public static @Nullable LocationName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION.validatedMatch( + formattedString, "LocationName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location")); + } + + 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<@Nullable LocationName> values) { + List list = new ArrayList<>(values.size()); + for (LocationName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION.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 (location != null) { + fieldMapBuilder.put("location", location); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION.instantiate("project", project, "location", location); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + LocationName that = ((LocationName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + return h; + } + + /** Builder for projects/{project}/locations/{location}. */ + public static class Builder { + private String project; + private String location; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + private Builder(LocationName locationName) { + this.project = locationName.project; + this.location = locationName.location; + } + + public LocationName build() { + return new LocationName(this); + } + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersRequest.java new file mode 100644 index 000000000000..279ddf2f6993 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersRequest.java @@ -0,0 +1,1150 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Request message for QueryAuthProviders.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest} + */ +@com.google.protobuf.Generated +public final class QueryAuthProvidersRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest) + QueryAuthProvidersRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryAuthProvidersRequest"); + } + + // Use QueryAuthProvidersRequest.newBuilder() to construct. + private QueryAuthProvidersRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryAuthProvidersRequest() { + parent_ = ""; + workloadId_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest.class, + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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 WORKLOAD_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object workloadId_ = ""; + + /** + * + * + *
+   * Required. The workload identifier to filter by.
+   * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The workloadId. + */ + @java.lang.Override + public java.lang.String getWorkloadId() { + java.lang.Object ref = workloadId_; + 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(); + workloadId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The workload identifier to filter by.
+   * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for workloadId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getWorkloadIdBytes() { + java.lang.Object ref = workloadId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 3; + private int pageSize_ = 0; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default. The
+   * maximum page size is 1000.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   *
+   * A page token, received from a previous QueryAuthProviders call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to QueryAuthProviders must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   *
+   * A page token, received from a previous QueryAuthProviders call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to QueryAuthProviders must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workloadId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, workloadId_); + } + if (pageSize_ != 0) { + output.writeInt32(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(workloadId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, workloadId_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, pageToken_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.QueryAuthProvidersRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest other = + (com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getWorkloadId().equals(other.getWorkloadId())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + WORKLOAD_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadId().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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest 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.cloud.agentidentity.v1beta.QueryAuthProvidersRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.QueryAuthProvidersRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for QueryAuthProviders.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest) + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest.class, + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + workloadId_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest build() { + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest result = + new com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.workloadId_ = workloadId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getWorkloadId().isEmpty()) { + workloadId_ = other.workloadId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000008; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + workloadId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + } + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The parent resource where the search is performed.
+     * Format: projects/{project}/locations/{location}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object workloadId_ = ""; + + /** + * + * + *
+     * Required. The workload identifier to filter by.
+     * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The workloadId. + */ + public java.lang.String getWorkloadId() { + java.lang.Object ref = workloadId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workloadId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The workload identifier to filter by.
+     * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for workloadId. + */ + public com.google.protobuf.ByteString getWorkloadIdBytes() { + java.lang.Object ref = workloadId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + workloadId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The workload identifier to filter by.
+     * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The workloadId to set. + * @return This builder for chaining. + */ + public Builder setWorkloadId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + workloadId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The workload identifier to filter by.
+     * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadId() { + workloadId_ = getDefaultInstance().getWorkloadId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The workload identifier to filter by.
+     * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for workloadId to set. + * @return This builder for chaining. + */ + public Builder setWorkloadIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + workloadId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default. The
+     * maximum page size is 1000.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default. The
+     * maximum page size is 1000.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default. The
+     * maximum page size is 1000.
+     * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000004); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     *
+     * A page token, received from a previous QueryAuthProviders call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to QueryAuthProviders must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     *
+     * A page token, received from a previous QueryAuthProviders call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to QueryAuthProviders must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     *
+     * A page token, received from a previous QueryAuthProviders call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to QueryAuthProviders must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     *
+     * A page token, received from a previous QueryAuthProviders call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to QueryAuthProviders must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. If this field is omitted, the first page is returned.
+     *
+     * A page token, received from a previous QueryAuthProviders call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to QueryAuthProviders must match the call that provided
+     * the page token.
+     * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest) + private static final com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryAuthProvidersRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.QueryAuthProvidersRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersRequestOrBuilder.java new file mode 100644 index 000000000000..b37accf1027c --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersRequestOrBuilder.java @@ -0,0 +1,139 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface QueryAuthProvidersRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The parent resource where the search is performed.
+   * Format: projects/{project}/locations/{location}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The workload identifier to filter by.
+   * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The workloadId. + */ + java.lang.String getWorkloadId(); + + /** + * + * + *
+   * Required. The workload identifier to filter by.
+   * 
+ * + * string workload_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for workloadId. + */ + com.google.protobuf.ByteString getWorkloadIdBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default. The
+   * maximum page size is 1000.
+   * 
+ * + * int32 page_size = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   *
+   * A page token, received from a previous QueryAuthProviders call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to QueryAuthProviders must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. If this field is omitted, the first page is returned.
+   *
+   * A page token, received from a previous QueryAuthProviders call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to QueryAuthProviders must match the call that provided
+   * the page token.
+   * 
+ * + * string page_token = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersResponse.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersResponse.java new file mode 100644 index 000000000000..7411b8842513 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersResponse.java @@ -0,0 +1,901 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Response message for QueryAuthProviders.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse} + */ +@com.google.protobuf.Generated +public final class QueryAuthProvidersResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse) + QueryAuthProvidersResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryAuthProvidersResponse"); + } + + // Use QueryAuthProvidersResponse.newBuilder() to construct. + private QueryAuthProvidersResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryAuthProvidersResponse() { + authProviderNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse.class, + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse.Builder.class); + } + + public static final int AUTH_PROVIDER_NAMES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList authProviderNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @return A list containing the authProviderNames. + */ + public com.google.protobuf.ProtocolStringList getAuthProviderNamesList() { + return authProviderNames_; + } + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @return The count of authProviderNames. + */ + public int getAuthProviderNamesCount() { + return authProviderNames_.size(); + } + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index of the element to return. + * @return The authProviderNames at the given index. + */ + public java.lang.String getAuthProviderNames(int index) { + return authProviderNames_.get(index); + } + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the authProviderNames at the given index. + */ + public com.google.protobuf.ByteString getAuthProviderNamesBytes(int index) { + return authProviderNames_.getByteString(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * 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 < authProviderNames_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, authProviderNames_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().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 < authProviderNames_.size(); i++) { + dataSize += computeStringSizeNoTag(authProviderNames_.getRaw(i)); + } + size += dataSize; + size += 1 * getAuthProviderNamesList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.QueryAuthProvidersResponse)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse other = + (com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse) obj; + + if (!getAuthProviderNamesList().equals(other.getAuthProviderNamesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getAuthProviderNamesCount() > 0) { + hash = (37 * hash) + AUTH_PROVIDER_NAMES_FIELD_NUMBER; + hash = (53 * hash) + getAuthProviderNamesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse 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.cloud.agentidentity.v1beta.QueryAuthProvidersResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.QueryAuthProvidersResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for QueryAuthProviders.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse) + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse.class, + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authProviderNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryAuthProvidersResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse build() { + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse buildPartial() { + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse result = + new com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + authProviderNames_.makeImmutable(); + result.authProviderNames_ = authProviderNames_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse other) { + if (other + == com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse.getDefaultInstance()) + return this; + if (!other.authProviderNames_.isEmpty()) { + if (authProviderNames_.isEmpty()) { + authProviderNames_ = other.authProviderNames_; + bitField0_ |= 0x00000001; + } else { + ensureAuthProviderNamesIsMutable(); + authProviderNames_.addAll(other.authProviderNames_); + } + onChanged(); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureAuthProviderNamesIsMutable(); + authProviderNames_.add(s); + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList authProviderNames_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAuthProviderNamesIsMutable() { + if (!authProviderNames_.isModifiable()) { + authProviderNames_ = new com.google.protobuf.LazyStringArrayList(authProviderNames_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @return A list containing the authProviderNames. + */ + public com.google.protobuf.ProtocolStringList getAuthProviderNamesList() { + authProviderNames_.makeImmutable(); + return authProviderNames_; + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @return The count of authProviderNames. + */ + public int getAuthProviderNamesCount() { + return authProviderNames_.size(); + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index of the element to return. + * @return The authProviderNames at the given index. + */ + public java.lang.String getAuthProviderNames(int index) { + return authProviderNames_.get(index); + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the authProviderNames at the given index. + */ + public com.google.protobuf.ByteString getAuthProviderNamesBytes(int index) { + return authProviderNames_.getByteString(index); + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index to set the value at. + * @param value The authProviderNames to set. + * @return This builder for chaining. + */ + public Builder setAuthProviderNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProviderNamesIsMutable(); + authProviderNames_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @param value The authProviderNames to add. + * @return This builder for chaining. + */ + public Builder addAuthProviderNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAuthProviderNamesIsMutable(); + authProviderNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @param values The authProviderNames to add. + * @return This builder for chaining. + */ + public Builder addAllAuthProviderNames(java.lang.Iterable values) { + ensureAuthProviderNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, authProviderNames_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @return This builder for chaining. + */ + public Builder clearAuthProviderNames() { + authProviderNames_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of auth_provider resource names used by the workload.
+     * 
+ * + * repeated string auth_provider_names = 1; + * + * @param value The bytes of the authProviderNames to add. + * @return This builder for chaining. + */ + public Builder addAuthProviderNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAuthProviderNamesIsMutable(); + authProviderNames_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token identifying a page of results the server should return.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse) + private static final com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse(); + } + + public static com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryAuthProvidersResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.QueryAuthProvidersResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersResponseOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersResponseOrBuilder.java new file mode 100644 index 000000000000..b54e373bf812 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryAuthProvidersResponseOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface QueryAuthProvidersResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @return A list containing the authProviderNames. + */ + java.util.List getAuthProviderNamesList(); + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @return The count of authProviderNames. + */ + int getAuthProviderNamesCount(); + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index of the element to return. + * @return The authProviderNames at the given index. + */ + java.lang.String getAuthProviderNames(int index); + + /** + * + * + *
+   * The unique list of auth_provider resource names used by the workload.
+   * 
+ * + * repeated string auth_provider_names = 1; + * + * @param index The index of the value to return. + * @return The bytes of the authProviderNames at the given index. + */ + com.google.protobuf.ByteString getAuthProviderNamesBytes(int index); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token identifying a page of results the server should return.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsRequest.java new file mode 100644 index 000000000000..155855a8531f --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsRequest.java @@ -0,0 +1,936 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Request message for QueryWorkloads.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.QueryWorkloadsRequest} + */ +@com.google.protobuf.Generated +public final class QueryWorkloadsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.QueryWorkloadsRequest) + QueryWorkloadsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryWorkloadsRequest"); + } + + // Use QueryWorkloadsRequest.newBuilder() to construct. + private QueryWorkloadsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryWorkloadsRequest() { + name_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest.class, + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the auth_provider to query.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 name of the auth_provider to query.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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_ = 0; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. When paginating, all other parameters provided to QueryWorkloads must
+   * match the call that provided the page token. If this field is omitted, the
+   * first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+   * page. When paginating, all other parameters provided to QueryWorkloads must
+   * match the call that provided the page token. If this field is omitted, the
+   * first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.QueryWorkloadsRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest other = + (com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest 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.cloud.agentidentity.v1beta.QueryWorkloadsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.QueryWorkloadsRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for QueryWorkloads.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.QueryWorkloadsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.QueryWorkloadsRequest) + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest.class, + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest build() { + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest result = + new com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest other) { + if (other == com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The name of the auth_provider to query.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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 name of the auth_provider to query.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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 name of the auth_provider to query.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the auth_provider to query.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the auth_provider to query.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. When paginating, all other parameters provided to QueryWorkloads must
+     * match the call that provided the page token. If this field is omitted, the
+     * first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+     * page. When paginating, all other parameters provided to QueryWorkloads must
+     * match the call that provided the page token. If this field is omitted, the
+     * first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. A token, which can be sent as `page_token` to retrieve the next
+     * page. When paginating, all other parameters provided to QueryWorkloads must
+     * match the call that provided the page token. If this field is omitted, the
+     * first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. When paginating, all other parameters provided to QueryWorkloads must
+     * match the call that provided the page token. If this field is omitted, the
+     * first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token, which can be sent as `page_token` to retrieve the next
+     * page. When paginating, all other parameters provided to QueryWorkloads must
+     * match the call that provided the page token. If this field is omitted, the
+     * first page is returned.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.QueryWorkloadsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.QueryWorkloadsRequest) + private static final com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryWorkloadsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.QueryWorkloadsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsRequestOrBuilder.java new file mode 100644 index 000000000000..1fe4c88d575c --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface QueryWorkloadsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.QueryWorkloadsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the auth_provider to query.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the auth_provider to query.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. When paginating, all other parameters provided to QueryWorkloads must
+   * match the call that provided the page token. If this field is omitted, the
+   * first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. A token, which can be sent as `page_token` to retrieve the next
+   * page. When paginating, all other parameters provided to QueryWorkloads must
+   * match the call that provided the page token. If this field is omitted, the
+   * first page is returned.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsResponse.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsResponse.java new file mode 100644 index 000000000000..d950f67062e0 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsResponse.java @@ -0,0 +1,904 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Response message for QueryWorkloads.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.QueryWorkloadsResponse} + */ +@com.google.protobuf.Generated +public final class QueryWorkloadsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.QueryWorkloadsResponse) + QueryWorkloadsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "QueryWorkloadsResponse"); + } + + // Use QueryWorkloadsResponse.newBuilder() to construct. + private QueryWorkloadsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private QueryWorkloadsResponse() { + workloadIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse.class, + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse.Builder.class); + } + + public static final int WORKLOAD_IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList workloadIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @return A list containing the workloadIds. + */ + public com.google.protobuf.ProtocolStringList getWorkloadIdsList() { + return workloadIds_; + } + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @return The count of workloadIds. + */ + public int getWorkloadIdsCount() { + return workloadIds_.size(); + } + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index of the element to return. + * @return The workloadIds at the given index. + */ + public java.lang.String getWorkloadIds(int index) { + return workloadIds_.get(index); + } + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the workloadIds at the given index. + */ + public com.google.protobuf.ByteString getWorkloadIdsBytes(int index) { + return workloadIds_.getByteString(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * 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; + } + } + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * 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 < workloadIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, workloadIds_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().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 < workloadIds_.size(); i++) { + dataSize += computeStringSizeNoTag(workloadIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getWorkloadIdsList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.QueryWorkloadsResponse)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse other = + (com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse) obj; + + if (!getWorkloadIdsList().equals(other.getWorkloadIdsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getWorkloadIdsCount() > 0) { + hash = (37 * hash) + WORKLOAD_IDS_FIELD_NUMBER; + hash = (53 * hash) + getWorkloadIdsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse 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.cloud.agentidentity.v1beta.QueryWorkloadsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.QueryWorkloadsResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for QueryWorkloads.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.QueryWorkloadsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.QueryWorkloadsResponse) + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse.class, + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + workloadIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_QueryWorkloadsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse build() { + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse buildPartial() { + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse result = + new com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + workloadIds_.makeImmutable(); + result.workloadIds_ = workloadIds_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse other) { + if (other + == com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse.getDefaultInstance()) + return this; + if (!other.workloadIds_.isEmpty()) { + if (workloadIds_.isEmpty()) { + workloadIds_ = other.workloadIds_; + bitField0_ |= 0x00000001; + } else { + ensureWorkloadIdsIsMutable(); + workloadIds_.addAll(other.workloadIds_); + } + onChanged(); + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + 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(); + ensureWorkloadIdsIsMutable(); + workloadIds_.add(s); + break; + } // case 10 + case 18: + { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList workloadIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureWorkloadIdsIsMutable() { + if (!workloadIds_.isModifiable()) { + workloadIds_ = new com.google.protobuf.LazyStringArrayList(workloadIds_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @return A list containing the workloadIds. + */ + public com.google.protobuf.ProtocolStringList getWorkloadIdsList() { + workloadIds_.makeImmutable(); + return workloadIds_; + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @return The count of workloadIds. + */ + public int getWorkloadIdsCount() { + return workloadIds_.size(); + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index of the element to return. + * @return The workloadIds at the given index. + */ + public java.lang.String getWorkloadIds(int index) { + return workloadIds_.get(index); + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the workloadIds at the given index. + */ + public com.google.protobuf.ByteString getWorkloadIdsBytes(int index) { + return workloadIds_.getByteString(index); + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index to set the value at. + * @param value The workloadIds to set. + * @return This builder for chaining. + */ + public Builder setWorkloadIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkloadIdsIsMutable(); + workloadIds_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @param value The workloadIds to add. + * @return This builder for chaining. + */ + public Builder addWorkloadIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureWorkloadIdsIsMutable(); + workloadIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @param values The workloadIds to add. + * @return This builder for chaining. + */ + public Builder addAllWorkloadIds(java.lang.Iterable values) { + ensureWorkloadIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, workloadIds_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @return This builder for chaining. + */ + public Builder clearWorkloadIds() { + workloadIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * The unique list of workload identifiers (agents) that used the
+     * auth_provider.
+     * 
+ * + * repeated string workload_ids = 1; + * + * @param value The bytes of the workloadIds to add. + * @return This builder for chaining. + */ + public Builder addWorkloadIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureWorkloadIdsIsMutable(); + workloadIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * 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; + } + } + + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * A token to retrieve the next page of results.
+     * 
+ * + * 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; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.QueryWorkloadsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.QueryWorkloadsResponse) + private static final com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse(); + } + + public static com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public QueryWorkloadsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.QueryWorkloadsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsResponseOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsResponseOrBuilder.java new file mode 100644 index 000000000000..4114c7ff73fe --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/QueryWorkloadsResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface QueryWorkloadsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.QueryWorkloadsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @return A list containing the workloadIds. + */ + java.util.List getWorkloadIdsList(); + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @return The count of workloadIds. + */ + int getWorkloadIdsCount(); + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index of the element to return. + * @return The workloadIds at the given index. + */ + java.lang.String getWorkloadIds(int index); + + /** + * + * + *
+   * The unique list of workload identifiers (agents) that used the
+   * auth_provider.
+   * 
+ * + * repeated string workload_ids = 1; + * + * @param index The index of the value to return. + * @return The bytes of the workloadIds at the given index. + */ + com.google.protobuf.ByteString getWorkloadIdsBytes(int index); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * A token to retrieve the next page of results.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationRequest.java new file mode 100644 index 000000000000..25531060d1c9 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationRequest.java @@ -0,0 +1,821 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Request message for RevokeAuthorization.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest} + */ +@com.google.protobuf.Generated +public final class RevokeAuthorizationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest) + RevokeAuthorizationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RevokeAuthorizationRequest"); + } + + // Use RevokeAuthorizationRequest.newBuilder() to construct. + private RevokeAuthorizationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RevokeAuthorizationRequest() { + name_ = ""; + userId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest.class, + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the AuthProvider.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 AuthProvider.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 USER_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + + /** + * + * + *
+   * Required. The identity of the user to revoke authorization for.
+   * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userId. + */ + @java.lang.Override + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + 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(); + userId_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The identity of the user to revoke authorization for.
+   * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for userId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, userId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, userId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.RevokeAuthorizationRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest other = + (com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUserId().equals(other.getUserId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest 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.cloud.agentidentity.v1beta.RevokeAuthorizationRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.RevokeAuthorizationRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for RevokeAuthorization.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest) + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest.class, + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + userId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest build() { + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest result = + new com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userId_ = userId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the AuthProvider.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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 AuthProvider.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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 AuthProvider.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the AuthProvider.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the AuthProvider.
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object userId_ = ""; + + /** + * + * + *
+     * Required. The identity of the user to revoke authorization for.
+     * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userId. + */ + public java.lang.String getUserId() { + java.lang.Object ref = userId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The identity of the user to revoke authorization for.
+     * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for userId. + */ + public com.google.protobuf.ByteString getUserIdBytes() { + java.lang.Object ref = userId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The identity of the user to revoke authorization for.
+     * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The userId to set. + * @return This builder for chaining. + */ + public Builder setUserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The identity of the user to revoke authorization for.
+     * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The identity of the user to revoke authorization for.
+     * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for userId to set. + * @return This builder for chaining. + */ + public Builder setUserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest) + private static final com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokeAuthorizationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.RevokeAuthorizationRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationRequestOrBuilder.java new file mode 100644 index 000000000000..0f2c2ebe0a5a --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationRequestOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface RevokeAuthorizationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the AuthProvider.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 AuthProvider.
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. The identity of the user to revoke authorization for.
+   * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The userId. + */ + java.lang.String getUserId(); + + /** + * + * + *
+   * Required. The identity of the user to revoke authorization for.
+   * 
+ * + * string user_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for userId. + */ + com.google.protobuf.ByteString getUserIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationResponse.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationResponse.java new file mode 100644 index 000000000000..57388ad7b14e --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationResponse.java @@ -0,0 +1,405 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Response message for RevokeAuthorization.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse} + */ +@com.google.protobuf.Generated +public final class RevokeAuthorizationResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse) + RevokeAuthorizationResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RevokeAuthorizationResponse"); + } + + // Use RevokeAuthorizationResponse.newBuilder() to construct. + private RevokeAuthorizationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RevokeAuthorizationResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse.class, + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse.Builder.class); + } + + 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 { + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + size += getUnknownFields().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.cloud.agentidentity.v1beta.RevokeAuthorizationResponse)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse other = + (com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse) obj; + + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse 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.cloud.agentidentity.v1beta.RevokeAuthorizationResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.RevokeAuthorizationResponse 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for RevokeAuthorization.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse) + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse.class, + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse.Builder.class); + } + + // Construct using + // com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_RevokeAuthorizationResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse build() { + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse buildPartial() { + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse result = + new com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse other) { + if (other + == com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse.getDefaultInstance()) + return this; + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse) + private static final com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse(); + } + + public static com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RevokeAuthorizationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.RevokeAuthorizationResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationResponseOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationResponseOrBuilder.java new file mode 100644 index 000000000000..7457f6993ecf --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/RevokeAuthorizationResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface RevokeAuthorizationResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse) + com.google.protobuf.MessageOrBuilder {} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ThreeLeggedOAuth.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ThreeLeggedOAuth.java new file mode 100644 index 000000000000..d695f92f21a2 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ThreeLeggedOAuth.java @@ -0,0 +1,1685 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message describing ThreeLeggedOAuth object.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ThreeLeggedOAuth} + */ +@com.google.protobuf.Generated +public final class ThreeLeggedOAuth extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) + ThreeLeggedOAuthOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ThreeLeggedOAuth"); + } + + // Use ThreeLeggedOAuth.newBuilder() to construct. + private ThreeLeggedOAuth(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ThreeLeggedOAuth() { + clientSecret_ = ""; + clientId_ = ""; + redirectUrl_ = ""; + authorizationUrl_ = ""; + tokenUrl_ = ""; + defaultContinueUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ThreeLeggedOAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ThreeLeggedOAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.class, + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.Builder.class); + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientSecret_ = ""; + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The clientSecret. + */ + @java.lang.Override + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + 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(); + clientSecret_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for clientSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + 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(); + clientId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REDIRECT_URL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object redirectUrl_ = ""; + + /** + * + * + *
+   * Output only. The redirect URL this auth_provider uses for the OAuth
+   * exchange. This is deterministic based on the name of the auth_provider.
+   * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The redirectUrl. + */ + @java.lang.Override + public java.lang.String getRedirectUrl() { + java.lang.Object ref = redirectUrl_; + 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(); + redirectUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The redirect URL this auth_provider uses for the OAuth
+   * exchange. This is deterministic based on the name of the auth_provider.
+   * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for redirectUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRedirectUrlBytes() { + java.lang.Object ref = redirectUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redirectUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AUTHORIZATION_URL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object authorizationUrl_ = ""; + + /** + * + * + *
+   * Optional. The authorization endpoint to send users to for consenting to
+   * delegate to the agent. eg. "https://auth.example.com/authorize"
+   * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The authorizationUrl. + */ + @java.lang.Override + public java.lang.String getAuthorizationUrl() { + java.lang.Object ref = authorizationUrl_; + 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(); + authorizationUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The authorization endpoint to send users to for consenting to
+   * delegate to the agent. eg. "https://auth.example.com/authorize"
+   * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for authorizationUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorizationUrlBytes() { + java.lang.Object ref = authorizationUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authorizationUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_URL_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object tokenUrl_ = ""; + + /** + * + * + *
+   * Optional. The token endpoint for requesting tokens on behalf of an end
+   * user. eg. "https://auth.example.com/oauth/token"
+   * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tokenUrl. + */ + @java.lang.Override + public java.lang.String getTokenUrl() { + java.lang.Object ref = tokenUrl_; + 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(); + tokenUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The token endpoint for requesting tokens on behalf of an end
+   * user. eg. "https://auth.example.com/oauth/token"
+   * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tokenUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenUrlBytes() { + java.lang.Object ref = tokenUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENABLE_PKCE_FIELD_NUMBER = 6; + private boolean enablePkce_ = false; + + /** + * + * + *
+   * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to
+   * prevent authorization code interception attacks.
+   * 
+ * + * bool enable_pkce = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePkce. + */ + @java.lang.Override + public boolean getEnablePkce() { + return enablePkce_; + } + + public static final int DEFAULT_CONTINUE_URI_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultContinueUri_ = ""; + + /** + * + * + *
+   * Optional. The default continue URI for 3LO flow and it will be used when no
+   * continue URI is provided in the RetrieveCredentials request.
+   * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultContinueUri. + */ + @java.lang.Override + public java.lang.String getDefaultContinueUri() { + java.lang.Object ref = defaultContinueUri_; + 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(); + defaultContinueUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The default continue URI for 3LO flow and it will be used when no
+   * continue URI is provided in the RetrieveCredentials request.
+   * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultContinueUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultContinueUriBytes() { + java.lang.Object ref = defaultContinueUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultContinueUri_ = 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.GeneratedMessage.isStringEmpty(clientSecret_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(redirectUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, redirectUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorizationUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, authorizationUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, tokenUrl_); + } + if (enablePkce_ != false) { + output.writeBool(6, enablePkce_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultContinueUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, defaultContinueUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientSecret_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(redirectUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, redirectUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorizationUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, authorizationUrl_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, tokenUrl_); + } + if (enablePkce_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, enablePkce_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultContinueUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, defaultContinueUri_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.ThreeLeggedOAuth)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth other = + (com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) obj; + + if (!getClientSecret().equals(other.getClientSecret())) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (!getRedirectUrl().equals(other.getRedirectUrl())) return false; + if (!getAuthorizationUrl().equals(other.getAuthorizationUrl())) return false; + if (!getTokenUrl().equals(other.getTokenUrl())) return false; + if (getEnablePkce() != other.getEnablePkce()) return false; + if (!getDefaultContinueUri().equals(other.getDefaultContinueUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + REDIRECT_URL_FIELD_NUMBER; + hash = (53 * hash) + getRedirectUrl().hashCode(); + hash = (37 * hash) + AUTHORIZATION_URL_FIELD_NUMBER; + hash = (53 * hash) + getAuthorizationUrl().hashCode(); + hash = (37 * hash) + TOKEN_URL_FIELD_NUMBER; + hash = (53 * hash) + getTokenUrl().hashCode(); + hash = (37 * hash) + ENABLE_PKCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnablePkce()); + hash = (37 * hash) + DEFAULT_CONTINUE_URI_FIELD_NUMBER; + hash = (53 * hash) + getDefaultContinueUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth 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.cloud.agentidentity.v1beta.ThreeLeggedOAuth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.ThreeLeggedOAuth 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing ThreeLeggedOAuth object.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.ThreeLeggedOAuth} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ThreeLeggedOAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ThreeLeggedOAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.class, + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clientSecret_ = ""; + clientId_ = ""; + redirectUrl_ = ""; + authorizationUrl_ = ""; + tokenUrl_ = ""; + enablePkce_ = false; + defaultContinueUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_ThreeLeggedOAuth_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth build() { + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth buildPartial() { + com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth result = + new com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clientSecret_ = clientSecret_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.redirectUrl_ = redirectUrl_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.authorizationUrl_ = authorizationUrl_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tokenUrl_ = tokenUrl_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.enablePkce_ = enablePkce_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.defaultContinueUri_ = defaultContinueUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth other) { + if (other == com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth.getDefaultInstance()) + return this; + if (!other.getClientSecret().isEmpty()) { + clientSecret_ = other.clientSecret_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getRedirectUrl().isEmpty()) { + redirectUrl_ = other.redirectUrl_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAuthorizationUrl().isEmpty()) { + authorizationUrl_ = other.authorizationUrl_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getTokenUrl().isEmpty()) { + tokenUrl_ = other.tokenUrl_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.getEnablePkce() != false) { + setEnablePkce(other.getEnablePkce()); + } + if (!other.getDefaultContinueUri().isEmpty()) { + defaultContinueUri_ = other.defaultContinueUri_; + bitField0_ |= 0x00000040; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clientSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + redirectUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + authorizationUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + tokenUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + enablePkce_ = input.readBool(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + defaultContinueUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object clientSecret_ = ""; + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The clientSecret. + */ + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for clientSecret. + */ + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecret(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientSecret_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearClientSecret() { + clientSecret_ = getDefaultInstance().getClientSecret(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The bytes for clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecretBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientSecret_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object redirectUrl_ = ""; + + /** + * + * + *
+     * Output only. The redirect URL this auth_provider uses for the OAuth
+     * exchange. This is deterministic based on the name of the auth_provider.
+     * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The redirectUrl. + */ + public java.lang.String getRedirectUrl() { + java.lang.Object ref = redirectUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + redirectUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The redirect URL this auth_provider uses for the OAuth
+     * exchange. This is deterministic based on the name of the auth_provider.
+     * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for redirectUrl. + */ + public com.google.protobuf.ByteString getRedirectUrlBytes() { + java.lang.Object ref = redirectUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + redirectUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The redirect URL this auth_provider uses for the OAuth
+     * exchange. This is deterministic based on the name of the auth_provider.
+     * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The redirectUrl to set. + * @return This builder for chaining. + */ + public Builder setRedirectUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + redirectUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The redirect URL this auth_provider uses for the OAuth
+     * exchange. This is deterministic based on the name of the auth_provider.
+     * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRedirectUrl() { + redirectUrl_ = getDefaultInstance().getRedirectUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The redirect URL this auth_provider uses for the OAuth
+     * exchange. This is deterministic based on the name of the auth_provider.
+     * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for redirectUrl to set. + * @return This builder for chaining. + */ + public Builder setRedirectUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + redirectUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object authorizationUrl_ = ""; + + /** + * + * + *
+     * Optional. The authorization endpoint to send users to for consenting to
+     * delegate to the agent. eg. "https://auth.example.com/authorize"
+     * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The authorizationUrl. + */ + public java.lang.String getAuthorizationUrl() { + java.lang.Object ref = authorizationUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authorizationUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The authorization endpoint to send users to for consenting to
+     * delegate to the agent. eg. "https://auth.example.com/authorize"
+     * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for authorizationUrl. + */ + public com.google.protobuf.ByteString getAuthorizationUrlBytes() { + java.lang.Object ref = authorizationUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + authorizationUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The authorization endpoint to send users to for consenting to
+     * delegate to the agent. eg. "https://auth.example.com/authorize"
+     * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The authorizationUrl to set. + * @return This builder for chaining. + */ + public Builder setAuthorizationUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + authorizationUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The authorization endpoint to send users to for consenting to
+     * delegate to the agent. eg. "https://auth.example.com/authorize"
+     * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAuthorizationUrl() { + authorizationUrl_ = getDefaultInstance().getAuthorizationUrl(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The authorization endpoint to send users to for consenting to
+     * delegate to the agent. eg. "https://auth.example.com/authorize"
+     * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for authorizationUrl to set. + * @return This builder for chaining. + */ + public Builder setAuthorizationUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + authorizationUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object tokenUrl_ = ""; + + /** + * + * + *
+     * Optional. The token endpoint for requesting tokens on behalf of an end
+     * user. eg. "https://auth.example.com/oauth/token"
+     * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tokenUrl. + */ + public java.lang.String getTokenUrl() { + java.lang.Object ref = tokenUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The token endpoint for requesting tokens on behalf of an end
+     * user. eg. "https://auth.example.com/oauth/token"
+     * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tokenUrl. + */ + public com.google.protobuf.ByteString getTokenUrlBytes() { + java.lang.Object ref = tokenUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The token endpoint for requesting tokens on behalf of an end
+     * user. eg. "https://auth.example.com/oauth/token"
+     * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tokenUrl to set. + * @return This builder for chaining. + */ + public Builder setTokenUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tokenUrl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The token endpoint for requesting tokens on behalf of an end
+     * user. eg. "https://auth.example.com/oauth/token"
+     * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTokenUrl() { + tokenUrl_ = getDefaultInstance().getTokenUrl(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The token endpoint for requesting tokens on behalf of an end
+     * user. eg. "https://auth.example.com/oauth/token"
+     * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tokenUrl to set. + * @return This builder for chaining. + */ + public Builder setTokenUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tokenUrl_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private boolean enablePkce_; + + /** + * + * + *
+     * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to
+     * prevent authorization code interception attacks.
+     * 
+ * + * bool enable_pkce = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePkce. + */ + @java.lang.Override + public boolean getEnablePkce() { + return enablePkce_; + } + + /** + * + * + *
+     * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to
+     * prevent authorization code interception attacks.
+     * 
+ * + * bool enable_pkce = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enablePkce to set. + * @return This builder for chaining. + */ + public Builder setEnablePkce(boolean value) { + + enablePkce_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to
+     * prevent authorization code interception attacks.
+     * 
+ * + * bool enable_pkce = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnablePkce() { + bitField0_ = (bitField0_ & ~0x00000020); + enablePkce_ = false; + onChanged(); + return this; + } + + private java.lang.Object defaultContinueUri_ = ""; + + /** + * + * + *
+     * Optional. The default continue URI for 3LO flow and it will be used when no
+     * continue URI is provided in the RetrieveCredentials request.
+     * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultContinueUri. + */ + public java.lang.String getDefaultContinueUri() { + java.lang.Object ref = defaultContinueUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultContinueUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The default continue URI for 3LO flow and it will be used when no
+     * continue URI is provided in the RetrieveCredentials request.
+     * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultContinueUri. + */ + public com.google.protobuf.ByteString getDefaultContinueUriBytes() { + java.lang.Object ref = defaultContinueUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultContinueUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The default continue URI for 3LO flow and it will be used when no
+     * continue URI is provided in the RetrieveCredentials request.
+     * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The defaultContinueUri to set. + * @return This builder for chaining. + */ + public Builder setDefaultContinueUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultContinueUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default continue URI for 3LO flow and it will be used when no
+     * continue URI is provided in the RetrieveCredentials request.
+     * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDefaultContinueUri() { + defaultContinueUri_ = getDefaultInstance().getDefaultContinueUri(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The default continue URI for 3LO flow and it will be used when no
+     * continue URI is provided in the RetrieveCredentials request.
+     * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for defaultContinueUri to set. + * @return This builder for chaining. + */ + public Builder setDefaultContinueUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultContinueUri_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) + private static final com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth(); + } + + public static com.google.cloud.agentidentity.v1beta.ThreeLeggedOAuth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ThreeLeggedOAuth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.ThreeLeggedOAuth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ThreeLeggedOAuthOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ThreeLeggedOAuthOrBuilder.java new file mode 100644 index 000000000000..712c85f0a236 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/ThreeLeggedOAuthOrBuilder.java @@ -0,0 +1,210 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface ThreeLeggedOAuthOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.ThreeLeggedOAuth) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The clientSecret. + */ + java.lang.String getClientSecret(); + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for clientSecret. + */ + com.google.protobuf.ByteString getClientSecretBytes(); + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
+   * Output only. The redirect URL this auth_provider uses for the OAuth
+   * exchange. This is deterministic based on the name of the auth_provider.
+   * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The redirectUrl. + */ + java.lang.String getRedirectUrl(); + + /** + * + * + *
+   * Output only. The redirect URL this auth_provider uses for the OAuth
+   * exchange. This is deterministic based on the name of the auth_provider.
+   * 
+ * + * string redirect_url = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for redirectUrl. + */ + com.google.protobuf.ByteString getRedirectUrlBytes(); + + /** + * + * + *
+   * Optional. The authorization endpoint to send users to for consenting to
+   * delegate to the agent. eg. "https://auth.example.com/authorize"
+   * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The authorizationUrl. + */ + java.lang.String getAuthorizationUrl(); + + /** + * + * + *
+   * Optional. The authorization endpoint to send users to for consenting to
+   * delegate to the agent. eg. "https://auth.example.com/authorize"
+   * 
+ * + * string authorization_url = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for authorizationUrl. + */ + com.google.protobuf.ByteString getAuthorizationUrlBytes(); + + /** + * + * + *
+   * Optional. The token endpoint for requesting tokens on behalf of an end
+   * user. eg. "https://auth.example.com/oauth/token"
+   * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tokenUrl. + */ + java.lang.String getTokenUrl(); + + /** + * + * + *
+   * Optional. The token endpoint for requesting tokens on behalf of an end
+   * user. eg. "https://auth.example.com/oauth/token"
+   * 
+ * + * string token_url = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tokenUrl. + */ + com.google.protobuf.ByteString getTokenUrlBytes(); + + /** + * + * + *
+   * Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to
+   * prevent authorization code interception attacks.
+   * 
+ * + * bool enable_pkce = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enablePkce. + */ + boolean getEnablePkce(); + + /** + * + * + *
+   * Optional. The default continue URI for 3LO flow and it will be used when no
+   * continue URI is provided in the RetrieveCredentials request.
+   * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The defaultContinueUri. + */ + java.lang.String getDefaultContinueUri(); + + /** + * + * + *
+   * Optional. The default continue URI for 3LO flow and it will be used when no
+   * continue URI is provided in the RetrieveCredentials request.
+   * 
+ * + * string default_continue_uri = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for defaultContinueUri. + */ + com.google.protobuf.ByteString getDefaultContinueUriBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/TwoLeggedOAuth.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/TwoLeggedOAuth.java new file mode 100644 index 000000000000..eca64a2f16ed --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/TwoLeggedOAuth.java @@ -0,0 +1,988 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message describing TwoLeggedOAuth object.
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.TwoLeggedOAuth} + */ +@com.google.protobuf.Generated +public final class TwoLeggedOAuth extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.TwoLeggedOAuth) + TwoLeggedOAuthOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TwoLeggedOAuth"); + } + + // Use TwoLeggedOAuth.newBuilder() to construct. + private TwoLeggedOAuth(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TwoLeggedOAuth() { + clientSecret_ = ""; + clientId_ = ""; + tokenUrl_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_TwoLeggedOAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_TwoLeggedOAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.class, + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.Builder.class); + } + + public static final int CLIENT_SECRET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientSecret_ = ""; + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The clientSecret. + */ + @java.lang.Override + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + 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(); + clientSecret_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for clientSecret. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CLIENT_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object clientId_ = ""; + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + @java.lang.Override + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + 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(); + clientId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOKEN_URL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object tokenUrl_ = ""; + + /** + * + * + *
+   * Optional. The token endpoint of the OAuth client.
+   * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tokenUrl. + */ + @java.lang.Override + public java.lang.String getTokenUrl() { + java.lang.Object ref = tokenUrl_; + 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(); + tokenUrl_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The token endpoint of the OAuth client.
+   * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tokenUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTokenUrlBytes() { + java.lang.Object ref = tokenUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenUrl_ = 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.GeneratedMessage.isStringEmpty(clientSecret_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, tokenUrl_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientSecret_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, clientSecret_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(clientId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, clientId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, tokenUrl_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.TwoLeggedOAuth)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth other = + (com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth) obj; + + if (!getClientSecret().equals(other.getClientSecret())) return false; + if (!getClientId().equals(other.getClientId())) return false; + if (!getTokenUrl().equals(other.getTokenUrl())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + CLIENT_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getClientSecret().hashCode(); + hash = (37 * hash) + CLIENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getClientId().hashCode(); + hash = (37 * hash) + TOKEN_URL_FIELD_NUMBER; + hash = (53 * hash) + getTokenUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth 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.cloud.agentidentity.v1beta.TwoLeggedOAuth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.TwoLeggedOAuth 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message describing TwoLeggedOAuth object.
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.TwoLeggedOAuth} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.TwoLeggedOAuth) + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_TwoLeggedOAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_TwoLeggedOAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.class, + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + clientSecret_ = ""; + clientId_ = ""; + tokenUrl_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_TwoLeggedOAuth_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth build() { + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth buildPartial() { + com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth result = + new com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.clientSecret_ = clientSecret_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.clientId_ = clientId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tokenUrl_ = tokenUrl_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth other) { + if (other == com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth.getDefaultInstance()) + return this; + if (!other.getClientSecret().isEmpty()) { + clientSecret_ = other.clientSecret_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getClientId().isEmpty()) { + clientId_ = other.clientId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getTokenUrl().isEmpty()) { + tokenUrl_ = other.tokenUrl_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + clientSecret_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + clientId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + tokenUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object clientSecret_ = ""; + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The clientSecret. + */ + public java.lang.String getClientSecret() { + java.lang.Object ref = clientSecret_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientSecret_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for clientSecret. + */ + public com.google.protobuf.ByteString getClientSecretBytes() { + java.lang.Object ref = clientSecret_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientSecret_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecret(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientSecret_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearClientSecret() { + clientSecret_ = getDefaultInstance().getClientSecret(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Input only. The client secret of the OAuth client.
+     * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @param value The bytes for clientSecret to set. + * @return This builder for chaining. + */ + public Builder setClientSecretBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientSecret_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object clientId_ = ""; + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + public java.lang.String getClientId() { + java.lang.Object ref = clientId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + clientId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + public com.google.protobuf.ByteString getClientIdBytes() { + java.lang.Object ref = clientId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + clientId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The clientId to set. + * @return This builder for chaining. + */ + public Builder setClientId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearClientId() { + clientId_ = getDefaultInstance().getClientId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The client ID of the OAuth client.
+     * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for clientId to set. + * @return This builder for chaining. + */ + public Builder setClientIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + clientId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object tokenUrl_ = ""; + + /** + * + * + *
+     * Optional. The token endpoint of the OAuth client.
+     * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tokenUrl. + */ + public java.lang.String getTokenUrl() { + java.lang.Object ref = tokenUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tokenUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The token endpoint of the OAuth client.
+     * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tokenUrl. + */ + public com.google.protobuf.ByteString getTokenUrlBytes() { + java.lang.Object ref = tokenUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tokenUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The token endpoint of the OAuth client.
+     * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The tokenUrl to set. + * @return This builder for chaining. + */ + public Builder setTokenUrl(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tokenUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The token endpoint of the OAuth client.
+     * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTokenUrl() { + tokenUrl_ = getDefaultInstance().getTokenUrl(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The token endpoint of the OAuth client.
+     * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for tokenUrl to set. + * @return This builder for chaining. + */ + public Builder setTokenUrlBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tokenUrl_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.TwoLeggedOAuth) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.TwoLeggedOAuth) + private static final com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth(); + } + + public static com.google.cloud.agentidentity.v1beta.TwoLeggedOAuth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TwoLeggedOAuth parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.TwoLeggedOAuth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/TwoLeggedOAuthOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/TwoLeggedOAuthOrBuilder.java new file mode 100644 index 000000000000..74fb80ca06ea --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/TwoLeggedOAuthOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface TwoLeggedOAuthOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.TwoLeggedOAuth) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The clientSecret. + */ + java.lang.String getClientSecret(); + + /** + * + * + *
+   * Optional. Input only. The client secret of the OAuth client.
+   * 
+ * + * + * string client_secret = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = INPUT_ONLY]; + * + * + * @return The bytes for clientSecret. + */ + com.google.protobuf.ByteString getClientSecretBytes(); + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The clientId. + */ + java.lang.String getClientId(); + + /** + * + * + *
+   * Optional. The client ID of the OAuth client.
+   * 
+ * + * string client_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for clientId. + */ + com.google.protobuf.ByteString getClientIdBytes(); + + /** + * + * + *
+   * Optional. The token endpoint of the OAuth client.
+   * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The tokenUrl. + */ + java.lang.String getTokenUrl(); + + /** + * + * + *
+   * Optional. The token endpoint of the OAuth client.
+   * 
+ * + * string token_url = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for tokenUrl. + */ + com.google.protobuf.ByteString getTokenUrlBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UndeleteAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UndeleteAuthProviderRequest.java new file mode 100644 index 000000000000..1d06db490284 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UndeleteAuthProviderRequest.java @@ -0,0 +1,879 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for undeleting a AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class UndeleteAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest) + UndeleteAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UndeleteAuthProviderRequest"); + } + + // Use UndeleteAuthProviderRequest.newBuilder() to construct. + private UndeleteAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UndeleteAuthProviderRequest() { + name_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_UndeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_UndeleteAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * 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 REQUEST_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest other = + (com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest 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.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for undeleting a AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest) + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_UndeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_UndeleteAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest.Builder.class); + } + + // Construct using + // com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_UndeleteAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest build() { + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest result = + new com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestId_ = requestId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000002; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Name of the resource
+     * Format:
+     * projects/{project}/locations/{location}/authProviders/{auth_provider}
+     * 
+ * + * + * 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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes after the first request.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UndeleteAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UndeleteAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..ca67e61c526b --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UndeleteAuthProviderRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface UndeleteAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Name of the resource
+   * Format:
+   * projects/{project}/locations/{location}/authProviders/{auth_provider}
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes after the first request.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UpdateAuthProviderRequest.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UpdateAuthProviderRequest.java new file mode 100644 index 000000000000..9ef3e83a5890 --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UpdateAuthProviderRequest.java @@ -0,0 +1,1382 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +/** + * + * + *
+ * Message for updating a AuthProvider
+ * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAuthProviderRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest) + UpdateAuthProviderRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateAuthProviderRequest"); + } + + // Use UpdateAuthProviderRequest.newBuilder() to construct. + private UpdateAuthProviderRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAuthProviderRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_UpdateAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_UpdateAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest.Builder.class); + } + + private int bitField0_; + public static final int UPDATE_MASK_FIELD_NUMBER = 1; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AuthProvider resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AuthProvider resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AuthProvider resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + public static final int AUTH_PROVIDER_FIELD_NUMBER = 2; + private com.google.cloud.agentidentity.v1beta.AuthProvider authProvider_; + + /** + * + * + *
+   * Required. The AuthProvider resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProvider field is set. + */ + @java.lang.Override + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Required. The AuthProvider resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProvider. + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProvider getAuthProvider() { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance() + : authProvider_; + } + + /** + * + * + *
+   * Required. The AuthProvider resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder getAuthProviderOrBuilder() { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance() + : authProvider_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + @java.lang.Override + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + 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(); + requestId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = 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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getAuthProvider()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getUpdateMask()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getAuthProvider()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, requestId_); + } + size += getUnknownFields().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.cloud.agentidentity.v1beta.UpdateAuthProviderRequest)) { + return super.equals(obj); + } + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest other = + (com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest) obj; + + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (hasAuthProvider() != other.hasAuthProvider()) return false; + if (hasAuthProvider()) { + if (!getAuthProvider().equals(other.getAuthProvider())) return false; + } + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + if (hasAuthProvider()) { + hash = (37 * hash) + AUTH_PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getAuthProvider().hashCode(); + } + hash = (37 * hash) + REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getRequestId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest 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.cloud.agentidentity.v1beta.UpdateAuthProviderRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.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.cloud.agentidentity.v1beta.UpdateAuthProviderRequest 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.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Message for updating a AuthProvider
+   * 
+ * + * Protobuf type {@code google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest) + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_UpdateAuthProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_UpdateAuthProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest.class, + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest.Builder.class); + } + + // Construct using com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetUpdateMaskFieldBuilder(); + internalGetAuthProviderFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.agentidentity.v1beta.AuthProviderServiceProto + .internal_static_google_cloud_agentidentity_v1beta_UpdateAuthProviderRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest + getDefaultInstanceForType() { + return com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest build() { + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest buildPartial() { + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest result = + new com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.authProvider_ = + authProviderBuilder_ == null ? authProvider_ : authProviderBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest) { + return mergeFrom((com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest other) { + if (other + == com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest.getDefaultInstance()) + return this; + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (other.hasAuthProvider()) { + mergeAuthProvider(other.getAuthProvider()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetAuthProviderFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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(); + } + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000001); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
+     * Optional. Field mask is used to specify the fields to be overwritten in the
+     * AuthProvider resource by the update.
+     * The fields specified in the update_mask are relative to the resource, not
+     * the full request. A field will be overwritten if it is in the mask. If the
+     * user does not provide a mask then all fields present in the request will be
+     * overwritten.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private com.google.cloud.agentidentity.v1beta.AuthProvider authProvider_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.AuthProvider, + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder, + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder> + authProviderBuilder_; + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProvider field is set. + */ + public boolean hasAuthProvider() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProvider. + */ + public com.google.cloud.agentidentity.v1beta.AuthProvider getAuthProvider() { + if (authProviderBuilder_ == null) { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance() + : authProvider_; + } else { + return authProviderBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthProvider(com.google.cloud.agentidentity.v1beta.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authProvider_ = value; + } else { + authProviderBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAuthProvider( + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder builderForValue) { + if (authProviderBuilder_ == null) { + authProvider_ = builderForValue.build(); + } else { + authProviderBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAuthProvider(com.google.cloud.agentidentity.v1beta.AuthProvider value) { + if (authProviderBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && authProvider_ != null + && authProvider_ + != com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance()) { + getAuthProviderBuilder().mergeFrom(value); + } else { + authProvider_ = value; + } + } else { + authProviderBuilder_.mergeFrom(value); + } + if (authProvider_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAuthProvider() { + bitField0_ = (bitField0_ & ~0x00000002); + authProvider_ = null; + if (authProviderBuilder_ != null) { + authProviderBuilder_.dispose(); + authProviderBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentidentity.v1beta.AuthProvider.Builder getAuthProviderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetAuthProviderFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder getAuthProviderOrBuilder() { + if (authProviderBuilder_ != null) { + return authProviderBuilder_.getMessageOrBuilder(); + } else { + return authProvider_ == null + ? com.google.cloud.agentidentity.v1beta.AuthProvider.getDefaultInstance() + : authProvider_; + } + } + + /** + * + * + *
+     * Required. The AuthProvider resource which replaces the resource on the
+     * server.
+     * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.AuthProvider, + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder, + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder> + internalGetAuthProviderFieldBuilder() { + if (authProviderBuilder_ == null) { + authProviderBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.agentidentity.v1beta.AuthProvider, + com.google.cloud.agentidentity.v1beta.AuthProvider.Builder, + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder>( + getAuthProvider(), getParentForChildren(), isClean()); + authProvider_ = null; + } + return authProviderBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + public java.lang.String getRequestId() { + java.lang.Object ref = requestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + public com.google.protobuf.ByteString getRequestIdBytes() { + java.lang.Object ref = requestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. An optional request ID to identify requests. Specify a unique
+     * request ID so that if you must retry your request, the server will know to
+     * ignore the request if it has already been completed. The server will
+     * guarantee that for at least 60 minutes since the first request.
+     *
+     * For example, consider a situation where you make an initial request and the
+     * request times out. If you make the request again with the same request
+     * ID, the server can check if original operation with the same request ID
+     * was received, and if so, will ignore the second request. This prevents
+     * clients from accidentally creating duplicate commitments.
+     *
+     * The request ID must be a valid UUID with the exception that zero UUID is
+     * not supported (00000000-0000-0000-0000-000000000000).
+     * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for requestId to set. + * @return This builder for chaining. + */ + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest) + private static final com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest(); + } + + public static com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAuthProviderRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.cloud.agentidentity.v1beta.UpdateAuthProviderRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UpdateAuthProviderRequestOrBuilder.java b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UpdateAuthProviderRequestOrBuilder.java new file mode 100644 index 000000000000..aab6334c3e1a --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/java/com/google/cloud/agentidentity/v1beta/UpdateAuthProviderRequestOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 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! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/agentidentity/v1beta/auth_provider_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.agentidentity.v1beta; + +@com.google.protobuf.Generated +public interface UpdateAuthProviderRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AuthProvider resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AuthProvider resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
+   * Optional. Field mask is used to specify the fields to be overwritten in the
+   * AuthProvider resource by the update.
+   * The fields specified in the update_mask are relative to the resource, not
+   * the full request. A field will be overwritten if it is in the mask. If the
+   * user does not provide a mask then all fields present in the request will be
+   * overwritten.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
+   * Required. The AuthProvider resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the authProvider field is set. + */ + boolean hasAuthProvider(); + + /** + * + * + *
+   * Required. The AuthProvider resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The authProvider. + */ + com.google.cloud.agentidentity.v1beta.AuthProvider getAuthProvider(); + + /** + * + * + *
+   * Required. The AuthProvider resource which replaces the resource on the
+   * server.
+   * 
+ * + * + * .google.cloud.agentidentity.v1beta.AuthProvider auth_provider = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.agentidentity.v1beta.AuthProviderOrBuilder getAuthProviderOrBuilder(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
+   * Optional. An optional request ID to identify requests. Specify a unique
+   * request ID so that if you must retry your request, the server will know to
+   * ignore the request if it has already been completed. The server will
+   * guarantee that for at least 60 minutes since the first request.
+   *
+   * For example, consider a situation where you make an initial request and the
+   * request times out. If you make the request again with the same request
+   * ID, the server can check if original operation with the same request ID
+   * was received, and if so, will ignore the second request. This prevents
+   * clients from accidentally creating duplicate commitments.
+   *
+   * The request ID must be a valid UUID with the exception that zero UUID is
+   * not supported (00000000-0000-0000-0000-000000000000).
+   * 
+ * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/proto/google/cloud/agentidentity/v1beta/auth_provider_service.proto b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/proto/google/cloud/agentidentity/v1beta/auth_provider_service.proto new file mode 100644 index 000000000000..fde6de9134ec --- /dev/null +++ b/java-agentidentity/proto-google-cloud-agentidentity-v1beta/src/main/proto/google/cloud/agentidentity/v1beta/auth_provider_service.proto @@ -0,0 +1,933 @@ +// Copyright 2026 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.cloud.agentidentity.v1beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; +import "google/protobuf/timestamp.proto"; + +option go_package = "cloud.google.com/go/agentidentity/apiv1beta/agentidentitypb;agentidentitypb"; +option java_multiple_files = true; +option java_outer_classname = "AuthProviderServiceProto"; +option java_package = "com.google.cloud.agentidentity.v1beta"; + +// Service describing handlers for resources +service AuthProviderService { + option (google.api.default_host) = "agentidentity.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Lists AuthProviders in a given project and location. + rpc ListAuthProviders(ListAuthProvidersRequest) + returns (ListAuthProvidersResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*}/authProviders" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single AuthProvider. + rpc GetAuthProvider(GetAuthProviderRequest) returns (AuthProvider) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/authProviders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a new AuthProvider in a given project and location. + rpc CreateAuthProvider(CreateAuthProviderRequest) returns (AuthProvider) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*}/authProviders" + body: "auth_provider" + }; + option (google.api.method_signature) = + "parent,auth_provider,auth_provider_id"; + } + + // Updates the parameters of a single AuthProvider. + rpc UpdateAuthProvider(UpdateAuthProviderRequest) returns (AuthProvider) { + option (google.api.http) = { + patch: "/v1beta/{auth_provider.name=projects/*/locations/*/authProviders/*}" + body: "auth_provider" + }; + option (google.api.method_signature) = "auth_provider,update_mask"; + } + + // Deletes a single AuthProvider. + rpc DeleteAuthProvider(DeleteAuthProviderRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=projects/*/locations/*/authProviders/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Undeletes a single AuthProvider. + rpc UndeleteAuthProvider(UndeleteAuthProviderRequest) returns (AuthProvider) { + option (google.api.http) = { + post: "/v1beta/{name=projects/*/locations/*/authProviders/*}:undelete" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Queries what all auth_providers are used by a given workload_id. + rpc QueryAuthProviders(QueryAuthProvidersRequest) + returns (QueryAuthProvidersResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*}/authProviders:query" + }; + option (google.api.method_signature) = "parent,workload_id"; + } + + // Queries what all workloads are using a given auth_provider. + rpc QueryWorkloads(QueryWorkloadsRequest) returns (QueryWorkloadsResponse) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/authProviders/*}:queryWorkloads" + }; + option (google.api.method_signature) = "name"; + } + + // Lists Authorizations in a given project and location. + rpc ListAuthorizations(ListAuthorizationsRequest) + returns (ListAuthorizationsResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*/authProviders/*}/authorizations" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single Authorization. + rpc GetAuthorization(GetAuthorizationRequest) returns (Authorization) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/authProviders/*/authorizations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a single Authorization. + rpc DeleteAuthorization(DeleteAuthorizationRequest) + returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1beta/{name=projects/*/locations/*/authProviders/*/authorizations/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists AccessSummaries in a given project and location. + // Supported Filters: + // - `workload_id`: Filter by the SPIFFE ID of the agent. + // Example: `workload_id="spiffe://example.com/ns/default/sa/my-agent"` + rpc ListAccessSummaries(ListAccessSummariesRequest) + returns (ListAccessSummariesResponse) { + option (google.api.http) = { + get: "/v1beta/{parent=projects/*/locations/*}/accessSummaries" + }; + option (google.api.method_signature) = "parent"; + } + + // Gets details of a single AccessSummary. + rpc GetAccessSummary(GetAccessSummaryRequest) returns (AccessSummary) { + option (google.api.http) = { + get: "/v1beta/{name=projects/*/locations/*/accessSummaries/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Revokes all authorizations for a specific user on an AuthProvider. + // This deletes all authorization records associated with the user and + // AuthProvider, effectively revoking access across all agents. + rpc RevokeAuthorization(RevokeAuthorizationRequest) + returns (RevokeAuthorizationResponse) { + option (google.api.http) = { + post: "/v1beta/{name=projects/*/locations/*/authProviders/*}:revokeAuthorization" + body: "*" + }; + option (google.api.method_signature) = "name,user_id"; + } + + // Enables a single AuthProvider. + rpc EnableAuthProvider(EnableAuthProviderRequest) returns (AuthProvider) { + option (google.api.http) = { + post: "/v1beta/{name=projects/*/locations/*/authProviders/*}:enable" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Disables a single AuthProvider. + rpc DisableAuthProvider(DisableAuthProviderRequest) returns (AuthProvider) { + option (google.api.http) = { + post: "/v1beta/{name=projects/*/locations/*/authProviders/*}:disable" + body: "*" + }; + option (google.api.method_signature) = "name"; + } +} + +// The type of the AuthProvider. +enum AuthProviderType { + // Unspecified auth-provider type. + AUTH_PROVIDER_TYPE_UNSPECIFIED = 0; + + // Three Legged OAuth auth-provider type. + AUTH_PROVIDER_TYPE_THREE_LEGGED_OAUTH = 1; + + // Two Legged OAuth auth-provider type. + AUTH_PROVIDER_TYPE_TWO_LEGGED_OAUTH = 2; + + // API Key auth-provider type. + AUTH_PROVIDER_TYPE_API_KEY = 3; + + // Gemini Enterprise auth-provider type. + AUTH_PROVIDER_TYPE_GEMINI_ENTERPRISE = 4; +} + +// Message describing AuthProvider object +message AuthProvider { + option (google.api.resource) = { + type: "agentidentity.googleapis.com/AuthProvider" + pattern: "projects/{project}/locations/{location}/authProviders/{auth_provider}" + plural: "authProviders" + singular: "authProvider" + }; + + // AuthProvider type specific parameters. + // Required when creating an auth_provider. + message AuthProviderTypeParams { + // AuthProvider type. + oneof type { + // ThreeLeggedOAuth AuthProvider type parameters. + ThreeLeggedOAuth three_legged_oauth = 1; + + // TwoLeggedOAuth AuthProvider type parameters. + TwoLeggedOAuth two_legged_oauth = 2; + + // ApiKey AuthProvider type parameters. + ApiKeyParams api_key = 3; + + // GeminiEnterprise auth_provider type parameters. + GeminiEnterpriseAuthProviderParams ge_auth_provider = 4; + } + } + + // Represents the state of the auth_provider. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // Enabled and can be used. + ENABLED = 1; + + // Disabled and cannot be used. + DISABLED = 2; + } + + // Identifier. The full resource name of the auth_provider. Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. [Output only] Create time stamp + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Update time stamp + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels as key value pairs + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. AuthProvider type specific parameters. + AuthProviderTypeParams auth_provider_type_params = 5 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. List of scopes that are allowed to be requested for this + // auth_provider. If this list is non-empty, only scopes within this list may + // be requested. If this list is empty, all scopes may be requested. Scopes + // appearing in `blocked_scopes` are disallowed even if they appear in + // `allowed_scopes`. + // The number of allowed scopes is limited to 200. + repeated string allowed_scopes = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of scopes that are blocked from being requested for this + // auth_provider. If a scope appears in this list, it will not be requested, + // even if it also appears in `allowed_scopes`. `blocked_scopes` takes + // precedence over `allowed_scopes`. The number of blocked scopes is limited + // to 200. + repeated string blocked_scopes = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Description of the resource. + // Must be less than 256 characters. + string description = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. This is set to true if the auth_provider is deleted. + bool deleted = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the auth_provider will expire. + google.protobuf.Timestamp expire_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the auth_provider. + State state = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Input only. Represents the workload identity in IAM + // `principal://` format of the agent(s) that will use this AuthProvider. + // Example: + // `principal://agents.global.org-${ORG_ID}.system.id.goog/resources/aiplatform/projects/{PROJECT_ID}/locations/{LOCATIONS}/reasoningEngines/{ID}` + repeated string workload_ids = 12 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; +} + +// Message describing ThreeLeggedOAuth object. +message ThreeLeggedOAuth { + // Optional. Input only. The client secret of the OAuth client. + string client_secret = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Optional. The client ID of the OAuth client. + string client_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The redirect URL this auth_provider uses for the OAuth + // exchange. This is deterministic based on the name of the auth_provider. + string redirect_url = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The authorization endpoint to send users to for consenting to + // delegate to the agent. eg. "https://auth.example.com/authorize" + string authorization_url = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The token endpoint for requesting tokens on behalf of an end + // user. eg. "https://auth.example.com/oauth/token" + string token_url = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Enables Proof Key for Code Exchange (PKCE) for the OAuth flow to + // prevent authorization code interception attacks. + bool enable_pkce = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The default continue URI for 3LO flow and it will be used when no + // continue URI is provided in the RetrieveCredentials request. + string default_continue_uri = 7 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message describing TwoLeggedOAuth object. +message TwoLeggedOAuth { + // Optional. Input only. The client secret of the OAuth client. + string client_secret = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; + + // Optional. The client ID of the OAuth client. + string client_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The token endpoint of the OAuth client. + string token_url = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message describing ApiKeyParams object. +message ApiKeyParams { + // Optional. Input only. The API key for this auth_provider. + string api_key = 1 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.field_behavior) = INPUT_ONLY + ]; +} + +// Message describing GeminiEnterpriseAuthProviderParams object. +message GeminiEnterpriseAuthProviderParams {} + +// Message for requesting list of AuthProviders +message ListAuthProvidersRequest { + // Required. The parent resource where the search is performed. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token, which can be sent as `page_token` to retrieve the next + // page. If this field is omitted, the first page is returned. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter results. This field is currently ignored. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Currently ignored. + // Defaults to ordering by auth_provider_id in ascending order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Deleted auth_providers will be kept with a soft-delete for 30 + // days before being purged. If this field is set to true, deleted + // auth_providers will also + // be returned. + bool show_deleted = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing AuthProviders +message ListAuthProvidersResponse { + // The list of AuthProvider + repeated AuthProvider auth_providers = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Message for getting a AuthProvider +message GetAuthProviderRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; +} + +// Message for creating a AuthProvider +message CreateAuthProviderRequest { + // Required. The parent resource where the AuthProvider is created. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Required. The ID to use for the AuthProvider, which will become the final + // segment of the AuthProvider's resource name. This value should be 1-63 + // characters, and valid characters are /[a-z][0-9]-/. The first character + // must be a lowercase letter, and the last character must be a lowercase + // letter or a number. + string auth_provider_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The AuthProvider to create. + AuthProvider auth_provider = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for updating a AuthProvider +message UpdateAuthProviderRequest { + // Optional. Field mask is used to specify the fields to be overwritten in the + // AuthProvider resource by the update. + // The fields specified in the update_mask are relative to the resource, not + // the full request. A field will be overwritten if it is in the mask. If the + // user does not provide a mask then all fields present in the request will be + // overwritten. + google.protobuf.FieldMask update_mask = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. The AuthProvider resource which replaces the resource on the + // server. + AuthProvider auth_provider = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes since the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for deleting a AuthProvider +message DeleteAuthProviderRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for undeleting a AuthProvider +message UndeleteAuthProviderRequest { + // Required. Name of the resource + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for enabling an AuthProvider +message EnableAuthProviderRequest { + // Required. Name of the resource + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message for disabling an AuthProvider +message DisableAuthProviderRequest { + // Required. Name of the resource + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message describing Authorization object +message Authorization { + option (google.api.resource) = { + type: "agentidentity.googleapis.com/Authorization" + pattern: "projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization}" + plural: "authorizations" + singular: "authorization" + }; + + // Represents the state of the authorization. + enum State { + // Unspecified state. + STATE_UNSPECIFIED = 0; + + // Active. + ACTIVE = 1; + + // Suspended. + SUSPENDED = 2; + } + + // Identifier. name of resource + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. [Output only] Create time stamp + google.protobuf.Timestamp create_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. [Output only] Update time stamp + google.protobuf.Timestamp update_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The client_user_id provided by the client application for + // their end user. Not verified by Google. + string client_user_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The scopes actually granted by the end user during the consent + // flow. + repeated string scopes = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of the authorization. + State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Message for requesting list of Authorizations +message ListAuthorizationsRequest { + // Required. The parent resource where the search is performed. + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentidentity.googleapis.com/Authorization" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `ListAuthorizations` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListAuthorizations` + // must match the call that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter string to restrict the results. + // Currently supports filtering by `client_user_id` only. + // Format: `client_user_id=""` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field is currently ignored. + // Defaults to ordering by authorization_id in ascending order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing Authorizations +message ListAuthorizationsResponse { + // The list of Authorization + repeated Authorization authorizations = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Message for getting a Authorization +message GetAuthorizationRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/Authorization" + } + ]; +} + +// Message for deleting an Authorization +message DeleteAuthorizationRequest { + // Required. The name of the Authorization to delete. + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider}/authorizations/{authorization} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/Authorization" + } + ]; + + // Optional. An optional request ID to identify requests. Specify a unique + // request ID so that if you must retry your request, the server will know to + // ignore the request if it has already been completed. The server will + // guarantee that for at least 60 minutes after the first request. + // + // For example, consider a situation where you make an initial request and the + // request times out. If you make the request again with the same request + // ID, the server can check if original operation with the same request ID + // was received, and if so, will ignore the second request. This prevents + // clients from accidentally creating duplicate commitments. + // + // The request ID must be a valid UUID with the exception that zero UUID is + // not supported (00000000-0000-0000-0000-000000000000). + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + +// Message describing AccessSummary object +message AccessSummary { + option (google.api.resource) = { + type: "agentidentity.googleapis.com/AccessSummary" + pattern: "projects/{project}/locations/{location}/accessSummaries/{access_summary}" + plural: "accessSummaries" + singular: "accessSummary" + }; + + // Output only. Identifier. Name of the AccessSummary + string name = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.field_behavior) = IDENTIFIER + ]; + + // Output only. The first time this user has interacted with this workload. + // Rounded to the previous hour. + google.protobuf.Timestamp first_access_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The most recent time this user has interacted with this + // workload. Rounded to the previous hour. + google.protobuf.Timestamp last_access_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Labels as key value pairs + map labels = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The user_id provided by the workload application for this + // user. Not verified by Google. + string user_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The identity bound to the workload that this user interacted + // with to produce this AccessSummary. Will typically be an agentic spiffe id + string workload_id = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The url of the authentication server that was accessed. + string token_url = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. All scopes that have been used by this user with this + // workload. The number of scopes is limited to 200. + repeated string scopes = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The auth_provider that this access summary is associated with. + string auth_provider = 9 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Output only. The time when this access summary is permanently deleted. + google.protobuf.Timestamp purge_time = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The type of the connector that was used to create this access + // summary. + AuthProviderType auth_provider_type = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Message for requesting list of AccessSummaries +message ListAccessSummariesRequest { + // Required. The parent resource where the search is performed. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentidentity.googleapis.com/AccessSummary" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Filter string to restrict the results. + // + // Currently supports filtering by `workload_id` or `auth_provider_name`. + // If no filter is provided, returns all access summaries for the requested + // project and location. Format: `workload_id=""` or + // `auth_provider_name=""` + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. This field is currently ignored. + // Defaults to ordering by (auth_provider_id, user_id) in ascending order. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Message for response to listing AccessSummaries +message ListAccessSummariesResponse { + // The list of AccessSummary + repeated AccessSummary access_summaries = 1; + + // A token identifying a page of results the server should return. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Message for getting a AccessSummary +message GetAccessSummaryRequest { + // Required. Name of the resource + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AccessSummary" + } + ]; +} + +// Request message for QueryAuthProviders. +message QueryAuthProvidersRequest { + // Required. The parent resource where the search is performed. + // Format: projects/{project}/locations/{location} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Required. The workload identifier to filter by. + string workload_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. The + // maximum page size is 1000. + int32 page_size = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token, which can be sent as `page_token` to retrieve the next + // page. If this field is omitted, the first page is returned. + // + // A page token, received from a previous QueryAuthProviders call. + // Provide this to retrieve the subsequent page. When paginating, all other + // parameters provided to QueryAuthProviders must match the call that provided + // the page token. + string page_token = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for QueryAuthProviders. +message QueryAuthProvidersResponse { + // The unique list of auth_provider resource names used by the workload. + repeated string auth_provider_names = 1; + + // A token identifying a page of results the server should return. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for QueryWorkloads. +message QueryWorkloadsRequest { + // Required. The name of the auth_provider to query. + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Optional. Requested page size. Server may return fewer items than + // requested. If unspecified, server will pick an appropriate default. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token, which can be sent as `page_token` to retrieve the next + // page. When paginating, all other parameters provided to QueryWorkloads must + // match the call that provided the page token. If this field is omitted, the + // first page is returned. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for QueryWorkloads. +message QueryWorkloadsResponse { + // The unique list of workload identifiers (agents) that used the + // auth_provider. + repeated string workload_ids = 1; + + // A token to retrieve the next page of results. + string next_page_token = 2; +} + +// Request message for RevokeAuthorization. +message RevokeAuthorizationRequest { + // Required. The resource name of the AuthProvider. + // Format: + // projects/{project}/locations/{location}/authProviders/{auth_provider} + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "agentidentity.googleapis.com/AuthProvider" + } + ]; + + // Required. The identity of the user to revoke authorization for. + string user_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for RevokeAuthorization. +message RevokeAuthorizationResponse {} diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/create/SyncCreateSetCredentialsProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..87f4605c0798 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.AuthProviderServiceSettings; +import com.google.cloud.agentidentity.v1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + AuthProviderServiceSettings authProviderServiceSettings = + AuthProviderServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AuthProviderServiceClient authProviderServiceClient = + AuthProviderServiceClient.create(authProviderServiceSettings); + } +} +// [END agentidentity_v1_generated_AuthProviderService_Create_SetCredentialsProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/create/SyncCreateSetEndpoint.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..56c22627b40c --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_Create_SetEndpoint_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.AuthProviderServiceSettings; +import com.google.cloud.agentidentity.v1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + AuthProviderServiceSettings authProviderServiceSettings = + AuthProviderServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AuthProviderServiceClient authProviderServiceClient = + AuthProviderServiceClient.create(authProviderServiceSettings); + } +} +// [END agentidentity_v1_generated_AuthProviderService_Create_SetEndpoint_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/create/SyncCreateUseHttpJsonTransport.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..dd73fb42fda4 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.AuthProviderServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // 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 + AuthProviderServiceSettings authProviderServiceSettings = + AuthProviderServiceSettings.newHttpJsonBuilder().build(); + AuthProviderServiceClient authProviderServiceClient = + AuthProviderServiceClient.create(authProviderServiceSettings); + } +} +// [END agentidentity_v1_generated_AuthProviderService_Create_UseHttpJsonTransport_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/AsyncCreateAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/AsyncCreateAuthProvider.java new file mode 100644 index 000000000000..32bf7a9ef7ad --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/AsyncCreateAuthProvider.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_CreateAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.CreateAuthProviderRequest; +import com.google.cloud.agentidentity.v1.LocationName; + +public class AsyncCreateAuthProvider { + + public static void main(String[] args) throws Exception { + asyncCreateAuthProvider(); + } + + public static void asyncCreateAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + CreateAuthProviderRequest request = + CreateAuthProviderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAuthProviderId("authProviderId325000884") + .setAuthProvider(AuthProvider.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.createAuthProviderCallable().futureCall(request); + // Do something. + AuthProvider response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_CreateAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/SyncCreateAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/SyncCreateAuthProvider.java new file mode 100644 index 000000000000..3d938f39a0c5 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/SyncCreateAuthProvider.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_CreateAuthProvider_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.CreateAuthProviderRequest; +import com.google.cloud.agentidentity.v1.LocationName; + +public class SyncCreateAuthProvider { + + public static void main(String[] args) throws Exception { + syncCreateAuthProvider(); + } + + public static void syncCreateAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + CreateAuthProviderRequest request = + CreateAuthProviderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAuthProviderId("authProviderId325000884") + .setAuthProvider(AuthProvider.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AuthProvider response = authProviderServiceClient.createAuthProvider(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_CreateAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/SyncCreateAuthProviderLocationnameAuthproviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/SyncCreateAuthProviderLocationnameAuthproviderString.java new file mode 100644 index 000000000000..d9aeb5e0f010 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/SyncCreateAuthProviderLocationnameAuthproviderString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_CreateAuthProvider_LocationnameAuthproviderString_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.LocationName; + +public class SyncCreateAuthProviderLocationnameAuthproviderString { + + public static void main(String[] args) throws Exception { + syncCreateAuthProviderLocationnameAuthproviderString(); + } + + public static void syncCreateAuthProviderLocationnameAuthproviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + AuthProvider response = + authProviderServiceClient.createAuthProvider(parent, authProvider, authProviderId); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_CreateAuthProvider_LocationnameAuthproviderString_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/SyncCreateAuthProviderStringAuthproviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/SyncCreateAuthProviderStringAuthproviderString.java new file mode 100644 index 000000000000..a2a691de9fae --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/createauthprovider/SyncCreateAuthProviderStringAuthproviderString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_CreateAuthProvider_StringAuthproviderString_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.LocationName; + +public class SyncCreateAuthProviderStringAuthproviderString { + + public static void main(String[] args) throws Exception { + syncCreateAuthProviderStringAuthproviderString(); + } + + public static void syncCreateAuthProviderStringAuthproviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + AuthProvider response = + authProviderServiceClient.createAuthProvider(parent, authProvider, authProviderId); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_CreateAuthProvider_StringAuthproviderString_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/AsyncDeleteAuthorization.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/AsyncDeleteAuthorization.java new file mode 100644 index 000000000000..95e19245abf7 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/AsyncDeleteAuthorization.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_DeleteAuthorization_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.AuthorizationName; +import com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteAuthorization { + + public static void main(String[] args) throws Exception { + asyncDeleteAuthorization(); + } + + public static void asyncDeleteAuthorization() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + DeleteAuthorizationRequest request = + DeleteAuthorizationRequest.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.deleteAuthorizationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_DeleteAuthorization_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/SyncDeleteAuthorization.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/SyncDeleteAuthorization.java new file mode 100644 index 000000000000..0e296a4264af --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/SyncDeleteAuthorization.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_DeleteAuthorization_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.AuthorizationName; +import com.google.cloud.agentidentity.v1.DeleteAuthorizationRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthorization { + + public static void main(String[] args) throws Exception { + syncDeleteAuthorization(); + } + + public static void syncDeleteAuthorization() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + DeleteAuthorizationRequest request = + DeleteAuthorizationRequest.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + authProviderServiceClient.deleteAuthorization(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_DeleteAuthorization_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/SyncDeleteAuthorizationAuthorizationname.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/SyncDeleteAuthorizationAuthorizationname.java new file mode 100644 index 000000000000..81b39e08b81c --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/SyncDeleteAuthorizationAuthorizationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_DeleteAuthorization_Authorizationname_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.AuthorizationName; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthorizationAuthorizationname { + + public static void main(String[] args) throws Exception { + syncDeleteAuthorizationAuthorizationname(); + } + + public static void syncDeleteAuthorizationAuthorizationname() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + authProviderServiceClient.deleteAuthorization(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_DeleteAuthorization_Authorizationname_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/SyncDeleteAuthorizationString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/SyncDeleteAuthorizationString.java new file mode 100644 index 000000000000..80505e888a6e --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthorization/SyncDeleteAuthorizationString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_DeleteAuthorization_String_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.AuthorizationName; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthorizationString { + + public static void main(String[] args) throws Exception { + syncDeleteAuthorizationString(); + } + + public static void syncDeleteAuthorizationString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString(); + authProviderServiceClient.deleteAuthorization(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_DeleteAuthorization_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/AsyncDeleteAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/AsyncDeleteAuthProvider.java new file mode 100644 index 000000000000..78d56d2a0ad3 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/AsyncDeleteAuthProvider.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_DeleteAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteAuthProvider { + + public static void main(String[] args) throws Exception { + asyncDeleteAuthProvider(); + } + + public static void asyncDeleteAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + DeleteAuthProviderRequest request = + DeleteAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.deleteAuthProviderCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_DeleteAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/SyncDeleteAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/SyncDeleteAuthProvider.java new file mode 100644 index 000000000000..6210cd2f8f1a --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/SyncDeleteAuthProvider.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_DeleteAuthProvider_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.DeleteAuthProviderRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthProvider { + + public static void main(String[] args) throws Exception { + syncDeleteAuthProvider(); + } + + public static void syncDeleteAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + DeleteAuthProviderRequest request = + DeleteAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + authProviderServiceClient.deleteAuthProvider(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_DeleteAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderAuthprovidername.java new file mode 100644 index 000000000000..30b450db87f9 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderAuthprovidername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_DeleteAuthProvider_Authprovidername_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthProviderAuthprovidername { + + public static void main(String[] args) throws Exception { + syncDeleteAuthProviderAuthprovidername(); + } + + public static void syncDeleteAuthProviderAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + authProviderServiceClient.deleteAuthProvider(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_DeleteAuthProvider_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderString.java new file mode 100644 index 000000000000..69b5444d0138 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_DeleteAuthProvider_String_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthProviderString { + + public static void main(String[] args) throws Exception { + syncDeleteAuthProviderString(); + } + + public static void syncDeleteAuthProviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + authProviderServiceClient.deleteAuthProvider(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_DeleteAuthProvider_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/AsyncDisableAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/AsyncDisableAuthProvider.java new file mode 100644 index 000000000000..8a744a6a8cc2 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/AsyncDisableAuthProvider.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_DisableAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.DisableAuthProviderRequest; + +public class AsyncDisableAuthProvider { + + public static void main(String[] args) throws Exception { + asyncDisableAuthProvider(); + } + + public static void asyncDisableAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + DisableAuthProviderRequest request = + DisableAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.disableAuthProviderCallable().futureCall(request); + // Do something. + AuthProvider response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_DisableAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/SyncDisableAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/SyncDisableAuthProvider.java new file mode 100644 index 000000000000..846ee8ae7116 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/SyncDisableAuthProvider.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_DisableAuthProvider_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.DisableAuthProviderRequest; + +public class SyncDisableAuthProvider { + + public static void main(String[] args) throws Exception { + syncDisableAuthProvider(); + } + + public static void syncDisableAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + DisableAuthProviderRequest request = + DisableAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + AuthProvider response = authProviderServiceClient.disableAuthProvider(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_DisableAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/SyncDisableAuthProviderAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/SyncDisableAuthProviderAuthprovidername.java new file mode 100644 index 000000000000..07011c400bf8 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/SyncDisableAuthProviderAuthprovidername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_DisableAuthProvider_Authprovidername_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; + +public class SyncDisableAuthProviderAuthprovidername { + + public static void main(String[] args) throws Exception { + syncDisableAuthProviderAuthprovidername(); + } + + public static void syncDisableAuthProviderAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + AuthProvider response = authProviderServiceClient.disableAuthProvider(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_DisableAuthProvider_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/SyncDisableAuthProviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/SyncDisableAuthProviderString.java new file mode 100644 index 000000000000..0c74b328cd51 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/disableauthprovider/SyncDisableAuthProviderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_DisableAuthProvider_String_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; + +public class SyncDisableAuthProviderString { + + public static void main(String[] args) throws Exception { + syncDisableAuthProviderString(); + } + + public static void syncDisableAuthProviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + AuthProvider response = authProviderServiceClient.disableAuthProvider(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_DisableAuthProvider_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/AsyncEnableAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/AsyncEnableAuthProvider.java new file mode 100644 index 000000000000..6008165b93df --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/AsyncEnableAuthProvider.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_EnableAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.EnableAuthProviderRequest; + +public class AsyncEnableAuthProvider { + + public static void main(String[] args) throws Exception { + asyncEnableAuthProvider(); + } + + public static void asyncEnableAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + EnableAuthProviderRequest request = + EnableAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.enableAuthProviderCallable().futureCall(request); + // Do something. + AuthProvider response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_EnableAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/SyncEnableAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/SyncEnableAuthProvider.java new file mode 100644 index 000000000000..a80abfeb5d63 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/SyncEnableAuthProvider.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_EnableAuthProvider_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.EnableAuthProviderRequest; + +public class SyncEnableAuthProvider { + + public static void main(String[] args) throws Exception { + syncEnableAuthProvider(); + } + + public static void syncEnableAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + EnableAuthProviderRequest request = + EnableAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + AuthProvider response = authProviderServiceClient.enableAuthProvider(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_EnableAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/SyncEnableAuthProviderAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/SyncEnableAuthProviderAuthprovidername.java new file mode 100644 index 000000000000..68cc9b2bac0d --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/SyncEnableAuthProviderAuthprovidername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_EnableAuthProvider_Authprovidername_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; + +public class SyncEnableAuthProviderAuthprovidername { + + public static void main(String[] args) throws Exception { + syncEnableAuthProviderAuthprovidername(); + } + + public static void syncEnableAuthProviderAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + AuthProvider response = authProviderServiceClient.enableAuthProvider(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_EnableAuthProvider_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/SyncEnableAuthProviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/SyncEnableAuthProviderString.java new file mode 100644 index 000000000000..707351a9fe09 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/enableauthprovider/SyncEnableAuthProviderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_EnableAuthProvider_String_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; + +public class SyncEnableAuthProviderString { + + public static void main(String[] args) throws Exception { + syncEnableAuthProviderString(); + } + + public static void syncEnableAuthProviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + AuthProvider response = authProviderServiceClient.enableAuthProvider(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_EnableAuthProvider_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/AsyncGetAccessSummary.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/AsyncGetAccessSummary.java new file mode 100644 index 000000000000..80b0557faa4c --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/AsyncGetAccessSummary.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetAccessSummary_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AccessSummaryName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.GetAccessSummaryRequest; + +public class AsyncGetAccessSummary { + + public static void main(String[] args) throws Exception { + asyncGetAccessSummary(); + } + + public static void asyncGetAccessSummary() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetAccessSummaryRequest request = + GetAccessSummaryRequest.newBuilder() + .setName( + AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString()) + .build(); + ApiFuture future = + authProviderServiceClient.getAccessSummaryCallable().futureCall(request); + // Do something. + AccessSummary response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetAccessSummary_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/SyncGetAccessSummary.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/SyncGetAccessSummary.java new file mode 100644 index 000000000000..7d948e7120e2 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/SyncGetAccessSummary.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetAccessSummary_sync] +import com.google.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AccessSummaryName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.GetAccessSummaryRequest; + +public class SyncGetAccessSummary { + + public static void main(String[] args) throws Exception { + syncGetAccessSummary(); + } + + public static void syncGetAccessSummary() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetAccessSummaryRequest request = + GetAccessSummaryRequest.newBuilder() + .setName( + AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString()) + .build(); + AccessSummary response = authProviderServiceClient.getAccessSummary(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetAccessSummary_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/SyncGetAccessSummaryAccesssummaryname.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/SyncGetAccessSummaryAccesssummaryname.java new file mode 100644 index 000000000000..a845fcba1a9c --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/SyncGetAccessSummaryAccesssummaryname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetAccessSummary_Accesssummaryname_sync] +import com.google.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AccessSummaryName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; + +public class SyncGetAccessSummaryAccesssummaryname { + + public static void main(String[] args) throws Exception { + syncGetAccessSummaryAccesssummaryname(); + } + + public static void syncGetAccessSummaryAccesssummaryname() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]"); + AccessSummary response = authProviderServiceClient.getAccessSummary(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetAccessSummary_Accesssummaryname_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/SyncGetAccessSummaryString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/SyncGetAccessSummaryString.java new file mode 100644 index 000000000000..73ed560e4e6f --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getaccesssummary/SyncGetAccessSummaryString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetAccessSummary_String_sync] +import com.google.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AccessSummaryName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; + +public class SyncGetAccessSummaryString { + + public static void main(String[] args) throws Exception { + syncGetAccessSummaryString(); + } + + public static void syncGetAccessSummaryString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString(); + AccessSummary response = authProviderServiceClient.getAccessSummary(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetAccessSummary_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/AsyncGetAuthorization.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/AsyncGetAuthorization.java new file mode 100644 index 000000000000..a25b5ae211df --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/AsyncGetAuthorization.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetAuthorization_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.Authorization; +import com.google.cloud.agentidentity.v1.AuthorizationName; +import com.google.cloud.agentidentity.v1.GetAuthorizationRequest; + +public class AsyncGetAuthorization { + + public static void main(String[] args) throws Exception { + asyncGetAuthorization(); + } + + public static void asyncGetAuthorization() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetAuthorizationRequest request = + GetAuthorizationRequest.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .build(); + ApiFuture future = + authProviderServiceClient.getAuthorizationCallable().futureCall(request); + // Do something. + Authorization response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetAuthorization_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/SyncGetAuthorization.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/SyncGetAuthorization.java new file mode 100644 index 000000000000..164f47724d3b --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/SyncGetAuthorization.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetAuthorization_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.Authorization; +import com.google.cloud.agentidentity.v1.AuthorizationName; +import com.google.cloud.agentidentity.v1.GetAuthorizationRequest; + +public class SyncGetAuthorization { + + public static void main(String[] args) throws Exception { + syncGetAuthorization(); + } + + public static void syncGetAuthorization() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetAuthorizationRequest request = + GetAuthorizationRequest.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .build(); + Authorization response = authProviderServiceClient.getAuthorization(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetAuthorization_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/SyncGetAuthorizationAuthorizationname.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/SyncGetAuthorizationAuthorizationname.java new file mode 100644 index 000000000000..269ae4de5966 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/SyncGetAuthorizationAuthorizationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetAuthorization_Authorizationname_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.Authorization; +import com.google.cloud.agentidentity.v1.AuthorizationName; + +public class SyncGetAuthorizationAuthorizationname { + + public static void main(String[] args) throws Exception { + syncGetAuthorizationAuthorizationname(); + } + + public static void syncGetAuthorizationAuthorizationname() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + Authorization response = authProviderServiceClient.getAuthorization(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetAuthorization_Authorizationname_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/SyncGetAuthorizationString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/SyncGetAuthorizationString.java new file mode 100644 index 000000000000..b87b34129b59 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthorization/SyncGetAuthorizationString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetAuthorization_String_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.Authorization; +import com.google.cloud.agentidentity.v1.AuthorizationName; + +public class SyncGetAuthorizationString { + + public static void main(String[] args) throws Exception { + syncGetAuthorizationString(); + } + + public static void syncGetAuthorizationString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString(); + Authorization response = authProviderServiceClient.getAuthorization(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetAuthorization_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/AsyncGetAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/AsyncGetAuthProvider.java new file mode 100644 index 000000000000..01932a9457f0 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/AsyncGetAuthProvider.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.GetAuthProviderRequest; + +public class AsyncGetAuthProvider { + + public static void main(String[] args) throws Exception { + asyncGetAuthProvider(); + } + + public static void asyncGetAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetAuthProviderRequest request = + GetAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .build(); + ApiFuture future = + authProviderServiceClient.getAuthProviderCallable().futureCall(request); + // Do something. + AuthProvider response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/SyncGetAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/SyncGetAuthProvider.java new file mode 100644 index 000000000000..527e37809312 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/SyncGetAuthProvider.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetAuthProvider_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.GetAuthProviderRequest; + +public class SyncGetAuthProvider { + + public static void main(String[] args) throws Exception { + syncGetAuthProvider(); + } + + public static void syncGetAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetAuthProviderRequest request = + GetAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .build(); + AuthProvider response = authProviderServiceClient.getAuthProvider(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/SyncGetAuthProviderAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/SyncGetAuthProviderAuthprovidername.java new file mode 100644 index 000000000000..f6fa7c91ab3a --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/SyncGetAuthProviderAuthprovidername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetAuthProvider_Authprovidername_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; + +public class SyncGetAuthProviderAuthprovidername { + + public static void main(String[] args) throws Exception { + syncGetAuthProviderAuthprovidername(); + } + + public static void syncGetAuthProviderAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + AuthProvider response = authProviderServiceClient.getAuthProvider(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetAuthProvider_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/SyncGetAuthProviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/SyncGetAuthProviderString.java new file mode 100644 index 000000000000..14c624e375c2 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getauthprovider/SyncGetAuthProviderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetAuthProvider_String_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; + +public class SyncGetAuthProviderString { + + public static void main(String[] args) throws Exception { + syncGetAuthProviderString(); + } + + public static void syncGetAuthProviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + AuthProvider response = authProviderServiceClient.getAuthProvider(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetAuthProvider_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getiampolicy/AsyncGetIamPolicy.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..746213c4eff4 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + authProviderServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetIamPolicy_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getiampolicy/SyncGetIamPolicy.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..0ba1755c3a0d --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetIamPolicy_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = authProviderServiceClient.getIamPolicy(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetIamPolicy_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getlocation/AsyncGetLocation.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..797df04d03ce --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + authProviderServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetLocation_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getlocation/SyncGetLocation.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..48e1f8facc89 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_GetLocation_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = authProviderServiceClient.getLocation(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_GetLocation_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/AsyncListAccessSummaries.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/AsyncListAccessSummaries.java new file mode 100644 index 000000000000..e513105218ce --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/AsyncListAccessSummaries.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAccessSummaries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1.LocationName; + +public class AsyncListAccessSummaries { + + public static void main(String[] args) throws Exception { + asyncListAccessSummaries(); + } + + public static void asyncListAccessSummaries() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAccessSummariesRequest request = + ListAccessSummariesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + authProviderServiceClient.listAccessSummariesPagedCallable().futureCall(request); + // Do something. + for (AccessSummary element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAccessSummaries_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/AsyncListAccessSummariesPaged.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/AsyncListAccessSummariesPaged.java new file mode 100644 index 000000000000..e0caf6952017 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/AsyncListAccessSummariesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAccessSummaries_Paged_async] +import com.google.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1.ListAccessSummariesResponse; +import com.google.cloud.agentidentity.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAccessSummariesPaged { + + public static void main(String[] args) throws Exception { + asyncListAccessSummariesPaged(); + } + + public static void asyncListAccessSummariesPaged() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAccessSummariesRequest request = + ListAccessSummariesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAccessSummariesResponse response = + authProviderServiceClient.listAccessSummariesCallable().call(request); + for (AccessSummary element : response.getAccessSummariesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAccessSummaries_Paged_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/SyncListAccessSummaries.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/SyncListAccessSummaries.java new file mode 100644 index 000000000000..43d9b055f3fe --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/SyncListAccessSummaries.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAccessSummaries_sync] +import com.google.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1.LocationName; + +public class SyncListAccessSummaries { + + public static void main(String[] args) throws Exception { + syncListAccessSummaries(); + } + + public static void syncListAccessSummaries() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAccessSummariesRequest request = + ListAccessSummariesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (AccessSummary element : + authProviderServiceClient.listAccessSummaries(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAccessSummaries_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/SyncListAccessSummariesLocationname.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/SyncListAccessSummariesLocationname.java new file mode 100644 index 000000000000..8e1f511f4291 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/SyncListAccessSummariesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAccessSummaries_Locationname_sync] +import com.google.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.LocationName; + +public class SyncListAccessSummariesLocationname { + + public static void main(String[] args) throws Exception { + syncListAccessSummariesLocationname(); + } + + public static void syncListAccessSummariesLocationname() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AccessSummary element : + authProviderServiceClient.listAccessSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAccessSummaries_Locationname_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/SyncListAccessSummariesString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/SyncListAccessSummariesString.java new file mode 100644 index 000000000000..aba5d7193b3f --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listaccesssummaries/SyncListAccessSummariesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAccessSummaries_String_sync] +import com.google.cloud.agentidentity.v1.AccessSummary; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.LocationName; + +public class SyncListAccessSummariesString { + + public static void main(String[] args) throws Exception { + syncListAccessSummariesString(); + } + + public static void syncListAccessSummariesString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AccessSummary element : + authProviderServiceClient.listAccessSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAccessSummaries_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/AsyncListAuthorizations.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/AsyncListAuthorizations.java new file mode 100644 index 000000000000..eddaf34bada8 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/AsyncListAuthorizations.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAuthorizations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.Authorization; +import com.google.cloud.agentidentity.v1.ListAuthorizationsRequest; + +public class AsyncListAuthorizations { + + public static void main(String[] args) throws Exception { + asyncListAuthorizations(); + } + + public static void asyncListAuthorizations() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAuthorizationsRequest request = + ListAuthorizationsRequest.newBuilder() + .setParent( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + authProviderServiceClient.listAuthorizationsPagedCallable().futureCall(request); + // Do something. + for (Authorization element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAuthorizations_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/AsyncListAuthorizationsPaged.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/AsyncListAuthorizationsPaged.java new file mode 100644 index 000000000000..6a5a73aa7298 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/AsyncListAuthorizationsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAuthorizations_Paged_async] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.Authorization; +import com.google.cloud.agentidentity.v1.ListAuthorizationsRequest; +import com.google.cloud.agentidentity.v1.ListAuthorizationsResponse; +import com.google.common.base.Strings; + +public class AsyncListAuthorizationsPaged { + + public static void main(String[] args) throws Exception { + asyncListAuthorizationsPaged(); + } + + public static void asyncListAuthorizationsPaged() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAuthorizationsRequest request = + ListAuthorizationsRequest.newBuilder() + .setParent( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAuthorizationsResponse response = + authProviderServiceClient.listAuthorizationsCallable().call(request); + for (Authorization element : response.getAuthorizationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAuthorizations_Paged_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/SyncListAuthorizations.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/SyncListAuthorizations.java new file mode 100644 index 000000000000..6e419cd57220 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/SyncListAuthorizations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAuthorizations_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.Authorization; +import com.google.cloud.agentidentity.v1.ListAuthorizationsRequest; + +public class SyncListAuthorizations { + + public static void main(String[] args) throws Exception { + syncListAuthorizations(); + } + + public static void syncListAuthorizations() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAuthorizationsRequest request = + ListAuthorizationsRequest.newBuilder() + .setParent( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Authorization element : + authProviderServiceClient.listAuthorizations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAuthorizations_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/SyncListAuthorizationsAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/SyncListAuthorizationsAuthprovidername.java new file mode 100644 index 000000000000..ae01aad863ad --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/SyncListAuthorizationsAuthprovidername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAuthorizations_Authprovidername_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.Authorization; + +public class SyncListAuthorizationsAuthprovidername { + + public static void main(String[] args) throws Exception { + syncListAuthorizationsAuthprovidername(); + } + + public static void syncListAuthorizationsAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + for (Authorization element : + authProviderServiceClient.listAuthorizations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAuthorizations_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/SyncListAuthorizationsString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/SyncListAuthorizationsString.java new file mode 100644 index 000000000000..a31c3ff99f21 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthorizations/SyncListAuthorizationsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAuthorizations_String_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.Authorization; + +public class SyncListAuthorizationsString { + + public static void main(String[] args) throws Exception { + syncListAuthorizationsString(); + } + + public static void syncListAuthorizationsString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + for (Authorization element : + authProviderServiceClient.listAuthorizations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAuthorizations_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/AsyncListAuthProviders.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/AsyncListAuthProviders.java new file mode 100644 index 000000000000..a16975756e79 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/AsyncListAuthProviders.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAuthProviders_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1.LocationName; + +public class AsyncListAuthProviders { + + public static void main(String[] args) throws Exception { + asyncListAuthProviders(); + } + + public static void asyncListAuthProviders() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAuthProvidersRequest request = + ListAuthProvidersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setShowDeleted(true) + .build(); + ApiFuture future = + authProviderServiceClient.listAuthProvidersPagedCallable().futureCall(request); + // Do something. + for (AuthProvider element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAuthProviders_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/AsyncListAuthProvidersPaged.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/AsyncListAuthProvidersPaged.java new file mode 100644 index 000000000000..054a4b3e9974 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/AsyncListAuthProvidersPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAuthProviders_Paged_async] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1.ListAuthProvidersResponse; +import com.google.cloud.agentidentity.v1.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAuthProvidersPaged { + + public static void main(String[] args) throws Exception { + asyncListAuthProvidersPaged(); + } + + public static void asyncListAuthProvidersPaged() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAuthProvidersRequest request = + ListAuthProvidersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setShowDeleted(true) + .build(); + while (true) { + ListAuthProvidersResponse response = + authProviderServiceClient.listAuthProvidersCallable().call(request); + for (AuthProvider element : response.getAuthProvidersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAuthProviders_Paged_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/SyncListAuthProviders.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/SyncListAuthProviders.java new file mode 100644 index 000000000000..7c7193dbe9e6 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/SyncListAuthProviders.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAuthProviders_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1.LocationName; + +public class SyncListAuthProviders { + + public static void main(String[] args) throws Exception { + syncListAuthProviders(); + } + + public static void syncListAuthProviders() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAuthProvidersRequest request = + ListAuthProvidersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setShowDeleted(true) + .build(); + for (AuthProvider element : + authProviderServiceClient.listAuthProviders(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAuthProviders_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/SyncListAuthProvidersLocationname.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/SyncListAuthProvidersLocationname.java new file mode 100644 index 000000000000..a5124d74f39b --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/SyncListAuthProvidersLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAuthProviders_Locationname_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.LocationName; + +public class SyncListAuthProvidersLocationname { + + public static void main(String[] args) throws Exception { + syncListAuthProvidersLocationname(); + } + + public static void syncListAuthProvidersLocationname() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AuthProvider element : + authProviderServiceClient.listAuthProviders(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAuthProviders_Locationname_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/SyncListAuthProvidersString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/SyncListAuthProvidersString.java new file mode 100644 index 000000000000..90f588349a0a --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listauthproviders/SyncListAuthProvidersString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListAuthProviders_String_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.LocationName; + +public class SyncListAuthProvidersString { + + public static void main(String[] args) throws Exception { + syncListAuthProvidersString(); + } + + public static void syncListAuthProvidersString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AuthProvider element : + authProviderServiceClient.listAuthProviders(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListAuthProviders_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listlocations/AsyncListLocations.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..427142c34932 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + authProviderServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListLocations_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listlocations/AsyncListLocationsPaged.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..899a7bb5ae57 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListLocations_Paged_async] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + authProviderServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListLocations_Paged_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listlocations/SyncListLocations.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..06f44cee7d5b --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_ListLocations_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : authProviderServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_ListLocations_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/AsyncQueryAuthProviders.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/AsyncQueryAuthProviders.java new file mode 100644 index 000000000000..57ebe71f8092 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/AsyncQueryAuthProviders.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_QueryAuthProviders_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.LocationName; +import com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest; + +public class AsyncQueryAuthProviders { + + public static void main(String[] args) throws Exception { + asyncQueryAuthProviders(); + } + + public static void asyncQueryAuthProviders() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + QueryAuthProvidersRequest request = + QueryAuthProvidersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setWorkloadId("workloadId-186277134") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + authProviderServiceClient.queryAuthProvidersPagedCallable().futureCall(request); + // Do something. + for (String element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_QueryAuthProviders_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/AsyncQueryAuthProvidersPaged.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/AsyncQueryAuthProvidersPaged.java new file mode 100644 index 000000000000..c250ac4f1cea --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/AsyncQueryAuthProvidersPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_QueryAuthProviders_Paged_async] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.LocationName; +import com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest; +import com.google.cloud.agentidentity.v1.QueryAuthProvidersResponse; +import com.google.common.base.Strings; + +public class AsyncQueryAuthProvidersPaged { + + public static void main(String[] args) throws Exception { + asyncQueryAuthProvidersPaged(); + } + + public static void asyncQueryAuthProvidersPaged() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + QueryAuthProvidersRequest request = + QueryAuthProvidersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setWorkloadId("workloadId-186277134") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + QueryAuthProvidersResponse response = + authProviderServiceClient.queryAuthProvidersCallable().call(request); + for (String element : response.getAuthProviderNamesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_QueryAuthProviders_Paged_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/SyncQueryAuthProviders.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/SyncQueryAuthProviders.java new file mode 100644 index 000000000000..c9f194c12221 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/SyncQueryAuthProviders.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_QueryAuthProviders_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.LocationName; +import com.google.cloud.agentidentity.v1.QueryAuthProvidersRequest; + +public class SyncQueryAuthProviders { + + public static void main(String[] args) throws Exception { + syncQueryAuthProviders(); + } + + public static void syncQueryAuthProviders() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + QueryAuthProvidersRequest request = + QueryAuthProvidersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setWorkloadId("workloadId-186277134") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (String element : authProviderServiceClient.queryAuthProviders(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_QueryAuthProviders_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/SyncQueryAuthProvidersLocationnameString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/SyncQueryAuthProvidersLocationnameString.java new file mode 100644 index 000000000000..b4059fed16af --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/SyncQueryAuthProvidersLocationnameString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_QueryAuthProviders_LocationnameString_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.LocationName; + +public class SyncQueryAuthProvidersLocationnameString { + + public static void main(String[] args) throws Exception { + syncQueryAuthProvidersLocationnameString(); + } + + public static void syncQueryAuthProvidersLocationnameString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String workloadId = "workloadId-186277134"; + for (String element : + authProviderServiceClient.queryAuthProviders(parent, workloadId).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_QueryAuthProviders_LocationnameString_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/SyncQueryAuthProvidersStringString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/SyncQueryAuthProvidersStringString.java new file mode 100644 index 000000000000..b7809ae71af8 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryauthproviders/SyncQueryAuthProvidersStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_QueryAuthProviders_StringString_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.LocationName; + +public class SyncQueryAuthProvidersStringString { + + public static void main(String[] args) throws Exception { + syncQueryAuthProvidersStringString(); + } + + public static void syncQueryAuthProvidersStringString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String workloadId = "workloadId-186277134"; + for (String element : + authProviderServiceClient.queryAuthProviders(parent, workloadId).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_QueryAuthProviders_StringString_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/AsyncQueryWorkloads.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/AsyncQueryWorkloads.java new file mode 100644 index 000000000000..46bbf438caf2 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/AsyncQueryWorkloads.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_QueryWorkloads_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.QueryWorkloadsRequest; + +public class AsyncQueryWorkloads { + + public static void main(String[] args) throws Exception { + asyncQueryWorkloads(); + } + + public static void asyncQueryWorkloads() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + QueryWorkloadsRequest request = + QueryWorkloadsRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + authProviderServiceClient.queryWorkloadsPagedCallable().futureCall(request); + // Do something. + for (String element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_QueryWorkloads_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/AsyncQueryWorkloadsPaged.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/AsyncQueryWorkloadsPaged.java new file mode 100644 index 000000000000..ccf8b5ec4368 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/AsyncQueryWorkloadsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_QueryWorkloads_Paged_async] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.QueryWorkloadsRequest; +import com.google.cloud.agentidentity.v1.QueryWorkloadsResponse; +import com.google.common.base.Strings; + +public class AsyncQueryWorkloadsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryWorkloadsPaged(); + } + + public static void asyncQueryWorkloadsPaged() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + QueryWorkloadsRequest request = + QueryWorkloadsRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + QueryWorkloadsResponse response = + authProviderServiceClient.queryWorkloadsCallable().call(request); + for (String element : response.getWorkloadIdsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_QueryWorkloads_Paged_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/SyncQueryWorkloads.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/SyncQueryWorkloads.java new file mode 100644 index 000000000000..8a80f54b5214 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/SyncQueryWorkloads.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_QueryWorkloads_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.QueryWorkloadsRequest; + +public class SyncQueryWorkloads { + + public static void main(String[] args) throws Exception { + syncQueryWorkloads(); + } + + public static void syncQueryWorkloads() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + QueryWorkloadsRequest request = + QueryWorkloadsRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (String element : authProviderServiceClient.queryWorkloads(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_QueryWorkloads_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/SyncQueryWorkloadsAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/SyncQueryWorkloadsAuthprovidername.java new file mode 100644 index 000000000000..e4f1a0214d34 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/SyncQueryWorkloadsAuthprovidername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_QueryWorkloads_Authprovidername_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; + +public class SyncQueryWorkloadsAuthprovidername { + + public static void main(String[] args) throws Exception { + syncQueryWorkloadsAuthprovidername(); + } + + public static void syncQueryWorkloadsAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + for (String element : authProviderServiceClient.queryWorkloads(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_QueryWorkloads_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/SyncQueryWorkloadsString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/SyncQueryWorkloadsString.java new file mode 100644 index 000000000000..40a23b1c723e --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/queryworkloads/SyncQueryWorkloadsString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_QueryWorkloads_String_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; + +public class SyncQueryWorkloadsString { + + public static void main(String[] args) throws Exception { + syncQueryWorkloadsString(); + } + + public static void syncQueryWorkloadsString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + for (String element : authProviderServiceClient.queryWorkloads(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_QueryWorkloads_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/AsyncRevokeAuthorization.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/AsyncRevokeAuthorization.java new file mode 100644 index 000000000000..98f49314360e --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/AsyncRevokeAuthorization.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_RevokeAuthorization_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse; + +public class AsyncRevokeAuthorization { + + public static void main(String[] args) throws Exception { + asyncRevokeAuthorization(); + } + + public static void asyncRevokeAuthorization() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + RevokeAuthorizationRequest request = + RevokeAuthorizationRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setUserId("userId-836030906") + .build(); + ApiFuture future = + authProviderServiceClient.revokeAuthorizationCallable().futureCall(request); + // Do something. + RevokeAuthorizationResponse response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_RevokeAuthorization_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/SyncRevokeAuthorization.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/SyncRevokeAuthorization.java new file mode 100644 index 000000000000..99b9e94e9282 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/SyncRevokeAuthorization.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_RevokeAuthorization_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationRequest; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse; + +public class SyncRevokeAuthorization { + + public static void main(String[] args) throws Exception { + syncRevokeAuthorization(); + } + + public static void syncRevokeAuthorization() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + RevokeAuthorizationRequest request = + RevokeAuthorizationRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setUserId("userId-836030906") + .build(); + RevokeAuthorizationResponse response = authProviderServiceClient.revokeAuthorization(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_RevokeAuthorization_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/SyncRevokeAuthorizationAuthprovidernameString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/SyncRevokeAuthorizationAuthprovidernameString.java new file mode 100644 index 000000000000..f611d136f7fb --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/SyncRevokeAuthorizationAuthprovidernameString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_RevokeAuthorization_AuthprovidernameString_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse; + +public class SyncRevokeAuthorizationAuthprovidernameString { + + public static void main(String[] args) throws Exception { + syncRevokeAuthorizationAuthprovidernameString(); + } + + public static void syncRevokeAuthorizationAuthprovidernameString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + String userId = "userId-836030906"; + RevokeAuthorizationResponse response = + authProviderServiceClient.revokeAuthorization(name, userId); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_RevokeAuthorization_AuthprovidernameString_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/SyncRevokeAuthorizationStringString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/SyncRevokeAuthorizationStringString.java new file mode 100644 index 000000000000..1019efaa1974 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/revokeauthorization/SyncRevokeAuthorizationStringString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_RevokeAuthorization_StringString_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.RevokeAuthorizationResponse; + +public class SyncRevokeAuthorizationStringString { + + public static void main(String[] args) throws Exception { + syncRevokeAuthorizationStringString(); + } + + public static void syncRevokeAuthorizationStringString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + String userId = "userId-836030906"; + RevokeAuthorizationResponse response = + authProviderServiceClient.revokeAuthorization(name, userId); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_RevokeAuthorization_StringString_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/setiampolicy/AsyncSetIamPolicy.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..2bbeb8520d5e --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + authProviderServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_SetIamPolicy_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/setiampolicy/SyncSetIamPolicy.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..f1dc6c477ebd --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_SetIamPolicy_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = authProviderServiceClient.setIamPolicy(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_SetIamPolicy_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/testiampermissions/AsyncTestIamPermissions.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..0d6b49252bf8 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + authProviderServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_TestIamPermissions_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/testiampermissions/SyncTestIamPermissions.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..4e529a8cb00b --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_TestIamPermissions_sync] +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = authProviderServiceClient.testIamPermissions(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_TestIamPermissions_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/AsyncUndeleteAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/AsyncUndeleteAuthProvider.java new file mode 100644 index 000000000000..cf68de5c55a3 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/AsyncUndeleteAuthProvider.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_UndeleteAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest; + +public class AsyncUndeleteAuthProvider { + + public static void main(String[] args) throws Exception { + asyncUndeleteAuthProvider(); + } + + public static void asyncUndeleteAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + UndeleteAuthProviderRequest request = + UndeleteAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.undeleteAuthProviderCallable().futureCall(request); + // Do something. + AuthProvider response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_UndeleteAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProvider.java new file mode 100644 index 000000000000..0e88469d8ac3 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProvider.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_UndeleteAuthProvider_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.UndeleteAuthProviderRequest; + +public class SyncUndeleteAuthProvider { + + public static void main(String[] args) throws Exception { + syncUndeleteAuthProvider(); + } + + public static void syncUndeleteAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + UndeleteAuthProviderRequest request = + UndeleteAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + AuthProvider response = authProviderServiceClient.undeleteAuthProvider(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_UndeleteAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderAuthprovidername.java new file mode 100644 index 000000000000..4eab48a175e6 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderAuthprovidername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_UndeleteAuthProvider_Authprovidername_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; + +public class SyncUndeleteAuthProviderAuthprovidername { + + public static void main(String[] args) throws Exception { + syncUndeleteAuthProviderAuthprovidername(); + } + + public static void syncUndeleteAuthProviderAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + AuthProvider response = authProviderServiceClient.undeleteAuthProvider(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_UndeleteAuthProvider_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderString.java new file mode 100644 index 000000000000..10c0ec48ba99 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_UndeleteAuthProvider_String_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderName; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; + +public class SyncUndeleteAuthProviderString { + + public static void main(String[] args) throws Exception { + syncUndeleteAuthProviderString(); + } + + public static void syncUndeleteAuthProviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + AuthProvider response = authProviderServiceClient.undeleteAuthProvider(name); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_UndeleteAuthProvider_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/updateauthprovider/AsyncUpdateAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/updateauthprovider/AsyncUpdateAuthProvider.java new file mode 100644 index 000000000000..edef0d725b18 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/updateauthprovider/AsyncUpdateAuthProvider.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_UpdateAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAuthProvider { + + public static void main(String[] args) throws Exception { + asyncUpdateAuthProvider(); + } + + public static void asyncUpdateAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + UpdateAuthProviderRequest request = + UpdateAuthProviderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAuthProvider(AuthProvider.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.updateAuthProviderCallable().futureCall(request); + // Do something. + AuthProvider response = future.get(); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_UpdateAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/updateauthprovider/SyncUpdateAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/updateauthprovider/SyncUpdateAuthProvider.java new file mode 100644 index 000000000000..20050bee3563 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/updateauthprovider/SyncUpdateAuthProvider.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_UpdateAuthProvider_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1.UpdateAuthProviderRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAuthProvider { + + public static void main(String[] args) throws Exception { + syncUpdateAuthProvider(); + } + + public static void syncUpdateAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + UpdateAuthProviderRequest request = + UpdateAuthProviderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAuthProvider(AuthProvider.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AuthProvider response = authProviderServiceClient.updateAuthProvider(request); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_UpdateAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/updateauthprovider/SyncUpdateAuthProviderAuthproviderFieldmask.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/updateauthprovider/SyncUpdateAuthProviderAuthproviderFieldmask.java new file mode 100644 index 000000000000..1fa6b52688db --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservice/updateauthprovider/SyncUpdateAuthProviderAuthproviderFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderService_UpdateAuthProvider_AuthproviderFieldmask_sync] +import com.google.cloud.agentidentity.v1.AuthProvider; +import com.google.cloud.agentidentity.v1.AuthProviderServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAuthProviderAuthproviderFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAuthProviderAuthproviderFieldmask(); + } + + public static void syncUpdateAuthProviderAuthproviderFieldmask() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProvider authProvider = AuthProvider.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AuthProvider response = + authProviderServiceClient.updateAuthProvider(authProvider, updateMask); + } + } +} +// [END agentidentity_v1_generated_AuthProviderService_UpdateAuthProvider_AuthproviderFieldmask_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservicesettings/getauthprovider/SyncGetAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservicesettings/getauthprovider/SyncGetAuthProvider.java new file mode 100644 index 000000000000..6f81446919ed --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/authproviderservicesettings/getauthprovider/SyncGetAuthProvider.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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.agentidentity.v1.samples; + +// [START agentidentity_v1_generated_AuthProviderServiceSettings_GetAuthProvider_sync] +import com.google.cloud.agentidentity.v1.AuthProviderServiceSettings; +import java.time.Duration; + +public class SyncGetAuthProvider { + + public static void main(String[] args) throws Exception { + syncGetAuthProvider(); + } + + public static void syncGetAuthProvider() throws Exception { + // 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 + AuthProviderServiceSettings.Builder authProviderServiceSettingsBuilder = + AuthProviderServiceSettings.newBuilder(); + authProviderServiceSettingsBuilder + .getAuthProviderSettings() + .setRetrySettings( + authProviderServiceSettingsBuilder + .getAuthProviderSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AuthProviderServiceSettings authProviderServiceSettings = + authProviderServiceSettingsBuilder.build(); + } +} +// [END agentidentity_v1_generated_AuthProviderServiceSettings_GetAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/stub/authproviderservicestubsettings/getauthprovider/SyncGetAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/stub/authproviderservicestubsettings/getauthprovider/SyncGetAuthProvider.java new file mode 100644 index 000000000000..6e5044d37ab4 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1/stub/authproviderservicestubsettings/getauthprovider/SyncGetAuthProvider.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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.agentidentity.v1.stub.samples; + +// [START agentidentity_v1_generated_AuthProviderServiceStubSettings_GetAuthProvider_sync] +import com.google.cloud.agentidentity.v1.stub.AuthProviderServiceStubSettings; +import java.time.Duration; + +public class SyncGetAuthProvider { + + public static void main(String[] args) throws Exception { + syncGetAuthProvider(); + } + + public static void syncGetAuthProvider() throws Exception { + // 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 + AuthProviderServiceStubSettings.Builder authProviderServiceSettingsBuilder = + AuthProviderServiceStubSettings.newBuilder(); + authProviderServiceSettingsBuilder + .getAuthProviderSettings() + .setRetrySettings( + authProviderServiceSettingsBuilder + .getAuthProviderSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AuthProviderServiceStubSettings authProviderServiceSettings = + authProviderServiceSettingsBuilder.build(); + } +} +// [END agentidentity_v1_generated_AuthProviderServiceStubSettings_GetAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/create/SyncCreateSetCredentialsProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..b3dddee42689 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceSettings; +import com.google.cloud.agentidentity.v1beta.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() throws Exception { + // 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 + AuthProviderServiceSettings authProviderServiceSettings = + AuthProviderServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + AuthProviderServiceClient authProviderServiceClient = + AuthProviderServiceClient.create(authProviderServiceSettings); + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_Create_SetCredentialsProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/create/SyncCreateSetEndpoint.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..6498126850c8 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_Create_SetEndpoint_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceSettings; +import com.google.cloud.agentidentity.v1beta.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() throws Exception { + // 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 + AuthProviderServiceSettings authProviderServiceSettings = + AuthProviderServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + AuthProviderServiceClient authProviderServiceClient = + AuthProviderServiceClient.create(authProviderServiceSettings); + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_Create_SetEndpoint_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/create/SyncCreateUseHttpJsonTransport.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/create/SyncCreateUseHttpJsonTransport.java new file mode 100644 index 000000000000..37d6747f7601 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/create/SyncCreateUseHttpJsonTransport.java @@ -0,0 +1,41 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_Create_UseHttpJsonTransport_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceSettings; + +public class SyncCreateUseHttpJsonTransport { + + public static void main(String[] args) throws Exception { + syncCreateUseHttpJsonTransport(); + } + + public static void syncCreateUseHttpJsonTransport() throws Exception { + // 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 + AuthProviderServiceSettings authProviderServiceSettings = + AuthProviderServiceSettings.newHttpJsonBuilder().build(); + AuthProviderServiceClient authProviderServiceClient = + AuthProviderServiceClient.create(authProviderServiceSettings); + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_Create_UseHttpJsonTransport_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/AsyncCreateAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/AsyncCreateAuthProvider.java new file mode 100644 index 000000000000..829071d824b6 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/AsyncCreateAuthProvider.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_CreateAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class AsyncCreateAuthProvider { + + public static void main(String[] args) throws Exception { + asyncCreateAuthProvider(); + } + + public static void asyncCreateAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + CreateAuthProviderRequest request = + CreateAuthProviderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAuthProviderId("authProviderId325000884") + .setAuthProvider(AuthProvider.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.createAuthProviderCallable().futureCall(request); + // Do something. + AuthProvider response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_CreateAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/SyncCreateAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/SyncCreateAuthProvider.java new file mode 100644 index 000000000000..a52733d43d9a --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/SyncCreateAuthProvider.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_CreateAuthProvider_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.CreateAuthProviderRequest; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class SyncCreateAuthProvider { + + public static void main(String[] args) throws Exception { + syncCreateAuthProvider(); + } + + public static void syncCreateAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + CreateAuthProviderRequest request = + CreateAuthProviderRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAuthProviderId("authProviderId325000884") + .setAuthProvider(AuthProvider.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AuthProvider response = authProviderServiceClient.createAuthProvider(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_CreateAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/SyncCreateAuthProviderLocationnameAuthproviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/SyncCreateAuthProviderLocationnameAuthproviderString.java new file mode 100644 index 000000000000..5ed251417082 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/SyncCreateAuthProviderLocationnameAuthproviderString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_CreateAuthProvider_LocationnameAuthproviderString_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class SyncCreateAuthProviderLocationnameAuthproviderString { + + public static void main(String[] args) throws Exception { + syncCreateAuthProviderLocationnameAuthproviderString(); + } + + public static void syncCreateAuthProviderLocationnameAuthproviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + AuthProvider response = + authProviderServiceClient.createAuthProvider(parent, authProvider, authProviderId); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_CreateAuthProvider_LocationnameAuthproviderString_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/SyncCreateAuthProviderStringAuthproviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/SyncCreateAuthProviderStringAuthproviderString.java new file mode 100644 index 000000000000..2e3cb4560501 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/createauthprovider/SyncCreateAuthProviderStringAuthproviderString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_CreateAuthProvider_StringAuthproviderString_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class SyncCreateAuthProviderStringAuthproviderString { + + public static void main(String[] args) throws Exception { + syncCreateAuthProviderStringAuthproviderString(); + } + + public static void syncCreateAuthProviderStringAuthproviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AuthProvider authProvider = AuthProvider.newBuilder().build(); + String authProviderId = "authProviderId325000884"; + AuthProvider response = + authProviderServiceClient.createAuthProvider(parent, authProvider, authProviderId); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_CreateAuthProvider_StringAuthproviderString_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/AsyncDeleteAuthorization.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/AsyncDeleteAuthorization.java new file mode 100644 index 000000000000..948d0b5ff598 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/AsyncDeleteAuthorization.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_DeleteAuthorization_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.AuthorizationName; +import com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteAuthorization { + + public static void main(String[] args) throws Exception { + asyncDeleteAuthorization(); + } + + public static void asyncDeleteAuthorization() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + DeleteAuthorizationRequest request = + DeleteAuthorizationRequest.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.deleteAuthorizationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_DeleteAuthorization_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/SyncDeleteAuthorization.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/SyncDeleteAuthorization.java new file mode 100644 index 000000000000..57255cc429a3 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/SyncDeleteAuthorization.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_DeleteAuthorization_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.AuthorizationName; +import com.google.cloud.agentidentity.v1beta.DeleteAuthorizationRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthorization { + + public static void main(String[] args) throws Exception { + syncDeleteAuthorization(); + } + + public static void syncDeleteAuthorization() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + DeleteAuthorizationRequest request = + DeleteAuthorizationRequest.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .setRequestId("requestId693933066") + .build(); + authProviderServiceClient.deleteAuthorization(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_DeleteAuthorization_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/SyncDeleteAuthorizationAuthorizationname.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/SyncDeleteAuthorizationAuthorizationname.java new file mode 100644 index 000000000000..21710fc9250a --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/SyncDeleteAuthorizationAuthorizationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_DeleteAuthorization_Authorizationname_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.AuthorizationName; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthorizationAuthorizationname { + + public static void main(String[] args) throws Exception { + syncDeleteAuthorizationAuthorizationname(); + } + + public static void syncDeleteAuthorizationAuthorizationname() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + authProviderServiceClient.deleteAuthorization(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_DeleteAuthorization_Authorizationname_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/SyncDeleteAuthorizationString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/SyncDeleteAuthorizationString.java new file mode 100644 index 000000000000..1fa334532554 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthorization/SyncDeleteAuthorizationString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_DeleteAuthorization_String_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.AuthorizationName; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthorizationString { + + public static void main(String[] args) throws Exception { + syncDeleteAuthorizationString(); + } + + public static void syncDeleteAuthorizationString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString(); + authProviderServiceClient.deleteAuthorization(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_DeleteAuthorization_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/AsyncDeleteAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/AsyncDeleteAuthProvider.java new file mode 100644 index 000000000000..76c401fe2ba0 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/AsyncDeleteAuthProvider.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_DeleteAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteAuthProvider { + + public static void main(String[] args) throws Exception { + asyncDeleteAuthProvider(); + } + + public static void asyncDeleteAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + DeleteAuthProviderRequest request = + DeleteAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.deleteAuthProviderCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_DeleteAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/SyncDeleteAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/SyncDeleteAuthProvider.java new file mode 100644 index 000000000000..95ead0714bd1 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/SyncDeleteAuthProvider.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_DeleteAuthProvider_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.DeleteAuthProviderRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthProvider { + + public static void main(String[] args) throws Exception { + syncDeleteAuthProvider(); + } + + public static void syncDeleteAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + DeleteAuthProviderRequest request = + DeleteAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + authProviderServiceClient.deleteAuthProvider(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_DeleteAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderAuthprovidername.java new file mode 100644 index 000000000000..bac0ca7bc7b5 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderAuthprovidername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_DeleteAuthProvider_Authprovidername_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthProviderAuthprovidername { + + public static void main(String[] args) throws Exception { + syncDeleteAuthProviderAuthprovidername(); + } + + public static void syncDeleteAuthProviderAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + authProviderServiceClient.deleteAuthProvider(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_DeleteAuthProvider_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderString.java new file mode 100644 index 000000000000..6c372deb7b73 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/deleteauthprovider/SyncDeleteAuthProviderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_DeleteAuthProvider_String_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAuthProviderString { + + public static void main(String[] args) throws Exception { + syncDeleteAuthProviderString(); + } + + public static void syncDeleteAuthProviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + authProviderServiceClient.deleteAuthProvider(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_DeleteAuthProvider_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/AsyncDisableAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/AsyncDisableAuthProvider.java new file mode 100644 index 000000000000..5baa0d56469f --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/AsyncDisableAuthProvider.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_DisableAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest; + +public class AsyncDisableAuthProvider { + + public static void main(String[] args) throws Exception { + asyncDisableAuthProvider(); + } + + public static void asyncDisableAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + DisableAuthProviderRequest request = + DisableAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.disableAuthProviderCallable().futureCall(request); + // Do something. + AuthProvider response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_DisableAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/SyncDisableAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/SyncDisableAuthProvider.java new file mode 100644 index 000000000000..671dea544e75 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/SyncDisableAuthProvider.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_DisableAuthProvider_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.DisableAuthProviderRequest; + +public class SyncDisableAuthProvider { + + public static void main(String[] args) throws Exception { + syncDisableAuthProvider(); + } + + public static void syncDisableAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + DisableAuthProviderRequest request = + DisableAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + AuthProvider response = authProviderServiceClient.disableAuthProvider(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_DisableAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/SyncDisableAuthProviderAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/SyncDisableAuthProviderAuthprovidername.java new file mode 100644 index 000000000000..0352e4b8f29b --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/SyncDisableAuthProviderAuthprovidername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_DisableAuthProvider_Authprovidername_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; + +public class SyncDisableAuthProviderAuthprovidername { + + public static void main(String[] args) throws Exception { + syncDisableAuthProviderAuthprovidername(); + } + + public static void syncDisableAuthProviderAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + AuthProvider response = authProviderServiceClient.disableAuthProvider(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_DisableAuthProvider_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/SyncDisableAuthProviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/SyncDisableAuthProviderString.java new file mode 100644 index 000000000000..457bc9ad865f --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/disableauthprovider/SyncDisableAuthProviderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_DisableAuthProvider_String_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; + +public class SyncDisableAuthProviderString { + + public static void main(String[] args) throws Exception { + syncDisableAuthProviderString(); + } + + public static void syncDisableAuthProviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + AuthProvider response = authProviderServiceClient.disableAuthProvider(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_DisableAuthProvider_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/AsyncEnableAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/AsyncEnableAuthProvider.java new file mode 100644 index 000000000000..d88ea2bb34c8 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/AsyncEnableAuthProvider.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_EnableAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest; + +public class AsyncEnableAuthProvider { + + public static void main(String[] args) throws Exception { + asyncEnableAuthProvider(); + } + + public static void asyncEnableAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + EnableAuthProviderRequest request = + EnableAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.enableAuthProviderCallable().futureCall(request); + // Do something. + AuthProvider response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_EnableAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/SyncEnableAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/SyncEnableAuthProvider.java new file mode 100644 index 000000000000..3d40aaf6e623 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/SyncEnableAuthProvider.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_EnableAuthProvider_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.EnableAuthProviderRequest; + +public class SyncEnableAuthProvider { + + public static void main(String[] args) throws Exception { + syncEnableAuthProvider(); + } + + public static void syncEnableAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + EnableAuthProviderRequest request = + EnableAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + AuthProvider response = authProviderServiceClient.enableAuthProvider(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_EnableAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/SyncEnableAuthProviderAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/SyncEnableAuthProviderAuthprovidername.java new file mode 100644 index 000000000000..08f577aaad74 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/SyncEnableAuthProviderAuthprovidername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_EnableAuthProvider_Authprovidername_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; + +public class SyncEnableAuthProviderAuthprovidername { + + public static void main(String[] args) throws Exception { + syncEnableAuthProviderAuthprovidername(); + } + + public static void syncEnableAuthProviderAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + AuthProvider response = authProviderServiceClient.enableAuthProvider(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_EnableAuthProvider_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/SyncEnableAuthProviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/SyncEnableAuthProviderString.java new file mode 100644 index 000000000000..14e77cfe8e1e --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/enableauthprovider/SyncEnableAuthProviderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_EnableAuthProvider_String_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; + +public class SyncEnableAuthProviderString { + + public static void main(String[] args) throws Exception { + syncEnableAuthProviderString(); + } + + public static void syncEnableAuthProviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + AuthProvider response = authProviderServiceClient.enableAuthProvider(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_EnableAuthProvider_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/AsyncGetAccessSummary.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/AsyncGetAccessSummary.java new file mode 100644 index 000000000000..85660c14c9f1 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/AsyncGetAccessSummary.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetAccessSummary_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AccessSummaryName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest; + +public class AsyncGetAccessSummary { + + public static void main(String[] args) throws Exception { + asyncGetAccessSummary(); + } + + public static void asyncGetAccessSummary() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetAccessSummaryRequest request = + GetAccessSummaryRequest.newBuilder() + .setName( + AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString()) + .build(); + ApiFuture future = + authProviderServiceClient.getAccessSummaryCallable().futureCall(request); + // Do something. + AccessSummary response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetAccessSummary_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/SyncGetAccessSummary.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/SyncGetAccessSummary.java new file mode 100644 index 000000000000..1c558e91860d --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/SyncGetAccessSummary.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetAccessSummary_sync] +import com.google.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AccessSummaryName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.GetAccessSummaryRequest; + +public class SyncGetAccessSummary { + + public static void main(String[] args) throws Exception { + syncGetAccessSummary(); + } + + public static void syncGetAccessSummary() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetAccessSummaryRequest request = + GetAccessSummaryRequest.newBuilder() + .setName( + AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString()) + .build(); + AccessSummary response = authProviderServiceClient.getAccessSummary(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetAccessSummary_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/SyncGetAccessSummaryAccesssummaryname.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/SyncGetAccessSummaryAccesssummaryname.java new file mode 100644 index 000000000000..19b2bb66c0fb --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/SyncGetAccessSummaryAccesssummaryname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetAccessSummary_Accesssummaryname_sync] +import com.google.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AccessSummaryName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; + +public class SyncGetAccessSummaryAccesssummaryname { + + public static void main(String[] args) throws Exception { + syncGetAccessSummaryAccesssummaryname(); + } + + public static void syncGetAccessSummaryAccesssummaryname() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AccessSummaryName name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]"); + AccessSummary response = authProviderServiceClient.getAccessSummary(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetAccessSummary_Accesssummaryname_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/SyncGetAccessSummaryString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/SyncGetAccessSummaryString.java new file mode 100644 index 000000000000..531a28a90dc5 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getaccesssummary/SyncGetAccessSummaryString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetAccessSummary_String_sync] +import com.google.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AccessSummaryName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; + +public class SyncGetAccessSummaryString { + + public static void main(String[] args) throws Exception { + syncGetAccessSummaryString(); + } + + public static void syncGetAccessSummaryString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AccessSummaryName.of("[PROJECT]", "[LOCATION]", "[ACCESS_SUMMARY]").toString(); + AccessSummary response = authProviderServiceClient.getAccessSummary(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetAccessSummary_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/AsyncGetAuthorization.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/AsyncGetAuthorization.java new file mode 100644 index 000000000000..9c4a54b6cb62 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/AsyncGetAuthorization.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetAuthorization_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.Authorization; +import com.google.cloud.agentidentity.v1beta.AuthorizationName; +import com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest; + +public class AsyncGetAuthorization { + + public static void main(String[] args) throws Exception { + asyncGetAuthorization(); + } + + public static void asyncGetAuthorization() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetAuthorizationRequest request = + GetAuthorizationRequest.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .build(); + ApiFuture future = + authProviderServiceClient.getAuthorizationCallable().futureCall(request); + // Do something. + Authorization response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetAuthorization_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/SyncGetAuthorization.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/SyncGetAuthorization.java new file mode 100644 index 000000000000..9bd7cc6845e1 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/SyncGetAuthorization.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetAuthorization_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.Authorization; +import com.google.cloud.agentidentity.v1beta.AuthorizationName; +import com.google.cloud.agentidentity.v1beta.GetAuthorizationRequest; + +public class SyncGetAuthorization { + + public static void main(String[] args) throws Exception { + syncGetAuthorization(); + } + + public static void syncGetAuthorization() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetAuthorizationRequest request = + GetAuthorizationRequest.newBuilder() + .setName( + AuthorizationName.of( + "[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString()) + .build(); + Authorization response = authProviderServiceClient.getAuthorization(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetAuthorization_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/SyncGetAuthorizationAuthorizationname.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/SyncGetAuthorizationAuthorizationname.java new file mode 100644 index 000000000000..0f6aa9530834 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/SyncGetAuthorizationAuthorizationname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetAuthorization_Authorizationname_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.Authorization; +import com.google.cloud.agentidentity.v1beta.AuthorizationName; + +public class SyncGetAuthorizationAuthorizationname { + + public static void main(String[] args) throws Exception { + syncGetAuthorizationAuthorizationname(); + } + + public static void syncGetAuthorizationAuthorizationname() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthorizationName name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]"); + Authorization response = authProviderServiceClient.getAuthorization(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetAuthorization_Authorizationname_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/SyncGetAuthorizationString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/SyncGetAuthorizationString.java new file mode 100644 index 000000000000..9d94bc6333c5 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthorization/SyncGetAuthorizationString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetAuthorization_String_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.Authorization; +import com.google.cloud.agentidentity.v1beta.AuthorizationName; + +public class SyncGetAuthorizationString { + + public static void main(String[] args) throws Exception { + syncGetAuthorizationString(); + } + + public static void syncGetAuthorizationString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = + AuthorizationName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]", "[AUTHORIZATION]") + .toString(); + Authorization response = authProviderServiceClient.getAuthorization(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetAuthorization_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/AsyncGetAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/AsyncGetAuthProvider.java new file mode 100644 index 000000000000..4aa5c4d3e2f1 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/AsyncGetAuthProvider.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest; + +public class AsyncGetAuthProvider { + + public static void main(String[] args) throws Exception { + asyncGetAuthProvider(); + } + + public static void asyncGetAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetAuthProviderRequest request = + GetAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .build(); + ApiFuture future = + authProviderServiceClient.getAuthProviderCallable().futureCall(request); + // Do something. + AuthProvider response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/SyncGetAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/SyncGetAuthProvider.java new file mode 100644 index 000000000000..645b6b94cb9c --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/SyncGetAuthProvider.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetAuthProvider_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.GetAuthProviderRequest; + +public class SyncGetAuthProvider { + + public static void main(String[] args) throws Exception { + syncGetAuthProvider(); + } + + public static void syncGetAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetAuthProviderRequest request = + GetAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .build(); + AuthProvider response = authProviderServiceClient.getAuthProvider(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/SyncGetAuthProviderAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/SyncGetAuthProviderAuthprovidername.java new file mode 100644 index 000000000000..11329c51fc1b --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/SyncGetAuthProviderAuthprovidername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetAuthProvider_Authprovidername_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; + +public class SyncGetAuthProviderAuthprovidername { + + public static void main(String[] args) throws Exception { + syncGetAuthProviderAuthprovidername(); + } + + public static void syncGetAuthProviderAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + AuthProvider response = authProviderServiceClient.getAuthProvider(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetAuthProvider_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/SyncGetAuthProviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/SyncGetAuthProviderString.java new file mode 100644 index 000000000000..1738ad3252a3 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getauthprovider/SyncGetAuthProviderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetAuthProvider_String_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; + +public class SyncGetAuthProviderString { + + public static void main(String[] args) throws Exception { + syncGetAuthProviderString(); + } + + public static void syncGetAuthProviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + AuthProvider response = authProviderServiceClient.getAuthProvider(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetAuthProvider_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getiampolicy/AsyncGetIamPolicy.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..26f037d04b7e --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + authProviderServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetIamPolicy_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getiampolicy/SyncGetIamPolicy.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..5cdbefc005eb --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetIamPolicy_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = authProviderServiceClient.getIamPolicy(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetIamPolicy_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getlocation/AsyncGetLocation.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..30f470045fba --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + authProviderServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetLocation_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getlocation/SyncGetLocation.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..68fac40d7b52 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/getlocation/SyncGetLocation.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_GetLocation_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = authProviderServiceClient.getLocation(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_GetLocation_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/AsyncListAccessSummaries.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/AsyncListAccessSummaries.java new file mode 100644 index 000000000000..a18b709633dc --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/AsyncListAccessSummaries.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAccessSummaries_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class AsyncListAccessSummaries { + + public static void main(String[] args) throws Exception { + asyncListAccessSummaries(); + } + + public static void asyncListAccessSummaries() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAccessSummariesRequest request = + ListAccessSummariesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + authProviderServiceClient.listAccessSummariesPagedCallable().futureCall(request); + // Do something. + for (AccessSummary element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAccessSummaries_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/AsyncListAccessSummariesPaged.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/AsyncListAccessSummariesPaged.java new file mode 100644 index 000000000000..215cfead1caa --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/AsyncListAccessSummariesPaged.java @@ -0,0 +1,64 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAccessSummaries_Paged_async] +import com.google.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1beta.ListAccessSummariesResponse; +import com.google.cloud.agentidentity.v1beta.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAccessSummariesPaged { + + public static void main(String[] args) throws Exception { + asyncListAccessSummariesPaged(); + } + + public static void asyncListAccessSummariesPaged() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAccessSummariesRequest request = + ListAccessSummariesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAccessSummariesResponse response = + authProviderServiceClient.listAccessSummariesCallable().call(request); + for (AccessSummary element : response.getAccessSummariesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAccessSummaries_Paged_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/SyncListAccessSummaries.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/SyncListAccessSummaries.java new file mode 100644 index 000000000000..a4249a3e758c --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/SyncListAccessSummaries.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAccessSummaries_sync] +import com.google.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.ListAccessSummariesRequest; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class SyncListAccessSummaries { + + public static void main(String[] args) throws Exception { + syncListAccessSummaries(); + } + + public static void syncListAccessSummaries() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAccessSummariesRequest request = + ListAccessSummariesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (AccessSummary element : + authProviderServiceClient.listAccessSummaries(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAccessSummaries_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/SyncListAccessSummariesLocationname.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/SyncListAccessSummariesLocationname.java new file mode 100644 index 000000000000..73aabae683f2 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/SyncListAccessSummariesLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAccessSummaries_Locationname_sync] +import com.google.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class SyncListAccessSummariesLocationname { + + public static void main(String[] args) throws Exception { + syncListAccessSummariesLocationname(); + } + + public static void syncListAccessSummariesLocationname() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AccessSummary element : + authProviderServiceClient.listAccessSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAccessSummaries_Locationname_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/SyncListAccessSummariesString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/SyncListAccessSummariesString.java new file mode 100644 index 000000000000..e7c60c289f7c --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listaccesssummaries/SyncListAccessSummariesString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAccessSummaries_String_sync] +import com.google.cloud.agentidentity.v1beta.AccessSummary; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class SyncListAccessSummariesString { + + public static void main(String[] args) throws Exception { + syncListAccessSummariesString(); + } + + public static void syncListAccessSummariesString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AccessSummary element : + authProviderServiceClient.listAccessSummaries(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAccessSummaries_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/AsyncListAuthorizations.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/AsyncListAuthorizations.java new file mode 100644 index 000000000000..1c2041663d3c --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/AsyncListAuthorizations.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAuthorizations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.Authorization; +import com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest; + +public class AsyncListAuthorizations { + + public static void main(String[] args) throws Exception { + asyncListAuthorizations(); + } + + public static void asyncListAuthorizations() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAuthorizationsRequest request = + ListAuthorizationsRequest.newBuilder() + .setParent( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + authProviderServiceClient.listAuthorizationsPagedCallable().futureCall(request); + // Do something. + for (Authorization element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAuthorizations_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/AsyncListAuthorizationsPaged.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/AsyncListAuthorizationsPaged.java new file mode 100644 index 000000000000..126985b9becb --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/AsyncListAuthorizationsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAuthorizations_Paged_async] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.Authorization; +import com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest; +import com.google.cloud.agentidentity.v1beta.ListAuthorizationsResponse; +import com.google.common.base.Strings; + +public class AsyncListAuthorizationsPaged { + + public static void main(String[] args) throws Exception { + asyncListAuthorizationsPaged(); + } + + public static void asyncListAuthorizationsPaged() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAuthorizationsRequest request = + ListAuthorizationsRequest.newBuilder() + .setParent( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListAuthorizationsResponse response = + authProviderServiceClient.listAuthorizationsCallable().call(request); + for (Authorization element : response.getAuthorizationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAuthorizations_Paged_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/SyncListAuthorizations.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/SyncListAuthorizations.java new file mode 100644 index 000000000000..5e84b89208d5 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/SyncListAuthorizations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAuthorizations_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.Authorization; +import com.google.cloud.agentidentity.v1beta.ListAuthorizationsRequest; + +public class SyncListAuthorizations { + + public static void main(String[] args) throws Exception { + syncListAuthorizations(); + } + + public static void syncListAuthorizations() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAuthorizationsRequest request = + ListAuthorizationsRequest.newBuilder() + .setParent( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (Authorization element : + authProviderServiceClient.listAuthorizations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAuthorizations_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/SyncListAuthorizationsAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/SyncListAuthorizationsAuthprovidername.java new file mode 100644 index 000000000000..df511fe19521 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/SyncListAuthorizationsAuthprovidername.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAuthorizations_Authprovidername_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.Authorization; + +public class SyncListAuthorizationsAuthprovidername { + + public static void main(String[] args) throws Exception { + syncListAuthorizationsAuthprovidername(); + } + + public static void syncListAuthorizationsAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + for (Authorization element : + authProviderServiceClient.listAuthorizations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAuthorizations_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/SyncListAuthorizationsString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/SyncListAuthorizationsString.java new file mode 100644 index 000000000000..bd49761cc2a9 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthorizations/SyncListAuthorizationsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAuthorizations_String_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.Authorization; + +public class SyncListAuthorizationsString { + + public static void main(String[] args) throws Exception { + syncListAuthorizationsString(); + } + + public static void syncListAuthorizationsString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String parent = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + for (Authorization element : + authProviderServiceClient.listAuthorizations(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAuthorizations_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/AsyncListAuthProviders.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/AsyncListAuthProviders.java new file mode 100644 index 000000000000..e532e61adec9 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/AsyncListAuthProviders.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAuthProviders_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class AsyncListAuthProviders { + + public static void main(String[] args) throws Exception { + asyncListAuthProviders(); + } + + public static void asyncListAuthProviders() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAuthProvidersRequest request = + ListAuthProvidersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setShowDeleted(true) + .build(); + ApiFuture future = + authProviderServiceClient.listAuthProvidersPagedCallable().futureCall(request); + // Do something. + for (AuthProvider element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAuthProviders_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/AsyncListAuthProvidersPaged.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/AsyncListAuthProvidersPaged.java new file mode 100644 index 000000000000..68f7c96fa753 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/AsyncListAuthProvidersPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAuthProviders_Paged_async] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1beta.ListAuthProvidersResponse; +import com.google.cloud.agentidentity.v1beta.LocationName; +import com.google.common.base.Strings; + +public class AsyncListAuthProvidersPaged { + + public static void main(String[] args) throws Exception { + asyncListAuthProvidersPaged(); + } + + public static void asyncListAuthProvidersPaged() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAuthProvidersRequest request = + ListAuthProvidersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setShowDeleted(true) + .build(); + while (true) { + ListAuthProvidersResponse response = + authProviderServiceClient.listAuthProvidersCallable().call(request); + for (AuthProvider element : response.getAuthProvidersList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAuthProviders_Paged_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/SyncListAuthProviders.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/SyncListAuthProviders.java new file mode 100644 index 000000000000..ad9a36a91f7d --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/SyncListAuthProviders.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAuthProviders_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.ListAuthProvidersRequest; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class SyncListAuthProviders { + + public static void main(String[] args) throws Exception { + syncListAuthProviders(); + } + + public static void syncListAuthProviders() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListAuthProvidersRequest request = + ListAuthProvidersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .setShowDeleted(true) + .build(); + for (AuthProvider element : + authProviderServiceClient.listAuthProviders(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAuthProviders_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/SyncListAuthProvidersLocationname.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/SyncListAuthProvidersLocationname.java new file mode 100644 index 000000000000..88b2ebce2729 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/SyncListAuthProvidersLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAuthProviders_Locationname_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class SyncListAuthProvidersLocationname { + + public static void main(String[] args) throws Exception { + syncListAuthProvidersLocationname(); + } + + public static void syncListAuthProvidersLocationname() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AuthProvider element : + authProviderServiceClient.listAuthProviders(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAuthProviders_Locationname_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/SyncListAuthProvidersString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/SyncListAuthProvidersString.java new file mode 100644 index 000000000000..d5e374eb7a6e --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listauthproviders/SyncListAuthProvidersString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListAuthProviders_String_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class SyncListAuthProvidersString { + + public static void main(String[] args) throws Exception { + syncListAuthProvidersString(); + } + + public static void syncListAuthProvidersString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AuthProvider element : + authProviderServiceClient.listAuthProviders(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListAuthProviders_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listlocations/AsyncListLocations.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..6efb34e1480b --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listlocations/AsyncListLocations.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + authProviderServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListLocations_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listlocations/AsyncListLocationsPaged.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..65e67e433fc6 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListLocations_Paged_async] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + authProviderServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListLocations_Paged_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listlocations/SyncListLocations.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..5877f1b02918 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/listlocations/SyncListLocations.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_ListLocations_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : authProviderServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_ListLocations_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/AsyncQueryAuthProviders.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/AsyncQueryAuthProviders.java new file mode 100644 index 000000000000..06ce1e6a3534 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/AsyncQueryAuthProviders.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_QueryAuthProviders_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.LocationName; +import com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest; + +public class AsyncQueryAuthProviders { + + public static void main(String[] args) throws Exception { + asyncQueryAuthProviders(); + } + + public static void asyncQueryAuthProviders() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + QueryAuthProvidersRequest request = + QueryAuthProvidersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setWorkloadId("workloadId-186277134") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + authProviderServiceClient.queryAuthProvidersPagedCallable().futureCall(request); + // Do something. + for (String element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_QueryAuthProviders_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/AsyncQueryAuthProvidersPaged.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/AsyncQueryAuthProvidersPaged.java new file mode 100644 index 000000000000..06f9150b83a6 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/AsyncQueryAuthProvidersPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_QueryAuthProviders_Paged_async] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.LocationName; +import com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest; +import com.google.cloud.agentidentity.v1beta.QueryAuthProvidersResponse; +import com.google.common.base.Strings; + +public class AsyncQueryAuthProvidersPaged { + + public static void main(String[] args) throws Exception { + asyncQueryAuthProvidersPaged(); + } + + public static void asyncQueryAuthProvidersPaged() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + QueryAuthProvidersRequest request = + QueryAuthProvidersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setWorkloadId("workloadId-186277134") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + QueryAuthProvidersResponse response = + authProviderServiceClient.queryAuthProvidersCallable().call(request); + for (String element : response.getAuthProviderNamesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_QueryAuthProviders_Paged_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/SyncQueryAuthProviders.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/SyncQueryAuthProviders.java new file mode 100644 index 000000000000..731785b95fc9 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/SyncQueryAuthProviders.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_QueryAuthProviders_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.LocationName; +import com.google.cloud.agentidentity.v1beta.QueryAuthProvidersRequest; + +public class SyncQueryAuthProviders { + + public static void main(String[] args) throws Exception { + syncQueryAuthProviders(); + } + + public static void syncQueryAuthProviders() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + QueryAuthProvidersRequest request = + QueryAuthProvidersRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setWorkloadId("workloadId-186277134") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (String element : authProviderServiceClient.queryAuthProviders(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_QueryAuthProviders_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/SyncQueryAuthProvidersLocationnameString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/SyncQueryAuthProvidersLocationnameString.java new file mode 100644 index 000000000000..50b8812f175f --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/SyncQueryAuthProvidersLocationnameString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_QueryAuthProviders_LocationnameString_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class SyncQueryAuthProvidersLocationnameString { + + public static void main(String[] args) throws Exception { + syncQueryAuthProvidersLocationnameString(); + } + + public static void syncQueryAuthProvidersLocationnameString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + String workloadId = "workloadId-186277134"; + for (String element : + authProviderServiceClient.queryAuthProviders(parent, workloadId).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_QueryAuthProviders_LocationnameString_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/SyncQueryAuthProvidersStringString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/SyncQueryAuthProvidersStringString.java new file mode 100644 index 000000000000..65d42feb2924 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryauthproviders/SyncQueryAuthProvidersStringString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_QueryAuthProviders_StringString_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.LocationName; + +public class SyncQueryAuthProvidersStringString { + + public static void main(String[] args) throws Exception { + syncQueryAuthProvidersStringString(); + } + + public static void syncQueryAuthProvidersStringString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + String workloadId = "workloadId-186277134"; + for (String element : + authProviderServiceClient.queryAuthProviders(parent, workloadId).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_QueryAuthProviders_StringString_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/AsyncQueryWorkloads.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/AsyncQueryWorkloads.java new file mode 100644 index 000000000000..cc0ab3222f1c --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/AsyncQueryWorkloads.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_QueryWorkloads_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest; + +public class AsyncQueryWorkloads { + + public static void main(String[] args) throws Exception { + asyncQueryWorkloads(); + } + + public static void asyncQueryWorkloads() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + QueryWorkloadsRequest request = + QueryWorkloadsRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + authProviderServiceClient.queryWorkloadsPagedCallable().futureCall(request); + // Do something. + for (String element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_QueryWorkloads_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/AsyncQueryWorkloadsPaged.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/AsyncQueryWorkloadsPaged.java new file mode 100644 index 000000000000..4e8ecaba451f --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/AsyncQueryWorkloadsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_QueryWorkloads_Paged_async] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest; +import com.google.cloud.agentidentity.v1beta.QueryWorkloadsResponse; +import com.google.common.base.Strings; + +public class AsyncQueryWorkloadsPaged { + + public static void main(String[] args) throws Exception { + asyncQueryWorkloadsPaged(); + } + + public static void asyncQueryWorkloadsPaged() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + QueryWorkloadsRequest request = + QueryWorkloadsRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + QueryWorkloadsResponse response = + authProviderServiceClient.queryWorkloadsCallable().call(request); + for (String element : response.getWorkloadIdsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_QueryWorkloads_Paged_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/SyncQueryWorkloads.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/SyncQueryWorkloads.java new file mode 100644 index 000000000000..625f3ca187ad --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/SyncQueryWorkloads.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_QueryWorkloads_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.QueryWorkloadsRequest; + +public class SyncQueryWorkloads { + + public static void main(String[] args) throws Exception { + syncQueryWorkloads(); + } + + public static void syncQueryWorkloads() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + QueryWorkloadsRequest request = + QueryWorkloadsRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (String element : authProviderServiceClient.queryWorkloads(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_QueryWorkloads_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/SyncQueryWorkloadsAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/SyncQueryWorkloadsAuthprovidername.java new file mode 100644 index 000000000000..244b6ada066d --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/SyncQueryWorkloadsAuthprovidername.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_QueryWorkloads_Authprovidername_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; + +public class SyncQueryWorkloadsAuthprovidername { + + public static void main(String[] args) throws Exception { + syncQueryWorkloadsAuthprovidername(); + } + + public static void syncQueryWorkloadsAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + for (String element : authProviderServiceClient.queryWorkloads(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_QueryWorkloads_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/SyncQueryWorkloadsString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/SyncQueryWorkloadsString.java new file mode 100644 index 000000000000..d7bd3bff42ea --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/queryworkloads/SyncQueryWorkloadsString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_QueryWorkloads_String_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; + +public class SyncQueryWorkloadsString { + + public static void main(String[] args) throws Exception { + syncQueryWorkloadsString(); + } + + public static void syncQueryWorkloadsString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + for (String element : authProviderServiceClient.queryWorkloads(name).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_QueryWorkloads_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/AsyncRevokeAuthorization.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/AsyncRevokeAuthorization.java new file mode 100644 index 000000000000..f7f79a0b03ed --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/AsyncRevokeAuthorization.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_RevokeAuthorization_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse; + +public class AsyncRevokeAuthorization { + + public static void main(String[] args) throws Exception { + asyncRevokeAuthorization(); + } + + public static void asyncRevokeAuthorization() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + RevokeAuthorizationRequest request = + RevokeAuthorizationRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setUserId("userId-836030906") + .build(); + ApiFuture future = + authProviderServiceClient.revokeAuthorizationCallable().futureCall(request); + // Do something. + RevokeAuthorizationResponse response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_RevokeAuthorization_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/SyncRevokeAuthorization.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/SyncRevokeAuthorization.java new file mode 100644 index 000000000000..b752162ffb9e --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/SyncRevokeAuthorization.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_RevokeAuthorization_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationRequest; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse; + +public class SyncRevokeAuthorization { + + public static void main(String[] args) throws Exception { + syncRevokeAuthorization(); + } + + public static void syncRevokeAuthorization() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + RevokeAuthorizationRequest request = + RevokeAuthorizationRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setUserId("userId-836030906") + .build(); + RevokeAuthorizationResponse response = authProviderServiceClient.revokeAuthorization(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_RevokeAuthorization_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/SyncRevokeAuthorizationAuthprovidernameString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/SyncRevokeAuthorizationAuthprovidernameString.java new file mode 100644 index 000000000000..59ad829fa9a2 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/SyncRevokeAuthorizationAuthprovidernameString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_RevokeAuthorization_AuthprovidernameString_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse; + +public class SyncRevokeAuthorizationAuthprovidernameString { + + public static void main(String[] args) throws Exception { + syncRevokeAuthorizationAuthprovidernameString(); + } + + public static void syncRevokeAuthorizationAuthprovidernameString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + String userId = "userId-836030906"; + RevokeAuthorizationResponse response = + authProviderServiceClient.revokeAuthorization(name, userId); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_RevokeAuthorization_AuthprovidernameString_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/SyncRevokeAuthorizationStringString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/SyncRevokeAuthorizationStringString.java new file mode 100644 index 000000000000..2198e24b03d9 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/revokeauthorization/SyncRevokeAuthorizationStringString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_RevokeAuthorization_StringString_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.RevokeAuthorizationResponse; + +public class SyncRevokeAuthorizationStringString { + + public static void main(String[] args) throws Exception { + syncRevokeAuthorizationStringString(); + } + + public static void syncRevokeAuthorizationStringString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + String userId = "userId-836030906"; + RevokeAuthorizationResponse response = + authProviderServiceClient.revokeAuthorization(name, userId); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_RevokeAuthorization_StringString_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/setiampolicy/AsyncSetIamPolicy.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..4803a71206c7 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + authProviderServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_SetIamPolicy_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/setiampolicy/SyncSetIamPolicy.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..b9af97f11498 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_SetIamPolicy_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = authProviderServiceClient.setIamPolicy(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_SetIamPolicy_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/testiampermissions/AsyncTestIamPermissions.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..9f4c38f2cec7 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + authProviderServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_TestIamPermissions_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/testiampermissions/SyncTestIamPermissions.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..b1f5b60c78a4 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_TestIamPermissions_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = authProviderServiceClient.testIamPermissions(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_TestIamPermissions_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/AsyncUndeleteAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/AsyncUndeleteAuthProvider.java new file mode 100644 index 000000000000..2ee2853ccee9 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/AsyncUndeleteAuthProvider.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_UndeleteAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest; + +public class AsyncUndeleteAuthProvider { + + public static void main(String[] args) throws Exception { + asyncUndeleteAuthProvider(); + } + + public static void asyncUndeleteAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + UndeleteAuthProviderRequest request = + UndeleteAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.undeleteAuthProviderCallable().futureCall(request); + // Do something. + AuthProvider response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_UndeleteAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProvider.java new file mode 100644 index 000000000000..8e15f87b96d5 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProvider.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_UndeleteAuthProvider_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.UndeleteAuthProviderRequest; + +public class SyncUndeleteAuthProvider { + + public static void main(String[] args) throws Exception { + syncUndeleteAuthProvider(); + } + + public static void syncUndeleteAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + UndeleteAuthProviderRequest request = + UndeleteAuthProviderRequest.newBuilder() + .setName(AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString()) + .setRequestId("requestId693933066") + .build(); + AuthProvider response = authProviderServiceClient.undeleteAuthProvider(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_UndeleteAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderAuthprovidername.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderAuthprovidername.java new file mode 100644 index 000000000000..c8347c5f1cc2 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderAuthprovidername.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_UndeleteAuthProvider_Authprovidername_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; + +public class SyncUndeleteAuthProviderAuthprovidername { + + public static void main(String[] args) throws Exception { + syncUndeleteAuthProviderAuthprovidername(); + } + + public static void syncUndeleteAuthProviderAuthprovidername() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProviderName name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]"); + AuthProvider response = authProviderServiceClient.undeleteAuthProvider(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_UndeleteAuthProvider_Authprovidername_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderString.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderString.java new file mode 100644 index 000000000000..cfe490c62fc3 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/undeleteauthprovider/SyncUndeleteAuthProviderString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_UndeleteAuthProvider_String_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderName; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; + +public class SyncUndeleteAuthProviderString { + + public static void main(String[] args) throws Exception { + syncUndeleteAuthProviderString(); + } + + public static void syncUndeleteAuthProviderString() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + String name = AuthProviderName.of("[PROJECT]", "[LOCATION]", "[AUTH_PROVIDER]").toString(); + AuthProvider response = authProviderServiceClient.undeleteAuthProvider(name); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_UndeleteAuthProvider_String_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/updateauthprovider/AsyncUpdateAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/updateauthprovider/AsyncUpdateAuthProvider.java new file mode 100644 index 000000000000..4c3955a18d03 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/updateauthprovider/AsyncUpdateAuthProvider.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_UpdateAuthProvider_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAuthProvider { + + public static void main(String[] args) throws Exception { + asyncUpdateAuthProvider(); + } + + public static void asyncUpdateAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + UpdateAuthProviderRequest request = + UpdateAuthProviderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAuthProvider(AuthProvider.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = + authProviderServiceClient.updateAuthProviderCallable().futureCall(request); + // Do something. + AuthProvider response = future.get(); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_UpdateAuthProvider_async] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/updateauthprovider/SyncUpdateAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/updateauthprovider/SyncUpdateAuthProvider.java new file mode 100644 index 000000000000..a20730118ca1 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/updateauthprovider/SyncUpdateAuthProvider.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_UpdateAuthProvider_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.cloud.agentidentity.v1beta.UpdateAuthProviderRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAuthProvider { + + public static void main(String[] args) throws Exception { + syncUpdateAuthProvider(); + } + + public static void syncUpdateAuthProvider() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + UpdateAuthProviderRequest request = + UpdateAuthProviderRequest.newBuilder() + .setUpdateMask(FieldMask.newBuilder().build()) + .setAuthProvider(AuthProvider.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AuthProvider response = authProviderServiceClient.updateAuthProvider(request); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_UpdateAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/updateauthprovider/SyncUpdateAuthProviderAuthproviderFieldmask.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/updateauthprovider/SyncUpdateAuthProviderAuthproviderFieldmask.java new file mode 100644 index 000000000000..b9bd44ba9ea2 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservice/updateauthprovider/SyncUpdateAuthProviderAuthproviderFieldmask.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderService_UpdateAuthProvider_AuthproviderFieldmask_sync] +import com.google.cloud.agentidentity.v1beta.AuthProvider; +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAuthProviderAuthproviderFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAuthProviderAuthproviderFieldmask(); + } + + public static void syncUpdateAuthProviderAuthproviderFieldmask() throws Exception { + // 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 (AuthProviderServiceClient authProviderServiceClient = AuthProviderServiceClient.create()) { + AuthProvider authProvider = AuthProvider.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AuthProvider response = + authProviderServiceClient.updateAuthProvider(authProvider, updateMask); + } + } +} +// [END agentidentity_v1beta_generated_AuthProviderService_UpdateAuthProvider_AuthproviderFieldmask_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservicesettings/getauthprovider/SyncGetAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservicesettings/getauthprovider/SyncGetAuthProvider.java new file mode 100644 index 000000000000..9ed976076927 --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/authproviderservicesettings/getauthprovider/SyncGetAuthProvider.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.samples; + +// [START agentidentity_v1beta_generated_AuthProviderServiceSettings_GetAuthProvider_sync] +import com.google.cloud.agentidentity.v1beta.AuthProviderServiceSettings; +import java.time.Duration; + +public class SyncGetAuthProvider { + + public static void main(String[] args) throws Exception { + syncGetAuthProvider(); + } + + public static void syncGetAuthProvider() throws Exception { + // 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 + AuthProviderServiceSettings.Builder authProviderServiceSettingsBuilder = + AuthProviderServiceSettings.newBuilder(); + authProviderServiceSettingsBuilder + .getAuthProviderSettings() + .setRetrySettings( + authProviderServiceSettingsBuilder + .getAuthProviderSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AuthProviderServiceSettings authProviderServiceSettings = + authProviderServiceSettingsBuilder.build(); + } +} +// [END agentidentity_v1beta_generated_AuthProviderServiceSettings_GetAuthProvider_sync] diff --git a/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/stub/authproviderservicestubsettings/getauthprovider/SyncGetAuthProvider.java b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/stub/authproviderservicestubsettings/getauthprovider/SyncGetAuthProvider.java new file mode 100644 index 000000000000..5554311add6e --- /dev/null +++ b/java-agentidentity/samples/snippets/generated/com/google/cloud/agentidentity/v1beta/stub/authproviderservicestubsettings/getauthprovider/SyncGetAuthProvider.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 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.agentidentity.v1beta.stub.samples; + +// [START agentidentity_v1beta_generated_AuthProviderServiceStubSettings_GetAuthProvider_sync] +import com.google.cloud.agentidentity.v1beta.stub.AuthProviderServiceStubSettings; +import java.time.Duration; + +public class SyncGetAuthProvider { + + public static void main(String[] args) throws Exception { + syncGetAuthProvider(); + } + + public static void syncGetAuthProvider() throws Exception { + // 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 + AuthProviderServiceStubSettings.Builder authProviderServiceSettingsBuilder = + AuthProviderServiceStubSettings.newBuilder(); + authProviderServiceSettingsBuilder + .getAuthProviderSettings() + .setRetrySettings( + authProviderServiceSettingsBuilder + .getAuthProviderSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + AuthProviderServiceStubSettings authProviderServiceSettings = + authProviderServiceSettingsBuilder.build(); + } +} +// [END agentidentity_v1beta_generated_AuthProviderServiceStubSettings_GetAuthProvider_sync] diff --git a/librarian.yaml b/librarian.yaml index 13cab8e95dd5..b54319d0992c 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -105,6 +105,19 @@ libraries: api_description_override: An API for accessing Advisory Notifications in Google Cloud. name_pretty_override: Advisory Notifications API product_documentation_override: https://cloud.google.com/advisory-notifications/ + - name: agentidentity + version: 0.1.0-SNAPSHOT + apis: + - path: google/cloud/agentidentity/v1 + java: + additional_protos: + - path: google/cloud/location/locations.proto + - path: google/iam/v1/iam_policy.proto + - path: google/cloud/agentidentity/v1beta + java: + additional_protos: + - path: google/cloud/location/locations.proto + - path: google/iam/v1/iam_policy.proto - name: agentregistry version: 0.2.0-SNAPSHOT apis: diff --git a/pom.xml b/pom.xml index 6471f9af7af0..7c4728b845ad 100644 --- a/pom.xml +++ b/pom.xml @@ -21,6 +21,7 @@ java-accesscontextmanager java-admanager java-advisorynotifications + java-agentidentity java-agentregistry java-aiplatform java-alloydb diff --git a/versions.txt b/versions.txt index b9ce6ccf47c3..516260064930 100644 --- a/versions.txt +++ b/versions.txt @@ -1069,4 +1069,11 @@ proto-google-cloud-agentregistry-v1:0.1.0:0.2.0-SNAPSHOT grpc-google-cloud-agentregistry-v1:0.1.0:0.2.0-SNAPSHOT google-cloud-agentregistry:0.1.0:0.2.0-SNAPSHOT google-cloud-agentregistry-bom:0.1.0:0.2.0-SNAPSHOT -google-cloud-agentregistry-parent:0.1.0:0.2.0-SNAPSHOT \ No newline at end of file +google-cloud-agentregistry-parent:0.1.0:0.2.0-SNAPSHOT +google-cloud-agentidentity-parent:0.0.0:0.1.0-SNAPSHOT +google-cloud-agentidentity-bom:0.0.0:0.1.0-SNAPSHOT +proto-google-cloud-agentidentity-v1:0.0.0:0.1.0-SNAPSHOT +grpc-google-cloud-agentidentity-v1:0.0.0:0.1.0-SNAPSHOT +google-cloud-agentidentity:0.0.0:0.1.0-SNAPSHOT +proto-google-cloud-agentidentity-v1beta:0.0.0:0.1.0-SNAPSHOT +grpc-google-cloud-agentidentity-v1beta:0.0.0:0.1.0-SNAPSHOT