From 37f6c060e2491623ca36297ed31ef81d76bb0363 Mon Sep 17 00:00:00 2001 From: Ravi Madabhushi Date: Tue, 12 May 2026 14:18:23 +0530 Subject: [PATCH 1/4] chore: update proto to v0.1.121.2 - Regenerated gRPC stubs from proto v0.1.121.2 - Implemented: UpdateOrganizationSessionPolicy, GetOrganizationSessionPolicy, GetApplicationSessionPolicy, SearchOrganization, GetOrganizationUserManagementSetting, AssignUserRoles, RemoveUserRole - Breaking changes: none (removed SessionSettings RPCs were never wrapped) Co-Authored-By: Claude Sonnet 4.6 --- Makefile | 2 +- .../com/scalekit/api/OrganizationClient.java | 10 + .../java/com/scalekit/api/UserClient.java | 6 +- .../api/impl/ScalekitOrganizationClient.java | 87 + .../scalekit/api/impl/ScalekitUserClient.java | 40 +- .../agentkit_logs/AgentkitAnalyticsProto.java | 187 + .../AgentkitAnalyticsServiceGrpc.java | 293 ++ .../v1/agentkit_logs/AgentkitLogsProto.java | 208 ++ .../AgentkitLogsServiceGrpc.java | 367 ++ .../v1/agentkit_logs/ConnectorStat.java | 877 +++++ .../agentkit_logs/ConnectorStatOrBuilder.java | 52 + .../v1/agentkit_logs/ErrorCodeCount.java | 609 ++++ .../ErrorCodeCountOrBuilder.java | 28 + .../GetOverviewStatsRequest.java | 1508 ++++++++ .../GetOverviewStatsRequestOrBuilder.java | 132 + .../agentkit_logs/GetToolCallLogRequest.java | 542 +++ .../GetToolCallLogRequestOrBuilder.java | 22 + .../ListToolCallLogsRequest.java | 2149 +++++++++++ .../ListToolCallLogsRequestOrBuilder.java | 193 + .../ListToolCallLogsResponse.java | 1099 ++++++ .../ListToolCallLogsResponseOrBuilder.java | 64 + .../v1/agentkit_logs/OverviewStats.java | 1795 ++++++++++ .../agentkit_logs/OverviewStatsOrBuilder.java | 112 + .../v1/agentkit_logs/TimeSeriesBucket.java | 1001 ++++++ .../TimeSeriesBucketOrBuilder.java | 61 + .../v1/agentkit_logs/ToolCallLog.java | 3177 +++++++++++++++++ .../agentkit_logs/ToolCallLogOrBuilder.java | 262 ++ .../scalekit/v1/auditlogs/AuditlogsProto.java | 122 +- .../grpc/scalekit/v1/auth/AuthProto.java | 379 +- .../v1/auth/GetAuthStateResponse.java | 164 + .../auth/GetAuthStateResponseOrBuilder.java | 20 + .../grpc/scalekit/v1/auth/PortalSettings.java | 136 + .../v1/auth/PortalSettingsOrBuilder.java | 25 + .../scalekit/grpc/scalekit/v1/auth/User.java | 346 ++ .../grpc/scalekit/v1/auth/UserOrBuilder.java | 42 + .../grpc/scalekit/v1/auth/totp/TotpProto.java | 165 +- .../grpc/scalekit/v1/clients/Client.java | 501 +-- .../scalekit/v1/clients/ClientOrBuilder.java | 37 - .../scalekit/v1/clients/ClientsProto.java | 2050 ++++++----- .../v1/clients/ConsentOrganization.java | 702 ++++ .../clients/ConsentOrganizationOrBuilder.java | 39 + .../v1/clients/GetConsentDetailsResponse.java | 185 + .../GetConsentDetailsResponseOrBuilder.java | 15 + .../scalekit/v1/clients/UpdateClient.java | 538 +-- .../v1/clients/UpdateClientOrBuilder.java | 42 - .../scalekit/v1/commons/CommonsProto.java | 14 +- .../grpc/scalekit/v1/commons/TimeUnit.java | 132 + .../AuthorizationDetails.java | 256 ++ .../AuthorizationDetailsOrBuilder.java | 27 + .../ConnectedAccountServiceGrpc.java | 346 +- .../ConnectedAccountsProto.java | 1378 ++++--- .../connected_accounts/ConnectorStatus.java | 38 +- .../v1/connected_accounts/ConnectorType.java | 51 + .../CreateConnectedAccount.java | 4 +- .../DisconnectConnectedAccountRequest.java | 542 +++ ...nnectConnectedAccountRequestOrBuilder.java | 22 + .../DisconnectConnectedAccountResponse.java | 599 ++++ ...nectConnectedAccountResponseOrBuilder.java | 25 + .../GetConnectedAccountRequest.java | 542 +++ .../GetConnectedAccountRequestOrBuilder.java | 22 + .../GetConnectedAccountResponse.java | 599 ++++ .../GetConnectedAccountResponseOrBuilder.java | 25 + ...etMagicLinkForConnectedAccountRequest.java | 314 ++ ...nkForConnectedAccountRequestOrBuilder.java | 34 + .../v1/connected_accounts/GoogleDWDAuth.java | 1070 ++++++ .../GoogleDWDAuthOrBuilder.java | 74 + .../VerifyConnectedAccountUserRequest.java | 678 ++++ ...yConnectedAccountUserRequestOrBuilder.java | 34 + .../VerifyConnectedAccountUserResponse.java | 542 +++ ...ConnectedAccountUserResponseOrBuilder.java | 22 + .../scalekit/v1/connections/Connection.java | 252 +- .../v1/connections/ConnectionOrBuilder.java | 15 + .../v1/connections/ConnectionServiceGrpc.java | 148 + .../v1/connections/ConnectionType.java | 27 + .../v1/connections/ConnectionsProto.java | 2083 ++++++----- .../GetConnectionContextRequest.java} | 308 +- .../GetConnectionContextRequestOrBuilder.java | 34 + .../GetConnectionContextResponse.java | 599 ++++ ...GetConnectionContextResponseOrBuilder.java | 25 + .../v1/connections/GoogleDWDConfig.java | 973 +++++ .../connections/GoogleDWDConfigOrBuilder.java | 65 + .../v1/connections/OAuthConnectionConfig.java | 925 +++++ .../OAuthConnectionConfigOrBuilder.java | 75 + .../v1/connections/OptionalScopes.java | 731 ++++ .../connections/OptionalScopesOrBuilder.java | 47 + .../v1/connections/UpdateConnection.java | 234 +- .../UpdateConnectionContextRequest.java} | 400 +-- ...dateConnectionContextRequestOrBuilder.java | 49 + .../UpdateConnectionOrBuilder.java | 15 + .../v1/directories/DirectoriesProto.java | 414 ++- .../v1/directories/DirectoryServiceGrpc.java | 148 + .../GetDirectoryContextRequest.java} | 308 +- .../GetDirectoryContextRequestOrBuilder.java | 34 + .../GetDirectoryContextResponse.java | 599 ++++ .../GetDirectoryContextResponseOrBuilder.java | 25 + .../UpdateDirectoryContextRequest.java} | 400 +-- ...pdateDirectoryContextRequestOrBuilder.java | 49 + .../grpc/scalekit/v1/domains/Domain.java | 94 + .../scalekit/v1/domains/DomainOrBuilder.java | 11 + .../v1/domains/DomainServiceGrpc.java | 24 +- .../grpc/scalekit/v1/domains/DomainType.java | 2 +- .../scalekit/v1/domains/DomainsProto.java | 786 ++-- .../domains/ListAuthorizedDomainRequest.java | 136 + .../ListAuthorizedDomainRequestOrBuilder.java | 12 + .../v1/domains/VerificationMethod.java | 132 + .../v1/domains/VerificationStatus.java | 2 +- .../v1/domains/VerifyDomainResponse.java | 473 +++ .../VerifyDomainResponseOrBuilder.java | 16 + .../grpc/scalekit/v1/emails/EmailsProto.java | 569 +-- .../v1/environments/AgentActionsConfig.java | 592 +++ .../AgentActionsConfigOrBuilder.java | 32 + .../ConnectedAccountUserVerifyMode.java | 132 + .../CreateAgentActionsConfigRequest.java | 735 ++++ ...ateAgentActionsConfigRequestOrBuilder.java | 37 + .../CreateAgentActionsConfigResponse.java | 599 ++++ ...teAgentActionsConfigResponseOrBuilder.java | 25 + .../environments/EnvironmentServiceGrpc.java | 410 ++- .../v1/environments/EnvironmentsProto.java | 1161 +++--- .../GetAgentActionsConfigRequest.java | 542 +++ ...GetAgentActionsConfigRequestOrBuilder.java | 22 + .../GetAgentActionsConfigResponse.java | 599 ++++ ...etAgentActionsConfigResponseOrBuilder.java | 25 + .../GetCurrentSessionResponse.java | 157 + .../GetCurrentSessionResponseOrBuilder.java | 17 + ...tHostScopedPublicFeatureFlagsResponse.java | 760 ++++ ...edPublicFeatureFlagsResponseOrBuilder.java | 34 + .../GetPortalCustomizationResponse.java | 48 +- ...tPortalCustomizationResponseOrBuilder.java | 12 +- .../environments/PortalBootstrapRequest.java | 409 +++ .../PortalBootstrapRequestOrBuilder.java | 10 + .../environments/PortalBootstrapResponse.java | 1560 ++++++++ .../PortalBootstrapResponseOrBuilder.java | 135 + .../PortalCustomizationBootstrap.java | 890 +++++ ...PortalCustomizationBootstrapOrBuilder.java | 64 + .../v1/environments/PortalSettings.java | 194 +- .../environments/PortalSettingsOrBuilder.java | 25 + .../environments/PublicHostFeatureFlag.java | 1143 ++++++ .../PublicHostFeatureFlagOrBuilder.java | 73 + .../UpdateAgentActionsConfigRequest.java | 735 ++++ ...ateAgentActionsConfigRequestOrBuilder.java | 37 + .../UpdateAgentActionsConfigResponse.java | 599 ++++ ...teAgentActionsConfigResponseOrBuilder.java | 25 + .../scalekit/v1/errdetails/DummyGrpc.java | 293 ++ .../v1/errdetails/ErrdetailsProto.java | 119 +- .../grpc/scalekit/v1/errdetails/HelpInfo.java | 186 + .../v1/errdetails/HelpInfoOrBuilder.java | 20 + .../scalekit/v1/keys/CreateDEKRequest.java | 953 +++++ .../v1/keys/CreateDEKRequestOrBuilder.java | 96 + .../scalekit/v1/keys/CreateDEKResponse.java | 607 ++++ .../v1/keys/CreateDEKResponseOrBuilder.java | 25 + .../v1/keys/CreateMasterKeyRequest.java | 857 +++++ .../keys/CreateMasterKeyRequestOrBuilder.java | 69 + .../v1/keys/CreateMasterKeyResponse.java | 607 ++++ .../CreateMasterKeyResponseOrBuilder.java | 25 + .../grpc/scalekit/v1/keys/DEKKeyType.java | 160 + .../scalekit/v1/keys/DeleteDEKRequest.java | 496 +++ .../v1/keys/DeleteDEKRequestOrBuilder.java | 20 + .../scalekit/v1/keys/DestroyDEKRequest.java | 496 +++ .../v1/keys/DestroyDEKRequestOrBuilder.java | 20 + .../v1/keys/DestroyMasterKeyRequest.java | 496 +++ .../DestroyMasterKeyRequestOrBuilder.java | 20 + .../grpc/scalekit/v1/keys/EnvironmentKey.java | 1496 ++++++++ .../v1/keys/EnvironmentKeyOrBuilder.java | 108 + .../v1/keys/KeyManagementServiceGrpc.java | 1127 ++++++ .../grpc/scalekit/v1/keys/KeysProto.java | 429 +++ .../scalekit/v1/keys/ListDEKsRequest.java | 856 +++++ .../v1/keys/ListDEKsRequestOrBuilder.java | 69 + .../scalekit/v1/keys/ListDEKsResponse.java | 1014 ++++++ .../v1/keys/ListDEKsResponseOrBuilder.java | 64 + .../grpc/scalekit/v1/keys/MasterKey.java | 1486 ++++++++ .../scalekit/v1/keys/MasterKeyOrBuilder.java | 118 + .../scalekit/v1/keys/RotateDEKRequest.java | 407 +++ .../v1/keys/RotateDEKRequestOrBuilder.java | 10 + .../scalekit/v1/keys/RotateDEKResponse.java | 607 ++++ .../v1/keys/RotateDEKResponseOrBuilder.java | 25 + .../v1/keys/RotateMasterKeyRequest.java | 407 +++ .../keys/RotateMasterKeyRequestOrBuilder.java | 10 + .../v1/keys/RotateMasterKeyResponse.java | 607 ++++ .../RotateMasterKeyResponseOrBuilder.java | 25 + .../scalekit/v1/keys/SetActiveDEKRequest.java | 496 +++ .../v1/keys/SetActiveDEKRequestOrBuilder.java | 20 + .../v1/keys/SetActiveDEKResponse.java | 607 ++++ .../keys/SetActiveDEKResponseOrBuilder.java | 25 + .../v1/keys/SetActiveMasterKeyRequest.java | 496 +++ .../SetActiveMasterKeyRequestOrBuilder.java | 20 + .../v1/keys/SetActiveMasterKeyResponse.java | 607 ++++ .../SetActiveMasterKeyResponseOrBuilder.java | 25 + .../scalekit/v1/members/MembersProto.java | 194 +- .../v1/migrations/MigrateEnvKeysRequest.java | 595 +++ .../MigrateEnvKeysRequestOrBuilder.java | 35 + .../v1/migrations/MigrateEnvKeysResponse.java | 472 +++ .../MigrateEnvKeysResponseOrBuilder.java | 16 + .../v1/migrations/MigrationServiceGrpc.java | 74 + .../v1/migrations/MigrationsProto.java | 232 +- .../v1/options/AuthenticationType.java | 112 + .../scalekit/v1/options/OptionsProto.java | 28 +- .../ApplicationSessionPolicySettings.java | 902 +++++ ...icationSessionPolicySettingsOrBuilder.java | 66 + .../v1/organizations/CreateOrganization.java | 157 + .../CreateOrganizationOrBuilder.java | 17 + ...zationSessionSettingsRequestOrBuilder.java | 34 - ...ationSessionSettingsResponseOrBuilder.java | 49 - ...zationSessionSettingsRequestOrBuilder.java | 34 - .../GeneratePortalLinkRequest.java | 24 +- .../GeneratePortalLinkRequestOrBuilder.java | 8 +- .../GetApplicationSessionPolicyRequest.java | 542 +++ ...licationSessionPolicyRequestOrBuilder.java | 22 + .../GetApplicationSessionPolicyResponse.java | 599 ++++ ...icationSessionPolicyResponseOrBuilder.java | 25 + ... GetOrganizationSessionPolicyRequest.java} | 344 +- ...nizationSessionPolicyRequestOrBuilder.java | 22 + .../GetOrganizationSessionPolicyResponse.java | 599 ++++ ...izationSessionPolicyResponseOrBuilder.java | 25 + ...zationSessionSettingsRequestOrBuilder.java | 34 - ...ationSessionSettingsResponseOrBuilder.java | 49 - .../v1/organizations/Organization.java | 157 + .../organizations/OrganizationOrBuilder.java | 17 + .../OrganizationServiceGrpc.java | 464 +-- .../OrganizationSessionPolicySettings.java | 1459 ++++++++ ...izationSessionPolicySettingsOrBuilder.java | 146 + .../OrganizationSessionSettings.java | 617 ++-- .../OrganizationSessionSettingsOrBuilder.java | 66 +- .../v1/organizations/OrganizationsProto.java | 1699 ++++----- .../v1/organizations/SessionPolicyType.java | 123 + .../v1/organizations/UpdateOrganization.java | 157 + .../UpdateOrganizationOrBuilder.java | 17 + ...pdateOrganizationSessionPolicyRequest.java | 1427 ++++++++ ...nizationSessionPolicyRequestOrBuilder.java | 110 + ...dateOrganizationSessionPolicyResponse.java | 599 ++++ ...izationSessionPolicyResponseOrBuilder.java | 25 + ...ateOrganizationSessionSettingsRequest.java | 871 ----- ...zationSessionSettingsRequestOrBuilder.java | 49 - ...teOrganizationSessionSettingsResponse.java | 871 ----- ...ationSessionSettingsResponseOrBuilder.java | 49 - .../v1/providers/CreateCustomProvider.java | 1489 ++++++++ .../CreateCustomProviderOrBuilder.java | 113 + .../CreateCustomProviderRequest.java | 599 ++++ .../CreateCustomProviderRequestOrBuilder.java | 25 + .../v1/providers/ListProvidersRequest.java | 742 +++- .../ListProvidersRequestOrBuilder.java | 15 + .../grpc/scalekit/v1/providers/Provider.java | 413 +++ .../v1/providers/ProviderOrBuilder.java | 46 + .../v1/providers/ProviderServiceGrpc.java | 228 +- .../scalekit/v1/providers/ProviderType.java | 123 + .../scalekit/v1/providers/ProvidersProto.java | 490 ++- .../v1/providers/UpdateCustomProvider.java | 1489 ++++++++ .../UpdateCustomProviderOrBuilder.java | 113 + .../UpdateCustomProviderRequest.java | 735 ++++ .../UpdateCustomProviderRequestOrBuilder.java | 37 + .../v1/providers/UpdateProviderRequest.java | 14 +- .../UpdateProviderRequestOrBuilder.java | 4 +- .../grpc/scalekit/v1/roles/RolesProto.java | 506 +-- .../scalekit/v1/tools/ExecuteToolRequest.java | 157 + .../v1/tools/ExecuteToolRequestOrBuilder.java | 17 + .../grpc/scalekit/v1/tools/Filter.java | 682 ++++ .../scalekit/v1/tools/FilterOrBuilder.java | 86 + .../v1/tools/ListAvailableToolsRequest.java | 744 ++++ .../ListAvailableToolsRequestOrBuilder.java | 40 + .../v1/tools/ListAvailableToolsResponse.java | 1098 ++++++ .../ListAvailableToolsResponseOrBuilder.java | 64 + .../scalekit/v1/tools/ToolServiceGrpc.java | 82 +- .../grpc/scalekit/v1/tools/ToolsProto.java | 436 ++- .../scalekit/v1/users/AssignRoleRequest.java | 14 +- .../v1/users/AssignRoleRequestOrBuilder.java | 4 +- .../scalekit/v1/users/CreateUserProfile.java | 28 +- .../v1/users/CreateUserProfileOrBuilder.java | 8 +- .../scalekit/v1/users/UpdateUserProfile.java | 36 +- .../v1/users/UpdateUserProfileOrBuilder.java | 12 +- .../grpc/scalekit/v1/users/UsersProto.java | 1664 ++++----- .../CreateWorkspaceDomainRequest.java | 599 ++++ ...CreateWorkspaceDomainRequestOrBuilder.java | 25 + .../CreateWorkspaceDomainResponse.java | 599 ++++ ...reateWorkspaceDomainResponseOrBuilder.java | 25 + .../DeleteWorkspaceDomainRequest.java | 542 +++ ...DeleteWorkspaceDomainRequestOrBuilder.java | 22 + .../ListWorkspaceDomainsRequest.java | 878 +++++ .../ListWorkspaceDomainsRequestOrBuilder.java | 51 + .../ListWorkspaceDomainsResponse.java | 892 +++++ ...ListWorkspaceDomainsResponseOrBuilder.java | 46 + .../v1/workspaces/OnboardWorkspace.java | 67 + .../workspaces/OnboardWorkspaceOrBuilder.java | 6 + .../ValidateWorkspaceDomainRequest.java | 399 +++ ...lidateWorkspaceDomainRequestOrBuilder.java | 10 + .../v1/workspaces/WorkspaceServiceGrpc.java | 296 ++ .../v1/workspaces/WorkspacesProto.java | 764 ++-- 285 files changed, 87830 insertions(+), 11561 deletions(-) create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitAnalyticsProto.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitAnalyticsServiceGrpc.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitLogsProto.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitLogsServiceGrpc.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ConnectorStat.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ConnectorStatOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ErrorCodeCount.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ErrorCodeCountOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetOverviewStatsRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetOverviewStatsRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetToolCallLogRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetToolCallLogRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/OverviewStats.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/OverviewStatsOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/TimeSeriesBucket.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/TimeSeriesBucketOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ToolCallLog.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ToolCallLogOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/clients/ConsentOrganization.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/clients/ConsentOrganizationOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/commons/TimeUnit.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GoogleDWDAuth.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GoogleDWDAuthOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserResponseOrBuilder.java rename src/main/java/com/scalekit/grpc/scalekit/v1/{organizations/CreateOrganizationSessionSettingsRequest.java => connections/GetConnectionContextRequest.java} (55%) create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connections/GetConnectionContextRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connections/GetConnectionContextResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connections/GetConnectionContextResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connections/GoogleDWDConfig.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connections/GoogleDWDConfigOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connections/OptionalScopes.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connections/OptionalScopesOrBuilder.java rename src/main/java/com/scalekit/grpc/scalekit/v1/{organizations/GetOrganizationSessionSettingsResponse.java => connections/UpdateConnectionContextRequest.java} (51%) create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnectionContextRequestOrBuilder.java rename src/main/java/com/scalekit/grpc/scalekit/v1/{organizations/DeleteOrganizationSessionSettingsRequest.java => directories/GetDirectoryContextRequest.java} (55%) create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextResponseOrBuilder.java rename src/main/java/com/scalekit/grpc/scalekit/v1/{organizations/CreateOrganizationSessionSettingsResponse.java => directories/UpdateDirectoryContextRequest.java} (51%) create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/directories/UpdateDirectoryContextRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerificationMethod.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerifyDomainResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerifyDomainResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/AgentActionsConfig.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/AgentActionsConfigOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/ConnectedAccountUserVerifyMode.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetHostScopedPublicFeatureFlagsResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetHostScopedPublicFeatureFlagsResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalCustomizationBootstrap.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalCustomizationBootstrapOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/PublicHostFeatureFlag.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/PublicHostFeatureFlagOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/DummyGrpc.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/DEKKeyType.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/DeleteDEKRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/DeleteDEKRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyDEKRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyDEKRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyMasterKeyRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyMasterKeyRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/EnvironmentKey.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/EnvironmentKeyOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/KeyManagementServiceGrpc.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/KeysProto.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/MasterKey.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/MasterKeyOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/ApplicationSessionPolicySettings.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/ApplicationSessionPolicySettingsOrBuilder.java delete mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationSessionSettingsRequestOrBuilder.java delete mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationSessionSettingsResponseOrBuilder.java delete mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/DeleteOrganizationSessionSettingsRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyResponseOrBuilder.java rename src/main/java/com/scalekit/grpc/scalekit/v1/organizations/{GetOrganizationSessionSettingsRequest.java => GetOrganizationSessionPolicyRequest.java} (60%) create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyResponseOrBuilder.java delete mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsRequestOrBuilder.java delete mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionPolicySettings.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionPolicySettingsOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/SessionPolicyType.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyResponseOrBuilder.java delete mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsRequest.java delete mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsRequestOrBuilder.java delete mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsResponse.java delete mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProvider.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProviderOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProviderRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProviderRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProviderType.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProvider.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProviderOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProviderRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProviderRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/DeleteWorkspaceDomainRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/DeleteWorkspaceDomainRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsRequestOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsResponse.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsResponseOrBuilder.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ValidateWorkspaceDomainRequest.java create mode 100644 src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ValidateWorkspaceDomainRequestOrBuilder.java diff --git a/Makefile b/Makefile index 4f691f84..fb69b76f 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ MVN_CMD := $(MVN) $(MVN_FLAGS) BUF := PATH="$(TOOLS_BIN):$$PATH" buf PROTO_REPO_URL := https://github.com/scalekit-inc/scalekit.git -PROTO_REF := v0.1.103 +PROTO_REF := v0.1.121.2 PROTO_SUBDIR := proto PROTO_REMOTE_INPUT := $(PROTO_REPO_URL)\#ref=$(PROTO_REF),subdir=$(PROTO_SUBDIR) BUF_GENERATE_FLAGS := --include-imports diff --git a/src/main/java/com/scalekit/api/OrganizationClient.java b/src/main/java/com/scalekit/api/OrganizationClient.java index 453c1921..b4e1a434 100644 --- a/src/main/java/com/scalekit/api/OrganizationClient.java +++ b/src/main/java/com/scalekit/api/OrganizationClient.java @@ -30,4 +30,14 @@ public interface OrganizationClient { OrganizationUserManagementSettings upsertUserManagementSettings(String organizationId, OrganizationUserManagementSettings settings); + GetOrganizationUserManagementSettingsResponse getOrganizationUserManagementSetting(String organizationId); + + SearchOrganizationsResponse searchOrganizations(SearchOrganizationsRequest request); + + UpdateOrganizationSessionPolicyResponse updateOrganizationSessionPolicy(String organizationId, UpdateOrganizationSessionPolicyRequest request); + + GetOrganizationSessionPolicyResponse getOrganizationSessionPolicy(String organizationId); + + GetApplicationSessionPolicyResponse getApplicationSessionPolicy(String organizationId); + } diff --git a/src/main/java/com/scalekit/api/UserClient.java b/src/main/java/com/scalekit/api/UserClient.java index c1228a53..135ed1d5 100644 --- a/src/main/java/com/scalekit/api/UserClient.java +++ b/src/main/java/com/scalekit/api/UserClient.java @@ -30,4 +30,8 @@ public interface UserClient { ListUserRolesResponse listUserRoles(String organizationId, String userId); ListUserPermissionsResponse listUserPermissions(String organizationId, String userId); -} \ No newline at end of file + + AssignUserRolesResponse assignUserRoles(String organizationId, String userId, AssignUserRolesRequest request); + + void removeUserRole(String organizationId, String userId, RemoveUserRoleRequest request); +} \ No newline at end of file diff --git a/src/main/java/com/scalekit/api/impl/ScalekitOrganizationClient.java b/src/main/java/com/scalekit/api/impl/ScalekitOrganizationClient.java index e01c6078..1f372cd3 100644 --- a/src/main/java/com/scalekit/api/impl/ScalekitOrganizationClient.java +++ b/src/main/java/com/scalekit/api/impl/ScalekitOrganizationClient.java @@ -282,5 +282,92 @@ public OrganizationUserManagementSettings upsertUserManagementSettings(String or }, this.credentials); } + /** + * getOrganizationUserManagementSetting retrieves user management settings for an organization. + * @param organizationId Organization identifier + * @return GetOrganizationUserManagementSettingsResponse containing the settings + */ + @Override + public GetOrganizationUserManagementSettingsResponse getOrganizationUserManagementSetting(String organizationId) { + return RetryExecuter.executeWithRetry(() -> { + return this.organizationStub + .withDeadlineAfter(Environment.defaultConfig().timeout, TimeUnit.MILLISECONDS) + .getOrganizationUserManagementSetting( + GetOrganizationUserManagementSettingsRequest.newBuilder() + .setOrganizationId(organizationId) + .build() + ); + }, this.credentials); + } + + /** + * searchOrganizations searches organizations using the provided request criteria. + * @param request SearchOrganizationsRequest containing query and pagination options + * @return SearchOrganizationsResponse containing matching organizations + */ + @Override + public SearchOrganizationsResponse searchOrganizations(SearchOrganizationsRequest request) { + return RetryExecuter.executeWithRetry(() -> { + return this.organizationStub + .withDeadlineAfter(Environment.defaultConfig().timeout, TimeUnit.MILLISECONDS) + .searchOrganization(request); + }, this.credentials); + } + + /** + * updateOrganizationSessionPolicy updates the session policy for an organization. + * @param organizationId Organization identifier + * @param request UpdateOrganizationSessionPolicyRequest containing the policy details + * @return UpdateOrganizationSessionPolicyResponse with the updated policy + */ + @Override + public UpdateOrganizationSessionPolicyResponse updateOrganizationSessionPolicy(String organizationId, UpdateOrganizationSessionPolicyRequest request) { + return RetryExecuter.executeWithRetry(() -> { + return this.organizationStub + .withDeadlineAfter(Environment.defaultConfig().timeout, TimeUnit.MILLISECONDS) + .updateOrganizationSessionPolicy( + request.toBuilder() + .setOrganizationId(organizationId) + .build() + ); + }, this.credentials); + } + + /** + * getOrganizationSessionPolicy retrieves the session policy for an organization. + * @param organizationId Organization identifier + * @return GetOrganizationSessionPolicyResponse with the current policy + */ + @Override + public GetOrganizationSessionPolicyResponse getOrganizationSessionPolicy(String organizationId) { + return RetryExecuter.executeWithRetry(() -> { + return this.organizationStub + .withDeadlineAfter(Environment.defaultConfig().timeout, TimeUnit.MILLISECONDS) + .getOrganizationSessionPolicy( + GetOrganizationSessionPolicyRequest.newBuilder() + .setOrganizationId(organizationId) + .build() + ); + }, this.credentials); + } + + /** + * getApplicationSessionPolicy retrieves the application-level session policy for an organization. + * @param organizationId Organization identifier + * @return GetApplicationSessionPolicyResponse with the application session policy + */ + @Override + public GetApplicationSessionPolicyResponse getApplicationSessionPolicy(String organizationId) { + return RetryExecuter.executeWithRetry(() -> { + return this.organizationStub + .withDeadlineAfter(Environment.defaultConfig().timeout, TimeUnit.MILLISECONDS) + .getApplicationSessionPolicy( + GetApplicationSessionPolicyRequest.newBuilder() + .setOrganizationId(organizationId) + .build() + ); + }, this.credentials); + } + } diff --git a/src/main/java/com/scalekit/api/impl/ScalekitUserClient.java b/src/main/java/com/scalekit/api/impl/ScalekitUserClient.java index ce89d820..914d240b 100644 --- a/src/main/java/com/scalekit/api/impl/ScalekitUserClient.java +++ b/src/main/java/com/scalekit/api/impl/ScalekitUserClient.java @@ -279,4 +279,42 @@ public ListUserPermissionsResponse listUserPermissions(String organizationId, St .listUserPermissions(request); }, this.credentials); } -} \ No newline at end of file + + /** + * Assigns roles to a user in the specified organization + * @param organizationId: The organization ID + * @param userId: The ID of the user to assign roles to + * @param request: The assign user roles request containing the roles to assign + * @return AssignUserRolesResponse: The response containing the assigned roles + */ + @Override + public AssignUserRolesResponse assignUserRoles(String organizationId, String userId, AssignUserRolesRequest request) { + return RetryExecuter.executeWithRetry(() -> { + return userService + .withDeadlineAfter(Environment.defaultConfig().timeout, TimeUnit.MILLISECONDS) + .assignUserRoles(request.toBuilder() + .setOrganizationId(organizationId) + .setUserId(userId) + .build()); + }, this.credentials); + } + + /** + * Removes a role from a user in the specified organization + * @param organizationId: The organization ID + * @param userId: The ID of the user to remove the role from + * @param request: The remove user role request containing the role to remove + */ + @Override + public void removeUserRole(String organizationId, String userId, RemoveUserRoleRequest request) { + RetryExecuter.executeWithRetry(() -> { + userService + .withDeadlineAfter(Environment.defaultConfig().timeout, TimeUnit.MILLISECONDS) + .removeUserRole(request.toBuilder() + .setOrganizationId(organizationId) + .setUserId(userId) + .build()); + return null; + }, this.credentials); + } +} \ No newline at end of file diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitAnalyticsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitAnalyticsProto.java new file mode 100644 index 00000000..2e66a907 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitAnalyticsProto.java @@ -0,0 +1,187 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_analytics.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +public final class AgentkitAnalyticsProto { + private AgentkitAnalyticsProto() {} + 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_scalekit_v1_agentkit_logs_GetOverviewStatsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_agentkit_logs_GetOverviewStatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_agentkit_logs_OverviewStats_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_agentkit_logs_OverviewStats_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_agentkit_logs_ErrorCodeCount_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_agentkit_logs_ErrorCodeCount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_agentkit_logs_ConnectorStat_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_agentkit_logs_ConnectorStat_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_agentkit_logs_TimeSeriesBucket_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_agentkit_logs_TimeSeriesBucket_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + java.lang.String[] descriptorData = { + "\n2scalekit/v1/agentkit_logs/agentkit_ana" + + "lytics.proto\022\031scalekit.v1.agentkit_logs\032" + + "\033buf/validate/validate.proto\032\034google/api" + + "/annotations.proto\032\037google/api/field_beh" + + "avior.proto\032\033google/api/visibility.proto" + + "\032\037google/protobuf/timestamp.proto\032.proto" + + "c-gen-openapiv2/options/annotations.prot" + + "o\032!scalekit/v1/options/options.proto\"\276\004\n" + + "\027GetOverviewStatsRequest\022>\n\nstart_time\030\001" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\002R\ts" + + "tartTime\022:\n\010end_time\030\002 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\002R\007endTime\022O\n\010provider" + + "\030\003 \003(\tB3\222A02.Filter by connector provide" + + "r slug, e.g. gmail.R\010provider\022g\n\006status\030" + + "\004 \003(\tBO\222AL2JFilter by status. Allowed va" + + "lues: success, provider_error, platform_" + + "error.R\006status\022>\n\nerror_code\030\005 \003(\tB\037\222A\0342" + + "\032Filter by error code slug.R\terrorCode\022\230" + + "\001\n\017connection_name\030\006 \001(\tBj\222A_2OFilter by" + + " connection name (partial, case-insensit" + + "ive match). e.g. \'gmail-prod\'.J\014\"gmail-p" + + "rod\"\272H\005r\003\030\377\001H\000R\016connectionName\210\001\001B\022\n\020_co" + + "nnection_name\"\245\003\n\rOverviewStats\022\024\n\005total" + + "\030\001 \001(\003R\005total\022\030\n\007success\030\002 \001(\003R\007success\022" + + "\026\n\006errors\030\003 \001(\003R\006errors\022\'\n\017provider_erro" + + "rs\030\004 \001(\003R\016providerErrors\022\'\n\017platform_err" + + "ors\030\005 \001(\003R\016platformErrors\022Q\n\017top_error_c" + + "odes\030\006 \003(\0132).scalekit.v1.agentkit_logs.E" + + "rrorCodeCountR\rtopErrorCodes\022Y\n\023connecto" + + "r_breakdown\030\007 \003(\0132(.scalekit.v1.agentkit" + + "_logs.ConnectorStatR\022connectorBreakdown\022" + + "L\n\013time_series\030\010 \003(\0132+.scalekit.v1.agent" + + "kit_logs.TimeSeriesBucketR\ntimeSeries\"E\n" + + "\016ErrorCodeCount\022\035\n\nerror_code\030\001 \001(\tR\terr" + + "orCode\022\024\n\005count\030\002 \001(\003R\005count\"\305\001\n\rConnect" + + "orStat\022\032\n\010provider\030\001 \001(\tR\010provider\022\024\n\005to" + + "tal\030\002 \001(\003R\005total\022\030\n\007success\030\003 \001(\003R\007succe" + + "ss\022\026\n\006errors\030\004 \001(\003R\006errors\022\'\n\017provider_e" + + "rrors\030\005 \001(\003R\016providerErrors\022\'\n\017platform_" + + "errors\030\006 \001(\003R\016platformErrors\"\310\003\n\020TimeSer" + + "iesBucket\0222\n\006bucket\030\001 \001(\0132\032.google.proto" + + "buf.TimestampR\006bucket\022\024\n\005total\030\002 \001(\003R\005to" + + "tal\022\030\n\007success\030\003 \001(\003R\007success\022\026\n\006errors\030" + + "\004 \001(\003R\006errors\022\345\001\n\027bucket_duration_second" + + "s\030\005 \001(\003B\254\001\222A\250\0012\245\001Width of this bucket in" + + " seconds. The server picks granularity a" + + "daptively (5m, 15m, 30m, 1h, 2h, 6h, 12h" + + ", 1d, 3d, or 7d) so that any window retu" + + "rns at most 30 points.R\025bucketDurationSe" + + "conds\022\'\n\017provider_errors\030\006 \001(\003R\016provider" + + "Errors\022\'\n\017platform_errors\030\007 \001(\003R\016platfor" + + "mErrors2\367\003\n\030AgentkitAnalyticsService\022\301\003\n" + + "\020GetOverviewStats\0222.scalekit.v1.agentkit" + + "_logs.GetOverviewStatsRequest\032(.scalekit" + + ".v1.agentkit_logs.OverviewStats\"\316\002\222A\212\002\n\022" + + "AgentKit Analytics\022!Get tool call overvi" + + "ew statistics\032~Returns aggregated tool c" + + "all metrics for the environment over the" + + " specified time window. Used to power th" + + "e Overview dashboard.J3\n\003200\022,\n*Overview" + + " statistics retrieved successfullyJ\034\n\00340" + + "0\022\025\n\023Invalid time window\202\265\030\002\030T\372\322\344\223\002\t\022\007PR" + + "EVIEW\202\323\344\223\002%\022#/api/v1/agentkit/analytics/" + + "overview\032\027\222A\024\n\022AgentKit AnalyticsB\200\002\n+co" + + "m.scalekit.grpc.scalekit.v1.agentkit_log" + + "sB\026AgentkitAnalyticsProtoP\001Z7github.com/" + + "scalekit-inc/scalekit/pkg/grpc/agentkit_" + + "logs\242\002\003SVA\252\002\030Scalekit.V1.AgentkitLogs\312\002\030" + + "Scalekit\\V1\\AgentkitLogs\342\002$Scalekit\\V1\\A" + + "gentkitLogs\\GPBMetadata\352\002\032Scalekit::V1::" + + "AgentkitLogsb\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(), + com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(), + com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(), + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(), + com.scalekit.grpc.scalekit.v1.options.OptionsProto.getDescriptor(), + }); + internal_static_scalekit_v1_agentkit_logs_GetOverviewStatsRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_scalekit_v1_agentkit_logs_GetOverviewStatsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_agentkit_logs_GetOverviewStatsRequest_descriptor, + new java.lang.String[] { "StartTime", "EndTime", "Provider", "Status", "ErrorCode", "ConnectionName", }); + internal_static_scalekit_v1_agentkit_logs_OverviewStats_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_scalekit_v1_agentkit_logs_OverviewStats_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_agentkit_logs_OverviewStats_descriptor, + new java.lang.String[] { "Total", "Success", "Errors", "ProviderErrors", "PlatformErrors", "TopErrorCodes", "ConnectorBreakdown", "TimeSeries", }); + internal_static_scalekit_v1_agentkit_logs_ErrorCodeCount_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_scalekit_v1_agentkit_logs_ErrorCodeCount_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_agentkit_logs_ErrorCodeCount_descriptor, + new java.lang.String[] { "ErrorCode", "Count", }); + internal_static_scalekit_v1_agentkit_logs_ConnectorStat_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_scalekit_v1_agentkit_logs_ConnectorStat_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_agentkit_logs_ConnectorStat_descriptor, + new java.lang.String[] { "Provider", "Total", "Success", "Errors", "ProviderErrors", "PlatformErrors", }); + internal_static_scalekit_v1_agentkit_logs_TimeSeriesBucket_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_scalekit_v1_agentkit_logs_TimeSeriesBucket_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_agentkit_logs_TimeSeriesBucket_descriptor, + new java.lang.String[] { "Bucket", "Total", "Success", "Errors", "BucketDurationSeconds", "ProviderErrors", "PlatformErrors", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.scalekit.grpc.buf.validate.ValidateProto.field); + registry.add(com.scalekit.grpc.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.scalekit.grpc.google.api.AnnotationsProto.http); + registry.add(com.scalekit.grpc.google.api.VisibilityProto.methodVisibility); + registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Field); + registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Operation); + registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Tag); + registry.add(com.scalekit.grpc.scalekit.v1.options.OptionsProto.authOption); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(); + com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(); + com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(); + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(); + com.scalekit.grpc.scalekit.v1.options.OptionsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitAnalyticsServiceGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitAnalyticsServiceGrpc.java new file mode 100644 index 00000000..8833c527 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitAnalyticsServiceGrpc.java @@ -0,0 +1,293 @@ +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.67.1)", + comments = "Source: scalekit/v1/agentkit_logs/agentkit_analytics.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class AgentkitAnalyticsServiceGrpc { + + private AgentkitAnalyticsServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "scalekit.v1.agentkit_logs.AgentkitAnalyticsService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getGetOverviewStatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOverviewStats", + requestType = com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetOverviewStatsMethod() { + io.grpc.MethodDescriptor getGetOverviewStatsMethod; + if ((getGetOverviewStatsMethod = AgentkitAnalyticsServiceGrpc.getGetOverviewStatsMethod) == null) { + synchronized (AgentkitAnalyticsServiceGrpc.class) { + if ((getGetOverviewStatsMethod = AgentkitAnalyticsServiceGrpc.getGetOverviewStatsMethod) == null) { + AgentkitAnalyticsServiceGrpc.getGetOverviewStatsMethod = getGetOverviewStatsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOverviewStats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats.getDefaultInstance())) + .setSchemaDescriptor(new AgentkitAnalyticsServiceMethodDescriptorSupplier("GetOverviewStats")) + .build(); + } + } + } + return getGetOverviewStatsMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AgentkitAnalyticsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentkitAnalyticsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentkitAnalyticsServiceStub(channel, callOptions); + } + }; + return AgentkitAnalyticsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AgentkitAnalyticsServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentkitAnalyticsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentkitAnalyticsServiceBlockingStub(channel, callOptions); + } + }; + return AgentkitAnalyticsServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AgentkitAnalyticsServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentkitAnalyticsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentkitAnalyticsServiceFutureStub(channel, callOptions); + } + }; + return AgentkitAnalyticsServiceFutureStub.newStub(factory, channel); + } + + /** + */ + public interface AsyncService { + + /** + */ + default void getOverviewStats(com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOverviewStatsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AgentkitAnalyticsService. + */ + public static abstract class AgentkitAnalyticsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return AgentkitAnalyticsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AgentkitAnalyticsService. + */ + public static final class AgentkitAnalyticsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AgentkitAnalyticsServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentkitAnalyticsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentkitAnalyticsServiceStub(channel, callOptions); + } + + /** + */ + public void getOverviewStats(com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOverviewStatsMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AgentkitAnalyticsService. + */ + public static final class AgentkitAnalyticsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AgentkitAnalyticsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentkitAnalyticsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentkitAnalyticsServiceBlockingStub(channel, callOptions); + } + + /** + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats getOverviewStats(com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOverviewStatsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AgentkitAnalyticsService. + */ + public static final class AgentkitAnalyticsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AgentkitAnalyticsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentkitAnalyticsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentkitAnalyticsServiceFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getOverviewStats( + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOverviewStatsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_GET_OVERVIEW_STATS = 0; + + 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_GET_OVERVIEW_STATS: + serviceImpl.getOverviewStats((com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest) 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( + getGetOverviewStatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest, + com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats>( + service, METHODID_GET_OVERVIEW_STATS))) + .build(); + } + + private static abstract class AgentkitAnalyticsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AgentkitAnalyticsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AgentkitAnalyticsService"); + } + } + + private static final class AgentkitAnalyticsServiceFileDescriptorSupplier + extends AgentkitAnalyticsServiceBaseDescriptorSupplier { + AgentkitAnalyticsServiceFileDescriptorSupplier() {} + } + + private static final class AgentkitAnalyticsServiceMethodDescriptorSupplier + extends AgentkitAnalyticsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AgentkitAnalyticsServiceMethodDescriptorSupplier(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 (AgentkitAnalyticsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AgentkitAnalyticsServiceFileDescriptorSupplier()) + .addMethod(getGetOverviewStatsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitLogsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitLogsProto.java new file mode 100644 index 00000000..dee48b57 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/AgentkitLogsProto.java @@ -0,0 +1,208 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_logs.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +public final class AgentkitLogsProto { + private AgentkitLogsProto() {} + 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_scalekit_v1_agentkit_logs_ListToolCallLogsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_agentkit_logs_GetToolCallLogRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_agentkit_logs_GetToolCallLogRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_agentkit_logs_ToolCallLog_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_agentkit_logs_ToolCallLog_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-scalekit/v1/agentkit_logs/agentkit_log" + + "s.proto\022\031scalekit.v1.agentkit_logs\032\033buf/" + + "validate/validate.proto\032\034google/api/anno" + + "tations.proto\032\037google/api/field_behavior" + + ".proto\032\033google/api/visibility.proto\032\037goo" + + "gle/protobuf/timestamp.proto\032.protoc-gen" + + "-openapiv2/options/annotations.proto\032!sc" + + "alekit/v1/options/options.proto\"\306\t\n\027List" + + "ToolCallLogsRequest\0229\n\nstart_time\030\001 \001(\0132" + + "\032.google.protobuf.TimestampR\tstartTime\0225" + + "\n\010end_time\030\002 \001(\0132\032.google.protobuf.Times" + + "tampR\007endTime\022g\n\006status\030\003 \003(\tBO\222AL2JFilt" + + "er by status. Allowed values: success, p" + + "rovider_error, platform_error.R\006status\022O" + + "\n\010provider\030\004 \003(\tB3\222A02.Filter by connect" + + "or provider slug, e.g. gmail.R\010provider\022" + + "Z\n\rconnection_id\030\005 \001(\tB0\222A-2\030Filter by c" + + "onnection ID.J\021\"conn_1234567890\"H\000R\014conn" + + "ectionId\210\001\001\022l\n\024connected_account_id\030\006 \001(" + + "\tB5\222A22\037Filter by connected account ID.J" + + "\017\"ca_1234567890\"H\001R\022connectedAccountId\210\001" + + "\001\022{\n\nidentifier\030\007 \001(\tBV\222AK2IFilter by co" + + "nnected account identifier (customer-def" + + "ined end-user label).\272H\005r\003\030\377\001H\002R\nidentif" + + "ier\210\001\001\022\206\001\n\014agent_run_id\030\010 \001(\tB_\222AT2DFilt" + + "er by agent run ID to see all tool calls" + + " for a single agent run.J\014\"run_abc123\"\272H" + + "\005r\003\030\377\001H\003R\nagentRunId\210\001\001\022\\\n\tpage_size\030\t \001" + + "(\rB?\222A<2:Maximum number of records to re" + + "turn (1\342\200\223100, default 20).R\010pageSize\022i\n" + + "\npage_token\030\n \001(\tBJ\222AG2EOpaque paginatio" + + "n token returned by a previous ListToolC" + + "allLogs call.R\tpageToken\022\206\001\n\017connection_" + + "name\030\013 \001(\tBX\222AM2=Filter by connection na" + + "me (partial match). e.g. \'gmail-prod\'.J\014" + + "\"gmail-prod\"\272H\005r\003\030\377\001H\004R\016connectionName\210\001" + + "\001B\020\n\016_connection_idB\027\n\025_connected_accoun" + + "t_idB\r\n\013_identifierB\017\n\r_agent_run_idB\022\n\020" + + "_connection_name\"\264\002\n\030ListToolCallLogsRes" + + "ponse\022L\n\016tool_call_logs\030\001 \003(\0132&.scalekit" + + ".v1.agentkit_logs.ToolCallLogR\014toolCallL" + + "ogs\022&\n\017next_page_token\030\002 \001(\tR\rnextPageTo" + + "ken\022\035\n\ntotal_size\030\003 \001(\003R\ttotalSize\022\202\001\n\017p" + + "rev_page_token\030\004 \001(\tBZ\222AW2UPagination to" + + "ken to fetch the previous page of result" + + "s. Empty when on the first page.R\rprevPa" + + "geToken\"z\n\025GetToolCallLogRequest\022a\n\014exec" + + "ution_id\030\001 \001(\tB>\222A/2\036Execution ID of the" + + " tool call.J\r\"exec_abc123\"\340A\002\272H\006r\004\020\001\030@R\013" + + "executionId\"\370\007\n\013ToolCallLog\022F\n\002id\030\001 \001(\tB" + + "6\222A32\037Unique tool call log record ID.J\020\"" + + "tcl_1234567890\"R\002id\022%\n\016environment_id\030\002 " + + "\001(\tR\renvironmentId\022O\n\014execution_id\030\003 \001(\t" + + "B,\222A)2\'Unique execution ID for this tool" + + " call.R\013executionId\022%\n\014agent_run_id\030\004 \001(" + + "\tH\000R\nagentRunId\210\001\001\022\033\n\ttool_name\030\005 \001(\tR\010t" + + "oolName\022\032\n\010provider\030\006 \001(\tR\010provider\0220\n\024c" + + "onnected_account_id\030\007 \001(\tR\022connectedAcco" + + "untId\022#\n\rconnection_id\030\010 \001(\tR\014connection" + + "Id\022\'\n\017connection_name\030\t \001(\tR\016connectionN" + + "ame\022\036\n\nidentifier\030\n \001(\tR\nidentifier\022\027\n\007u" + + "ser_id\030\013 \001(\tR\006userId\022,\n\017organization_id\030" + + "\014 \001(\tH\001R\016organizationId\210\001\001\022;\n\006source\030\r \001" + + "(\tB#\222A 2\036Invocation source: API or MCP.R" + + "\006source\022Q\n\006status\030\016 \001(\tB9\222A624Outcome: s" + + "uccess, provider_error, or platform_erro" + + "r.R\006status\022\035\n\nerror_tier\030\017 \001(\tR\terrorTie" + + "r\022\035\n\nerror_code\030\020 \001(\tR\terrorCode\022#\n\rerro" + + "r_message\030\021 \001(\tR\014errorMessage\022\037\n\013duratio" + + "n_ms\030\022 \001(\003R\ndurationMs\0229\n\nstarted_at\030\023 \001" + + "(\0132\032.google.protobuf.TimestampR\tstartedA" + + "t\022]\n\014workspace_id\030\024 \001(\tB5\222A22\036Workspace " + + "this log belongs to.J\020\"wks_1234567890\"H\002" + + "R\013workspaceId\210\001\001B\017\n\r_agent_run_idB\022\n\020_or" + + "ganization_idB\017\n\r_workspace_id2\327\006\n\023Agent" + + "kitLogsService\022\272\003\n\020ListToolCallLogs\0222.sc" + + "alekit.v1.agentkit_logs.ListToolCallLogs" + + "Request\0323.scalekit.v1.agentkit_logs.List" + + "ToolCallLogsResponse\"\274\002\222A\374\001\n\rAgentKit Lo" + + "gs\022\023List tool call logs\032\200\001Returns pagina" + + "ted tool call execution records for the " + + "environment. Filter by time range, statu" + + "s, provider, or connected account.J.\n\00320" + + "0\022\'\n%Tool call logs retrieved successful" + + "lyJ#\n\003400\022\034\n\032Invalid request parameters\202" + + "\265\030\002\030T\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002!\022\037/api/v1/agen" + + "tkit/tool_call_logs\022\356\002\n\016GetToolCallLog\0220" + + ".scalekit.v1.agentkit_logs.GetToolCallLo" + + "gRequest\032&.scalekit.v1.agentkit_logs.Too" + + "lCallLog\"\201\002\222A\262\001\n\rAgentKit Logs\022\023Get a to" + + "ol call log\032 getListToolCallLogsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListToolCallLogs", + requestType = com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListToolCallLogsMethod() { + io.grpc.MethodDescriptor getListToolCallLogsMethod; + if ((getListToolCallLogsMethod = AgentkitLogsServiceGrpc.getListToolCallLogsMethod) == null) { + synchronized (AgentkitLogsServiceGrpc.class) { + if ((getListToolCallLogsMethod = AgentkitLogsServiceGrpc.getListToolCallLogsMethod) == null) { + AgentkitLogsServiceGrpc.getListToolCallLogsMethod = getListToolCallLogsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListToolCallLogs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse.getDefaultInstance())) + .setSchemaDescriptor(new AgentkitLogsServiceMethodDescriptorSupplier("ListToolCallLogs")) + .build(); + } + } + } + return getListToolCallLogsMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetToolCallLogMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetToolCallLog", + requestType = com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetToolCallLogMethod() { + io.grpc.MethodDescriptor getGetToolCallLogMethod; + if ((getGetToolCallLogMethod = AgentkitLogsServiceGrpc.getGetToolCallLogMethod) == null) { + synchronized (AgentkitLogsServiceGrpc.class) { + if ((getGetToolCallLogMethod = AgentkitLogsServiceGrpc.getGetToolCallLogMethod) == null) { + AgentkitLogsServiceGrpc.getGetToolCallLogMethod = getGetToolCallLogMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetToolCallLog")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.getDefaultInstance())) + .setSchemaDescriptor(new AgentkitLogsServiceMethodDescriptorSupplier("GetToolCallLog")) + .build(); + } + } + } + return getGetToolCallLogMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static AgentkitLogsServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentkitLogsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentkitLogsServiceStub(channel, callOptions); + } + }; + return AgentkitLogsServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AgentkitLogsServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentkitLogsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentkitLogsServiceBlockingStub(channel, callOptions); + } + }; + return AgentkitLogsServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static AgentkitLogsServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AgentkitLogsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentkitLogsServiceFutureStub(channel, callOptions); + } + }; + return AgentkitLogsServiceFutureStub.newStub(factory, channel); + } + + /** + */ + public interface AsyncService { + + /** + */ + default void listToolCallLogs(com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListToolCallLogsMethod(), responseObserver); + } + + /** + */ + default void getToolCallLog(com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetToolCallLogMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AgentkitLogsService. + */ + public static abstract class AgentkitLogsServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return AgentkitLogsServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AgentkitLogsService. + */ + public static final class AgentkitLogsServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AgentkitLogsServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentkitLogsServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentkitLogsServiceStub(channel, callOptions); + } + + /** + */ + public void listToolCallLogs(com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListToolCallLogsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getToolCallLog(com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetToolCallLogMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AgentkitLogsService. + */ + public static final class AgentkitLogsServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AgentkitLogsServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentkitLogsServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentkitLogsServiceBlockingStub(channel, callOptions); + } + + /** + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse listToolCallLogs(com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListToolCallLogsMethod(), getCallOptions(), request); + } + + /** + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog getToolCallLog(com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetToolCallLogMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AgentkitLogsService. + */ + public static final class AgentkitLogsServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AgentkitLogsServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AgentkitLogsServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AgentkitLogsServiceFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture listToolCallLogs( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListToolCallLogsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getToolCallLog( + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetToolCallLogMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_TOOL_CALL_LOGS = 0; + private static final int METHODID_GET_TOOL_CALL_LOG = 1; + + 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_TOOL_CALL_LOGS: + serviceImpl.listToolCallLogs((com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_TOOL_CALL_LOG: + serviceImpl.getToolCallLog((com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest) 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( + getListToolCallLogsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest, + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse>( + service, METHODID_LIST_TOOL_CALL_LOGS))) + .addMethod( + getGetToolCallLogMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest, + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog>( + service, METHODID_GET_TOOL_CALL_LOG))) + .build(); + } + + private static abstract class AgentkitLogsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AgentkitLogsServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AgentkitLogsService"); + } + } + + private static final class AgentkitLogsServiceFileDescriptorSupplier + extends AgentkitLogsServiceBaseDescriptorSupplier { + AgentkitLogsServiceFileDescriptorSupplier() {} + } + + private static final class AgentkitLogsServiceMethodDescriptorSupplier + extends AgentkitLogsServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AgentkitLogsServiceMethodDescriptorSupplier(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 (AgentkitLogsServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AgentkitLogsServiceFileDescriptorSupplier()) + .addMethod(getListToolCallLogsMethod()) + .addMethod(getGetToolCallLogMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ConnectorStat.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ConnectorStat.java new file mode 100644 index 00000000..9361e44f --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ConnectorStat.java @@ -0,0 +1,877 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_analytics.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +/** + * Protobuf type {@code scalekit.v1.agentkit_logs.ConnectorStat} + */ +public final class ConnectorStat extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.agentkit_logs.ConnectorStat) + ConnectorStatOrBuilder { +private static final long serialVersionUID = 0L; + // Use ConnectorStat.newBuilder() to construct. + private ConnectorStat(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConnectorStat() { + provider_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConnectorStat(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_ConnectorStat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_ConnectorStat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.Builder.class); + } + + public static final int PROVIDER_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object provider_ = ""; + /** + * string provider = 1 [json_name = "provider"]; + * @return The provider. + */ + @java.lang.Override + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + 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(); + provider_ = s; + return s; + } + } + /** + * string provider = 1 [json_name = "provider"]; + * @return The bytes for provider. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOTAL_FIELD_NUMBER = 2; + private long total_ = 0L; + /** + * int64 total = 2 [json_name = "total"]; + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + + public static final int SUCCESS_FIELD_NUMBER = 3; + private long success_ = 0L; + /** + * int64 success = 3 [json_name = "success"]; + * @return The success. + */ + @java.lang.Override + public long getSuccess() { + return success_; + } + + public static final int ERRORS_FIELD_NUMBER = 4; + private long errors_ = 0L; + /** + * int64 errors = 4 [json_name = "errors"]; + * @return The errors. + */ + @java.lang.Override + public long getErrors() { + return errors_; + } + + public static final int PROVIDER_ERRORS_FIELD_NUMBER = 5; + private long providerErrors_ = 0L; + /** + * int64 provider_errors = 5 [json_name = "providerErrors"]; + * @return The providerErrors. + */ + @java.lang.Override + public long getProviderErrors() { + return providerErrors_; + } + + public static final int PLATFORM_ERRORS_FIELD_NUMBER = 6; + private long platformErrors_ = 0L; + /** + * int64 platform_errors = 6 [json_name = "platformErrors"]; + * @return The platformErrors. + */ + @java.lang.Override + public long getPlatformErrors() { + return platformErrors_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, provider_); + } + if (total_ != 0L) { + output.writeInt64(2, total_); + } + if (success_ != 0L) { + output.writeInt64(3, success_); + } + if (errors_ != 0L) { + output.writeInt64(4, errors_); + } + if (providerErrors_ != 0L) { + output.writeInt64(5, providerErrors_); + } + if (platformErrors_ != 0L) { + output.writeInt64(6, platformErrors_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, provider_); + } + if (total_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, total_); + } + if (success_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, success_); + } + if (errors_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, errors_); + } + if (providerErrors_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, providerErrors_); + } + if (platformErrors_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, platformErrors_); + } + 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.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat other = (com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat) obj; + + if (!getProvider() + .equals(other.getProvider())) return false; + if (getTotal() + != other.getTotal()) return false; + if (getSuccess() + != other.getSuccess()) return false; + if (getErrors() + != other.getErrors()) return false; + if (getProviderErrors() + != other.getProviderErrors()) return false; + if (getPlatformErrors() + != other.getPlatformErrors()) 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) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotal()); + hash = (37 * hash) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSuccess()); + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getErrors()); + hash = (37 * hash) + PROVIDER_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getProviderErrors()); + hash = (37 * hash) + PLATFORM_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPlatformErrors()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.agentkit_logs.ConnectorStat} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.agentkit_logs.ConnectorStat) + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStatOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_ConnectorStat_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_ConnectorStat_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + provider_ = ""; + total_ = 0L; + success_ = 0L; + errors_ = 0L; + providerErrors_ = 0L; + platformErrors_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_ConnectorStat_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat build() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat buildPartial() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat result = new com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.provider_ = provider_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.total_ = total_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.success_ = success_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.errors_ = errors_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.providerErrors_ = providerErrors_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.platformErrors_ = platformErrors_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat other) { + if (other == com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.getDefaultInstance()) return this; + if (!other.getProvider().isEmpty()) { + provider_ = other.provider_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getTotal() != 0L) { + setTotal(other.getTotal()); + } + if (other.getSuccess() != 0L) { + setSuccess(other.getSuccess()); + } + if (other.getErrors() != 0L) { + setErrors(other.getErrors()); + } + if (other.getProviderErrors() != 0L) { + setProviderErrors(other.getProviderErrors()); + } + if (other.getPlatformErrors() != 0L) { + setPlatformErrors(other.getPlatformErrors()); + } + 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: { + provider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + total_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + success_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + errors_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + providerErrors_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + platformErrors_ = input.readInt64(); + 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 provider_ = ""; + /** + * string provider = 1 [json_name = "provider"]; + * @return The provider. + */ + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string provider = 1 [json_name = "provider"]; + * @return The bytes for provider. + */ + public com.google.protobuf.ByteString + getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string provider = 1 [json_name = "provider"]; + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + provider_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string provider = 1 [json_name = "provider"]; + * @return This builder for chaining. + */ + public Builder clearProvider() { + provider_ = getDefaultInstance().getProvider(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string provider = 1 [json_name = "provider"]; + * @param value The bytes for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + provider_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long total_ ; + /** + * int64 total = 2 [json_name = "total"]; + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + /** + * int64 total = 2 [json_name = "total"]; + * @param value The total to set. + * @return This builder for chaining. + */ + public Builder setTotal(long value) { + + total_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int64 total = 2 [json_name = "total"]; + * @return This builder for chaining. + */ + public Builder clearTotal() { + bitField0_ = (bitField0_ & ~0x00000002); + total_ = 0L; + onChanged(); + return this; + } + + private long success_ ; + /** + * int64 success = 3 [json_name = "success"]; + * @return The success. + */ + @java.lang.Override + public long getSuccess() { + return success_; + } + /** + * int64 success = 3 [json_name = "success"]; + * @param value The success to set. + * @return This builder for chaining. + */ + public Builder setSuccess(long value) { + + success_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int64 success = 3 [json_name = "success"]; + * @return This builder for chaining. + */ + public Builder clearSuccess() { + bitField0_ = (bitField0_ & ~0x00000004); + success_ = 0L; + onChanged(); + return this; + } + + private long errors_ ; + /** + * int64 errors = 4 [json_name = "errors"]; + * @return The errors. + */ + @java.lang.Override + public long getErrors() { + return errors_; + } + /** + * int64 errors = 4 [json_name = "errors"]; + * @param value The errors to set. + * @return This builder for chaining. + */ + public Builder setErrors(long value) { + + errors_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int64 errors = 4 [json_name = "errors"]; + * @return This builder for chaining. + */ + public Builder clearErrors() { + bitField0_ = (bitField0_ & ~0x00000008); + errors_ = 0L; + onChanged(); + return this; + } + + private long providerErrors_ ; + /** + * int64 provider_errors = 5 [json_name = "providerErrors"]; + * @return The providerErrors. + */ + @java.lang.Override + public long getProviderErrors() { + return providerErrors_; + } + /** + * int64 provider_errors = 5 [json_name = "providerErrors"]; + * @param value The providerErrors to set. + * @return This builder for chaining. + */ + public Builder setProviderErrors(long value) { + + providerErrors_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * int64 provider_errors = 5 [json_name = "providerErrors"]; + * @return This builder for chaining. + */ + public Builder clearProviderErrors() { + bitField0_ = (bitField0_ & ~0x00000010); + providerErrors_ = 0L; + onChanged(); + return this; + } + + private long platformErrors_ ; + /** + * int64 platform_errors = 6 [json_name = "platformErrors"]; + * @return The platformErrors. + */ + @java.lang.Override + public long getPlatformErrors() { + return platformErrors_; + } + /** + * int64 platform_errors = 6 [json_name = "platformErrors"]; + * @param value The platformErrors to set. + * @return This builder for chaining. + */ + public Builder setPlatformErrors(long value) { + + platformErrors_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * int64 platform_errors = 6 [json_name = "platformErrors"]; + * @return This builder for chaining. + */ + public Builder clearPlatformErrors() { + bitField0_ = (bitField0_ & ~0x00000020); + platformErrors_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.agentkit_logs.ConnectorStat) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.agentkit_logs.ConnectorStat) + private static final com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat(); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConnectorStat 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.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ConnectorStatOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ConnectorStatOrBuilder.java new file mode 100644 index 00000000..d12c0cac --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ConnectorStatOrBuilder.java @@ -0,0 +1,52 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_analytics.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +public interface ConnectorStatOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.agentkit_logs.ConnectorStat) + com.google.protobuf.MessageOrBuilder { + + /** + * string provider = 1 [json_name = "provider"]; + * @return The provider. + */ + java.lang.String getProvider(); + /** + * string provider = 1 [json_name = "provider"]; + * @return The bytes for provider. + */ + com.google.protobuf.ByteString + getProviderBytes(); + + /** + * int64 total = 2 [json_name = "total"]; + * @return The total. + */ + long getTotal(); + + /** + * int64 success = 3 [json_name = "success"]; + * @return The success. + */ + long getSuccess(); + + /** + * int64 errors = 4 [json_name = "errors"]; + * @return The errors. + */ + long getErrors(); + + /** + * int64 provider_errors = 5 [json_name = "providerErrors"]; + * @return The providerErrors. + */ + long getProviderErrors(); + + /** + * int64 platform_errors = 6 [json_name = "platformErrors"]; + * @return The platformErrors. + */ + long getPlatformErrors(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ErrorCodeCount.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ErrorCodeCount.java new file mode 100644 index 00000000..7b99308f --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ErrorCodeCount.java @@ -0,0 +1,609 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_analytics.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +/** + * Protobuf type {@code scalekit.v1.agentkit_logs.ErrorCodeCount} + */ +public final class ErrorCodeCount extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.agentkit_logs.ErrorCodeCount) + ErrorCodeCountOrBuilder { +private static final long serialVersionUID = 0L; + // Use ErrorCodeCount.newBuilder() to construct. + private ErrorCodeCount(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ErrorCodeCount() { + errorCode_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ErrorCodeCount(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_ErrorCodeCount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_ErrorCodeCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.Builder.class); + } + + public static final int ERROR_CODE_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object errorCode_ = ""; + /** + * string error_code = 1 [json_name = "errorCode"]; + * @return The errorCode. + */ + @java.lang.Override + public java.lang.String getErrorCode() { + java.lang.Object ref = errorCode_; + 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(); + errorCode_ = s; + return s; + } + } + /** + * string error_code = 1 [json_name = "errorCode"]; + * @return The bytes for errorCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorCodeBytes() { + java.lang.Object ref = errorCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int COUNT_FIELD_NUMBER = 2; + private long count_ = 0L; + /** + * int64 count = 2 [json_name = "count"]; + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, errorCode_); + } + if (count_ != 0L) { + output.writeInt64(2, count_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, errorCode_); + } + if (count_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, count_); + } + 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.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount other = (com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount) obj; + + if (!getErrorCode() + .equals(other.getErrorCode())) return false; + if (getCount() + != other.getCount()) 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) + ERROR_CODE_FIELD_NUMBER; + hash = (53 * hash) + getErrorCode().hashCode(); + hash = (37 * hash) + COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getCount()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.agentkit_logs.ErrorCodeCount} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.agentkit_logs.ErrorCodeCount) + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCountOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_ErrorCodeCount_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_ErrorCodeCount_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + errorCode_ = ""; + count_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_ErrorCodeCount_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount build() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount buildPartial() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount result = new com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.errorCode_ = errorCode_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.count_ = count_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount other) { + if (other == com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.getDefaultInstance()) return this; + if (!other.getErrorCode().isEmpty()) { + errorCode_ = other.errorCode_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getCount() != 0L) { + setCount(other.getCount()); + } + 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: { + errorCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + count_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 errorCode_ = ""; + /** + * string error_code = 1 [json_name = "errorCode"]; + * @return The errorCode. + */ + public java.lang.String getErrorCode() { + java.lang.Object ref = errorCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error_code = 1 [json_name = "errorCode"]; + * @return The bytes for errorCode. + */ + public com.google.protobuf.ByteString + getErrorCodeBytes() { + java.lang.Object ref = errorCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error_code = 1 [json_name = "errorCode"]; + * @param value The errorCode to set. + * @return This builder for chaining. + */ + public Builder setErrorCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + errorCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string error_code = 1 [json_name = "errorCode"]; + * @return This builder for chaining. + */ + public Builder clearErrorCode() { + errorCode_ = getDefaultInstance().getErrorCode(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string error_code = 1 [json_name = "errorCode"]; + * @param value The bytes for errorCode to set. + * @return This builder for chaining. + */ + public Builder setErrorCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + errorCode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long count_ ; + /** + * int64 count = 2 [json_name = "count"]; + * @return The count. + */ + @java.lang.Override + public long getCount() { + return count_; + } + /** + * int64 count = 2 [json_name = "count"]; + * @param value The count to set. + * @return This builder for chaining. + */ + public Builder setCount(long value) { + + count_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int64 count = 2 [json_name = "count"]; + * @return This builder for chaining. + */ + public Builder clearCount() { + bitField0_ = (bitField0_ & ~0x00000002); + count_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.agentkit_logs.ErrorCodeCount) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.agentkit_logs.ErrorCodeCount) + private static final com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount(); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ErrorCodeCount 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.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ErrorCodeCountOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ErrorCodeCountOrBuilder.java new file mode 100644 index 00000000..b287ddd7 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ErrorCodeCountOrBuilder.java @@ -0,0 +1,28 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_analytics.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +public interface ErrorCodeCountOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.agentkit_logs.ErrorCodeCount) + com.google.protobuf.MessageOrBuilder { + + /** + * string error_code = 1 [json_name = "errorCode"]; + * @return The errorCode. + */ + java.lang.String getErrorCode(); + /** + * string error_code = 1 [json_name = "errorCode"]; + * @return The bytes for errorCode. + */ + com.google.protobuf.ByteString + getErrorCodeBytes(); + + /** + * int64 count = 2 [json_name = "count"]; + * @return The count. + */ + long getCount(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetOverviewStatsRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetOverviewStatsRequest.java new file mode 100644 index 00000000..fd9868a4 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetOverviewStatsRequest.java @@ -0,0 +1,1508 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_analytics.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +/** + * Protobuf type {@code scalekit.v1.agentkit_logs.GetOverviewStatsRequest} + */ +public final class GetOverviewStatsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.agentkit_logs.GetOverviewStatsRequest) + GetOverviewStatsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetOverviewStatsRequest.newBuilder() to construct. + private GetOverviewStatsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetOverviewStatsRequest() { + provider_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + status_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + errorCode_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + connectionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetOverviewStatsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_GetOverviewStatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_GetOverviewStatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int PROVIDER_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList provider_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the provider. + */ + public com.google.protobuf.ProtocolStringList + getProviderList() { + return provider_; + } + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of provider. + */ + public int getProviderCount() { + return provider_.size(); + } + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The provider at the given index. + */ + public java.lang.String getProvider(int index) { + return provider_.get(index); + } + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the provider at the given index. + */ + public com.google.protobuf.ByteString + getProviderBytes(int index) { + return provider_.getByteString(index); + } + + public static final int STATUS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList status_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the status. + */ + public com.google.protobuf.ProtocolStringList + getStatusList() { + return status_; + } + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of status. + */ + public int getStatusCount() { + return status_.size(); + } + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The status at the given index. + */ + public java.lang.String getStatus(int index) { + return status_.get(index); + } + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the status at the given index. + */ + public com.google.protobuf.ByteString + getStatusBytes(int index) { + return status_.getByteString(index); + } + + public static final int ERROR_CODE_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList errorCode_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the errorCode. + */ + public com.google.protobuf.ProtocolStringList + getErrorCodeList() { + return errorCode_; + } + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of errorCode. + */ + public int getErrorCodeCount() { + return errorCode_.size(); + } + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The errorCode at the given index. + */ + public java.lang.String getErrorCode(int index) { + return errorCode_.get(index); + } + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the errorCode at the given index. + */ + public com.google.protobuf.ByteString + getErrorCodeBytes(int index) { + return errorCode_.getByteString(index); + } + + public static final int CONNECTION_NAME_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object connectionName_ = ""; + /** + * optional string connection_name = 6 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectionName field is set. + */ + @java.lang.Override + public boolean hasConnectionName() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string connection_name = 6 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectionName. + */ + @java.lang.Override + public java.lang.String getConnectionName() { + java.lang.Object ref = connectionName_; + 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(); + connectionName_ = s; + return s; + } + } + /** + * optional string connection_name = 6 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConnectionNameBytes() { + java.lang.Object ref = connectionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectionName_ = 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + for (int i = 0; i < provider_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, provider_.getRaw(i)); + } + for (int i = 0; i < status_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, status_.getRaw(i)); + } + for (int i = 0; i < errorCode_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, errorCode_.getRaw(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, connectionName_); + } + 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); + } + { + int dataSize = 0; + for (int i = 0; i < provider_.size(); i++) { + dataSize += computeStringSizeNoTag(provider_.getRaw(i)); + } + size += dataSize; + size += 1 * getProviderList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < status_.size(); i++) { + dataSize += computeStringSizeNoTag(status_.getRaw(i)); + } + size += dataSize; + size += 1 * getStatusList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < errorCode_.size(); i++) { + dataSize += computeStringSizeNoTag(errorCode_.getRaw(i)); + } + size += dataSize; + size += 1 * getErrorCodeList().size(); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, connectionName_); + } + 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.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest other = (com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getProviderList() + .equals(other.getProviderList())) return false; + if (!getStatusList() + .equals(other.getStatusList())) return false; + if (!getErrorCodeList() + .equals(other.getErrorCodeList())) return false; + if (hasConnectionName() != other.hasConnectionName()) return false; + if (hasConnectionName()) { + if (!getConnectionName() + .equals(other.getConnectionName())) 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 (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (getProviderCount() > 0) { + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProviderList().hashCode(); + } + if (getStatusCount() > 0) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatusList().hashCode(); + } + if (getErrorCodeCount() > 0) { + hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER; + hash = (53 * hash) + getErrorCodeList().hashCode(); + } + if (hasConnectionName()) { + hash = (37 * hash) + CONNECTION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getConnectionName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.agentkit_logs.GetOverviewStatsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.agentkit_logs.GetOverviewStatsRequest) + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_GetOverviewStatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_GetOverviewStatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + provider_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + status_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + errorCode_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + connectionName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_GetOverviewStatsRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest build() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest result = new com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + provider_.makeImmutable(); + result.provider_ = provider_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + status_.makeImmutable(); + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + errorCode_.makeImmutable(); + result.errorCode_ = errorCode_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.connectionName_ = connectionName_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.provider_.isEmpty()) { + if (provider_.isEmpty()) { + provider_ = other.provider_; + bitField0_ |= 0x00000004; + } else { + ensureProviderIsMutable(); + provider_.addAll(other.provider_); + } + onChanged(); + } + if (!other.status_.isEmpty()) { + if (status_.isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00000008; + } else { + ensureStatusIsMutable(); + status_.addAll(other.status_); + } + onChanged(); + } + if (!other.errorCode_.isEmpty()) { + if (errorCode_.isEmpty()) { + errorCode_ = other.errorCode_; + bitField0_ |= 0x00000010; + } else { + ensureErrorCodeIsMutable(); + errorCode_.addAll(other.errorCode_); + } + onChanged(); + } + if (other.hasConnectionName()) { + connectionName_ = other.connectionName_; + bitField0_ |= 0x00000020; + 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( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureProviderIsMutable(); + provider_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStatusIsMutable(); + status_.add(s); + break; + } // case 34 + case 42: { + java.lang.String s = input.readStringRequireUtf8(); + ensureErrorCodeIsMutable(); + errorCode_.add(s); + break; + } // case 42 + case 50: { + connectionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + 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.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList provider_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureProviderIsMutable() { + if (!provider_.isModifiable()) { + provider_ = new com.google.protobuf.LazyStringArrayList(provider_); + } + bitField0_ |= 0x00000004; + } + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the provider. + */ + public com.google.protobuf.ProtocolStringList + getProviderList() { + provider_.makeImmutable(); + return provider_; + } + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of provider. + */ + public int getProviderCount() { + return provider_.size(); + } + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The provider at the given index. + */ + public java.lang.String getProvider(int index) { + return provider_.get(index); + } + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the provider at the given index. + */ + public com.google.protobuf.ByteString + getProviderBytes(int index) { + return provider_.getByteString(index); + } + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index to set the value at. + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureProviderIsMutable(); + provider_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The provider to add. + * @return This builder for chaining. + */ + public Builder addProvider( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureProviderIsMutable(); + provider_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param values The provider to add. + * @return This builder for chaining. + */ + public Builder addAllProvider( + java.lang.Iterable values) { + ensureProviderIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, provider_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearProvider() { + provider_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes of the provider to add. + * @return This builder for chaining. + */ + public Builder addProviderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureProviderIsMutable(); + provider_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList status_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureStatusIsMutable() { + if (!status_.isModifiable()) { + status_ = new com.google.protobuf.LazyStringArrayList(status_); + } + bitField0_ |= 0x00000008; + } + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the status. + */ + public com.google.protobuf.ProtocolStringList + getStatusList() { + status_.makeImmutable(); + return status_; + } + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of status. + */ + public int getStatusCount() { + return status_.size(); + } + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The status at the given index. + */ + public java.lang.String getStatus(int index) { + return status_.get(index); + } + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the status at the given index. + */ + public com.google.protobuf.ByteString + getStatusBytes(int index) { + return status_.getByteString(index); + } + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index to set the value at. + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureStatusIsMutable(); + status_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The status to add. + * @return This builder for chaining. + */ + public Builder addStatus( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureStatusIsMutable(); + status_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param values The status to add. + * @return This builder for chaining. + */ + public Builder addAllStatus( + java.lang.Iterable values) { + ensureStatusIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, status_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes of the status to add. + * @return This builder for chaining. + */ + public Builder addStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureStatusIsMutable(); + status_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList errorCode_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureErrorCodeIsMutable() { + if (!errorCode_.isModifiable()) { + errorCode_ = new com.google.protobuf.LazyStringArrayList(errorCode_); + } + bitField0_ |= 0x00000010; + } + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the errorCode. + */ + public com.google.protobuf.ProtocolStringList + getErrorCodeList() { + errorCode_.makeImmutable(); + return errorCode_; + } + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of errorCode. + */ + public int getErrorCodeCount() { + return errorCode_.size(); + } + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The errorCode at the given index. + */ + public java.lang.String getErrorCode(int index) { + return errorCode_.get(index); + } + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the errorCode at the given index. + */ + public com.google.protobuf.ByteString + getErrorCodeBytes(int index) { + return errorCode_.getByteString(index); + } + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index to set the value at. + * @param value The errorCode to set. + * @return This builder for chaining. + */ + public Builder setErrorCode( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureErrorCodeIsMutable(); + errorCode_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The errorCode to add. + * @return This builder for chaining. + */ + public Builder addErrorCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureErrorCodeIsMutable(); + errorCode_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param values The errorCode to add. + * @return This builder for chaining. + */ + public Builder addAllErrorCode( + java.lang.Iterable values) { + ensureErrorCodeIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, errorCode_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearErrorCode() { + errorCode_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010);; + onChanged(); + return this; + } + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes of the errorCode to add. + * @return This builder for chaining. + */ + public Builder addErrorCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureErrorCodeIsMutable(); + errorCode_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object connectionName_ = ""; + /** + * optional string connection_name = 6 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectionName field is set. + */ + public boolean hasConnectionName() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string connection_name = 6 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectionName. + */ + public java.lang.String getConnectionName() { + java.lang.Object ref = connectionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string connection_name = 6 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectionName. + */ + public com.google.protobuf.ByteString + getConnectionNameBytes() { + java.lang.Object ref = connectionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string connection_name = 6 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The connectionName to set. + * @return This builder for chaining. + */ + public Builder setConnectionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + connectionName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional string connection_name = 6 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearConnectionName() { + connectionName_ = getDefaultInstance().getConnectionName(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * optional string connection_name = 6 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for connectionName to set. + * @return This builder for chaining. + */ + public Builder setConnectionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + connectionName_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.agentkit_logs.GetOverviewStatsRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.agentkit_logs.GetOverviewStatsRequest) + private static final com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOverviewStatsRequest 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.scalekit.grpc.scalekit.v1.agentkit_logs.GetOverviewStatsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetOverviewStatsRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetOverviewStatsRequestOrBuilder.java new file mode 100644 index 00000000..147aea74 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetOverviewStatsRequestOrBuilder.java @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_analytics.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +public interface GetOverviewStatsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.agentkit_logs.GetOverviewStatsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime", (.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime", (.google.api.field_behavior) = REQUIRED]; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the provider. + */ + java.util.List + getProviderList(); + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of provider. + */ + int getProviderCount(); + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The provider at the given index. + */ + java.lang.String getProvider(int index); + /** + * repeated string provider = 3 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the provider at the given index. + */ + com.google.protobuf.ByteString + getProviderBytes(int index); + + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the status. + */ + java.util.List + getStatusList(); + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of status. + */ + int getStatusCount(); + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The status at the given index. + */ + java.lang.String getStatus(int index); + /** + * repeated string status = 4 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the status at the given index. + */ + com.google.protobuf.ByteString + getStatusBytes(int index); + + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the errorCode. + */ + java.util.List + getErrorCodeList(); + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of errorCode. + */ + int getErrorCodeCount(); + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The errorCode at the given index. + */ + java.lang.String getErrorCode(int index); + /** + * repeated string error_code = 5 [json_name = "errorCode", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the errorCode at the given index. + */ + com.google.protobuf.ByteString + getErrorCodeBytes(int index); + + /** + * optional string connection_name = 6 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectionName field is set. + */ + boolean hasConnectionName(); + /** + * optional string connection_name = 6 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectionName. + */ + java.lang.String getConnectionName(); + /** + * optional string connection_name = 6 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectionName. + */ + com.google.protobuf.ByteString + getConnectionNameBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetToolCallLogRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetToolCallLogRequest.java new file mode 100644 index 00000000..f79725f2 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetToolCallLogRequest.java @@ -0,0 +1,542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_logs.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +/** + * Protobuf type {@code scalekit.v1.agentkit_logs.GetToolCallLogRequest} + */ +public final class GetToolCallLogRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.agentkit_logs.GetToolCallLogRequest) + GetToolCallLogRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetToolCallLogRequest.newBuilder() to construct. + private GetToolCallLogRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetToolCallLogRequest() { + executionId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetToolCallLogRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_GetToolCallLogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_GetToolCallLogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest.Builder.class); + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object executionId_ = ""; + /** + * string execution_id = 1 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The executionId. + */ + @java.lang.Override + public java.lang.String getExecutionId() { + java.lang.Object ref = executionId_; + 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(); + executionId_ = s; + return s; + } + } + /** + * string execution_id = 1 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for executionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getExecutionIdBytes() { + java.lang.Object ref = executionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, executionId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, executionId_); + } + 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.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest other = (com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest) obj; + + if (!getExecutionId() + .equals(other.getExecutionId())) 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) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.agentkit_logs.GetToolCallLogRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.agentkit_logs.GetToolCallLogRequest) + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_GetToolCallLogRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_GetToolCallLogRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + executionId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_GetToolCallLogRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest build() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest result = new com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.executionId_ = executionId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest.getDefaultInstance()) return this; + if (!other.getExecutionId().isEmpty()) { + executionId_ = other.executionId_; + 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: { + executionId_ = 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 executionId_ = ""; + /** + * string execution_id = 1 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The executionId. + */ + public java.lang.String getExecutionId() { + java.lang.Object ref = executionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string execution_id = 1 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for executionId. + */ + public com.google.protobuf.ByteString + getExecutionIdBytes() { + java.lang.Object ref = executionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string execution_id = 1 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The executionId to set. + * @return This builder for chaining. + */ + public Builder setExecutionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + executionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string execution_id = 1 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearExecutionId() { + executionId_ = getDefaultInstance().getExecutionId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string execution_id = 1 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for executionId to set. + * @return This builder for chaining. + */ + public Builder setExecutionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + executionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.agentkit_logs.GetToolCallLogRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.agentkit_logs.GetToolCallLogRequest) + private static final com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetToolCallLogRequest 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.scalekit.grpc.scalekit.v1.agentkit_logs.GetToolCallLogRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetToolCallLogRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetToolCallLogRequestOrBuilder.java new file mode 100644 index 00000000..a4ab929b --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/GetToolCallLogRequestOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_logs.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +public interface GetToolCallLogRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.agentkit_logs.GetToolCallLogRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string execution_id = 1 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The executionId. + */ + java.lang.String getExecutionId(); + /** + * string execution_id = 1 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for executionId. + */ + com.google.protobuf.ByteString + getExecutionIdBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsRequest.java new file mode 100644 index 00000000..b3c5f4dc --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsRequest.java @@ -0,0 +1,2149 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_logs.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +/** + * Protobuf type {@code scalekit.v1.agentkit_logs.ListToolCallLogsRequest} + */ +public final class ListToolCallLogsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.agentkit_logs.ListToolCallLogsRequest) + ListToolCallLogsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListToolCallLogsRequest.newBuilder() to construct. + private ListToolCallLogsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListToolCallLogsRequest() { + status_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + provider_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + connectionId_ = ""; + connectedAccountId_ = ""; + identifier_ = ""; + agentRunId_ = ""; + pageToken_ = ""; + connectionName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListToolCallLogsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest.Builder.class); + } + + private int bitField0_; + public static final int START_TIME_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp startTime_; + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + + public static final int END_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp endTime_; + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + + public static final int STATUS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList status_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the status. + */ + public com.google.protobuf.ProtocolStringList + getStatusList() { + return status_; + } + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of status. + */ + public int getStatusCount() { + return status_.size(); + } + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The status at the given index. + */ + public java.lang.String getStatus(int index) { + return status_.get(index); + } + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the status at the given index. + */ + public com.google.protobuf.ByteString + getStatusBytes(int index) { + return status_.getByteString(index); + } + + public static final int PROVIDER_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList provider_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the provider. + */ + public com.google.protobuf.ProtocolStringList + getProviderList() { + return provider_; + } + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of provider. + */ + public int getProviderCount() { + return provider_.size(); + } + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The provider at the given index. + */ + public java.lang.String getProvider(int index) { + return provider_.get(index); + } + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the provider at the given index. + */ + public com.google.protobuf.ByteString + getProviderBytes(int index) { + return provider_.getByteString(index); + } + + public static final int CONNECTION_ID_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object connectionId_ = ""; + /** + * optional string connection_id = 5 [json_name = "connectionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectionId field is set. + */ + @java.lang.Override + public boolean hasConnectionId() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string connection_id = 5 [json_name = "connectionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectionId. + */ + @java.lang.Override + public java.lang.String getConnectionId() { + java.lang.Object ref = connectionId_; + 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(); + connectionId_ = s; + return s; + } + } + /** + * optional string connection_id = 5 [json_name = "connectionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConnectionIdBytes() { + java.lang.Object ref = connectionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTED_ACCOUNT_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object connectedAccountId_ = ""; + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectedAccountId field is set. + */ + @java.lang.Override + public boolean hasConnectedAccountId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectedAccountId. + */ + @java.lang.Override + public java.lang.String getConnectedAccountId() { + java.lang.Object ref = connectedAccountId_; + 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(); + connectedAccountId_ = s; + return s; + } + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectedAccountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConnectedAccountIdBytes() { + java.lang.Object ref = connectedAccountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectedAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDENTIFIER_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object identifier_ = ""; + /** + * optional string identifier = 7 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the identifier field is set. + */ + @java.lang.Override + public boolean hasIdentifier() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string identifier = 7 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The identifier. + */ + @java.lang.Override + public java.lang.String getIdentifier() { + java.lang.Object ref = identifier_; + 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(); + identifier_ = s; + return s; + } + } + /** + * optional string identifier = 7 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for identifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdentifierBytes() { + java.lang.Object ref = identifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_RUN_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object agentRunId_ = ""; + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the agentRunId field is set. + */ + @java.lang.Override + public boolean hasAgentRunId() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The agentRunId. + */ + @java.lang.Override + public java.lang.String getAgentRunId() { + java.lang.Object ref = agentRunId_; + 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(); + agentRunId_ = s; + return s; + } + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for agentRunId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAgentRunIdBytes() { + java.lang.Object ref = agentRunId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + agentRunId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 9; + private int pageSize_ = 0; + /** + * uint32 page_size = 9 [json_name = "pageSize", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + /** + * string page_token = 10 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string page_token = 10 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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 CONNECTION_NAME_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object connectionName_ = ""; + /** + * optional string connection_name = 11 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectionName field is set. + */ + @java.lang.Override + public boolean hasConnectionName() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string connection_name = 11 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectionName. + */ + @java.lang.Override + public java.lang.String getConnectionName() { + java.lang.Object ref = connectionName_; + 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(); + connectionName_ = s; + return s; + } + } + /** + * optional string connection_name = 11 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConnectionNameBytes() { + java.lang.Object ref = connectionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectionName_ = 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getEndTime()); + } + for (int i = 0; i < status_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, status_.getRaw(i)); + } + for (int i = 0; i < provider_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, provider_.getRaw(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, connectionId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, connectedAccountId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, identifier_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, agentRunId_); + } + if (pageSize_ != 0) { + output.writeUInt32(9, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, pageToken_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, connectionName_); + } + 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, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getEndTime()); + } + { + int dataSize = 0; + for (int i = 0; i < status_.size(); i++) { + dataSize += computeStringSizeNoTag(status_.getRaw(i)); + } + size += dataSize; + size += 1 * getStatusList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < provider_.size(); i++) { + dataSize += computeStringSizeNoTag(provider_.getRaw(i)); + } + size += dataSize; + size += 1 * getProviderList().size(); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, connectionId_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, connectedAccountId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, identifier_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, agentRunId_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(9, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, pageToken_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, connectionName_); + } + 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.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest other = (com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest) obj; + + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime() + .equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime() + .equals(other.getEndTime())) return false; + } + if (!getStatusList() + .equals(other.getStatusList())) return false; + if (!getProviderList() + .equals(other.getProviderList())) return false; + if (hasConnectionId() != other.hasConnectionId()) return false; + if (hasConnectionId()) { + if (!getConnectionId() + .equals(other.getConnectionId())) return false; + } + if (hasConnectedAccountId() != other.hasConnectedAccountId()) return false; + if (hasConnectedAccountId()) { + if (!getConnectedAccountId() + .equals(other.getConnectedAccountId())) return false; + } + if (hasIdentifier() != other.hasIdentifier()) return false; + if (hasIdentifier()) { + if (!getIdentifier() + .equals(other.getIdentifier())) return false; + } + if (hasAgentRunId() != other.hasAgentRunId()) return false; + if (hasAgentRunId()) { + if (!getAgentRunId() + .equals(other.getAgentRunId())) return false; + } + if (getPageSize() + != other.getPageSize()) return false; + if (!getPageToken() + .equals(other.getPageToken())) return false; + if (hasConnectionName() != other.hasConnectionName()) return false; + if (hasConnectionName()) { + if (!getConnectionName() + .equals(other.getConnectionName())) 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 (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + if (getStatusCount() > 0) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatusList().hashCode(); + } + if (getProviderCount() > 0) { + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProviderList().hashCode(); + } + if (hasConnectionId()) { + hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectionId().hashCode(); + } + if (hasConnectedAccountId()) { + hash = (37 * hash) + CONNECTED_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectedAccountId().hashCode(); + } + if (hasIdentifier()) { + hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getIdentifier().hashCode(); + } + if (hasAgentRunId()) { + hash = (37 * hash) + AGENT_RUN_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentRunId().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + if (hasConnectionName()) { + hash = (37 * hash) + CONNECTION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getConnectionName().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.agentkit_logs.ListToolCallLogsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.agentkit_logs.ListToolCallLogsRequest) + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStartTimeFieldBuilder(); + getEndTimeFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + status_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + provider_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + connectionId_ = ""; + connectedAccountId_ = ""; + identifier_ = ""; + agentRunId_ = ""; + pageSize_ = 0; + pageToken_ = ""; + connectionName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest build() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest result = new com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startTime_ = startTimeBuilder_ == null + ? startTime_ + : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endTime_ = endTimeBuilder_ == null + ? endTime_ + : endTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + status_.makeImmutable(); + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + provider_.makeImmutable(); + result.provider_ = provider_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.connectionId_ = connectionId_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.connectedAccountId_ = connectedAccountId_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.identifier_ = identifier_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.agentRunId_ = agentRunId_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.connectionName_ = connectionName_; + to_bitField0_ |= 0x00000040; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest.getDefaultInstance()) return this; + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + if (!other.status_.isEmpty()) { + if (status_.isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00000004; + } else { + ensureStatusIsMutable(); + status_.addAll(other.status_); + } + onChanged(); + } + if (!other.provider_.isEmpty()) { + if (provider_.isEmpty()) { + provider_ = other.provider_; + bitField0_ |= 0x00000008; + } else { + ensureProviderIsMutable(); + provider_.addAll(other.provider_); + } + onChanged(); + } + if (other.hasConnectionId()) { + connectionId_ = other.connectionId_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasConnectedAccountId()) { + connectedAccountId_ = other.connectedAccountId_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasIdentifier()) { + identifier_ = other.identifier_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasAgentRunId()) { + agentRunId_ = other.agentRunId_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (other.hasConnectionName()) { + connectionName_ = other.connectionName_; + bitField0_ |= 0x00000400; + 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( + getStartTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getEndTimeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureStatusIsMutable(); + status_.add(s); + break; + } // case 26 + case 34: { + java.lang.String s = input.readStringRequireUtf8(); + ensureProviderIsMutable(); + provider_.add(s); + break; + } // case 34 + case 42: { + connectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + connectedAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + identifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + agentRunId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 72: { + pageSize_ = input.readUInt32(); + bitField0_ |= 0x00000100; + break; + } // case 72 + case 82: { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + connectionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + 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.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startTimeBuilder_; + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + } else { + startTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + */ + public Builder setStartTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + startTime_ != null && + startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartTimeBuilder().mergeFrom(value); + } else { + startTime_ = value; + } + } else { + startTimeBuilder_.mergeFrom(value); + } + if (startTime_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + */ + public Builder clearStartTime() { + bitField0_ = (bitField0_ & ~0x00000001); + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartTime(), + getParentForChildren(), + isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> endTimeBuilder_; + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + } else { + endTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + */ + public Builder setEndTime( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + endTime_ != null && + endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEndTimeBuilder().mergeFrom(value); + } else { + endTime_ = value; + } + } else { + endTimeBuilder_.mergeFrom(value); + } + if (endTime_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + */ + public Builder clearEndTime() { + bitField0_ = (bitField0_ & ~0x00000002); + endTime_ = null; + if (endTimeBuilder_ != null) { + endTimeBuilder_.dispose(); + endTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getEndTime(), + getParentForChildren(), + isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList status_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureStatusIsMutable() { + if (!status_.isModifiable()) { + status_ = new com.google.protobuf.LazyStringArrayList(status_); + } + bitField0_ |= 0x00000004; + } + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the status. + */ + public com.google.protobuf.ProtocolStringList + getStatusList() { + status_.makeImmutable(); + return status_; + } + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of status. + */ + public int getStatusCount() { + return status_.size(); + } + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The status at the given index. + */ + public java.lang.String getStatus(int index) { + return status_.get(index); + } + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the status at the given index. + */ + public com.google.protobuf.ByteString + getStatusBytes(int index) { + return status_.getByteString(index); + } + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index to set the value at. + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureStatusIsMutable(); + status_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The status to add. + * @return This builder for chaining. + */ + public Builder addStatus( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureStatusIsMutable(); + status_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param values The status to add. + * @return This builder for chaining. + */ + public Builder addAllStatus( + java.lang.Iterable values) { + ensureStatusIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, status_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes of the status to add. + * @return This builder for chaining. + */ + public Builder addStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureStatusIsMutable(); + status_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList provider_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureProviderIsMutable() { + if (!provider_.isModifiable()) { + provider_ = new com.google.protobuf.LazyStringArrayList(provider_); + } + bitField0_ |= 0x00000008; + } + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the provider. + */ + public com.google.protobuf.ProtocolStringList + getProviderList() { + provider_.makeImmutable(); + return provider_; + } + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of provider. + */ + public int getProviderCount() { + return provider_.size(); + } + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The provider at the given index. + */ + public java.lang.String getProvider(int index) { + return provider_.get(index); + } + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the provider at the given index. + */ + public com.google.protobuf.ByteString + getProviderBytes(int index) { + return provider_.getByteString(index); + } + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index to set the value at. + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureProviderIsMutable(); + provider_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The provider to add. + * @return This builder for chaining. + */ + public Builder addProvider( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureProviderIsMutable(); + provider_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param values The provider to add. + * @return This builder for chaining. + */ + public Builder addAllProvider( + java.lang.Iterable values) { + ensureProviderIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, provider_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearProvider() { + provider_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008);; + onChanged(); + return this; + } + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes of the provider to add. + * @return This builder for chaining. + */ + public Builder addProviderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureProviderIsMutable(); + provider_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object connectionId_ = ""; + /** + * optional string connection_id = 5 [json_name = "connectionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectionId field is set. + */ + public boolean hasConnectionId() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string connection_id = 5 [json_name = "connectionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectionId. + */ + public java.lang.String getConnectionId() { + java.lang.Object ref = connectionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string connection_id = 5 [json_name = "connectionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectionId. + */ + public com.google.protobuf.ByteString + getConnectionIdBytes() { + java.lang.Object ref = connectionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string connection_id = 5 [json_name = "connectionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The connectionId to set. + * @return This builder for chaining. + */ + public Builder setConnectionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + connectionId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional string connection_id = 5 [json_name = "connectionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearConnectionId() { + connectionId_ = getDefaultInstance().getConnectionId(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * optional string connection_id = 5 [json_name = "connectionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for connectionId to set. + * @return This builder for chaining. + */ + public Builder setConnectionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + connectionId_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object connectedAccountId_ = ""; + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectedAccountId field is set. + */ + public boolean hasConnectedAccountId() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectedAccountId. + */ + public java.lang.String getConnectedAccountId() { + java.lang.Object ref = connectedAccountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectedAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectedAccountId. + */ + public com.google.protobuf.ByteString + getConnectedAccountIdBytes() { + java.lang.Object ref = connectedAccountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectedAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The connectedAccountId to set. + * @return This builder for chaining. + */ + public Builder setConnectedAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + connectedAccountId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearConnectedAccountId() { + connectedAccountId_ = getDefaultInstance().getConnectedAccountId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for connectedAccountId to set. + * @return This builder for chaining. + */ + public Builder setConnectedAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + connectedAccountId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object identifier_ = ""; + /** + * optional string identifier = 7 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the identifier field is set. + */ + public boolean hasIdentifier() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string identifier = 7 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The identifier. + */ + public java.lang.String getIdentifier() { + java.lang.Object ref = identifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string identifier = 7 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for identifier. + */ + public com.google.protobuf.ByteString + getIdentifierBytes() { + java.lang.Object ref = identifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string identifier = 7 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifier( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + identifier_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional string identifier = 7 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIdentifier() { + identifier_ = getDefaultInstance().getIdentifier(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * optional string identifier = 7 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifierBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + identifier_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object agentRunId_ = ""; + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the agentRunId field is set. + */ + public boolean hasAgentRunId() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The agentRunId. + */ + public java.lang.String getAgentRunId() { + java.lang.Object ref = agentRunId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentRunId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for agentRunId. + */ + public com.google.protobuf.ByteString + getAgentRunIdBytes() { + java.lang.Object ref = agentRunId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + agentRunId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The agentRunId to set. + * @return This builder for chaining. + */ + public Builder setAgentRunId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + agentRunId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearAgentRunId() { + agentRunId_ = getDefaultInstance().getAgentRunId(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for agentRunId to set. + * @return This builder for chaining. + */ + public Builder setAgentRunIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + agentRunId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + * uint32 page_size = 9 [json_name = "pageSize", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * uint32 page_size = 9 [json_name = "pageSize", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * uint32 page_size = 9 [json_name = "pageSize", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000100); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * string page_token = 10 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string page_token = 10 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string page_token = 10 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000200; + onChanged(); + return this; + } + /** + * string page_token = 10 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * string page_token = 10 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object connectionName_ = ""; + /** + * optional string connection_name = 11 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectionName field is set. + */ + public boolean hasConnectionName() { + return ((bitField0_ & 0x00000400) != 0); + } + /** + * optional string connection_name = 11 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectionName. + */ + public java.lang.String getConnectionName() { + java.lang.Object ref = connectionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string connection_name = 11 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectionName. + */ + public com.google.protobuf.ByteString + getConnectionNameBytes() { + java.lang.Object ref = connectionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string connection_name = 11 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The connectionName to set. + * @return This builder for chaining. + */ + public Builder setConnectionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + connectionName_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * optional string connection_name = 11 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearConnectionName() { + connectionName_ = getDefaultInstance().getConnectionName(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * optional string connection_name = 11 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for connectionName to set. + * @return This builder for chaining. + */ + public Builder setConnectionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + connectionName_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.agentkit_logs.ListToolCallLogsRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.agentkit_logs.ListToolCallLogsRequest) + private static final com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListToolCallLogsRequest 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.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsRequestOrBuilder.java new file mode 100644 index 00000000..ef8194c8 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsRequestOrBuilder.java @@ -0,0 +1,193 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_logs.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +public interface ListToolCallLogsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.agentkit_logs.ListToolCallLogsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * .google.protobuf.Timestamp start_time = 1 [json_name = "startTime"]; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * .google.protobuf.Timestamp end_time = 2 [json_name = "endTime"]; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the status. + */ + java.util.List + getStatusList(); + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of status. + */ + int getStatusCount(); + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The status at the given index. + */ + java.lang.String getStatus(int index); + /** + * repeated string status = 3 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the status at the given index. + */ + com.google.protobuf.ByteString + getStatusBytes(int index); + + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the provider. + */ + java.util.List + getProviderList(); + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of provider. + */ + int getProviderCount(); + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The provider at the given index. + */ + java.lang.String getProvider(int index); + /** + * repeated string provider = 4 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the provider at the given index. + */ + com.google.protobuf.ByteString + getProviderBytes(int index); + + /** + * optional string connection_id = 5 [json_name = "connectionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectionId field is set. + */ + boolean hasConnectionId(); + /** + * optional string connection_id = 5 [json_name = "connectionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectionId. + */ + java.lang.String getConnectionId(); + /** + * optional string connection_id = 5 [json_name = "connectionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectionId. + */ + com.google.protobuf.ByteString + getConnectionIdBytes(); + + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectedAccountId field is set. + */ + boolean hasConnectedAccountId(); + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectedAccountId. + */ + java.lang.String getConnectedAccountId(); + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectedAccountId. + */ + com.google.protobuf.ByteString + getConnectedAccountIdBytes(); + + /** + * optional string identifier = 7 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the identifier field is set. + */ + boolean hasIdentifier(); + /** + * optional string identifier = 7 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The identifier. + */ + java.lang.String getIdentifier(); + /** + * optional string identifier = 7 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for identifier. + */ + com.google.protobuf.ByteString + getIdentifierBytes(); + + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the agentRunId field is set. + */ + boolean hasAgentRunId(); + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The agentRunId. + */ + java.lang.String getAgentRunId(); + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for agentRunId. + */ + com.google.protobuf.ByteString + getAgentRunIdBytes(); + + /** + * uint32 page_size = 9 [json_name = "pageSize", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The pageSize. + */ + int getPageSize(); + + /** + * string page_token = 10 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * string page_token = 10 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); + + /** + * optional string connection_name = 11 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectionName field is set. + */ + boolean hasConnectionName(); + /** + * optional string connection_name = 11 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectionName. + */ + java.lang.String getConnectionName(); + /** + * optional string connection_name = 11 [json_name = "connectionName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectionName. + */ + com.google.protobuf.ByteString + getConnectionNameBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsResponse.java new file mode 100644 index 00000000..2335b83b --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsResponse.java @@ -0,0 +1,1099 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_logs.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +/** + * Protobuf type {@code scalekit.v1.agentkit_logs.ListToolCallLogsResponse} + */ +public final class ListToolCallLogsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.agentkit_logs.ListToolCallLogsResponse) + ListToolCallLogsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListToolCallLogsResponse.newBuilder() to construct. + private ListToolCallLogsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListToolCallLogsResponse() { + toolCallLogs_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + prevPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListToolCallLogsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse.Builder.class); + } + + public static final int TOOL_CALL_LOGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List toolCallLogs_; + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + @java.lang.Override + public java.util.List getToolCallLogsList() { + return toolCallLogs_; + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + @java.lang.Override + public java.util.List + getToolCallLogsOrBuilderList() { + return toolCallLogs_; + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + @java.lang.Override + public int getToolCallLogsCount() { + return toolCallLogs_.size(); + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog getToolCallLogs(int index) { + return toolCallLogs_.get(index); + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLogOrBuilder getToolCallLogsOrBuilder( + int index) { + return toolCallLogs_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @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; + } + } + /** + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @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 TOTAL_SIZE_FIELD_NUMBER = 3; + private long totalSize_ = 0L; + /** + * int64 total_size = 3 [json_name = "totalSize"]; + * @return The totalSize. + */ + @java.lang.Override + public long getTotalSize() { + return totalSize_; + } + + public static final int PREV_PAGE_TOKEN_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object prevPageToken_ = ""; + /** + * string prev_page_token = 4 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The prevPageToken. + */ + @java.lang.Override + public java.lang.String getPrevPageToken() { + java.lang.Object ref = prevPageToken_; + 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(); + prevPageToken_ = s; + return s; + } + } + /** + * string prev_page_token = 4 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for prevPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrevPageTokenBytes() { + java.lang.Object ref = prevPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prevPageToken_ = 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 < toolCallLogs_.size(); i++) { + output.writeMessage(1, toolCallLogs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0L) { + output.writeInt64(3, totalSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prevPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, prevPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < toolCallLogs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, toolCallLogs_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, totalSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prevPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, prevPageToken_); + } + 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.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse other = (com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse) obj; + + if (!getToolCallLogsList() + .equals(other.getToolCallLogsList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; + if (!getPrevPageToken() + .equals(other.getPrevPageToken())) 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 (getToolCallLogsCount() > 0) { + hash = (37 * hash) + TOOL_CALL_LOGS_FIELD_NUMBER; + hash = (53 * hash) + getToolCallLogsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotalSize()); + hash = (37 * hash) + PREV_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPrevPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.agentkit_logs.ListToolCallLogsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.agentkit_logs.ListToolCallLogsResponse) + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolCallLogsBuilder_ == null) { + toolCallLogs_ = java.util.Collections.emptyList(); + } else { + toolCallLogs_ = null; + toolCallLogsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0L; + prevPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ListToolCallLogsResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse build() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse result = new com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse result) { + if (toolCallLogsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + toolCallLogs_ = java.util.Collections.unmodifiableList(toolCallLogs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.toolCallLogs_ = toolCallLogs_; + } else { + result.toolCallLogs_ = toolCallLogsBuilder_.build(); + } + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.prevPageToken_ = prevPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse.getDefaultInstance()) return this; + if (toolCallLogsBuilder_ == null) { + if (!other.toolCallLogs_.isEmpty()) { + if (toolCallLogs_.isEmpty()) { + toolCallLogs_ = other.toolCallLogs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolCallLogsIsMutable(); + toolCallLogs_.addAll(other.toolCallLogs_); + } + onChanged(); + } + } else { + if (!other.toolCallLogs_.isEmpty()) { + if (toolCallLogsBuilder_.isEmpty()) { + toolCallLogsBuilder_.dispose(); + toolCallLogsBuilder_ = null; + toolCallLogs_ = other.toolCallLogs_; + bitField0_ = (bitField0_ & ~0x00000001); + toolCallLogsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getToolCallLogsFieldBuilder() : null; + } else { + toolCallLogsBuilder_.addAllMessages(other.toolCallLogs_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0L) { + setTotalSize(other.getTotalSize()); + } + if (!other.getPrevPageToken().isEmpty()) { + prevPageToken_ = other.prevPageToken_; + 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: { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog m = + input.readMessage( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.parser(), + extensionRegistry); + if (toolCallLogsBuilder_ == null) { + ensureToolCallLogsIsMutable(); + toolCallLogs_.add(m); + } else { + toolCallLogsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + totalSize_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + prevPageToken_ = 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.util.List toolCallLogs_ = + java.util.Collections.emptyList(); + private void ensureToolCallLogsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + toolCallLogs_ = new java.util.ArrayList(toolCallLogs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.Builder, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLogOrBuilder> toolCallLogsBuilder_; + + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public java.util.List getToolCallLogsList() { + if (toolCallLogsBuilder_ == null) { + return java.util.Collections.unmodifiableList(toolCallLogs_); + } else { + return toolCallLogsBuilder_.getMessageList(); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public int getToolCallLogsCount() { + if (toolCallLogsBuilder_ == null) { + return toolCallLogs_.size(); + } else { + return toolCallLogsBuilder_.getCount(); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog getToolCallLogs(int index) { + if (toolCallLogsBuilder_ == null) { + return toolCallLogs_.get(index); + } else { + return toolCallLogsBuilder_.getMessage(index); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public Builder setToolCallLogs( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog value) { + if (toolCallLogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallLogsIsMutable(); + toolCallLogs_.set(index, value); + onChanged(); + } else { + toolCallLogsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public Builder setToolCallLogs( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.Builder builderForValue) { + if (toolCallLogsBuilder_ == null) { + ensureToolCallLogsIsMutable(); + toolCallLogs_.set(index, builderForValue.build()); + onChanged(); + } else { + toolCallLogsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public Builder addToolCallLogs(com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog value) { + if (toolCallLogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallLogsIsMutable(); + toolCallLogs_.add(value); + onChanged(); + } else { + toolCallLogsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public Builder addToolCallLogs( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog value) { + if (toolCallLogsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolCallLogsIsMutable(); + toolCallLogs_.add(index, value); + onChanged(); + } else { + toolCallLogsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public Builder addToolCallLogs( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.Builder builderForValue) { + if (toolCallLogsBuilder_ == null) { + ensureToolCallLogsIsMutable(); + toolCallLogs_.add(builderForValue.build()); + onChanged(); + } else { + toolCallLogsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public Builder addToolCallLogs( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.Builder builderForValue) { + if (toolCallLogsBuilder_ == null) { + ensureToolCallLogsIsMutable(); + toolCallLogs_.add(index, builderForValue.build()); + onChanged(); + } else { + toolCallLogsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public Builder addAllToolCallLogs( + java.lang.Iterable values) { + if (toolCallLogsBuilder_ == null) { + ensureToolCallLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, toolCallLogs_); + onChanged(); + } else { + toolCallLogsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public Builder clearToolCallLogs() { + if (toolCallLogsBuilder_ == null) { + toolCallLogs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolCallLogsBuilder_.clear(); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public Builder removeToolCallLogs(int index) { + if (toolCallLogsBuilder_ == null) { + ensureToolCallLogsIsMutable(); + toolCallLogs_.remove(index); + onChanged(); + } else { + toolCallLogsBuilder_.remove(index); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.Builder getToolCallLogsBuilder( + int index) { + return getToolCallLogsFieldBuilder().getBuilder(index); + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLogOrBuilder getToolCallLogsOrBuilder( + int index) { + if (toolCallLogsBuilder_ == null) { + return toolCallLogs_.get(index); } else { + return toolCallLogsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public java.util.List + getToolCallLogsOrBuilderList() { + if (toolCallLogsBuilder_ != null) { + return toolCallLogsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(toolCallLogs_); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.Builder addToolCallLogsBuilder() { + return getToolCallLogsFieldBuilder().addBuilder( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.Builder addToolCallLogsBuilder( + int index) { + return getToolCallLogsFieldBuilder().addBuilder( + index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + public java.util.List + getToolCallLogsBuilderList() { + return getToolCallLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.Builder, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLogOrBuilder> + getToolCallLogsFieldBuilder() { + if (toolCallLogsBuilder_ == null) { + toolCallLogsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.Builder, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLogOrBuilder>( + toolCallLogs_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + toolCallLogs_ = null; + } + return toolCallLogsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @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; + } + } + /** + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @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; + } + } + /** + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @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; + } + /** + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @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 long totalSize_ ; + /** + * int64 total_size = 3 [json_name = "totalSize"]; + * @return The totalSize. + */ + @java.lang.Override + public long getTotalSize() { + return totalSize_; + } + /** + * int64 total_size = 3 [json_name = "totalSize"]; + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(long value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int64 total_size = 3 [json_name = "totalSize"]; + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0L; + onChanged(); + return this; + } + + private java.lang.Object prevPageToken_ = ""; + /** + * string prev_page_token = 4 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The prevPageToken. + */ + public java.lang.String getPrevPageToken() { + java.lang.Object ref = prevPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prevPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prev_page_token = 4 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for prevPageToken. + */ + public com.google.protobuf.ByteString + getPrevPageTokenBytes() { + java.lang.Object ref = prevPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prevPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prev_page_token = 4 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The prevPageToken to set. + * @return This builder for chaining. + */ + public Builder setPrevPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + prevPageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string prev_page_token = 4 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearPrevPageToken() { + prevPageToken_ = getDefaultInstance().getPrevPageToken(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string prev_page_token = 4 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for prevPageToken to set. + * @return This builder for chaining. + */ + public Builder setPrevPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + prevPageToken_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.agentkit_logs.ListToolCallLogsResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.agentkit_logs.ListToolCallLogsResponse) + private static final com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListToolCallLogsResponse 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.scalekit.grpc.scalekit.v1.agentkit_logs.ListToolCallLogsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsResponseOrBuilder.java new file mode 100644 index 00000000..ff598075 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ListToolCallLogsResponseOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_logs.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +public interface ListToolCallLogsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.agentkit_logs.ListToolCallLogsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + java.util.List + getToolCallLogsList(); + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog getToolCallLogs(int index); + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + int getToolCallLogsCount(); + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + java.util.List + getToolCallLogsOrBuilderList(); + /** + * repeated .scalekit.v1.agentkit_logs.ToolCallLog tool_call_logs = 1 [json_name = "toolCallLogs"]; + */ + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLogOrBuilder getToolCallLogsOrBuilder( + int index); + + /** + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + * int64 total_size = 3 [json_name = "totalSize"]; + * @return The totalSize. + */ + long getTotalSize(); + + /** + * string prev_page_token = 4 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The prevPageToken. + */ + java.lang.String getPrevPageToken(); + /** + * string prev_page_token = 4 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for prevPageToken. + */ + com.google.protobuf.ByteString + getPrevPageTokenBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/OverviewStats.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/OverviewStats.java new file mode 100644 index 00000000..62b869b7 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/OverviewStats.java @@ -0,0 +1,1795 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_analytics.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +/** + * Protobuf type {@code scalekit.v1.agentkit_logs.OverviewStats} + */ +public final class OverviewStats extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.agentkit_logs.OverviewStats) + OverviewStatsOrBuilder { +private static final long serialVersionUID = 0L; + // Use OverviewStats.newBuilder() to construct. + private OverviewStats(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OverviewStats() { + topErrorCodes_ = java.util.Collections.emptyList(); + connectorBreakdown_ = java.util.Collections.emptyList(); + timeSeries_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OverviewStats(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_OverviewStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_OverviewStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats.Builder.class); + } + + public static final int TOTAL_FIELD_NUMBER = 1; + private long total_ = 0L; + /** + * int64 total = 1 [json_name = "total"]; + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + + public static final int SUCCESS_FIELD_NUMBER = 2; + private long success_ = 0L; + /** + * int64 success = 2 [json_name = "success"]; + * @return The success. + */ + @java.lang.Override + public long getSuccess() { + return success_; + } + + public static final int ERRORS_FIELD_NUMBER = 3; + private long errors_ = 0L; + /** + * int64 errors = 3 [json_name = "errors"]; + * @return The errors. + */ + @java.lang.Override + public long getErrors() { + return errors_; + } + + public static final int PROVIDER_ERRORS_FIELD_NUMBER = 4; + private long providerErrors_ = 0L; + /** + * int64 provider_errors = 4 [json_name = "providerErrors"]; + * @return The providerErrors. + */ + @java.lang.Override + public long getProviderErrors() { + return providerErrors_; + } + + public static final int PLATFORM_ERRORS_FIELD_NUMBER = 5; + private long platformErrors_ = 0L; + /** + * int64 platform_errors = 5 [json_name = "platformErrors"]; + * @return The platformErrors. + */ + @java.lang.Override + public long getPlatformErrors() { + return platformErrors_; + } + + public static final int TOP_ERROR_CODES_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private java.util.List topErrorCodes_; + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + @java.lang.Override + public java.util.List getTopErrorCodesList() { + return topErrorCodes_; + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + @java.lang.Override + public java.util.List + getTopErrorCodesOrBuilderList() { + return topErrorCodes_; + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + @java.lang.Override + public int getTopErrorCodesCount() { + return topErrorCodes_.size(); + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount getTopErrorCodes(int index) { + return topErrorCodes_.get(index); + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCountOrBuilder getTopErrorCodesOrBuilder( + int index) { + return topErrorCodes_.get(index); + } + + public static final int CONNECTOR_BREAKDOWN_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private java.util.List connectorBreakdown_; + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + @java.lang.Override + public java.util.List getConnectorBreakdownList() { + return connectorBreakdown_; + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + @java.lang.Override + public java.util.List + getConnectorBreakdownOrBuilderList() { + return connectorBreakdown_; + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + @java.lang.Override + public int getConnectorBreakdownCount() { + return connectorBreakdown_.size(); + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat getConnectorBreakdown(int index) { + return connectorBreakdown_.get(index); + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStatOrBuilder getConnectorBreakdownOrBuilder( + int index) { + return connectorBreakdown_.get(index); + } + + public static final int TIME_SERIES_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private java.util.List timeSeries_; + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + @java.lang.Override + public java.util.List getTimeSeriesList() { + return timeSeries_; + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + @java.lang.Override + public java.util.List + getTimeSeriesOrBuilderList() { + return timeSeries_; + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + @java.lang.Override + public int getTimeSeriesCount() { + return timeSeries_.size(); + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket getTimeSeries(int index) { + return timeSeries_.get(index); + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucketOrBuilder getTimeSeriesOrBuilder( + int index) { + return timeSeries_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (total_ != 0L) { + output.writeInt64(1, total_); + } + if (success_ != 0L) { + output.writeInt64(2, success_); + } + if (errors_ != 0L) { + output.writeInt64(3, errors_); + } + if (providerErrors_ != 0L) { + output.writeInt64(4, providerErrors_); + } + if (platformErrors_ != 0L) { + output.writeInt64(5, platformErrors_); + } + for (int i = 0; i < topErrorCodes_.size(); i++) { + output.writeMessage(6, topErrorCodes_.get(i)); + } + for (int i = 0; i < connectorBreakdown_.size(); i++) { + output.writeMessage(7, connectorBreakdown_.get(i)); + } + for (int i = 0; i < timeSeries_.size(); i++) { + output.writeMessage(8, timeSeries_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (total_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, total_); + } + if (success_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, success_); + } + if (errors_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, errors_); + } + if (providerErrors_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, providerErrors_); + } + if (platformErrors_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, platformErrors_); + } + for (int i = 0; i < topErrorCodes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, topErrorCodes_.get(i)); + } + for (int i = 0; i < connectorBreakdown_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, connectorBreakdown_.get(i)); + } + for (int i = 0; i < timeSeries_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, timeSeries_.get(i)); + } + 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.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats other = (com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats) obj; + + if (getTotal() + != other.getTotal()) return false; + if (getSuccess() + != other.getSuccess()) return false; + if (getErrors() + != other.getErrors()) return false; + if (getProviderErrors() + != other.getProviderErrors()) return false; + if (getPlatformErrors() + != other.getPlatformErrors()) return false; + if (!getTopErrorCodesList() + .equals(other.getTopErrorCodesList())) return false; + if (!getConnectorBreakdownList() + .equals(other.getConnectorBreakdownList())) return false; + if (!getTimeSeriesList() + .equals(other.getTimeSeriesList())) 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) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotal()); + hash = (37 * hash) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSuccess()); + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getErrors()); + hash = (37 * hash) + PROVIDER_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getProviderErrors()); + hash = (37 * hash) + PLATFORM_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPlatformErrors()); + if (getTopErrorCodesCount() > 0) { + hash = (37 * hash) + TOP_ERROR_CODES_FIELD_NUMBER; + hash = (53 * hash) + getTopErrorCodesList().hashCode(); + } + if (getConnectorBreakdownCount() > 0) { + hash = (37 * hash) + CONNECTOR_BREAKDOWN_FIELD_NUMBER; + hash = (53 * hash) + getConnectorBreakdownList().hashCode(); + } + if (getTimeSeriesCount() > 0) { + hash = (37 * hash) + TIME_SERIES_FIELD_NUMBER; + hash = (53 * hash) + getTimeSeriesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.agentkit_logs.OverviewStats} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.agentkit_logs.OverviewStats) + com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStatsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_OverviewStats_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_OverviewStats_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + total_ = 0L; + success_ = 0L; + errors_ = 0L; + providerErrors_ = 0L; + platformErrors_ = 0L; + if (topErrorCodesBuilder_ == null) { + topErrorCodes_ = java.util.Collections.emptyList(); + } else { + topErrorCodes_ = null; + topErrorCodesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000020); + if (connectorBreakdownBuilder_ == null) { + connectorBreakdown_ = java.util.Collections.emptyList(); + } else { + connectorBreakdown_ = null; + connectorBreakdownBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + if (timeSeriesBuilder_ == null) { + timeSeries_ = java.util.Collections.emptyList(); + } else { + timeSeries_ = null; + timeSeriesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000080); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_OverviewStats_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats build() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats buildPartial() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats result = new com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats result) { + if (topErrorCodesBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0)) { + topErrorCodes_ = java.util.Collections.unmodifiableList(topErrorCodes_); + bitField0_ = (bitField0_ & ~0x00000020); + } + result.topErrorCodes_ = topErrorCodes_; + } else { + result.topErrorCodes_ = topErrorCodesBuilder_.build(); + } + if (connectorBreakdownBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + connectorBreakdown_ = java.util.Collections.unmodifiableList(connectorBreakdown_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.connectorBreakdown_ = connectorBreakdown_; + } else { + result.connectorBreakdown_ = connectorBreakdownBuilder_.build(); + } + if (timeSeriesBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0)) { + timeSeries_ = java.util.Collections.unmodifiableList(timeSeries_); + bitField0_ = (bitField0_ & ~0x00000080); + } + result.timeSeries_ = timeSeries_; + } else { + result.timeSeries_ = timeSeriesBuilder_.build(); + } + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.total_ = total_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.success_ = success_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.errors_ = errors_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.providerErrors_ = providerErrors_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.platformErrors_ = platformErrors_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats other) { + if (other == com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats.getDefaultInstance()) return this; + if (other.getTotal() != 0L) { + setTotal(other.getTotal()); + } + if (other.getSuccess() != 0L) { + setSuccess(other.getSuccess()); + } + if (other.getErrors() != 0L) { + setErrors(other.getErrors()); + } + if (other.getProviderErrors() != 0L) { + setProviderErrors(other.getProviderErrors()); + } + if (other.getPlatformErrors() != 0L) { + setPlatformErrors(other.getPlatformErrors()); + } + if (topErrorCodesBuilder_ == null) { + if (!other.topErrorCodes_.isEmpty()) { + if (topErrorCodes_.isEmpty()) { + topErrorCodes_ = other.topErrorCodes_; + bitField0_ = (bitField0_ & ~0x00000020); + } else { + ensureTopErrorCodesIsMutable(); + topErrorCodes_.addAll(other.topErrorCodes_); + } + onChanged(); + } + } else { + if (!other.topErrorCodes_.isEmpty()) { + if (topErrorCodesBuilder_.isEmpty()) { + topErrorCodesBuilder_.dispose(); + topErrorCodesBuilder_ = null; + topErrorCodes_ = other.topErrorCodes_; + bitField0_ = (bitField0_ & ~0x00000020); + topErrorCodesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTopErrorCodesFieldBuilder() : null; + } else { + topErrorCodesBuilder_.addAllMessages(other.topErrorCodes_); + } + } + } + if (connectorBreakdownBuilder_ == null) { + if (!other.connectorBreakdown_.isEmpty()) { + if (connectorBreakdown_.isEmpty()) { + connectorBreakdown_ = other.connectorBreakdown_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureConnectorBreakdownIsMutable(); + connectorBreakdown_.addAll(other.connectorBreakdown_); + } + onChanged(); + } + } else { + if (!other.connectorBreakdown_.isEmpty()) { + if (connectorBreakdownBuilder_.isEmpty()) { + connectorBreakdownBuilder_.dispose(); + connectorBreakdownBuilder_ = null; + connectorBreakdown_ = other.connectorBreakdown_; + bitField0_ = (bitField0_ & ~0x00000040); + connectorBreakdownBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnectorBreakdownFieldBuilder() : null; + } else { + connectorBreakdownBuilder_.addAllMessages(other.connectorBreakdown_); + } + } + } + if (timeSeriesBuilder_ == null) { + if (!other.timeSeries_.isEmpty()) { + if (timeSeries_.isEmpty()) { + timeSeries_ = other.timeSeries_; + bitField0_ = (bitField0_ & ~0x00000080); + } else { + ensureTimeSeriesIsMutable(); + timeSeries_.addAll(other.timeSeries_); + } + onChanged(); + } + } else { + if (!other.timeSeries_.isEmpty()) { + if (timeSeriesBuilder_.isEmpty()) { + timeSeriesBuilder_.dispose(); + timeSeriesBuilder_ = null; + timeSeries_ = other.timeSeries_; + bitField0_ = (bitField0_ & ~0x00000080); + timeSeriesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getTimeSeriesFieldBuilder() : null; + } else { + timeSeriesBuilder_.addAllMessages(other.timeSeries_); + } + } + } + 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 8: { + total_ = input.readInt64(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + success_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + errors_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + providerErrors_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + platformErrors_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 50: { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount m = + input.readMessage( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.parser(), + extensionRegistry); + if (topErrorCodesBuilder_ == null) { + ensureTopErrorCodesIsMutable(); + topErrorCodes_.add(m); + } else { + topErrorCodesBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat m = + input.readMessage( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.parser(), + extensionRegistry); + if (connectorBreakdownBuilder_ == null) { + ensureConnectorBreakdownIsMutable(); + connectorBreakdown_.add(m); + } else { + connectorBreakdownBuilder_.addMessage(m); + } + break; + } // case 58 + case 66: { + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket m = + input.readMessage( + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.parser(), + extensionRegistry); + if (timeSeriesBuilder_ == null) { + ensureTimeSeriesIsMutable(); + timeSeries_.add(m); + } else { + timeSeriesBuilder_.addMessage(m); + } + break; + } // case 66 + 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 long total_ ; + /** + * int64 total = 1 [json_name = "total"]; + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + /** + * int64 total = 1 [json_name = "total"]; + * @param value The total to set. + * @return This builder for chaining. + */ + public Builder setTotal(long value) { + + total_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int64 total = 1 [json_name = "total"]; + * @return This builder for chaining. + */ + public Builder clearTotal() { + bitField0_ = (bitField0_ & ~0x00000001); + total_ = 0L; + onChanged(); + return this; + } + + private long success_ ; + /** + * int64 success = 2 [json_name = "success"]; + * @return The success. + */ + @java.lang.Override + public long getSuccess() { + return success_; + } + /** + * int64 success = 2 [json_name = "success"]; + * @param value The success to set. + * @return This builder for chaining. + */ + public Builder setSuccess(long value) { + + success_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int64 success = 2 [json_name = "success"]; + * @return This builder for chaining. + */ + public Builder clearSuccess() { + bitField0_ = (bitField0_ & ~0x00000002); + success_ = 0L; + onChanged(); + return this; + } + + private long errors_ ; + /** + * int64 errors = 3 [json_name = "errors"]; + * @return The errors. + */ + @java.lang.Override + public long getErrors() { + return errors_; + } + /** + * int64 errors = 3 [json_name = "errors"]; + * @param value The errors to set. + * @return This builder for chaining. + */ + public Builder setErrors(long value) { + + errors_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int64 errors = 3 [json_name = "errors"]; + * @return This builder for chaining. + */ + public Builder clearErrors() { + bitField0_ = (bitField0_ & ~0x00000004); + errors_ = 0L; + onChanged(); + return this; + } + + private long providerErrors_ ; + /** + * int64 provider_errors = 4 [json_name = "providerErrors"]; + * @return The providerErrors. + */ + @java.lang.Override + public long getProviderErrors() { + return providerErrors_; + } + /** + * int64 provider_errors = 4 [json_name = "providerErrors"]; + * @param value The providerErrors to set. + * @return This builder for chaining. + */ + public Builder setProviderErrors(long value) { + + providerErrors_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int64 provider_errors = 4 [json_name = "providerErrors"]; + * @return This builder for chaining. + */ + public Builder clearProviderErrors() { + bitField0_ = (bitField0_ & ~0x00000008); + providerErrors_ = 0L; + onChanged(); + return this; + } + + private long platformErrors_ ; + /** + * int64 platform_errors = 5 [json_name = "platformErrors"]; + * @return The platformErrors. + */ + @java.lang.Override + public long getPlatformErrors() { + return platformErrors_; + } + /** + * int64 platform_errors = 5 [json_name = "platformErrors"]; + * @param value The platformErrors to set. + * @return This builder for chaining. + */ + public Builder setPlatformErrors(long value) { + + platformErrors_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * int64 platform_errors = 5 [json_name = "platformErrors"]; + * @return This builder for chaining. + */ + public Builder clearPlatformErrors() { + bitField0_ = (bitField0_ & ~0x00000010); + platformErrors_ = 0L; + onChanged(); + return this; + } + + private java.util.List topErrorCodes_ = + java.util.Collections.emptyList(); + private void ensureTopErrorCodesIsMutable() { + if (!((bitField0_ & 0x00000020) != 0)) { + topErrorCodes_ = new java.util.ArrayList(topErrorCodes_); + bitField0_ |= 0x00000020; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.Builder, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCountOrBuilder> topErrorCodesBuilder_; + + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public java.util.List getTopErrorCodesList() { + if (topErrorCodesBuilder_ == null) { + return java.util.Collections.unmodifiableList(topErrorCodes_); + } else { + return topErrorCodesBuilder_.getMessageList(); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public int getTopErrorCodesCount() { + if (topErrorCodesBuilder_ == null) { + return topErrorCodes_.size(); + } else { + return topErrorCodesBuilder_.getCount(); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount getTopErrorCodes(int index) { + if (topErrorCodesBuilder_ == null) { + return topErrorCodes_.get(index); + } else { + return topErrorCodesBuilder_.getMessage(index); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public Builder setTopErrorCodes( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount value) { + if (topErrorCodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopErrorCodesIsMutable(); + topErrorCodes_.set(index, value); + onChanged(); + } else { + topErrorCodesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public Builder setTopErrorCodes( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.Builder builderForValue) { + if (topErrorCodesBuilder_ == null) { + ensureTopErrorCodesIsMutable(); + topErrorCodes_.set(index, builderForValue.build()); + onChanged(); + } else { + topErrorCodesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public Builder addTopErrorCodes(com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount value) { + if (topErrorCodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopErrorCodesIsMutable(); + topErrorCodes_.add(value); + onChanged(); + } else { + topErrorCodesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public Builder addTopErrorCodes( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount value) { + if (topErrorCodesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTopErrorCodesIsMutable(); + topErrorCodes_.add(index, value); + onChanged(); + } else { + topErrorCodesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public Builder addTopErrorCodes( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.Builder builderForValue) { + if (topErrorCodesBuilder_ == null) { + ensureTopErrorCodesIsMutable(); + topErrorCodes_.add(builderForValue.build()); + onChanged(); + } else { + topErrorCodesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public Builder addTopErrorCodes( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.Builder builderForValue) { + if (topErrorCodesBuilder_ == null) { + ensureTopErrorCodesIsMutable(); + topErrorCodes_.add(index, builderForValue.build()); + onChanged(); + } else { + topErrorCodesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public Builder addAllTopErrorCodes( + java.lang.Iterable values) { + if (topErrorCodesBuilder_ == null) { + ensureTopErrorCodesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, topErrorCodes_); + onChanged(); + } else { + topErrorCodesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public Builder clearTopErrorCodes() { + if (topErrorCodesBuilder_ == null) { + topErrorCodes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + } else { + topErrorCodesBuilder_.clear(); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public Builder removeTopErrorCodes(int index) { + if (topErrorCodesBuilder_ == null) { + ensureTopErrorCodesIsMutable(); + topErrorCodes_.remove(index); + onChanged(); + } else { + topErrorCodesBuilder_.remove(index); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.Builder getTopErrorCodesBuilder( + int index) { + return getTopErrorCodesFieldBuilder().getBuilder(index); + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCountOrBuilder getTopErrorCodesOrBuilder( + int index) { + if (topErrorCodesBuilder_ == null) { + return topErrorCodes_.get(index); } else { + return topErrorCodesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public java.util.List + getTopErrorCodesOrBuilderList() { + if (topErrorCodesBuilder_ != null) { + return topErrorCodesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(topErrorCodes_); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.Builder addTopErrorCodesBuilder() { + return getTopErrorCodesFieldBuilder().addBuilder( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.Builder addTopErrorCodesBuilder( + int index) { + return getTopErrorCodesFieldBuilder().addBuilder( + index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + public java.util.List + getTopErrorCodesBuilderList() { + return getTopErrorCodesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.Builder, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCountOrBuilder> + getTopErrorCodesFieldBuilder() { + if (topErrorCodesBuilder_ == null) { + topErrorCodesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount.Builder, com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCountOrBuilder>( + topErrorCodes_, + ((bitField0_ & 0x00000020) != 0), + getParentForChildren(), + isClean()); + topErrorCodes_ = null; + } + return topErrorCodesBuilder_; + } + + private java.util.List connectorBreakdown_ = + java.util.Collections.emptyList(); + private void ensureConnectorBreakdownIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + connectorBreakdown_ = new java.util.ArrayList(connectorBreakdown_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.Builder, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStatOrBuilder> connectorBreakdownBuilder_; + + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public java.util.List getConnectorBreakdownList() { + if (connectorBreakdownBuilder_ == null) { + return java.util.Collections.unmodifiableList(connectorBreakdown_); + } else { + return connectorBreakdownBuilder_.getMessageList(); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public int getConnectorBreakdownCount() { + if (connectorBreakdownBuilder_ == null) { + return connectorBreakdown_.size(); + } else { + return connectorBreakdownBuilder_.getCount(); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat getConnectorBreakdown(int index) { + if (connectorBreakdownBuilder_ == null) { + return connectorBreakdown_.get(index); + } else { + return connectorBreakdownBuilder_.getMessage(index); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public Builder setConnectorBreakdown( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat value) { + if (connectorBreakdownBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectorBreakdownIsMutable(); + connectorBreakdown_.set(index, value); + onChanged(); + } else { + connectorBreakdownBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public Builder setConnectorBreakdown( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.Builder builderForValue) { + if (connectorBreakdownBuilder_ == null) { + ensureConnectorBreakdownIsMutable(); + connectorBreakdown_.set(index, builderForValue.build()); + onChanged(); + } else { + connectorBreakdownBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public Builder addConnectorBreakdown(com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat value) { + if (connectorBreakdownBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectorBreakdownIsMutable(); + connectorBreakdown_.add(value); + onChanged(); + } else { + connectorBreakdownBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public Builder addConnectorBreakdown( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat value) { + if (connectorBreakdownBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectorBreakdownIsMutable(); + connectorBreakdown_.add(index, value); + onChanged(); + } else { + connectorBreakdownBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public Builder addConnectorBreakdown( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.Builder builderForValue) { + if (connectorBreakdownBuilder_ == null) { + ensureConnectorBreakdownIsMutable(); + connectorBreakdown_.add(builderForValue.build()); + onChanged(); + } else { + connectorBreakdownBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public Builder addConnectorBreakdown( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.Builder builderForValue) { + if (connectorBreakdownBuilder_ == null) { + ensureConnectorBreakdownIsMutable(); + connectorBreakdown_.add(index, builderForValue.build()); + onChanged(); + } else { + connectorBreakdownBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public Builder addAllConnectorBreakdown( + java.lang.Iterable values) { + if (connectorBreakdownBuilder_ == null) { + ensureConnectorBreakdownIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connectorBreakdown_); + onChanged(); + } else { + connectorBreakdownBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public Builder clearConnectorBreakdown() { + if (connectorBreakdownBuilder_ == null) { + connectorBreakdown_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + connectorBreakdownBuilder_.clear(); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public Builder removeConnectorBreakdown(int index) { + if (connectorBreakdownBuilder_ == null) { + ensureConnectorBreakdownIsMutable(); + connectorBreakdown_.remove(index); + onChanged(); + } else { + connectorBreakdownBuilder_.remove(index); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.Builder getConnectorBreakdownBuilder( + int index) { + return getConnectorBreakdownFieldBuilder().getBuilder(index); + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStatOrBuilder getConnectorBreakdownOrBuilder( + int index) { + if (connectorBreakdownBuilder_ == null) { + return connectorBreakdown_.get(index); } else { + return connectorBreakdownBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public java.util.List + getConnectorBreakdownOrBuilderList() { + if (connectorBreakdownBuilder_ != null) { + return connectorBreakdownBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connectorBreakdown_); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.Builder addConnectorBreakdownBuilder() { + return getConnectorBreakdownFieldBuilder().addBuilder( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.Builder addConnectorBreakdownBuilder( + int index) { + return getConnectorBreakdownFieldBuilder().addBuilder( + index, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + public java.util.List + getConnectorBreakdownBuilderList() { + return getConnectorBreakdownFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.Builder, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStatOrBuilder> + getConnectorBreakdownFieldBuilder() { + if (connectorBreakdownBuilder_ == null) { + connectorBreakdownBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat.Builder, com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStatOrBuilder>( + connectorBreakdown_, + ((bitField0_ & 0x00000040) != 0), + getParentForChildren(), + isClean()); + connectorBreakdown_ = null; + } + return connectorBreakdownBuilder_; + } + + private java.util.List timeSeries_ = + java.util.Collections.emptyList(); + private void ensureTimeSeriesIsMutable() { + if (!((bitField0_ & 0x00000080) != 0)) { + timeSeries_ = new java.util.ArrayList(timeSeries_); + bitField0_ |= 0x00000080; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.Builder, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucketOrBuilder> timeSeriesBuilder_; + + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public java.util.List getTimeSeriesList() { + if (timeSeriesBuilder_ == null) { + return java.util.Collections.unmodifiableList(timeSeries_); + } else { + return timeSeriesBuilder_.getMessageList(); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public int getTimeSeriesCount() { + if (timeSeriesBuilder_ == null) { + return timeSeries_.size(); + } else { + return timeSeriesBuilder_.getCount(); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket getTimeSeries(int index) { + if (timeSeriesBuilder_ == null) { + return timeSeries_.get(index); + } else { + return timeSeriesBuilder_.getMessage(index); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public Builder setTimeSeries( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket value) { + if (timeSeriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeSeriesIsMutable(); + timeSeries_.set(index, value); + onChanged(); + } else { + timeSeriesBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public Builder setTimeSeries( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.Builder builderForValue) { + if (timeSeriesBuilder_ == null) { + ensureTimeSeriesIsMutable(); + timeSeries_.set(index, builderForValue.build()); + onChanged(); + } else { + timeSeriesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public Builder addTimeSeries(com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket value) { + if (timeSeriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeSeriesIsMutable(); + timeSeries_.add(value); + onChanged(); + } else { + timeSeriesBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public Builder addTimeSeries( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket value) { + if (timeSeriesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTimeSeriesIsMutable(); + timeSeries_.add(index, value); + onChanged(); + } else { + timeSeriesBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public Builder addTimeSeries( + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.Builder builderForValue) { + if (timeSeriesBuilder_ == null) { + ensureTimeSeriesIsMutable(); + timeSeries_.add(builderForValue.build()); + onChanged(); + } else { + timeSeriesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public Builder addTimeSeries( + int index, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.Builder builderForValue) { + if (timeSeriesBuilder_ == null) { + ensureTimeSeriesIsMutable(); + timeSeries_.add(index, builderForValue.build()); + onChanged(); + } else { + timeSeriesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public Builder addAllTimeSeries( + java.lang.Iterable values) { + if (timeSeriesBuilder_ == null) { + ensureTimeSeriesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, timeSeries_); + onChanged(); + } else { + timeSeriesBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public Builder clearTimeSeries() { + if (timeSeriesBuilder_ == null) { + timeSeries_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + } else { + timeSeriesBuilder_.clear(); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public Builder removeTimeSeries(int index) { + if (timeSeriesBuilder_ == null) { + ensureTimeSeriesIsMutable(); + timeSeries_.remove(index); + onChanged(); + } else { + timeSeriesBuilder_.remove(index); + } + return this; + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.Builder getTimeSeriesBuilder( + int index) { + return getTimeSeriesFieldBuilder().getBuilder(index); + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucketOrBuilder getTimeSeriesOrBuilder( + int index) { + if (timeSeriesBuilder_ == null) { + return timeSeries_.get(index); } else { + return timeSeriesBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public java.util.List + getTimeSeriesOrBuilderList() { + if (timeSeriesBuilder_ != null) { + return timeSeriesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(timeSeries_); + } + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.Builder addTimeSeriesBuilder() { + return getTimeSeriesFieldBuilder().addBuilder( + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.Builder addTimeSeriesBuilder( + int index) { + return getTimeSeriesFieldBuilder().addBuilder( + index, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + public java.util.List + getTimeSeriesBuilderList() { + return getTimeSeriesFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.Builder, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucketOrBuilder> + getTimeSeriesFieldBuilder() { + if (timeSeriesBuilder_ == null) { + timeSeriesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.Builder, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucketOrBuilder>( + timeSeries_, + ((bitField0_ & 0x00000080) != 0), + getParentForChildren(), + isClean()); + timeSeries_ = null; + } + return timeSeriesBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.agentkit_logs.OverviewStats) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.agentkit_logs.OverviewStats) + private static final com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats(); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OverviewStats 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.scalekit.grpc.scalekit.v1.agentkit_logs.OverviewStats getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/OverviewStatsOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/OverviewStatsOrBuilder.java new file mode 100644 index 00000000..49afe894 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/OverviewStatsOrBuilder.java @@ -0,0 +1,112 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_analytics.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +public interface OverviewStatsOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.agentkit_logs.OverviewStats) + com.google.protobuf.MessageOrBuilder { + + /** + * int64 total = 1 [json_name = "total"]; + * @return The total. + */ + long getTotal(); + + /** + * int64 success = 2 [json_name = "success"]; + * @return The success. + */ + long getSuccess(); + + /** + * int64 errors = 3 [json_name = "errors"]; + * @return The errors. + */ + long getErrors(); + + /** + * int64 provider_errors = 4 [json_name = "providerErrors"]; + * @return The providerErrors. + */ + long getProviderErrors(); + + /** + * int64 platform_errors = 5 [json_name = "platformErrors"]; + * @return The platformErrors. + */ + long getPlatformErrors(); + + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + java.util.List + getTopErrorCodesList(); + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCount getTopErrorCodes(int index); + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + int getTopErrorCodesCount(); + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + java.util.List + getTopErrorCodesOrBuilderList(); + /** + * repeated .scalekit.v1.agentkit_logs.ErrorCodeCount top_error_codes = 6 [json_name = "topErrorCodes"]; + */ + com.scalekit.grpc.scalekit.v1.agentkit_logs.ErrorCodeCountOrBuilder getTopErrorCodesOrBuilder( + int index); + + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + java.util.List + getConnectorBreakdownList(); + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStat getConnectorBreakdown(int index); + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + int getConnectorBreakdownCount(); + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + java.util.List + getConnectorBreakdownOrBuilderList(); + /** + * repeated .scalekit.v1.agentkit_logs.ConnectorStat connector_breakdown = 7 [json_name = "connectorBreakdown"]; + */ + com.scalekit.grpc.scalekit.v1.agentkit_logs.ConnectorStatOrBuilder getConnectorBreakdownOrBuilder( + int index); + + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + java.util.List + getTimeSeriesList(); + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket getTimeSeries(int index); + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + int getTimeSeriesCount(); + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + java.util.List + getTimeSeriesOrBuilderList(); + /** + * repeated .scalekit.v1.agentkit_logs.TimeSeriesBucket time_series = 8 [json_name = "timeSeries"]; + */ + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucketOrBuilder getTimeSeriesOrBuilder( + int index); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/TimeSeriesBucket.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/TimeSeriesBucket.java new file mode 100644 index 00000000..d5bc0c5b --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/TimeSeriesBucket.java @@ -0,0 +1,1001 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_analytics.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +/** + * Protobuf type {@code scalekit.v1.agentkit_logs.TimeSeriesBucket} + */ +public final class TimeSeriesBucket extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.agentkit_logs.TimeSeriesBucket) + TimeSeriesBucketOrBuilder { +private static final long serialVersionUID = 0L; + // Use TimeSeriesBucket.newBuilder() to construct. + private TimeSeriesBucket(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private TimeSeriesBucket() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new TimeSeriesBucket(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_TimeSeriesBucket_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_TimeSeriesBucket_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.Builder.class); + } + + private int bitField0_; + public static final int BUCKET_FIELD_NUMBER = 1; + private com.google.protobuf.Timestamp bucket_; + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + * @return Whether the bucket field is set. + */ + @java.lang.Override + public boolean hasBucket() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + * @return The bucket. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getBucket() { + return bucket_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : bucket_; + } + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getBucketOrBuilder() { + return bucket_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : bucket_; + } + + public static final int TOTAL_FIELD_NUMBER = 2; + private long total_ = 0L; + /** + * int64 total = 2 [json_name = "total"]; + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + + public static final int SUCCESS_FIELD_NUMBER = 3; + private long success_ = 0L; + /** + * int64 success = 3 [json_name = "success"]; + * @return The success. + */ + @java.lang.Override + public long getSuccess() { + return success_; + } + + public static final int ERRORS_FIELD_NUMBER = 4; + private long errors_ = 0L; + /** + * int64 errors = 4 [json_name = "errors"]; + * @return The errors. + */ + @java.lang.Override + public long getErrors() { + return errors_; + } + + public static final int BUCKET_DURATION_SECONDS_FIELD_NUMBER = 5; + private long bucketDurationSeconds_ = 0L; + /** + * int64 bucket_duration_seconds = 5 [json_name = "bucketDurationSeconds", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bucketDurationSeconds. + */ + @java.lang.Override + public long getBucketDurationSeconds() { + return bucketDurationSeconds_; + } + + public static final int PROVIDER_ERRORS_FIELD_NUMBER = 6; + private long providerErrors_ = 0L; + /** + * int64 provider_errors = 6 [json_name = "providerErrors"]; + * @return The providerErrors. + */ + @java.lang.Override + public long getProviderErrors() { + return providerErrors_; + } + + public static final int PLATFORM_ERRORS_FIELD_NUMBER = 7; + private long platformErrors_ = 0L; + /** + * int64 platform_errors = 7 [json_name = "platformErrors"]; + * @return The platformErrors. + */ + @java.lang.Override + public long getPlatformErrors() { + return platformErrors_; + } + + 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, getBucket()); + } + if (total_ != 0L) { + output.writeInt64(2, total_); + } + if (success_ != 0L) { + output.writeInt64(3, success_); + } + if (errors_ != 0L) { + output.writeInt64(4, errors_); + } + if (bucketDurationSeconds_ != 0L) { + output.writeInt64(5, bucketDurationSeconds_); + } + if (providerErrors_ != 0L) { + output.writeInt64(6, providerErrors_); + } + if (platformErrors_ != 0L) { + output.writeInt64(7, platformErrors_); + } + 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, getBucket()); + } + if (total_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(2, total_); + } + if (success_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(3, success_); + } + if (errors_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(4, errors_); + } + if (bucketDurationSeconds_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(5, bucketDurationSeconds_); + } + if (providerErrors_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(6, providerErrors_); + } + if (platformErrors_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(7, platformErrors_); + } + 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.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket other = (com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket) obj; + + if (hasBucket() != other.hasBucket()) return false; + if (hasBucket()) { + if (!getBucket() + .equals(other.getBucket())) return false; + } + if (getTotal() + != other.getTotal()) return false; + if (getSuccess() + != other.getSuccess()) return false; + if (getErrors() + != other.getErrors()) return false; + if (getBucketDurationSeconds() + != other.getBucketDurationSeconds()) return false; + if (getProviderErrors() + != other.getProviderErrors()) return false; + if (getPlatformErrors() + != other.getPlatformErrors()) 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 (hasBucket()) { + hash = (37 * hash) + BUCKET_FIELD_NUMBER; + hash = (53 * hash) + getBucket().hashCode(); + } + hash = (37 * hash) + TOTAL_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getTotal()); + hash = (37 * hash) + SUCCESS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getSuccess()); + hash = (37 * hash) + ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getErrors()); + hash = (37 * hash) + BUCKET_DURATION_SECONDS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getBucketDurationSeconds()); + hash = (37 * hash) + PROVIDER_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getProviderErrors()); + hash = (37 * hash) + PLATFORM_ERRORS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getPlatformErrors()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.agentkit_logs.TimeSeriesBucket} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.agentkit_logs.TimeSeriesBucket) + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucketOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_TimeSeriesBucket_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_TimeSeriesBucket_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getBucketFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + bucket_ = null; + if (bucketBuilder_ != null) { + bucketBuilder_.dispose(); + bucketBuilder_ = null; + } + total_ = 0L; + success_ = 0L; + errors_ = 0L; + bucketDurationSeconds_ = 0L; + providerErrors_ = 0L; + platformErrors_ = 0L; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitAnalyticsProto.internal_static_scalekit_v1_agentkit_logs_TimeSeriesBucket_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket build() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket buildPartial() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket result = new com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.bucket_ = bucketBuilder_ == null + ? bucket_ + : bucketBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.total_ = total_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.success_ = success_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.errors_ = errors_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.bucketDurationSeconds_ = bucketDurationSeconds_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.providerErrors_ = providerErrors_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.platformErrors_ = platformErrors_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket other) { + if (other == com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket.getDefaultInstance()) return this; + if (other.hasBucket()) { + mergeBucket(other.getBucket()); + } + if (other.getTotal() != 0L) { + setTotal(other.getTotal()); + } + if (other.getSuccess() != 0L) { + setSuccess(other.getSuccess()); + } + if (other.getErrors() != 0L) { + setErrors(other.getErrors()); + } + if (other.getBucketDurationSeconds() != 0L) { + setBucketDurationSeconds(other.getBucketDurationSeconds()); + } + if (other.getProviderErrors() != 0L) { + setProviderErrors(other.getProviderErrors()); + } + if (other.getPlatformErrors() != 0L) { + setPlatformErrors(other.getPlatformErrors()); + } + 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( + getBucketFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + total_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + success_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + errors_ = input.readInt64(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + bucketDurationSeconds_ = input.readInt64(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + providerErrors_ = input.readInt64(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: { + platformErrors_ = input.readInt64(); + bitField0_ |= 0x00000040; + 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 com.google.protobuf.Timestamp bucket_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> bucketBuilder_; + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + * @return Whether the bucket field is set. + */ + public boolean hasBucket() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + * @return The bucket. + */ + public com.google.protobuf.Timestamp getBucket() { + if (bucketBuilder_ == null) { + return bucket_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : bucket_; + } else { + return bucketBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + */ + public Builder setBucket(com.google.protobuf.Timestamp value) { + if (bucketBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + bucket_ = value; + } else { + bucketBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + */ + public Builder setBucket( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (bucketBuilder_ == null) { + bucket_ = builderForValue.build(); + } else { + bucketBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + */ + public Builder mergeBucket(com.google.protobuf.Timestamp value) { + if (bucketBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + bucket_ != null && + bucket_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getBucketBuilder().mergeFrom(value); + } else { + bucket_ = value; + } + } else { + bucketBuilder_.mergeFrom(value); + } + if (bucket_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + */ + public Builder clearBucket() { + bitField0_ = (bitField0_ & ~0x00000001); + bucket_ = null; + if (bucketBuilder_ != null) { + bucketBuilder_.dispose(); + bucketBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + */ + public com.google.protobuf.Timestamp.Builder getBucketBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getBucketFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + */ + public com.google.protobuf.TimestampOrBuilder getBucketOrBuilder() { + if (bucketBuilder_ != null) { + return bucketBuilder_.getMessageOrBuilder(); + } else { + return bucket_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : bucket_; + } + } + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getBucketFieldBuilder() { + if (bucketBuilder_ == null) { + bucketBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getBucket(), + getParentForChildren(), + isClean()); + bucket_ = null; + } + return bucketBuilder_; + } + + private long total_ ; + /** + * int64 total = 2 [json_name = "total"]; + * @return The total. + */ + @java.lang.Override + public long getTotal() { + return total_; + } + /** + * int64 total = 2 [json_name = "total"]; + * @param value The total to set. + * @return This builder for chaining. + */ + public Builder setTotal(long value) { + + total_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int64 total = 2 [json_name = "total"]; + * @return This builder for chaining. + */ + public Builder clearTotal() { + bitField0_ = (bitField0_ & ~0x00000002); + total_ = 0L; + onChanged(); + return this; + } + + private long success_ ; + /** + * int64 success = 3 [json_name = "success"]; + * @return The success. + */ + @java.lang.Override + public long getSuccess() { + return success_; + } + /** + * int64 success = 3 [json_name = "success"]; + * @param value The success to set. + * @return This builder for chaining. + */ + public Builder setSuccess(long value) { + + success_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int64 success = 3 [json_name = "success"]; + * @return This builder for chaining. + */ + public Builder clearSuccess() { + bitField0_ = (bitField0_ & ~0x00000004); + success_ = 0L; + onChanged(); + return this; + } + + private long errors_ ; + /** + * int64 errors = 4 [json_name = "errors"]; + * @return The errors. + */ + @java.lang.Override + public long getErrors() { + return errors_; + } + /** + * int64 errors = 4 [json_name = "errors"]; + * @param value The errors to set. + * @return This builder for chaining. + */ + public Builder setErrors(long value) { + + errors_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int64 errors = 4 [json_name = "errors"]; + * @return This builder for chaining. + */ + public Builder clearErrors() { + bitField0_ = (bitField0_ & ~0x00000008); + errors_ = 0L; + onChanged(); + return this; + } + + private long bucketDurationSeconds_ ; + /** + * int64 bucket_duration_seconds = 5 [json_name = "bucketDurationSeconds", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bucketDurationSeconds. + */ + @java.lang.Override + public long getBucketDurationSeconds() { + return bucketDurationSeconds_; + } + /** + * int64 bucket_duration_seconds = 5 [json_name = "bucketDurationSeconds", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bucketDurationSeconds to set. + * @return This builder for chaining. + */ + public Builder setBucketDurationSeconds(long value) { + + bucketDurationSeconds_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * int64 bucket_duration_seconds = 5 [json_name = "bucketDurationSeconds", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearBucketDurationSeconds() { + bitField0_ = (bitField0_ & ~0x00000010); + bucketDurationSeconds_ = 0L; + onChanged(); + return this; + } + + private long providerErrors_ ; + /** + * int64 provider_errors = 6 [json_name = "providerErrors"]; + * @return The providerErrors. + */ + @java.lang.Override + public long getProviderErrors() { + return providerErrors_; + } + /** + * int64 provider_errors = 6 [json_name = "providerErrors"]; + * @param value The providerErrors to set. + * @return This builder for chaining. + */ + public Builder setProviderErrors(long value) { + + providerErrors_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * int64 provider_errors = 6 [json_name = "providerErrors"]; + * @return This builder for chaining. + */ + public Builder clearProviderErrors() { + bitField0_ = (bitField0_ & ~0x00000020); + providerErrors_ = 0L; + onChanged(); + return this; + } + + private long platformErrors_ ; + /** + * int64 platform_errors = 7 [json_name = "platformErrors"]; + * @return The platformErrors. + */ + @java.lang.Override + public long getPlatformErrors() { + return platformErrors_; + } + /** + * int64 platform_errors = 7 [json_name = "platformErrors"]; + * @param value The platformErrors to set. + * @return This builder for chaining. + */ + public Builder setPlatformErrors(long value) { + + platformErrors_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * int64 platform_errors = 7 [json_name = "platformErrors"]; + * @return This builder for chaining. + */ + public Builder clearPlatformErrors() { + bitField0_ = (bitField0_ & ~0x00000040); + platformErrors_ = 0L; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.agentkit_logs.TimeSeriesBucket) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.agentkit_logs.TimeSeriesBucket) + private static final com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket(); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TimeSeriesBucket 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.scalekit.grpc.scalekit.v1.agentkit_logs.TimeSeriesBucket getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/TimeSeriesBucketOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/TimeSeriesBucketOrBuilder.java new file mode 100644 index 00000000..95fcf97e --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/TimeSeriesBucketOrBuilder.java @@ -0,0 +1,61 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_analytics.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +public interface TimeSeriesBucketOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.agentkit_logs.TimeSeriesBucket) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + * @return Whether the bucket field is set. + */ + boolean hasBucket(); + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + * @return The bucket. + */ + com.google.protobuf.Timestamp getBucket(); + /** + * .google.protobuf.Timestamp bucket = 1 [json_name = "bucket"]; + */ + com.google.protobuf.TimestampOrBuilder getBucketOrBuilder(); + + /** + * int64 total = 2 [json_name = "total"]; + * @return The total. + */ + long getTotal(); + + /** + * int64 success = 3 [json_name = "success"]; + * @return The success. + */ + long getSuccess(); + + /** + * int64 errors = 4 [json_name = "errors"]; + * @return The errors. + */ + long getErrors(); + + /** + * int64 bucket_duration_seconds = 5 [json_name = "bucketDurationSeconds", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bucketDurationSeconds. + */ + long getBucketDurationSeconds(); + + /** + * int64 provider_errors = 6 [json_name = "providerErrors"]; + * @return The providerErrors. + */ + long getProviderErrors(); + + /** + * int64 platform_errors = 7 [json_name = "platformErrors"]; + * @return The platformErrors. + */ + long getPlatformErrors(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ToolCallLog.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ToolCallLog.java new file mode 100644 index 00000000..cd91df49 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ToolCallLog.java @@ -0,0 +1,3177 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_logs.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +/** + * Protobuf type {@code scalekit.v1.agentkit_logs.ToolCallLog} + */ +public final class ToolCallLog extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.agentkit_logs.ToolCallLog) + ToolCallLogOrBuilder { +private static final long serialVersionUID = 0L; + // Use ToolCallLog.newBuilder() to construct. + private ToolCallLog(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ToolCallLog() { + id_ = ""; + environmentId_ = ""; + executionId_ = ""; + agentRunId_ = ""; + toolName_ = ""; + provider_ = ""; + connectedAccountId_ = ""; + connectionId_ = ""; + connectionName_ = ""; + identifier_ = ""; + userId_ = ""; + organizationId_ = ""; + source_ = ""; + status_ = ""; + errorTier_ = ""; + errorCode_ = ""; + errorMessage_ = ""; + workspaceId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ToolCallLog(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ToolCallLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ToolCallLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENVIRONMENT_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object environmentId_ = ""; + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return The environmentId. + */ + @java.lang.Override + public java.lang.String getEnvironmentId() { + java.lang.Object ref = environmentId_; + 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(); + environmentId_ = s; + return s; + } + } + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return The bytes for environmentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEnvironmentIdBytes() { + java.lang.Object ref = environmentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + environmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXECUTION_ID_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object executionId_ = ""; + /** + * string execution_id = 3 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The executionId. + */ + @java.lang.Override + public java.lang.String getExecutionId() { + java.lang.Object ref = executionId_; + 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(); + executionId_ = s; + return s; + } + } + /** + * string execution_id = 3 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for executionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getExecutionIdBytes() { + java.lang.Object ref = executionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_RUN_ID_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object agentRunId_ = ""; + /** + * optional string agent_run_id = 4 [json_name = "agentRunId"]; + * @return Whether the agentRunId field is set. + */ + @java.lang.Override + public boolean hasAgentRunId() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string agent_run_id = 4 [json_name = "agentRunId"]; + * @return The agentRunId. + */ + @java.lang.Override + public java.lang.String getAgentRunId() { + java.lang.Object ref = agentRunId_; + 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(); + agentRunId_ = s; + return s; + } + } + /** + * optional string agent_run_id = 4 [json_name = "agentRunId"]; + * @return The bytes for agentRunId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAgentRunIdBytes() { + java.lang.Object ref = agentRunId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + agentRunId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_NAME_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object toolName_ = ""; + /** + * string tool_name = 5 [json_name = "toolName"]; + * @return The toolName. + */ + @java.lang.Override + public java.lang.String getToolName() { + java.lang.Object ref = toolName_; + 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(); + toolName_ = s; + return s; + } + } + /** + * string tool_name = 5 [json_name = "toolName"]; + * @return The bytes for toolName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getToolNameBytes() { + java.lang.Object ref = toolName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + toolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROVIDER_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object provider_ = ""; + /** + * string provider = 6 [json_name = "provider"]; + * @return The provider. + */ + @java.lang.Override + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + 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(); + provider_ = s; + return s; + } + } + /** + * string provider = 6 [json_name = "provider"]; + * @return The bytes for provider. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTED_ACCOUNT_ID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object connectedAccountId_ = ""; + /** + * string connected_account_id = 7 [json_name = "connectedAccountId"]; + * @return The connectedAccountId. + */ + @java.lang.Override + public java.lang.String getConnectedAccountId() { + java.lang.Object ref = connectedAccountId_; + 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(); + connectedAccountId_ = s; + return s; + } + } + /** + * string connected_account_id = 7 [json_name = "connectedAccountId"]; + * @return The bytes for connectedAccountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConnectedAccountIdBytes() { + java.lang.Object ref = connectedAccountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectedAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTION_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object connectionId_ = ""; + /** + * string connection_id = 8 [json_name = "connectionId"]; + * @return The connectionId. + */ + @java.lang.Override + public java.lang.String getConnectionId() { + java.lang.Object ref = connectionId_; + 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(); + connectionId_ = s; + return s; + } + } + /** + * string connection_id = 8 [json_name = "connectionId"]; + * @return The bytes for connectionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConnectionIdBytes() { + java.lang.Object ref = connectionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONNECTION_NAME_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object connectionName_ = ""; + /** + * string connection_name = 9 [json_name = "connectionName"]; + * @return The connectionName. + */ + @java.lang.Override + public java.lang.String getConnectionName() { + java.lang.Object ref = connectionName_; + 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(); + connectionName_ = s; + return s; + } + } + /** + * string connection_name = 9 [json_name = "connectionName"]; + * @return The bytes for connectionName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConnectionNameBytes() { + java.lang.Object ref = connectionName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDENTIFIER_FIELD_NUMBER = 10; + @SuppressWarnings("serial") + private volatile java.lang.Object identifier_ = ""; + /** + * string identifier = 10 [json_name = "identifier"]; + * @return The identifier. + */ + @java.lang.Override + public java.lang.String getIdentifier() { + java.lang.Object ref = identifier_; + 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(); + identifier_ = s; + return s; + } + } + /** + * string identifier = 10 [json_name = "identifier"]; + * @return The bytes for identifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdentifierBytes() { + java.lang.Object ref = identifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_ID_FIELD_NUMBER = 11; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + * string user_id = 11 [json_name = "userId"]; + * @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; + } + } + /** + * string user_id = 11 [json_name = "userId"]; + * @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 ORGANIZATION_ID_FIELD_NUMBER = 12; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * optional string organization_id = 12 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + @java.lang.Override + public boolean hasOrganizationId() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string organization_id = 12 [json_name = "organizationId"]; + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + 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(); + organizationId_ = s; + return s; + } + } + /** + * optional string organization_id = 12 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 13; + @SuppressWarnings("serial") + private volatile java.lang.Object source_ = ""; + /** + * string source = 13 [json_name = "source", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The source. + */ + @java.lang.Override + public java.lang.String getSource() { + java.lang.Object ref = source_; + 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(); + source_ = s; + return s; + } + } + /** + * string source = 13 [json_name = "source", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for source. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 14; + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + /** + * string status = 14 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + 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(); + status_ = s; + return s; + } + } + /** + * string status = 14 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_TIER_FIELD_NUMBER = 15; + @SuppressWarnings("serial") + private volatile java.lang.Object errorTier_ = ""; + /** + * string error_tier = 15 [json_name = "errorTier"]; + * @return The errorTier. + */ + @java.lang.Override + public java.lang.String getErrorTier() { + java.lang.Object ref = errorTier_; + 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(); + errorTier_ = s; + return s; + } + } + /** + * string error_tier = 15 [json_name = "errorTier"]; + * @return The bytes for errorTier. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorTierBytes() { + java.lang.Object ref = errorTier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorTier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_CODE_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private volatile java.lang.Object errorCode_ = ""; + /** + * string error_code = 16 [json_name = "errorCode"]; + * @return The errorCode. + */ + @java.lang.Override + public java.lang.String getErrorCode() { + java.lang.Object ref = errorCode_; + 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(); + errorCode_ = s; + return s; + } + } + /** + * string error_code = 16 [json_name = "errorCode"]; + * @return The bytes for errorCode. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorCodeBytes() { + java.lang.Object ref = errorCode_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 17; + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + /** + * string error_message = 17 [json_name = "errorMessage"]; + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + 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(); + errorMessage_ = s; + return s; + } + } + /** + * string error_message = 17 [json_name = "errorMessage"]; + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DURATION_MS_FIELD_NUMBER = 18; + private long durationMs_ = 0L; + /** + * int64 duration_ms = 18 [json_name = "durationMs"]; + * @return The durationMs. + */ + @java.lang.Override + public long getDurationMs() { + return durationMs_; + } + + public static final int STARTED_AT_FIELD_NUMBER = 19; + private com.google.protobuf.Timestamp startedAt_; + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + * @return Whether the startedAt field is set. + */ + @java.lang.Override + public boolean hasStartedAt() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + * @return The startedAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartedAt() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + + public static final int WORKSPACE_ID_FIELD_NUMBER = 20; + @SuppressWarnings("serial") + private volatile java.lang.Object workspaceId_ = ""; + /** + * optional string workspace_id = 20 [json_name = "workspaceId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the workspaceId field is set. + */ + @java.lang.Override + public boolean hasWorkspaceId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string workspace_id = 20 [json_name = "workspaceId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The workspaceId. + */ + @java.lang.Override + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + 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(); + workspaceId_ = s; + return s; + } + } + /** + * optional string workspace_id = 20 [json_name = "workspaceId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for workspaceId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environmentId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, executionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, agentRunId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toolName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, toolName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, provider_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectedAccountId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, connectedAccountId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, connectionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, connectionName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identifier_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, identifier_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 11, userId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 12, organizationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 13, source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 14, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorTier_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 15, errorTier_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorCode_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, errorCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, errorMessage_); + } + if (durationMs_ != 0L) { + output.writeInt64(18, durationMs_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(19, getStartedAt()); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 20, workspaceId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(executionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, executionId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, agentRunId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(toolName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, toolName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, provider_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectedAccountId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, connectedAccountId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, connectionId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, connectionName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identifier_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, identifier_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, userId_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, organizationId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(source_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(13, source_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(14, status_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorTier_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, errorTier_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorCode_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, errorCode_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, errorMessage_); + } + if (durationMs_ != 0L) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(18, durationMs_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getStartedAt()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(20, workspaceId_); + } + 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.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog other = (com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getEnvironmentId() + .equals(other.getEnvironmentId())) return false; + if (!getExecutionId() + .equals(other.getExecutionId())) return false; + if (hasAgentRunId() != other.hasAgentRunId()) return false; + if (hasAgentRunId()) { + if (!getAgentRunId() + .equals(other.getAgentRunId())) return false; + } + if (!getToolName() + .equals(other.getToolName())) return false; + if (!getProvider() + .equals(other.getProvider())) return false; + if (!getConnectedAccountId() + .equals(other.getConnectedAccountId())) return false; + if (!getConnectionId() + .equals(other.getConnectionId())) return false; + if (!getConnectionName() + .equals(other.getConnectionName())) return false; + if (!getIdentifier() + .equals(other.getIdentifier())) return false; + if (!getUserId() + .equals(other.getUserId())) return false; + if (hasOrganizationId() != other.hasOrganizationId()) return false; + if (hasOrganizationId()) { + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + } + if (!getSource() + .equals(other.getSource())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; + if (!getErrorTier() + .equals(other.getErrorTier())) return false; + if (!getErrorCode() + .equals(other.getErrorCode())) return false; + if (!getErrorMessage() + .equals(other.getErrorMessage())) return false; + if (getDurationMs() + != other.getDurationMs()) return false; + if (hasStartedAt() != other.hasStartedAt()) return false; + if (hasStartedAt()) { + if (!getStartedAt() + .equals(other.getStartedAt())) return false; + } + if (hasWorkspaceId() != other.hasWorkspaceId()) return false; + if (hasWorkspaceId()) { + if (!getWorkspaceId() + .equals(other.getWorkspaceId())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentId().hashCode(); + hash = (37 * hash) + EXECUTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getExecutionId().hashCode(); + if (hasAgentRunId()) { + hash = (37 * hash) + AGENT_RUN_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentRunId().hashCode(); + } + hash = (37 * hash) + TOOL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getToolName().hashCode(); + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + hash = (37 * hash) + CONNECTED_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectedAccountId().hashCode(); + hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectionId().hashCode(); + hash = (37 * hash) + CONNECTION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getConnectionName().hashCode(); + hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getIdentifier().hashCode(); + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + if (hasOrganizationId()) { + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + } + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getSource().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (37 * hash) + ERROR_TIER_FIELD_NUMBER; + hash = (53 * hash) + getErrorTier().hashCode(); + hash = (37 * hash) + ERROR_CODE_FIELD_NUMBER; + hash = (53 * hash) + getErrorCode().hashCode(); + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (37 * hash) + DURATION_MS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong( + getDurationMs()); + if (hasStartedAt()) { + hash = (37 * hash) + STARTED_AT_FIELD_NUMBER; + hash = (53 * hash) + getStartedAt().hashCode(); + } + if (hasWorkspaceId()) { + hash = (37 * hash) + WORKSPACE_ID_FIELD_NUMBER; + hash = (53 * hash) + getWorkspaceId().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.agentkit_logs.ToolCallLog} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.agentkit_logs.ToolCallLog) + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ToolCallLog_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ToolCallLog_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.class, com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getStartedAtFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + environmentId_ = ""; + executionId_ = ""; + agentRunId_ = ""; + toolName_ = ""; + provider_ = ""; + connectedAccountId_ = ""; + connectionId_ = ""; + connectionName_ = ""; + identifier_ = ""; + userId_ = ""; + organizationId_ = ""; + source_ = ""; + status_ = ""; + errorTier_ = ""; + errorCode_ = ""; + errorMessage_ = ""; + durationMs_ = 0L; + startedAt_ = null; + if (startedAtBuilder_ != null) { + startedAtBuilder_.dispose(); + startedAtBuilder_ = null; + } + workspaceId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.AgentkitLogsProto.internal_static_scalekit_v1_agentkit_logs_ToolCallLog_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog build() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog buildPartial() { + com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog result = new com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.environmentId_ = environmentId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.executionId_ = executionId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.agentRunId_ = agentRunId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.toolName_ = toolName_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.provider_ = provider_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.connectedAccountId_ = connectedAccountId_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.connectionId_ = connectionId_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.connectionName_ = connectionName_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.identifier_ = identifier_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.userId_ = userId_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.organizationId_ = organizationId_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.errorTier_ = errorTier_; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.errorCode_ = errorCode_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.errorMessage_ = errorMessage_; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.durationMs_ = durationMs_; + } + if (((from_bitField0_ & 0x00040000) != 0)) { + result.startedAt_ = startedAtBuilder_ == null + ? startedAt_ + : startedAtBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.workspaceId_ = workspaceId_; + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog other) { + if (other == com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEnvironmentId().isEmpty()) { + environmentId_ = other.environmentId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getExecutionId().isEmpty()) { + executionId_ = other.executionId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasAgentRunId()) { + agentRunId_ = other.agentRunId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getToolName().isEmpty()) { + toolName_ = other.toolName_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getProvider().isEmpty()) { + provider_ = other.provider_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getConnectedAccountId().isEmpty()) { + connectedAccountId_ = other.connectedAccountId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getConnectionId().isEmpty()) { + connectionId_ = other.connectionId_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getConnectionName().isEmpty()) { + connectionName_ = other.connectionName_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getIdentifier().isEmpty()) { + identifier_ = other.identifier_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getUserId().isEmpty()) { + userId_ = other.userId_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (other.hasOrganizationId()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.getSource().isEmpty()) { + source_ = other.source_; + bitField0_ |= 0x00001000; + onChanged(); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00002000; + onChanged(); + } + if (!other.getErrorTier().isEmpty()) { + errorTier_ = other.errorTier_; + bitField0_ |= 0x00004000; + onChanged(); + } + if (!other.getErrorCode().isEmpty()) { + errorCode_ = other.errorCode_; + bitField0_ |= 0x00008000; + onChanged(); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + bitField0_ |= 0x00010000; + onChanged(); + } + if (other.getDurationMs() != 0L) { + setDurationMs(other.getDurationMs()); + } + if (other.hasStartedAt()) { + mergeStartedAt(other.getStartedAt()); + } + if (other.hasWorkspaceId()) { + workspaceId_ = other.workspaceId_; + bitField0_ |= 0x00080000; + 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: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + environmentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + executionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + agentRunId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + toolName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + provider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + connectedAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + connectionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + connectionName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 + case 82: { + identifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 90 + case 98: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 98 + case 106: { + source_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00001000; + break; + } // case 106 + case 114: { + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00002000; + break; + } // case 114 + case 122: { + errorTier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00004000; + break; + } // case 122 + case 130: { + errorCode_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00008000; + break; + } // case 130 + case 138: { + errorMessage_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 138 + case 144: { + durationMs_ = input.readInt64(); + bitField0_ |= 0x00020000; + break; + } // case 144 + case 154: { + input.readMessage( + getStartedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00040000; + break; + } // case 154 + case 162: { + workspaceId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00080000; + break; + } // case 162 + 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 id_ = ""; + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object environmentId_ = ""; + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return The environmentId. + */ + public java.lang.String getEnvironmentId() { + java.lang.Object ref = environmentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return The bytes for environmentId. + */ + public com.google.protobuf.ByteString + getEnvironmentIdBytes() { + java.lang.Object ref = environmentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + environmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @param value The environmentId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + environmentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return This builder for chaining. + */ + public Builder clearEnvironmentId() { + environmentId_ = getDefaultInstance().getEnvironmentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @param value The bytes for environmentId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + environmentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object executionId_ = ""; + /** + * string execution_id = 3 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The executionId. + */ + public java.lang.String getExecutionId() { + java.lang.Object ref = executionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + executionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string execution_id = 3 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for executionId. + */ + public com.google.protobuf.ByteString + getExecutionIdBytes() { + java.lang.Object ref = executionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + executionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string execution_id = 3 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The executionId to set. + * @return This builder for chaining. + */ + public Builder setExecutionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + executionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string execution_id = 3 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearExecutionId() { + executionId_ = getDefaultInstance().getExecutionId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string execution_id = 3 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for executionId to set. + * @return This builder for chaining. + */ + public Builder setExecutionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + executionId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object agentRunId_ = ""; + /** + * optional string agent_run_id = 4 [json_name = "agentRunId"]; + * @return Whether the agentRunId field is set. + */ + public boolean hasAgentRunId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string agent_run_id = 4 [json_name = "agentRunId"]; + * @return The agentRunId. + */ + public java.lang.String getAgentRunId() { + java.lang.Object ref = agentRunId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentRunId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string agent_run_id = 4 [json_name = "agentRunId"]; + * @return The bytes for agentRunId. + */ + public com.google.protobuf.ByteString + getAgentRunIdBytes() { + java.lang.Object ref = agentRunId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + agentRunId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string agent_run_id = 4 [json_name = "agentRunId"]; + * @param value The agentRunId to set. + * @return This builder for chaining. + */ + public Builder setAgentRunId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + agentRunId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional string agent_run_id = 4 [json_name = "agentRunId"]; + * @return This builder for chaining. + */ + public Builder clearAgentRunId() { + agentRunId_ = getDefaultInstance().getAgentRunId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * optional string agent_run_id = 4 [json_name = "agentRunId"]; + * @param value The bytes for agentRunId to set. + * @return This builder for chaining. + */ + public Builder setAgentRunIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + agentRunId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object toolName_ = ""; + /** + * string tool_name = 5 [json_name = "toolName"]; + * @return The toolName. + */ + public java.lang.String getToolName() { + java.lang.Object ref = toolName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string tool_name = 5 [json_name = "toolName"]; + * @return The bytes for toolName. + */ + public com.google.protobuf.ByteString + getToolNameBytes() { + java.lang.Object ref = toolName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + toolName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string tool_name = 5 [json_name = "toolName"]; + * @param value The toolName to set. + * @return This builder for chaining. + */ + public Builder setToolName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + toolName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string tool_name = 5 [json_name = "toolName"]; + * @return This builder for chaining. + */ + public Builder clearToolName() { + toolName_ = getDefaultInstance().getToolName(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string tool_name = 5 [json_name = "toolName"]; + * @param value The bytes for toolName to set. + * @return This builder for chaining. + */ + public Builder setToolNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + toolName_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object provider_ = ""; + /** + * string provider = 6 [json_name = "provider"]; + * @return The provider. + */ + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string provider = 6 [json_name = "provider"]; + * @return The bytes for provider. + */ + public com.google.protobuf.ByteString + getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string provider = 6 [json_name = "provider"]; + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + provider_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string provider = 6 [json_name = "provider"]; + * @return This builder for chaining. + */ + public Builder clearProvider() { + provider_ = getDefaultInstance().getProvider(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string provider = 6 [json_name = "provider"]; + * @param value The bytes for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + provider_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object connectedAccountId_ = ""; + /** + * string connected_account_id = 7 [json_name = "connectedAccountId"]; + * @return The connectedAccountId. + */ + public java.lang.String getConnectedAccountId() { + java.lang.Object ref = connectedAccountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectedAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string connected_account_id = 7 [json_name = "connectedAccountId"]; + * @return The bytes for connectedAccountId. + */ + public com.google.protobuf.ByteString + getConnectedAccountIdBytes() { + java.lang.Object ref = connectedAccountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectedAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string connected_account_id = 7 [json_name = "connectedAccountId"]; + * @param value The connectedAccountId to set. + * @return This builder for chaining. + */ + public Builder setConnectedAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + connectedAccountId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * string connected_account_id = 7 [json_name = "connectedAccountId"]; + * @return This builder for chaining. + */ + public Builder clearConnectedAccountId() { + connectedAccountId_ = getDefaultInstance().getConnectedAccountId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * string connected_account_id = 7 [json_name = "connectedAccountId"]; + * @param value The bytes for connectedAccountId to set. + * @return This builder for chaining. + */ + public Builder setConnectedAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + connectedAccountId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object connectionId_ = ""; + /** + * string connection_id = 8 [json_name = "connectionId"]; + * @return The connectionId. + */ + public java.lang.String getConnectionId() { + java.lang.Object ref = connectionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string connection_id = 8 [json_name = "connectionId"]; + * @return The bytes for connectionId. + */ + public com.google.protobuf.ByteString + getConnectionIdBytes() { + java.lang.Object ref = connectionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string connection_id = 8 [json_name = "connectionId"]; + * @param value The connectionId to set. + * @return This builder for chaining. + */ + public Builder setConnectionId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + connectionId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * string connection_id = 8 [json_name = "connectionId"]; + * @return This builder for chaining. + */ + public Builder clearConnectionId() { + connectionId_ = getDefaultInstance().getConnectionId(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * string connection_id = 8 [json_name = "connectionId"]; + * @param value The bytes for connectionId to set. + * @return This builder for chaining. + */ + public Builder setConnectionIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + connectionId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object connectionName_ = ""; + /** + * string connection_name = 9 [json_name = "connectionName"]; + * @return The connectionName. + */ + public java.lang.String getConnectionName() { + java.lang.Object ref = connectionName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectionName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string connection_name = 9 [json_name = "connectionName"]; + * @return The bytes for connectionName. + */ + public com.google.protobuf.ByteString + getConnectionNameBytes() { + java.lang.Object ref = connectionName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectionName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string connection_name = 9 [json_name = "connectionName"]; + * @param value The connectionName to set. + * @return This builder for chaining. + */ + public Builder setConnectionName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + connectionName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * string connection_name = 9 [json_name = "connectionName"]; + * @return This builder for chaining. + */ + public Builder clearConnectionName() { + connectionName_ = getDefaultInstance().getConnectionName(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * string connection_name = 9 [json_name = "connectionName"]; + * @param value The bytes for connectionName to set. + * @return This builder for chaining. + */ + public Builder setConnectionNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + connectionName_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object identifier_ = ""; + /** + * string identifier = 10 [json_name = "identifier"]; + * @return The identifier. + */ + public java.lang.String getIdentifier() { + java.lang.Object ref = identifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string identifier = 10 [json_name = "identifier"]; + * @return The bytes for identifier. + */ + public com.google.protobuf.ByteString + getIdentifierBytes() { + java.lang.Object ref = identifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string identifier = 10 [json_name = "identifier"]; + * @param value The identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifier( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + identifier_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + /** + * string identifier = 10 [json_name = "identifier"]; + * @return This builder for chaining. + */ + public Builder clearIdentifier() { + identifier_ = getDefaultInstance().getIdentifier(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + /** + * string identifier = 10 [json_name = "identifier"]; + * @param value The bytes for identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifierBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + identifier_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object userId_ = ""; + /** + * string user_id = 11 [json_name = "userId"]; + * @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; + } + } + /** + * string user_id = 11 [json_name = "userId"]; + * @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; + } + } + /** + * string user_id = 11 [json_name = "userId"]; + * @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_ |= 0x00000400; + onChanged(); + return this; + } + /** + * string user_id = 11 [json_name = "userId"]; + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + /** + * string user_id = 11 [json_name = "userId"]; + * @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_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object organizationId_ = ""; + /** + * optional string organization_id = 12 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + public boolean hasOrganizationId() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * optional string organization_id = 12 [json_name = "organizationId"]; + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string organization_id = 12 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string organization_id = 12 [json_name = "organizationId"]; + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * optional string organization_id = 12 [json_name = "organizationId"]; + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + /** + * optional string organization_id = 12 [json_name = "organizationId"]; + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private java.lang.Object source_ = ""; + /** + * string source = 13 [json_name = "source", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The source. + */ + public java.lang.String getSource() { + java.lang.Object ref = source_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + source_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string source = 13 [json_name = "source", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for source. + */ + public com.google.protobuf.ByteString + getSourceBytes() { + java.lang.Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string source = 13 [json_name = "source", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + source_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * string source = 13 [json_name = "source", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearSource() { + source_ = getDefaultInstance().getSource(); + bitField0_ = (bitField0_ & ~0x00001000); + onChanged(); + return this; + } + /** + * string source = 13 [json_name = "source", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for source to set. + * @return This builder for chaining. + */ + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + source_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + * string status = 14 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string status = 14 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for status. + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string status = 14 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + status_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * string status = 14 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00002000); + onChanged(); + return this; + } + /** + * string status = 14 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + status_ = value; + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + + private java.lang.Object errorTier_ = ""; + /** + * string error_tier = 15 [json_name = "errorTier"]; + * @return The errorTier. + */ + public java.lang.String getErrorTier() { + java.lang.Object ref = errorTier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorTier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error_tier = 15 [json_name = "errorTier"]; + * @return The bytes for errorTier. + */ + public com.google.protobuf.ByteString + getErrorTierBytes() { + java.lang.Object ref = errorTier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorTier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error_tier = 15 [json_name = "errorTier"]; + * @param value The errorTier to set. + * @return This builder for chaining. + */ + public Builder setErrorTier( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + errorTier_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * string error_tier = 15 [json_name = "errorTier"]; + * @return This builder for chaining. + */ + public Builder clearErrorTier() { + errorTier_ = getDefaultInstance().getErrorTier(); + bitField0_ = (bitField0_ & ~0x00004000); + onChanged(); + return this; + } + /** + * string error_tier = 15 [json_name = "errorTier"]; + * @param value The bytes for errorTier to set. + * @return This builder for chaining. + */ + public Builder setErrorTierBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + errorTier_ = value; + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + + private java.lang.Object errorCode_ = ""; + /** + * string error_code = 16 [json_name = "errorCode"]; + * @return The errorCode. + */ + public java.lang.String getErrorCode() { + java.lang.Object ref = errorCode_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorCode_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error_code = 16 [json_name = "errorCode"]; + * @return The bytes for errorCode. + */ + public com.google.protobuf.ByteString + getErrorCodeBytes() { + java.lang.Object ref = errorCode_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorCode_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error_code = 16 [json_name = "errorCode"]; + * @param value The errorCode to set. + * @return This builder for chaining. + */ + public Builder setErrorCode( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + errorCode_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * string error_code = 16 [json_name = "errorCode"]; + * @return This builder for chaining. + */ + public Builder clearErrorCode() { + errorCode_ = getDefaultInstance().getErrorCode(); + bitField0_ = (bitField0_ & ~0x00008000); + onChanged(); + return this; + } + /** + * string error_code = 16 [json_name = "errorCode"]; + * @param value The bytes for errorCode to set. + * @return This builder for chaining. + */ + public Builder setErrorCodeBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + errorCode_ = value; + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + /** + * string error_message = 17 [json_name = "errorMessage"]; + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error_message = 17 [json_name = "errorMessage"]; + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString + getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error_message = 17 [json_name = "errorMessage"]; + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + errorMessage_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * string error_message = 17 [json_name = "errorMessage"]; + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + * string error_message = 17 [json_name = "errorMessage"]; + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + + private long durationMs_ ; + /** + * int64 duration_ms = 18 [json_name = "durationMs"]; + * @return The durationMs. + */ + @java.lang.Override + public long getDurationMs() { + return durationMs_; + } + /** + * int64 duration_ms = 18 [json_name = "durationMs"]; + * @param value The durationMs to set. + * @return This builder for chaining. + */ + public Builder setDurationMs(long value) { + + durationMs_ = value; + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * int64 duration_ms = 18 [json_name = "durationMs"]; + * @return This builder for chaining. + */ + public Builder clearDurationMs() { + bitField0_ = (bitField0_ & ~0x00020000); + durationMs_ = 0L; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startedAtBuilder_; + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + * @return Whether the startedAt field is set. + */ + public boolean hasStartedAt() { + return ((bitField0_ & 0x00040000) != 0); + } + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + * @return The startedAt. + */ + public com.google.protobuf.Timestamp getStartedAt() { + if (startedAtBuilder_ == null) { + return startedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } else { + return startedAtBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + */ + public Builder setStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startedAt_ = value; + } else { + startedAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + */ + public Builder setStartedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (startedAtBuilder_ == null) { + startedAt_ = builderForValue.build(); + } else { + startedAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00040000; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + */ + public Builder mergeStartedAt(com.google.protobuf.Timestamp value) { + if (startedAtBuilder_ == null) { + if (((bitField0_ & 0x00040000) != 0) && + startedAt_ != null && + startedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getStartedAtBuilder().mergeFrom(value); + } else { + startedAt_ = value; + } + } else { + startedAtBuilder_.mergeFrom(value); + } + if (startedAt_ != null) { + bitField0_ |= 0x00040000; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + */ + public Builder clearStartedAt() { + bitField0_ = (bitField0_ & ~0x00040000); + startedAt_ = null; + if (startedAtBuilder_ != null) { + startedAtBuilder_.dispose(); + startedAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + */ + public com.google.protobuf.Timestamp.Builder getStartedAtBuilder() { + bitField0_ |= 0x00040000; + onChanged(); + return getStartedAtFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + */ + public com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder() { + if (startedAtBuilder_ != null) { + return startedAtBuilder_.getMessageOrBuilder(); + } else { + return startedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : startedAt_; + } + } + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getStartedAtFieldBuilder() { + if (startedAtBuilder_ == null) { + startedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getStartedAt(), + getParentForChildren(), + isClean()); + startedAt_ = null; + } + return startedAtBuilder_; + } + + private java.lang.Object workspaceId_ = ""; + /** + * optional string workspace_id = 20 [json_name = "workspaceId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the workspaceId field is set. + */ + public boolean hasWorkspaceId() { + return ((bitField0_ & 0x00080000) != 0); + } + /** + * optional string workspace_id = 20 [json_name = "workspaceId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The workspaceId. + */ + public java.lang.String getWorkspaceId() { + java.lang.Object ref = workspaceId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + workspaceId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string workspace_id = 20 [json_name = "workspaceId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for workspaceId. + */ + public com.google.protobuf.ByteString + getWorkspaceIdBytes() { + java.lang.Object ref = workspaceId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + workspaceId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string workspace_id = 20 [json_name = "workspaceId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + workspaceId_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + /** + * optional string workspace_id = 20 [json_name = "workspaceId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearWorkspaceId() { + workspaceId_ = getDefaultInstance().getWorkspaceId(); + bitField0_ = (bitField0_ & ~0x00080000); + onChanged(); + return this; + } + /** + * optional string workspace_id = 20 [json_name = "workspaceId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for workspaceId to set. + * @return This builder for chaining. + */ + public Builder setWorkspaceIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + workspaceId_ = value; + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.agentkit_logs.ToolCallLog) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.agentkit_logs.ToolCallLog) + private static final com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog(); + } + + public static com.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ToolCallLog 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.scalekit.grpc.scalekit.v1.agentkit_logs.ToolCallLog getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ToolCallLogOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ToolCallLogOrBuilder.java new file mode 100644 index 00000000..e70942a4 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/agentkit_logs/ToolCallLogOrBuilder.java @@ -0,0 +1,262 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/agentkit_logs/agentkit_logs.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.agentkit_logs; + +public interface ToolCallLogOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.agentkit_logs.ToolCallLog) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return The environmentId. + */ + java.lang.String getEnvironmentId(); + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return The bytes for environmentId. + */ + com.google.protobuf.ByteString + getEnvironmentIdBytes(); + + /** + * string execution_id = 3 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The executionId. + */ + java.lang.String getExecutionId(); + /** + * string execution_id = 3 [json_name = "executionId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for executionId. + */ + com.google.protobuf.ByteString + getExecutionIdBytes(); + + /** + * optional string agent_run_id = 4 [json_name = "agentRunId"]; + * @return Whether the agentRunId field is set. + */ + boolean hasAgentRunId(); + /** + * optional string agent_run_id = 4 [json_name = "agentRunId"]; + * @return The agentRunId. + */ + java.lang.String getAgentRunId(); + /** + * optional string agent_run_id = 4 [json_name = "agentRunId"]; + * @return The bytes for agentRunId. + */ + com.google.protobuf.ByteString + getAgentRunIdBytes(); + + /** + * string tool_name = 5 [json_name = "toolName"]; + * @return The toolName. + */ + java.lang.String getToolName(); + /** + * string tool_name = 5 [json_name = "toolName"]; + * @return The bytes for toolName. + */ + com.google.protobuf.ByteString + getToolNameBytes(); + + /** + * string provider = 6 [json_name = "provider"]; + * @return The provider. + */ + java.lang.String getProvider(); + /** + * string provider = 6 [json_name = "provider"]; + * @return The bytes for provider. + */ + com.google.protobuf.ByteString + getProviderBytes(); + + /** + * string connected_account_id = 7 [json_name = "connectedAccountId"]; + * @return The connectedAccountId. + */ + java.lang.String getConnectedAccountId(); + /** + * string connected_account_id = 7 [json_name = "connectedAccountId"]; + * @return The bytes for connectedAccountId. + */ + com.google.protobuf.ByteString + getConnectedAccountIdBytes(); + + /** + * string connection_id = 8 [json_name = "connectionId"]; + * @return The connectionId. + */ + java.lang.String getConnectionId(); + /** + * string connection_id = 8 [json_name = "connectionId"]; + * @return The bytes for connectionId. + */ + com.google.protobuf.ByteString + getConnectionIdBytes(); + + /** + * string connection_name = 9 [json_name = "connectionName"]; + * @return The connectionName. + */ + java.lang.String getConnectionName(); + /** + * string connection_name = 9 [json_name = "connectionName"]; + * @return The bytes for connectionName. + */ + com.google.protobuf.ByteString + getConnectionNameBytes(); + + /** + * string identifier = 10 [json_name = "identifier"]; + * @return The identifier. + */ + java.lang.String getIdentifier(); + /** + * string identifier = 10 [json_name = "identifier"]; + * @return The bytes for identifier. + */ + com.google.protobuf.ByteString + getIdentifierBytes(); + + /** + * string user_id = 11 [json_name = "userId"]; + * @return The userId. + */ + java.lang.String getUserId(); + /** + * string user_id = 11 [json_name = "userId"]; + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + * optional string organization_id = 12 [json_name = "organizationId"]; + * @return Whether the organizationId field is set. + */ + boolean hasOrganizationId(); + /** + * optional string organization_id = 12 [json_name = "organizationId"]; + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * optional string organization_id = 12 [json_name = "organizationId"]; + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * string source = 13 [json_name = "source", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The source. + */ + java.lang.String getSource(); + /** + * string source = 13 [json_name = "source", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for source. + */ + com.google.protobuf.ByteString + getSourceBytes(); + + /** + * string status = 14 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The status. + */ + java.lang.String getStatus(); + /** + * string status = 14 [json_name = "status", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for status. + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + * string error_tier = 15 [json_name = "errorTier"]; + * @return The errorTier. + */ + java.lang.String getErrorTier(); + /** + * string error_tier = 15 [json_name = "errorTier"]; + * @return The bytes for errorTier. + */ + com.google.protobuf.ByteString + getErrorTierBytes(); + + /** + * string error_code = 16 [json_name = "errorCode"]; + * @return The errorCode. + */ + java.lang.String getErrorCode(); + /** + * string error_code = 16 [json_name = "errorCode"]; + * @return The bytes for errorCode. + */ + com.google.protobuf.ByteString + getErrorCodeBytes(); + + /** + * string error_message = 17 [json_name = "errorMessage"]; + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + /** + * string error_message = 17 [json_name = "errorMessage"]; + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString + getErrorMessageBytes(); + + /** + * int64 duration_ms = 18 [json_name = "durationMs"]; + * @return The durationMs. + */ + long getDurationMs(); + + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + * @return Whether the startedAt field is set. + */ + boolean hasStartedAt(); + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + * @return The startedAt. + */ + com.google.protobuf.Timestamp getStartedAt(); + /** + * .google.protobuf.Timestamp started_at = 19 [json_name = "startedAt"]; + */ + com.google.protobuf.TimestampOrBuilder getStartedAtOrBuilder(); + + /** + * optional string workspace_id = 20 [json_name = "workspaceId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the workspaceId field is set. + */ + boolean hasWorkspaceId(); + /** + * optional string workspace_id = 20 [json_name = "workspaceId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The workspaceId. + */ + java.lang.String getWorkspaceId(); + /** + * optional string workspace_id = 20 [json_name = "workspaceId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for workspaceId. + */ + com.google.protobuf.ByteString + getWorkspaceIdBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/auditlogs/AuditlogsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/auditlogs/AuditlogsProto.java index 66687777..4e3b23e7 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/auditlogs/AuditlogsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/auditlogs/AuditlogsProto.java @@ -47,71 +47,73 @@ public static void registerAllExtensions( "\n%scalekit/v1/auditlogs/auditlogs.proto\022" + "\025scalekit.v1.auditlogs\032\033buf/validate/val" + "idate.proto\032\034google/api/annotations.prot" + - "o\032\037google/protobuf/timestamp.proto\032.prot" + - "oc-gen-openapiv2/options/annotations.pro" + - "to\032!scalekit/v1/options/options.proto\"\260\003" + - "\n\022ListAuthLogRequest\022\033\n\tpage_size\030\001 \001(\rR" + - "\010pageSize\022\035\n\npage_token\030\002 \001(\tR\tpageToken" + - "\022\024\n\005email\030\003 \001(\tR\005email\022\026\n\006status\030\004 \003(\tR\006" + - "status\0229\n\nstart_time\030\005 \001(\0132\032.google.prot" + - "obuf.TimestampR\tstartTime\0225\n\010end_time\030\006 " + - "\001(\0132\032.google.protobuf.TimestampR\007endTime" + - "\022\037\n\013resource_id\030\007 \001(\tR\nresourceId\022@\n\034con" + - "nected_account_identifier\030\010 \001(\tR\032connect" + - "edAccountIdentifier\022[\n\tclient_id\030\t \001(\tB>" + - "\222A;2\'Filter authentication logs by clien" + - "t IDJ\020\"skc_1234567890\"R\010clientId\"\317\001\n\023Lis" + - "tAuthLogResponse\022&\n\017next_page_token\030\001 \001(" + - "\tR\rnextPageToken\022&\n\017prev_page_token\030\002 \001(" + - "\tR\rprevPageToken\022\035\n\ntotal_size\030\003 \001(\rR\tto" + - "talSize\022I\n\014authRequests\030\004 \003(\0132%.scalekit" + - ".v1.auditlogs.AuthLogRequestR\014authReques" + - "ts\"\305\007\n\016AuthLogRequest\022\'\n\017organization_id" + - "\030\001 \001(\tR\016organizationId\022%\n\016environment_id" + - "\030\002 \001(\tR\renvironmentId\022#\n\rconnection_id\030\003" + - " \001(\tR\014connectionId\022&\n\017auth_request_id\030\004 " + - "\001(\tR\rauthRequestId\022\024\n\005email\030\005 \001(\tR\005email" + - "\022\'\n\017connection_type\030\006 \001(\tR\016connectionTyp" + - "e\022/\n\023connection_provider\030\007 \001(\tR\022connecti" + - "onProvider\022\026\n\006status\030\010 \001(\tR\006status\0228\n\tti" + - "mestamp\030\t \001(\0132\032.google.protobuf.Timestam" + - "pR\ttimestamp\022W\n\022connection_details\030\n \003(\013" + - "2(.scalekit.v1.auditlogs.ConnectionDetai" + - "lsR\021connectionDetails\022\032\n\010workflow\030\013 \001(\tR" + - "\010workflow\022\037\n\013resource_id\030\014 \001(\tR\nresource" + - "Id\022#\n\rresource_name\030\r \001(\tR\014resourceName\022" + - "#\n\rresource_type\030\016 \001(\tR\014resourceType\022@\n\034" + - "connected_account_identifier\030\017 \001(\tR\032conn" + - "ectedAccountIdentifier\022}\n\tclient_id\030\020 \001(" + - "\tB`\222A]2IUnique identifier of the client " + - "associated with this authentication even" + - "tJ\020\"skc_1234567890\"R\010clientId\022K\n\013client_" + - "name\030\021 \001(\tB*\222A\'2\032Display name of the cli" + - "entJ\t\"Default\"R\nclientName\022f\n\013client_typ" + - "e\030\022 \001(\tBE\222AB29Type of the client applica" + - "tion (e.g., WEB, NTV, SPA, M2M)J\005\"WEB\"R\n" + - "clientType\"\273\001\n\021ConnectionDetails\022#\n\rconn" + - "ection_id\030\001 \001(\tR\014connectionId\022\'\n\017organiz" + - "ation_id\030\002 \001(\tR\016organizationId\022\'\n\017connec" + - "tion_type\030\003 \001(\tR\016connectionType\022/\n\023conne" + - "ction_provider\030\004 \001(\tR\022connectionProvider" + - "2\262\001\n\020AuditLogsService\022\235\001\n\020ListAuthReques" + - "ts\022).scalekit.v1.auditlogs.ListAuthLogRe" + - "quest\032*.scalekit.v1.auditlogs.ListAuthLo" + - "gResponse\"2\202\265\030\002\030D\202\323\344\223\002&\022$/api/v1/logs/au" + - "thentication/requestsB\344\001\n\'com.scalekit.g" + - "rpc.scalekit.v1.auditlogsB\016AuditlogsProt" + - "oP\001Z3github.com/scalekit-inc/scalekit/pk" + - "g/grpc/auditlogs\242\002\003SVA\252\002\025Scalekit.V1.Aud" + - "itlogs\312\002\025Scalekit\\V1\\Auditlogs\342\002!Scaleki" + - "t\\V1\\Auditlogs\\GPBMetadata\352\002\027Scalekit::V" + - "1::Auditlogsb\006proto3" + "o\032\033google/api/visibility.proto\032\037google/p" + + "rotobuf/timestamp.proto\032.protoc-gen-open" + + "apiv2/options/annotations.proto\032!scaleki" + + "t/v1/options/options.proto\"\260\003\n\022ListAuthL" + + "ogRequest\022\033\n\tpage_size\030\001 \001(\rR\010pageSize\022\035" + + "\n\npage_token\030\002 \001(\tR\tpageToken\022\024\n\005email\030\003" + + " \001(\tR\005email\022\026\n\006status\030\004 \003(\tR\006status\0229\n\ns" + + "tart_time\030\005 \001(\0132\032.google.protobuf.Timest" + + "ampR\tstartTime\0225\n\010end_time\030\006 \001(\0132\032.googl" + + "e.protobuf.TimestampR\007endTime\022\037\n\013resourc" + + "e_id\030\007 \001(\tR\nresourceId\022@\n\034connected_acco" + + "unt_identifier\030\010 \001(\tR\032connectedAccountId" + + "entifier\022[\n\tclient_id\030\t \001(\tB>\222A;2\'Filter" + + " authentication logs by client IDJ\020\"skc_" + + "1234567890\"R\010clientId\"\317\001\n\023ListAuthLogRes" + + "ponse\022&\n\017next_page_token\030\001 \001(\tR\rnextPage" + + "Token\022&\n\017prev_page_token\030\002 \001(\tR\rprevPage" + + "Token\022\035\n\ntotal_size\030\003 \001(\rR\ttotalSize\022I\n\014" + + "authRequests\030\004 \003(\0132%.scalekit.v1.auditlo" + + "gs.AuthLogRequestR\014authRequests\"\305\007\n\016Auth" + + "LogRequest\022\'\n\017organization_id\030\001 \001(\tR\016org" + + "anizationId\022%\n\016environment_id\030\002 \001(\tR\renv" + + "ironmentId\022#\n\rconnection_id\030\003 \001(\tR\014conne" + + "ctionId\022&\n\017auth_request_id\030\004 \001(\tR\rauthRe" + + "questId\022\024\n\005email\030\005 \001(\tR\005email\022\'\n\017connect" + + "ion_type\030\006 \001(\tR\016connectionType\022/\n\023connec" + + "tion_provider\030\007 \001(\tR\022connectionProvider\022" + + "\026\n\006status\030\010 \001(\tR\006status\0228\n\ttimestamp\030\t \001" + + "(\0132\032.google.protobuf.TimestampR\ttimestam" + + "p\022W\n\022connection_details\030\n \003(\0132(.scalekit" + + ".v1.auditlogs.ConnectionDetailsR\021connect" + + "ionDetails\022\032\n\010workflow\030\013 \001(\tR\010workflow\022\037" + + "\n\013resource_id\030\014 \001(\tR\nresourceId\022#\n\rresou" + + "rce_name\030\r \001(\tR\014resourceName\022#\n\rresource" + + "_type\030\016 \001(\tR\014resourceType\022@\n\034connected_a" + + "ccount_identifier\030\017 \001(\tR\032connectedAccoun" + + "tIdentifier\022}\n\tclient_id\030\020 \001(\tB`\222A]2IUni" + + "que identifier of the client associated " + + "with this authentication eventJ\020\"skc_123" + + "4567890\"R\010clientId\022K\n\013client_name\030\021 \001(\tB" + + "*\222A\'2\032Display name of the clientJ\t\"Defau" + + "lt\"R\nclientName\022f\n\013client_type\030\022 \001(\tBE\222A" + + "B29Type of the client application (e.g.," + + " ENV, NTV, SPA, M2M)J\005\"ENV\"R\nclientType\"" + + "\273\001\n\021ConnectionDetails\022#\n\rconnection_id\030\001" + + " \001(\tR\014connectionId\022\'\n\017organization_id\030\002 " + + "\001(\tR\016organizationId\022\'\n\017connection_type\030\003" + + " \001(\tR\016connectionType\022/\n\023connection_provi" + + "der\030\004 \001(\tR\022connectionProvider2\301\001\n\020AuditL" + + "ogsService\022\254\001\n\020ListAuthRequests\022).scalek" + + "it.v1.auditlogs.ListAuthLogRequest\032*.sca" + + "lekit.v1.auditlogs.ListAuthLogResponse\"A" + + "\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002&\022$/api/v1/log" + + "s/authentication/requestsB\344\001\n\'com.scalek" + + "it.grpc.scalekit.v1.auditlogsB\016Auditlogs" + + "ProtoP\001Z3github.com/scalekit-inc/scaleki" + + "t/pkg/grpc/auditlogs\242\002\003SVA\252\002\025Scalekit.V1" + + ".Auditlogs\312\002\025Scalekit\\V1\\Auditlogs\342\002!Sca" + + "lekit\\V1\\Auditlogs\\GPBMetadata\352\002\027Scaleki" + + "t::V1::Auditlogsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(), com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(), + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(), com.scalekit.grpc.scalekit.v1.options.OptionsProto.getDescriptor(), @@ -143,12 +145,14 @@ public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.scalekit.grpc.google.api.AnnotationsProto.http); + registry.add(com.scalekit.grpc.google.api.VisibilityProto.methodVisibility); registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Field); registry.add(com.scalekit.grpc.scalekit.v1.options.OptionsProto.authOption); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(); com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(); + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(); com.scalekit.grpc.scalekit.v1.options.OptionsProto.getDescriptor(); diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/AuthProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/AuthProto.java index 06bca6ad..b6bd1fa9 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/AuthProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/AuthProto.java @@ -192,188 +192,205 @@ public static void registerAllExtensions( "ntB\010\272H\005\202\001\002\020\001R\006intent\"\\\n\033DiscoveryAuthMet" + "hodResponse\022=\n\013auth_method\030\001 \001(\0132\034.scale" + "kit.v1.auth.AuthMethodR\nauthMethod\"\036\n\034Ge" + - "tAuthCustomizationsRequest\"\253\001\n\016PortalSet" + + "tAuthCustomizationsRequest\"\217\003\n\016PortalSet" + "tings\022\230\001\n\017custom_branding\030\001 \001(\010Bo\222Al2dIn" + "dicates whether custom portal branding i" + "s enabled for this workspace based on bi" + "lling subscriptionJ\004trueR\016customBranding" + - "\"\262\001\n\035GetAuthCustomizationsResponse\022N\n\026cu" + - "stomization_settings\030\002 \001(\0132\027.google.prot" + - "obuf.StructR\025customizationSettings\022A\n\010se" + - "ttings\030\003 \001(\0132 .scalekit.v1.auth.PortalSe" + - "ttingsB\003\340A\003R\010settings\"N\n\027GetAuthFeatures" + - "Response\0223\n\010features\030\001 \001(\0132\027.google.prot" + - "obuf.StructR\010features\"U\n\034VerifyPasswordL" + - "essOtpRequest\0225\n\007otp_req\030\002 \001(\0132\034.scaleki" + - "t.v1.auth.OTPRequestR\006otpReq\"\037\n\035VerifyPa" + - "sswordLessOtpResponse\"i\n\nOTPRequest\022[\n\016c" + - "ode_challenge\030\001 \001(\tB4\222A(2\034OTP sent to th" + - "e user\'s emailJ\010\"123456\"\272H\006r\004\020\005\030\006R\rcodeC" + - "hallenge\"\324\001\n\035ListUserOrganizationsRespon" + - "se\022D\n\rorganizations\030\001 \003(\0132\036.scalekit.v1." + - "auth.OrganizationR\rorganizations\0221\n\004user" + - "\030\002 \001(\0132\035.scalekit.v1.auth.UserDetailsR\004u" + - "ser\022:\n\006intent\030\003 \001(\0162\030.scalekit.v1.auth.I" + - "ntentB\010\272H\005\202\001\002\020\001R\006intent\"\213\004\n\014Organization" + - "\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022+\n\021" + - "membership_status\030\003 \001(\tR\020membershipStatu" + - "s\022=\n\030invitation_inviter_email\030\004 \001(\tH\000R\026i" + - "nvitationInviterEmail\210\001\001\022U\n\026invitation_a" + - "ccepted_at\030\005 \001(\0132\032.google.protobuf.Times" + - "tampH\001R\024invitationAcceptedAt\210\001\001\022S\n\025invit" + - "ation_created_at\030\006 \001(\0132\032.google.protobuf" + - ".TimestampH\002R\023invitationCreatedAt\210\001\001\022S\n\025" + - "invitation_expires_at\030\007 \001(\0132\032.google.pro" + - "tobuf.TimestampH\003R\023invitationExpiresAt\210\001" + - "\001B\033\n\031_invitation_inviter_emailB\031\n\027_invit" + - "ation_accepted_atB\030\n\026_invitation_created" + - "_atB\030\n\026_invitation_expires_at\"_\n\013UserDet" + - "ails\022\024\n\005email\030\001 \001(\tR\005email\022\035\n\nfirst_name" + - "\030\002 \001(\tR\tfirstName\022\033\n\tlast_name\030\003 \001(\tR\010la" + - "stName\"\304\001\n\031SignupOrganizationRequest\022+\n\021" + - "organization_name\030\001 \001(\tR\020organizationNam" + - "e\022\035\n\nfirst_name\030\002 \001(\tR\tfirstName\022\033\n\tlast" + - "_name\030\003 \001(\tR\010lastName\022\033\n\tfull_name\030\004 \001(\t" + - "R\010fullName\022!\n\014phone_number\030\005 \001(\tR\013phoneN" + - "umber\"r\n\032SignupOrganizationResponse\022\'\n\017o" + - "rganization_id\030\001 \001(\tR\016organizationId\022+\n\021" + - "organization_name\030\002 \001(\tR\020organizationNam" + - "e\"\326\002\n\035UpdateLoginUserDetailsRequest\022v\n\rc" + - "onnection_id\030\001 \001(\tBQ\222AE2+Connection ID. " + - "Unique ID for the connectionJ\026\"conn_1213" + - "12434123312\"\272H\006r\004\020\001\030 R\014connectionId\022\220\001\n\020" + - "login_request_id\030\002 \001(\tBf\222A]2BLogin Reque" + - "st ID that was shared as part of authori" + - "zation initiateJ\027\"lri_73415099636808061\"" + - "\272H\003\310\001\001R\016loginRequestId\022*\n\004user\030\003 \001(\0132\026.s" + - "calekit.v1.auth.UserR\004user\"\341\r\n\004User\022\203\001\n\003" + - "sub\030\001 \001(\tBq\222Ag2WSubject identifier for t" + - "he user (typically a unique user ID from" + - " the identity provider)J\014\"1234567890\"\272H\004" + - "r\002\020\001R\003sub\022R\n\005email\030\002 \001(\tB<\222A22\034User\'s pr" + - "imary email addressJ\022\"user@example.com\"\272" + - "H\004r\002\020\001R\005email\022=\n\ngiven_name\030\003 \001(\tB\036\222A\0332\021" + - "User\'s first nameJ\006\"John\"R\tgivenName\022=\n\013" + - "family_name\030\004 \001(\tB\034\222A\0312\020User\'s last name" + - "J\005\"Doe\"R\nfamilyName\022\210\001\n\016email_verified\030\005" + - " \001(\010Ba\222A^2VIndicates whether the user\'s " + - "email address has been verified by the i" + - "dentity provider.J\004trueR\remailVerified\022c" + - "\n\014phone_number\030\006 \001(\tB@\222A=2,User\'s primar" + - "y phone number in E.164 format.J\r\"+12345" + - "67890\"R\013phoneNumber\022\225\001\n\025phone_number_ver" + - "ified\030\007 \001(\010Ba\222A^2UIndicates whether the " + - "user\'s phone number has been verified by" + - " the identity provider.J\005falseR\023phoneNum" + - "berVerified\022B\n\004name\030\010 \001(\tB.\222A+2\035Full dis" + - "play name of the userJ\n\"John Doe\"R\004name\022" + - "b\n\022preferred_username\030\t \001(\tB3\222A02#User\'s" + - " preferred username or handleJ\t\"johndoe\"" + - "R\021preferredUsername\022b\n\007picture\030\n \001(\tBH\222A" + - "E2!URL to the user\'s profile pictureJ \"h" + - "ttps://example.com/avatar.jpg\"R\007picture\022" + - "X\n\006gender\030\013 \001(\tB@\222A=23User\'s gender as r" + - "eported by the identity provider.J\006\"male" + - "\"R\006gender\022e\n\006locale\030\014 \001(\tBM\222AJ2?User\'s l" + - "ocale or language preference (IETF BCP 4" + - "7 language tag)J\007\"en-US\"R\006locale\022f\n\006grou" + - "ps\030\r \003(\tBN\222AK2/List of group names or ID" + - "s the user belongs to.J\030[\"admins\", \"deve" + - "lopers\"]R\006groups\022\362\001\n\021custom_attributes\030\016" + - " \001(\0132\027.google.protobuf.StructB\253\001\222A\247\0012mCu" + - "stom attributes for the user, represente" + - "d as a key-value map. Used for additiona" + - "l identity provider claims.J6{\"departmen" + - "t\": \"Engineering\", \"employee_id\": \"E1234" + - "5\"}R\020customAttributes\022\261\001\n\030organization_e" + - "xternal_id\030\017 \001(\tBr\222Ao2EIdentifier for th" + - "e user\342\200\231s organization within the ident" + - "ity providerJ&\"132d085d-d89d-4a2e-95bb-4" + - "9bde680d14f\"H\000R\026organizationExternalId\210\001" + - "\001B\033\n\031_organization_external_id\"\205\001\n\024GetAu" + - "thStateResponse\022:\n\nauth_state\030\001 \001(\0162\033.sc" + - "alekit.v1.auth.AuthStateR\tauthState\0221\n\004u" + - "ser\030\002 \001(\0132\035.scalekit.v1.auth.UserDetails" + - "R\004user\"\214\001\n\023GetAuthErrorRequest\022u\n\010error_" + - "id\030\001 \001(\tBZ\222AH2.Unique identifier for the" + - " authentication errorJ\026\"err_1234567890ab" + - "cdef\"\272H\014r\n\020\001\030@:\004err_R\007errorId\"Y\n\024GetAuth" + - "ErrorResponse\022\024\n\005error\030\001 \001(\tR\005error\022+\n\021e" + - "rror_description\030\002 \001(\tR\020errorDescription" + - "*:\n\006Intent\022\026\n\022INTENT_UNSPECIFIED\020\000\022\013\n\007si" + - "gn_in\020\001\022\013\n\007sign_up\020\002*\264\004\n\tAuthState\022\032\n\026AU" + - "TH_STATE_UNSPECIFIED\020\000\022\036\n\032AUTHENTICATION" + - "_IN_PROGRESS\020\001\022\031\n\025ORGANIZATION_SWITCHER\020" + - "\002\022\031\n\025ORGANIZATION_SELECTED\020\003\022\027\n\023ORGANIZA" + - "TION_SIGNUP\020\004\022 \n\034ORGANIZATION_SWITCHER_S" + - "IGNUP\020\005\022\034\n\030OTP_VERIFICATION_PENDING\020\006\022\023\n" + - "\017MAGIC_LINK_SENT\020\007\022&\n\"LINK_SENT_OTP_VERI" + - "FICATION_PENDING\020\010\022\020\n\014OTP_VERIFIED\020\t\022\021\n\r" + - "LINK_VERIFIED\020\n\022\025\n\021SSO_AUTHENTICATED\020\013\022\024" + - "\n\020ORG_USER_CREATED\020\014\022\034\n\030AUTHENTICATION_C" + - "OMPLETED\020\r\022\031\n\025AUTHENTICATION_FAILED\020\016\022\025\n" + - "\021WEBAUTHN_VERIFIED\020\017\022 \n\034VERIFICATION_MAG" + - "IC_LINK_SENT\020\020\022$\n VERIFICATION_MAGIC_LIN" + - "K_OTP_SENT\020\021\022\031\n\025VERIFICATION_OTP_SENT\020\022\022" + - "\032\n\026VERIFICATION_COMPLETED\020\0232\247\020\n\013AuthServ" + - "ice\022\230\001\n\017ListAuthMethods\022(.scalekit.v1.au" + - "th.ListAuthMethodsRequest\032).scalekit.v1." + - "auth.ListAuthMethodsResponse\"0\202\265\030\002\030\001\372\322\344\223" + - "\002\t\022\007PREVIEW\202\323\344\223\002\025\022\023/api/v1/authmethods\022\272" + - "\001\n\023DiscoveryAuthMethod\022,.scalekit.v1.aut" + - "h.DiscoveryAuthMethodRequest\032-.scalekit." + - "v1.auth.DiscoveryAuthMethodResponse\"F\202\265\030" + - "\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002+\"\026/api/v1/auth:d" + - "iscovery:\021discovery_request\022\300\001\n\025VerifyPa" + - "sswordLessOtp\022..scalekit.v1.auth.VerifyP" + - "asswordLessOtpRequest\032/.scalekit.v1.auth" + - ".VerifyPasswordLessOtpResponse\"F\202\265\030\002\030\001\372\322" + - "\344\223\002\t\022\007PREVIEW\202\323\344\223\002+\" /api/v1/auth/passwo" + - "rdless:verify:\007otp_req\022\203\001\n\022ResendPasswor" + - "dless\022\026.google.protobuf.Empty\032\026.google.p" + - "rotobuf.Empty\"=\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223" + - "\002\"\" /api/v1/auth/passwordless:resend\022\231\001\n" + - "\025ListUserOrganizations\022\026.google.protobuf" + - ".Empty\032/.scalekit.v1.auth.ListUserOrgani" + - "zationsResponse\"7\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323" + - "\344\223\002\034\022\032/api/v1/auth:organizations\022\244\001\n\022Sig" + - "nupOrganization\022+.scalekit.v1.auth.Signu" + - "pOrganizationRequest\032,.scalekit.v1.auth." + - "SignupOrganizationResponse\"3\202\265\030\002\030\001\372\322\344\223\002\t" + - "\022\007PREVIEW\202\323\344\223\002\030\"\023/api/v1/auth:signup:\001*\022" + - "\177\n\014GetAuthState\022\026.google.protobuf.Empty\032" + - "&.scalekit.v1.auth.GetAuthStateResponse\"" + - "/\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\024\022\022/api/v1/au" + - "th/state\022\266\001\n\014GetAuthError\022%.scalekit.v1." + - "auth.GetAuthErrorRequest\032&.scalekit.v1.a" + - "uth.GetAuthErrorResponse\"W\202\265\030\002\030\001\372\322\344\223\002\t\022\007" + - "PREVIEW\202\323\344\223\002<\022\031/api/v1/errors/{error_id}" + - "Z\037\022\035/api/v1/auth/error/{error_id}\022j\n\006Log" + - "out\022\026.google.protobuf.Empty\032\026.google.pro" + - "tobuf.Empty\"0\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\025" + - "\"\023/api/v1/auth/logout\022\262\001\n\025GetAuthCustomi" + - "zations\022..scalekit.v1.auth.GetAuthCustom" + - "izationsRequest\032/.scalekit.v1.auth.GetAu" + - "thCustomizationsResponse\"8\202\265\030\002\030\001\372\322\344\223\002\t\022\007" + - "PREVIEW\202\323\344\223\002\035\022\033/api/v1/auth:customizatio" + - "ns\022\210\001\n\017GetAuthFeatures\022\026.google.protobuf" + - ".Empty\032).scalekit.v1.auth.GetAuthFeature" + - "sResponse\"2\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\027\022\025" + - "/api/v1/auth:features\022\315\002\n\026UpdateLoginUse" + - "rDetails\022/.scalekit.v1.auth.UpdateLoginU" + - "serDetailsRequest\032\026.google.protobuf.Empt" + - "y\"\351\001\222Az\n\013Connections\022%Update User Detail" + - "s for login request\032%Update User Details" + - " for login requestJ\035\n\003200\022\026\n\024Deleted Suc" + - "cessfully\202\265\030\002\030\004\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002Q\"I/a" + - "pi/v1/connections/{connection_id}/auth-r" + - "equests/{login_request_id}/user:\004userB\301\001" + - "\n\"com.scalekit.grpc.scalekit.v1.authB\tAu" + - "thProtoP\001Z.github.com/scalekit-inc/scale" + - "kit/pkg/grpc/auth\242\002\003SVA\252\002\020Scalekit.V1.Au" + - "th\312\002\020Scalekit\\V1\\Auth\342\002\034Scalekit\\V1\\Auth" + - "\\GPBMetadata\352\002\022Scalekit::V1::Authb\006proto" + - "3" + "\022\305\001\n\027new_self_serve_sso_scim\030\002 \001(\010B\211\001\222A\205" + + "\0012|Indicates whether the new self-serve " + + "SSO/SCIM flow should be shown in the hos" + + "ted pages (rollout-driven, not billing-d" + + "erived)J\005falseH\000R\023newSelfServeSsoScim\210\001\001" + + "B\032\n\030_new_self_serve_sso_scim\"\262\001\n\035GetAuth" + + "CustomizationsResponse\022N\n\026customization_" + + "settings\030\002 \001(\0132\027.google.protobuf.StructR" + + "\025customizationSettings\022A\n\010settings\030\003 \001(\013" + + "2 .scalekit.v1.auth.PortalSettingsB\003\340A\003R" + + "\010settings\"N\n\027GetAuthFeaturesResponse\0223\n\010" + + "features\030\001 \001(\0132\027.google.protobuf.StructR" + + "\010features\"U\n\034VerifyPasswordLessOtpReques" + + "t\0225\n\007otp_req\030\002 \001(\0132\034.scalekit.v1.auth.OT" + + "PRequestR\006otpReq\"\037\n\035VerifyPasswordLessOt" + + "pResponse\"i\n\nOTPRequest\022[\n\016code_challeng" + + "e\030\001 \001(\tB4\222A(2\034OTP sent to the user\'s ema" + + "ilJ\010\"123456\"\272H\006r\004\020\005\030\006R\rcodeChallenge\"\324\001\n" + + "\035ListUserOrganizationsResponse\022D\n\rorgani" + + "zations\030\001 \003(\0132\036.scalekit.v1.auth.Organiz" + + "ationR\rorganizations\0221\n\004user\030\002 \001(\0132\035.sca" + + "lekit.v1.auth.UserDetailsR\004user\022:\n\006inten" + + "t\030\003 \001(\0162\030.scalekit.v1.auth.IntentB\010\272H\005\202\001" + + "\002\020\001R\006intent\"\213\004\n\014Organization\022\016\n\002id\030\001 \001(\t" + + "R\002id\022\022\n\004name\030\002 \001(\tR\004name\022+\n\021membership_s" + + "tatus\030\003 \001(\tR\020membershipStatus\022=\n\030invitat" + + "ion_inviter_email\030\004 \001(\tH\000R\026invitationInv" + + "iterEmail\210\001\001\022U\n\026invitation_accepted_at\030\005" + + " \001(\0132\032.google.protobuf.TimestampH\001R\024invi" + + "tationAcceptedAt\210\001\001\022S\n\025invitation_create" + + "d_at\030\006 \001(\0132\032.google.protobuf.TimestampH\002" + + "R\023invitationCreatedAt\210\001\001\022S\n\025invitation_e" + + "xpires_at\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampH\003R\023invitationExpiresAt\210\001\001B\033\n\031_invita" + + "tion_inviter_emailB\031\n\027_invitation_accept" + + "ed_atB\030\n\026_invitation_created_atB\030\n\026_invi" + + "tation_expires_at\"_\n\013UserDetails\022\024\n\005emai" + + "l\030\001 \001(\tR\005email\022\035\n\nfirst_name\030\002 \001(\tR\tfirs" + + "tName\022\033\n\tlast_name\030\003 \001(\tR\010lastName\"\304\001\n\031S" + + "ignupOrganizationRequest\022+\n\021organization" + + "_name\030\001 \001(\tR\020organizationName\022\035\n\nfirst_n" + + "ame\030\002 \001(\tR\tfirstName\022\033\n\tlast_name\030\003 \001(\tR" + + "\010lastName\022\033\n\tfull_name\030\004 \001(\tR\010fullName\022!" + + "\n\014phone_number\030\005 \001(\tR\013phoneNumber\"r\n\032Sig" + + "nupOrganizationResponse\022\'\n\017organization_" + + "id\030\001 \001(\tR\016organizationId\022+\n\021organization" + + "_name\030\002 \001(\tR\020organizationName\"\326\002\n\035Update" + + "LoginUserDetailsRequest\022v\n\rconnection_id" + + "\030\001 \001(\tBQ\222AE2+Connection ID. Unique ID fo" + + "r the connectionJ\026\"conn_121312434123312\"" + + "\272H\006r\004\020\001\030 R\014connectionId\022\220\001\n\020login_reques" + + "t_id\030\002 \001(\tBf\222A]2BLogin Request ID that w" + + "as shared as part of authorization initi" + + "ateJ\027\"lri_73415099636808061\"\272H\003\310\001\001R\016logi" + + "nRequestId\022*\n\004user\030\003 \001(\0132\026.scalekit.v1.a" + + "uth.UserR\004user\"\225\020\n\004User\022\203\001\n\003sub\030\001 \001(\tBq\222" + + "Ag2WSubject identifier for the user (typ" + + "ically a unique user ID from the identit" + + "y provider)J\014\"1234567890\"\272H\004r\002\020\001R\003sub\022R\n" + + "\005email\030\002 \001(\tB<\222A22\034User\'s primary email " + + "addressJ\022\"user@example.com\"\272H\004r\002\020\001R\005emai" + + "l\022=\n\ngiven_name\030\003 \001(\tB\036\222A\0332\021User\'s first" + + " nameJ\006\"John\"R\tgivenName\022=\n\013family_name\030" + + "\004 \001(\tB\034\222A\0312\020User\'s last nameJ\005\"Doe\"R\nfam" + + "ilyName\022\210\001\n\016email_verified\030\005 \001(\010Ba\222A^2VI" + + "ndicates whether the user\'s email addres" + + "s has been verified by the identity prov" + + "ider.J\004trueR\remailVerified\022c\n\014phone_numb" + + "er\030\006 \001(\tB@\222A=2,User\'s primary phone numb" + + "er in E.164 format.J\r\"+1234567890\"R\013phon" + + "eNumber\022\225\001\n\025phone_number_verified\030\007 \001(\010B" + + "a\222A^2UIndicates whether the user\'s phone" + + " number has been verified by the identit" + + "y provider.J\005falseR\023phoneNumberVerified\022" + + "B\n\004name\030\010 \001(\tB.\222A+2\035Full display name of" + + " the userJ\n\"John Doe\"R\004name\022b\n\022preferred" + + "_username\030\t \001(\tB3\222A02#User\'s preferred u" + + "sername or handleJ\t\"johndoe\"R\021preferredU" + + "sername\022b\n\007picture\030\n \001(\tBH\222AE2!URL to th" + + "e user\'s profile pictureJ \"https://examp" + + "le.com/avatar.jpg\"R\007picture\022X\n\006gender\030\013 " + + "\001(\tB@\222A=23User\'s gender as reported by t" + + "he identity provider.J\006\"male\"R\006gender\022e\n" + + "\006locale\030\014 \001(\tBM\222AJ2?User\'s locale or lan" + + "guage preference (IETF BCP 47 language t" + + "ag)J\007\"en-US\"R\006locale\022f\n\006groups\030\r \003(\tBN\222A" + + "K2/List of group names or IDs the user b" + + "elongs to.J\030[\"admins\", \"developers\"]R\006gr" + + "oups\022\362\001\n\021custom_attributes\030\016 \001(\0132\027.googl" + + "e.protobuf.StructB\253\001\222A\247\0012mCustom attribu" + + "tes for the user, represented as a key-v" + + "alue map. Used for additional identity p" + + "rovider claims.J6{\"department\": \"Enginee" + + "ring\", \"employee_id\": \"E12345\"}R\020customA" + + "ttributes\022\261\001\n\030organization_external_id\030\017" + + " \001(\tBr\222Ao2EIdentifier for the user\342\200\231s o" + + "rganization within the identity provider" + + "J&\"132d085d-d89d-4a2e-95bb-49bde680d14f\"" + + "H\000R\026organizationExternalId\210\001\001\022S\n\005roles\030\020" + + " \003(\tB=\222A:2#List of roles assigned to the" + + " user.J\023[\"admin\", \"editor\"]R\005roles\022\275\001\n\032o" + + "rganization_external_name\030\021 \001(\tBz\222Ao2`Na" + + "me of the organization the user is authe" + + "nticating into. Used to display on the c" + + "onsent screen.J\013\"Acme Corp\"\272H\005r\003\030\310\001H\001R\030o" + + "rganizationExternalName\210\001\001B\033\n\031_organizat" + + "ion_external_idB\035\n\033_organization_externa" + + "l_name\"\261\002\n\024GetAuthStateResponse\022:\n\nauth_" + + "state\030\001 \001(\0162\033.scalekit.v1.auth.AuthState" + + "R\tauthState\0221\n\004user\030\002 \001(\0132\035.scalekit.v1." + + "auth.UserDetailsR\004user\022\251\001\n\nlogin_hint\030\003 " + + "\001(\tB\211\001\222A\205\0012oLogin hint from the original" + + " authorize request. Typically an email a" + + "ddress used to pre-fill the login UI inp" + + "ut.J\022\"user@example.com\"R\tloginHint\"\214\001\n\023G" + + "etAuthErrorRequest\022u\n\010error_id\030\001 \001(\tBZ\222A" + + "H2.Unique identifier for the authenticat" + + "ion errorJ\026\"err_1234567890abcdef\"\272H\014r\n\020\001" + + "\030@:\004err_R\007errorId\"Y\n\024GetAuthErrorRespons" + + "e\022\024\n\005error\030\001 \001(\tR\005error\022+\n\021error_descrip" + + "tion\030\002 \001(\tR\020errorDescription*:\n\006Intent\022\026" + + "\n\022INTENT_UNSPECIFIED\020\000\022\013\n\007sign_in\020\001\022\013\n\007s" + + "ign_up\020\002*\264\004\n\tAuthState\022\032\n\026AUTH_STATE_UNS" + + "PECIFIED\020\000\022\036\n\032AUTHENTICATION_IN_PROGRESS" + + "\020\001\022\031\n\025ORGANIZATION_SWITCHER\020\002\022\031\n\025ORGANIZ" + + "ATION_SELECTED\020\003\022\027\n\023ORGANIZATION_SIGNUP\020" + + "\004\022 \n\034ORGANIZATION_SWITCHER_SIGNUP\020\005\022\034\n\030O" + + "TP_VERIFICATION_PENDING\020\006\022\023\n\017MAGIC_LINK_" + + "SENT\020\007\022&\n\"LINK_SENT_OTP_VERIFICATION_PEN" + + "DING\020\010\022\020\n\014OTP_VERIFIED\020\t\022\021\n\rLINK_VERIFIE" + + "D\020\n\022\025\n\021SSO_AUTHENTICATED\020\013\022\024\n\020ORG_USER_C" + + "REATED\020\014\022\034\n\030AUTHENTICATION_COMPLETED\020\r\022\031" + + "\n\025AUTHENTICATION_FAILED\020\016\022\025\n\021WEBAUTHN_VE" + + "RIFIED\020\017\022 \n\034VERIFICATION_MAGIC_LINK_SENT" + + "\020\020\022$\n VERIFICATION_MAGIC_LINK_OTP_SENT\020\021" + + "\022\031\n\025VERIFICATION_OTP_SENT\020\022\022\032\n\026VERIFICAT" + + "ION_COMPLETED\020\0232\247\020\n\013AuthService\022\230\001\n\017List" + + "AuthMethods\022(.scalekit.v1.auth.ListAuthM" + + "ethodsRequest\032).scalekit.v1.auth.ListAut" + + "hMethodsResponse\"0\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202" + + "\323\344\223\002\025\022\023/api/v1/authmethods\022\272\001\n\023Discovery" + + "AuthMethod\022,.scalekit.v1.auth.DiscoveryA" + + "uthMethodRequest\032-.scalekit.v1.auth.Disc" + + "overyAuthMethodResponse\"F\202\265\030\002\030\001\372\322\344\223\002\t\022\007P" + + "REVIEW\202\323\344\223\002+\"\026/api/v1/auth:discovery:\021di" + + "scovery_request\022\300\001\n\025VerifyPasswordLessOt" + + "p\022..scalekit.v1.auth.VerifyPasswordLessO" + + "tpRequest\032/.scalekit.v1.auth.VerifyPassw" + + "ordLessOtpResponse\"F\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIE" + + "W\202\323\344\223\002+\" /api/v1/auth/passwordless:verif" + + "y:\007otp_req\022\203\001\n\022ResendPasswordless\022\026.goog" + + "le.protobuf.Empty\032\026.google.protobuf.Empt" + + "y\"=\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\"\" /api/v1/" + + "auth/passwordless:resend\022\231\001\n\025ListUserOrg" + + "anizations\022\026.google.protobuf.Empty\032/.sca" + + "lekit.v1.auth.ListUserOrganizationsRespo" + + "nse\"7\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\034\022\032/api/v" + + "1/auth:organizations\022\244\001\n\022SignupOrganizat" + + "ion\022+.scalekit.v1.auth.SignupOrganizatio" + + "nRequest\032,.scalekit.v1.auth.SignupOrgani" + + "zationResponse\"3\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344" + + "\223\002\030\"\023/api/v1/auth:signup:\001*\022\177\n\014GetAuthSt" + + "ate\022\026.google.protobuf.Empty\032&.scalekit.v" + + "1.auth.GetAuthStateResponse\"/\202\265\030\002\030\001\372\322\344\223\002" + + "\t\022\007PREVIEW\202\323\344\223\002\024\022\022/api/v1/auth/state\022\266\001\n" + + "\014GetAuthError\022%.scalekit.v1.auth.GetAuth" + + "ErrorRequest\032&.scalekit.v1.auth.GetAuthE" + + "rrorResponse\"W\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002" + + "<\022\031/api/v1/errors/{error_id}Z\037\022\035/api/v1/" + + "auth/error/{error_id}\022j\n\006Logout\022\026.google" + + ".protobuf.Empty\032\026.google.protobuf.Empty\"" + + "0\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\025\"\023/api/v1/au" + + "th/logout\022\262\001\n\025GetAuthCustomizations\022..sc" + + "alekit.v1.auth.GetAuthCustomizationsRequ" + + "est\032/.scalekit.v1.auth.GetAuthCustomizat" + + "ionsResponse\"8\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002" + + "\035\022\033/api/v1/auth:customizations\022\210\001\n\017GetAu" + + "thFeatures\022\026.google.protobuf.Empty\032).sca" + + "lekit.v1.auth.GetAuthFeaturesResponse\"2\202" + + "\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\027\022\025/api/v1/auth" + + ":features\022\315\002\n\026UpdateLoginUserDetails\022/.s" + + "calekit.v1.auth.UpdateLoginUserDetailsRe" + + "quest\032\026.google.protobuf.Empty\"\351\001\222Az\n\013Con" + + "nections\022%Update User Details for login " + + "request\032%Update User Details for login r" + + "equestJ\035\n\003200\022\026\n\024Deleted Successfully\202\265\030" + + "\002\030\004\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002Q\"I/api/v1/connec" + + "tions/{connection_id}/auth-requests/{log" + + "in_request_id}/user:\004userB\301\001\n\"com.scalek" + + "it.grpc.scalekit.v1.authB\tAuthProtoP\001Z.g" + + "ithub.com/scalekit-inc/scalekit/pkg/grpc" + + "/auth\242\002\003SVA\252\002\020Scalekit.V1.Auth\312\002\020Scaleki" + + "t\\V1\\Auth\342\002\034Scalekit\\V1\\Auth\\GPBMetadata" + + "\352\002\022Scalekit::V1::Authb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -437,7 +454,7 @@ public static void registerAllExtensions( internal_static_scalekit_v1_auth_PortalSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_auth_PortalSettings_descriptor, - new java.lang.String[] { "CustomBranding", }); + new java.lang.String[] { "CustomBranding", "NewSelfServeSsoScim", }); internal_static_scalekit_v1_auth_GetAuthCustomizationsResponse_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_scalekit_v1_auth_GetAuthCustomizationsResponse_fieldAccessorTable = new @@ -509,13 +526,13 @@ public static void registerAllExtensions( internal_static_scalekit_v1_auth_User_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_auth_User_descriptor, - new java.lang.String[] { "Sub", "Email", "GivenName", "FamilyName", "EmailVerified", "PhoneNumber", "PhoneNumberVerified", "Name", "PreferredUsername", "Picture", "Gender", "Locale", "Groups", "CustomAttributes", "OrganizationExternalId", }); + new java.lang.String[] { "Sub", "Email", "GivenName", "FamilyName", "EmailVerified", "PhoneNumber", "PhoneNumberVerified", "Name", "PreferredUsername", "Picture", "Gender", "Locale", "Groups", "CustomAttributes", "OrganizationExternalId", "Roles", "OrganizationExternalName", }); internal_static_scalekit_v1_auth_GetAuthStateResponse_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_scalekit_v1_auth_GetAuthStateResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_auth_GetAuthStateResponse_descriptor, - new java.lang.String[] { "AuthState", "User", }); + new java.lang.String[] { "AuthState", "User", "LoginHint", }); internal_static_scalekit_v1_auth_GetAuthErrorRequest_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_scalekit_v1_auth_GetAuthErrorRequest_fieldAccessorTable = new diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/GetAuthStateResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/GetAuthStateResponse.java index 6c7bdbae..1e2cc455 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/GetAuthStateResponse.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/GetAuthStateResponse.java @@ -18,6 +18,7 @@ private GetAuthStateResponse(com.google.protobuf.GeneratedMessageV3.Builder b } private GetAuthStateResponse() { authState_ = 0; + loginHint_ = ""; } @java.lang.Override @@ -85,6 +86,53 @@ public com.scalekit.grpc.scalekit.v1.auth.UserDetailsOrBuilder getUserOrBuilder( return user_ == null ? com.scalekit.grpc.scalekit.v1.auth.UserDetails.getDefaultInstance() : user_; } + public static final int LOGIN_HINT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object loginHint_ = ""; + /** + *
+   * Login hint from the original /authorize request, typically an email address used to pre-fill the login UI.
+   * 
+ * + * string login_hint = 3 [json_name = "loginHint", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The loginHint. + */ + @java.lang.Override + public java.lang.String getLoginHint() { + java.lang.Object ref = loginHint_; + 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(); + loginHint_ = s; + return s; + } + } + /** + *
+   * Login hint from the original /authorize request, typically an email address used to pre-fill the login UI.
+   * 
+ * + * string login_hint = 3 [json_name = "loginHint", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for loginHint. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLoginHintBytes() { + java.lang.Object ref = loginHint_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + loginHint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -105,6 +153,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getUser()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loginHint_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, loginHint_); + } getUnknownFields().writeTo(output); } @@ -122,6 +173,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getUser()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(loginHint_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, loginHint_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -143,6 +197,8 @@ public boolean equals(final java.lang.Object obj) { if (!getUser() .equals(other.getUser())) return false; } + if (!getLoginHint() + .equals(other.getLoginHint())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -160,6 +216,8 @@ public int hashCode() { hash = (37 * hash) + USER_FIELD_NUMBER; hash = (53 * hash) + getUser().hashCode(); } + hash = (37 * hash) + LOGIN_HINT_FIELD_NUMBER; + hash = (53 * hash) + getLoginHint().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -303,6 +361,7 @@ public Builder clear() { userBuilder_.dispose(); userBuilder_ = null; } + loginHint_ = ""; return this; } @@ -346,6 +405,9 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.auth.GetAuthStateRespon : userBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.loginHint_ = loginHint_; + } result.bitField0_ |= to_bitField0_; } @@ -399,6 +461,11 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.auth.GetAuthStateResponse if (other.hasUser()) { mergeUser(other.getUser()); } + if (!other.getLoginHint().isEmpty()) { + loginHint_ = other.loginHint_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -437,6 +504,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: { + loginHint_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -627,6 +699,98 @@ public com.scalekit.grpc.scalekit.v1.auth.UserDetailsOrBuilder getUserOrBuilder( } return userBuilder_; } + + private java.lang.Object loginHint_ = ""; + /** + *
+     * Login hint from the original /authorize request, typically an email address used to pre-fill the login UI.
+     * 
+ * + * string login_hint = 3 [json_name = "loginHint", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The loginHint. + */ + public java.lang.String getLoginHint() { + java.lang.Object ref = loginHint_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + loginHint_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Login hint from the original /authorize request, typically an email address used to pre-fill the login UI.
+     * 
+ * + * string login_hint = 3 [json_name = "loginHint", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for loginHint. + */ + public com.google.protobuf.ByteString + getLoginHintBytes() { + java.lang.Object ref = loginHint_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + loginHint_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Login hint from the original /authorize request, typically an email address used to pre-fill the login UI.
+     * 
+ * + * string login_hint = 3 [json_name = "loginHint", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The loginHint to set. + * @return This builder for chaining. + */ + public Builder setLoginHint( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + loginHint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Login hint from the original /authorize request, typically an email address used to pre-fill the login UI.
+     * 
+ * + * string login_hint = 3 [json_name = "loginHint", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearLoginHint() { + loginHint_ = getDefaultInstance().getLoginHint(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Login hint from the original /authorize request, typically an email address used to pre-fill the login UI.
+     * 
+ * + * string login_hint = 3 [json_name = "loginHint", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for loginHint to set. + * @return This builder for chaining. + */ + public Builder setLoginHintBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + loginHint_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/GetAuthStateResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/GetAuthStateResponseOrBuilder.java index e6dbab50..db20204f 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/GetAuthStateResponseOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/GetAuthStateResponseOrBuilder.java @@ -33,4 +33,24 @@ public interface GetAuthStateResponseOrBuilder extends * .scalekit.v1.auth.UserDetails user = 2 [json_name = "user"]; */ com.scalekit.grpc.scalekit.v1.auth.UserDetailsOrBuilder getUserOrBuilder(); + + /** + *
+   * Login hint from the original /authorize request, typically an email address used to pre-fill the login UI.
+   * 
+ * + * string login_hint = 3 [json_name = "loginHint", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The loginHint. + */ + java.lang.String getLoginHint(); + /** + *
+   * Login hint from the original /authorize request, typically an email address used to pre-fill the login UI.
+   * 
+ * + * string login_hint = 3 [json_name = "loginHint", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for loginHint. + */ + com.google.protobuf.ByteString + getLoginHintBytes(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/PortalSettings.java b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/PortalSettings.java index e24c061c..5c1f6c00 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/PortalSettings.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/PortalSettings.java @@ -7,6 +7,7 @@ /** *
  * PortalSettings contains feature flags and settings derived from the workspace's billing subscription
+ * and feature rollout configuration.
  * 
* * Protobuf type {@code scalekit.v1.auth.PortalSettings} @@ -43,6 +44,7 @@ protected java.lang.Object newInstance( com.scalekit.grpc.scalekit.v1.auth.PortalSettings.class, com.scalekit.grpc.scalekit.v1.auth.PortalSettings.Builder.class); } + private int bitField0_; public static final int CUSTOM_BRANDING_FIELD_NUMBER = 1; private boolean customBranding_ = false; /** @@ -59,6 +61,39 @@ public boolean getCustomBranding() { return customBranding_; } + public static final int NEW_SELF_SERVE_SSO_SCIM_FIELD_NUMBER = 2; + private boolean newSelfServeSsoScim_ = false; + /** + *
+   * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+   * should be shown in the hosted pages. This is rollout-driven (feature flag),
+   * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+   * not billing-derived.
+   * 
+ * + * optional bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the newSelfServeSsoScim field is set. + */ + @java.lang.Override + public boolean hasNewSelfServeSsoScim() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+   * should be shown in the hosted pages. This is rollout-driven (feature flag),
+   * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+   * not billing-derived.
+   * 
+ * + * optional bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The newSelfServeSsoScim. + */ + @java.lang.Override + public boolean getNewSelfServeSsoScim() { + return newSelfServeSsoScim_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -76,6 +111,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (customBranding_ != false) { output.writeBool(1, customBranding_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(2, newSelfServeSsoScim_); + } getUnknownFields().writeTo(output); } @@ -89,6 +127,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, customBranding_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, newSelfServeSsoScim_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -106,6 +148,11 @@ public boolean equals(final java.lang.Object obj) { if (getCustomBranding() != other.getCustomBranding()) return false; + if (hasNewSelfServeSsoScim() != other.hasNewSelfServeSsoScim()) return false; + if (hasNewSelfServeSsoScim()) { + if (getNewSelfServeSsoScim() + != other.getNewSelfServeSsoScim()) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -120,6 +167,11 @@ public int hashCode() { hash = (37 * hash) + CUSTOM_BRANDING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCustomBranding()); + if (hasNewSelfServeSsoScim()) { + hash = (37 * hash) + NEW_SELF_SERVE_SSO_SCIM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNewSelfServeSsoScim()); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -220,6 +272,7 @@ protected Builder newBuilderForType( /** *
    * PortalSettings contains feature flags and settings derived from the workspace's billing subscription
+   * and feature rollout configuration.
    * 
* * Protobuf type {@code scalekit.v1.auth.PortalSettings} @@ -256,6 +309,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; customBranding_ = false; + newSelfServeSsoScim_ = false; return this; } @@ -292,6 +346,12 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.auth.PortalSettings res if (((from_bitField0_ & 0x00000001) != 0)) { result.customBranding_ = customBranding_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.newSelfServeSsoScim_ = newSelfServeSsoScim_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -341,6 +401,9 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.auth.PortalSettings other if (other.getCustomBranding() != false) { setCustomBranding(other.getCustomBranding()); } + if (other.hasNewSelfServeSsoScim()) { + setNewSelfServeSsoScim(other.getNewSelfServeSsoScim()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -372,6 +435,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 16: { + newSelfServeSsoScim_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -435,6 +503,74 @@ public Builder clearCustomBranding() { onChanged(); return this; } + + private boolean newSelfServeSsoScim_ ; + /** + *
+     * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+     * should be shown in the hosted pages. This is rollout-driven (feature flag),
+     * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+     * not billing-derived.
+     * 
+ * + * optional bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the newSelfServeSsoScim field is set. + */ + @java.lang.Override + public boolean hasNewSelfServeSsoScim() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+     * should be shown in the hosted pages. This is rollout-driven (feature flag),
+     * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+     * not billing-derived.
+     * 
+ * + * optional bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The newSelfServeSsoScim. + */ + @java.lang.Override + public boolean getNewSelfServeSsoScim() { + return newSelfServeSsoScim_; + } + /** + *
+     * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+     * should be shown in the hosted pages. This is rollout-driven (feature flag),
+     * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+     * not billing-derived.
+     * 
+ * + * optional bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The newSelfServeSsoScim to set. + * @return This builder for chaining. + */ + public Builder setNewSelfServeSsoScim(boolean value) { + + newSelfServeSsoScim_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+     * should be shown in the hosted pages. This is rollout-driven (feature flag),
+     * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+     * not billing-derived.
+     * 
+ * + * optional bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearNewSelfServeSsoScim() { + bitField0_ = (bitField0_ & ~0x00000002); + newSelfServeSsoScim_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/PortalSettingsOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/PortalSettingsOrBuilder.java index 3f6b0471..eaf36825 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/PortalSettingsOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/PortalSettingsOrBuilder.java @@ -18,4 +18,29 @@ public interface PortalSettingsOrBuilder extends * @return The customBranding. */ boolean getCustomBranding(); + + /** + *
+   * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+   * should be shown in the hosted pages. This is rollout-driven (feature flag),
+   * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+   * not billing-derived.
+   * 
+ * + * optional bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the newSelfServeSsoScim field is set. + */ + boolean hasNewSelfServeSsoScim(); + /** + *
+   * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+   * should be shown in the hosted pages. This is rollout-driven (feature flag),
+   * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+   * not billing-derived.
+   * 
+ * + * optional bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The newSelfServeSsoScim. + */ + boolean getNewSelfServeSsoScim(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/User.java b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/User.java index b18b7d68..4a802875 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/User.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/User.java @@ -30,6 +30,9 @@ private User() { groups_ = com.google.protobuf.LazyStringArrayList.emptyList(); organizationExternalId_ = ""; + roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + organizationExternalName_ = ""; } @java.lang.Override @@ -575,6 +578,90 @@ public java.lang.String getOrganizationExternalId() { } } + public static final int ROLES_FIELD_NUMBER = 16; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList + getRolesList() { + return roles_; + } + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString + getRolesBytes(int index) { + return roles_.getByteString(index); + } + + public static final int ORGANIZATION_EXTERNAL_NAME_FIELD_NUMBER = 17; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationExternalName_ = ""; + /** + * optional string organization_external_name = 17 [json_name = "organizationExternalName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the organizationExternalName field is set. + */ + @java.lang.Override + public boolean hasOrganizationExternalName() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string organization_external_name = 17 [json_name = "organizationExternalName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationExternalName. + */ + @java.lang.Override + public java.lang.String getOrganizationExternalName() { + java.lang.Object ref = organizationExternalName_; + 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(); + organizationExternalName_ = s; + return s; + } + } + /** + * optional string organization_external_name = 17 [json_name = "organizationExternalName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationExternalName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationExternalNameBytes() { + java.lang.Object ref = organizationExternalName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationExternalName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -634,6 +721,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 15, organizationExternalId_); } + for (int i = 0; i < roles_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 16, roles_.getRaw(i)); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 17, organizationExternalName_); + } getUnknownFields().writeTo(output); } @@ -696,6 +789,17 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(15, organizationExternalId_); } + { + int dataSize = 0; + for (int i = 0; i < roles_.size(); i++) { + dataSize += computeStringSizeNoTag(roles_.getRaw(i)); + } + size += dataSize; + size += 2 * getRolesList().size(); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, organizationExternalName_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -747,6 +851,13 @@ public boolean equals(final java.lang.Object obj) { if (!getOrganizationExternalId() .equals(other.getOrganizationExternalId())) return false; } + if (!getRolesList() + .equals(other.getRolesList())) return false; + if (hasOrganizationExternalName() != other.hasOrganizationExternalName()) return false; + if (hasOrganizationExternalName()) { + if (!getOrganizationExternalName() + .equals(other.getOrganizationExternalName())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -796,6 +907,14 @@ public int hashCode() { hash = (37 * hash) + ORGANIZATION_EXTERNAL_ID_FIELD_NUMBER; hash = (53 * hash) + getOrganizationExternalId().hashCode(); } + if (getRolesCount() > 0) { + hash = (37 * hash) + ROLES_FIELD_NUMBER; + hash = (53 * hash) + getRolesList().hashCode(); + } + if (hasOrganizationExternalName()) { + hash = (37 * hash) + ORGANIZATION_EXTERNAL_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationExternalName().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -953,6 +1072,9 @@ public Builder clear() { customAttributesBuilder_ = null; } organizationExternalId_ = ""; + roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + organizationExternalName_ = ""; return this; } @@ -1037,6 +1159,14 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.auth.User result) { result.organizationExternalId_ = organizationExternalId_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00008000) != 0)) { + roles_.makeImmutable(); + result.roles_ = roles_; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.organizationExternalName_ = organizationExternalName_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -1158,6 +1288,21 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.auth.User other) { bitField0_ |= 0x00004000; onChanged(); } + if (!other.roles_.isEmpty()) { + if (roles_.isEmpty()) { + roles_ = other.roles_; + bitField0_ |= 0x00008000; + } else { + ensureRolesIsMutable(); + roles_.addAll(other.roles_); + } + onChanged(); + } + if (other.hasOrganizationExternalName()) { + organizationExternalName_ = other.organizationExternalName_; + bitField0_ |= 0x00010000; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1262,6 +1407,17 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case 122 + case 130: { + java.lang.String s = input.readStringRequireUtf8(); + ensureRolesIsMutable(); + roles_.add(s); + break; + } // case 130 + case 138: { + organizationExternalName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00010000; + break; + } // case 138 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -2373,6 +2529,196 @@ public Builder setOrganizationExternalIdBytes( onChanged(); return this; } + + private com.google.protobuf.LazyStringArrayList roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureRolesIsMutable() { + if (!roles_.isModifiable()) { + roles_ = new com.google.protobuf.LazyStringArrayList(roles_); + } + bitField0_ |= 0x00008000; + } + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the roles. + */ + public com.google.protobuf.ProtocolStringList + getRolesList() { + roles_.makeImmutable(); + return roles_; + } + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of roles. + */ + public int getRolesCount() { + return roles_.size(); + } + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The roles at the given index. + */ + public java.lang.String getRoles(int index) { + return roles_.get(index); + } + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + public com.google.protobuf.ByteString + getRolesBytes(int index) { + return roles_.getByteString(index); + } + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index to set the value at. + * @param value The roles to set. + * @return This builder for chaining. + */ + public Builder setRoles( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRolesIsMutable(); + roles_.set(index, value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The roles to add. + * @return This builder for chaining. + */ + public Builder addRoles( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param values The roles to add. + * @return This builder for chaining. + */ + public Builder addAllRoles( + java.lang.Iterable values) { + ensureRolesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, roles_); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearRoles() { + roles_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00008000);; + onChanged(); + return this; + } + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes of the roles to add. + * @return This builder for chaining. + */ + public Builder addRolesBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureRolesIsMutable(); + roles_.add(value); + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + + private java.lang.Object organizationExternalName_ = ""; + /** + * optional string organization_external_name = 17 [json_name = "organizationExternalName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the organizationExternalName field is set. + */ + public boolean hasOrganizationExternalName() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * optional string organization_external_name = 17 [json_name = "organizationExternalName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationExternalName. + */ + public java.lang.String getOrganizationExternalName() { + java.lang.Object ref = organizationExternalName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationExternalName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string organization_external_name = 17 [json_name = "organizationExternalName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationExternalName. + */ + public com.google.protobuf.ByteString + getOrganizationExternalNameBytes() { + java.lang.Object ref = organizationExternalName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationExternalName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string organization_external_name = 17 [json_name = "organizationExternalName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The organizationExternalName to set. + * @return This builder for chaining. + */ + public Builder setOrganizationExternalName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationExternalName_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * optional string organization_external_name = 17 [json_name = "organizationExternalName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearOrganizationExternalName() { + organizationExternalName_ = getDefaultInstance().getOrganizationExternalName(); + bitField0_ = (bitField0_ & ~0x00010000); + onChanged(); + return this; + } + /** + * optional string organization_external_name = 17 [json_name = "organizationExternalName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for organizationExternalName to set. + * @return This builder for chaining. + */ + public Builder setOrganizationExternalNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationExternalName_ = value; + bitField0_ |= 0x00010000; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/UserOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/UserOrBuilder.java index d2f3ef1d..0ff1278f 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/UserOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/UserOrBuilder.java @@ -196,4 +196,46 @@ public interface UserOrBuilder extends */ com.google.protobuf.ByteString getOrganizationExternalIdBytes(); + + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the roles. + */ + java.util.List + getRolesList(); + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of roles. + */ + int getRolesCount(); + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The roles at the given index. + */ + java.lang.String getRoles(int index); + /** + * repeated string roles = 16 [json_name = "roles", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the value to return. + * @return The bytes of the roles at the given index. + */ + com.google.protobuf.ByteString + getRolesBytes(int index); + + /** + * optional string organization_external_name = 17 [json_name = "organizationExternalName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the organizationExternalName field is set. + */ + boolean hasOrganizationExternalName(); + /** + * optional string organization_external_name = 17 [json_name = "organizationExternalName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationExternalName. + */ + java.lang.String getOrganizationExternalName(); + /** + * optional string organization_external_name = 17 [json_name = "organizationExternalName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationExternalName. + */ + com.google.protobuf.ByteString + getOrganizationExternalNameBytes(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/totp/TotpProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/totp/TotpProto.java index fe28033e..f76ef1e5 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/auth/totp/TotpProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/auth/totp/TotpProto.java @@ -82,87 +82,89 @@ public static void registerAllExtensions( "\n\033scalekit/v1/auth/totp.proto\022\025scalekit." + "v1.auth.totp\032\033buf/validate/validate.prot" + "o\032\034google/api/annotations.proto\032\037google/" + - "api/field_behavior.proto\032\033google/protobu" + - "f/empty.proto\032\034google/protobuf/struct.pr" + - "oto\032\037google/protobuf/timestamp.proto\032.pr" + - "otoc-gen-openapiv2/options/annotations.p" + - "roto\032!scalekit/v1/commons/commons.proto\032" + - "!scalekit/v1/options/options.proto\"t\n\027TO" + - "TPRegistrationRequest\022Y\n\021totp_registrati" + - "on\030\001 \001(\0132\'.scalekit.v1.auth.totp.TOTPReg" + - "istrationB\003\272H\000R\020totpRegistration\"u\n\030TOTP" + - "RegistrationResponse\022Y\n\021totp_registratio" + - "n\030\001 \001(\0132\'.scalekit.v1.auth.totp.TOTPRegi" + - "strationB\003\272H\000R\020totpRegistration\"\204\007\n\020TOTP" + - "Registration\022{\n\002id\030\001 \001(\tBk\222Ah2MUnique sc" + - "alekit-generated identifier that uniquel" + - "y references an organizationJ\027\"org_59615" + - "193906282635\"R\002id\022\214\001\n\013create_time\030\002 \001(\0132" + - "\032.google.protobuf.TimestampBO\222AI2+Timest" + - "amp when the organization was createdJ\032\"" + - "2025-02-15T06:23:44.560Z\"\340A\002R\ncreateTime" + - "\022\216\001\n\013update_time\030\003 \001(\0132\032.google.protobuf" + - ".TimestampBQ\222AN20Timestamp when the orga" + - "nization was last updatedJ\032\"2025-02-15T0" + - "6:23:44.560Z\"R\nupdateTime\022y\n\007user_id\030\004 \001" + - "(\tB^\222AL21The user ID associated with the" + - " TOTP registrationJ\027\"usr_596151939062826" + - "35\"\272H\014r\n\020\001\030 :\004usr_H\000R\006userId\022|\n\014account_" + - "name\030\005 \001(\tBW\222AJ26The account name associ" + - "ated with the TOTP registrationJ\020\"me@exa" + - "mple.com\"\272H\007r\005\020\001\030\343\002H\000R\013accountName\022\262\001\n\013q" + - "r_code_uri\030\006 \001(\tB\214\001\222A|2+The URI for the " + - "QR code used to set up TOTPJM\"otpauth://" + - "totp/Scalekit:usr_59615193906282635?secr" + - "et=ABC123&issuer=Scalekit\"\340A\003\272H\007r\005\020\001\030\200\010H" + - "\001R\tqrCodeUri\210\001\001B\025\n\023UserIdOrAccountNameB\016" + - "\n\014_qr_code_uri\"l\n\035EnableRegistrationTOTP" + - "Request\022/\n\017registration_id\030\001 \001(\tB\006\272H\003\310\001\001" + - "R\016registrationId\022\032\n\004code\030\002 \001(\tB\006\272H\003\310\001\001R\004" + - "code\"[\n\036EnableRegistrationTOTPResponse\022\026" + - "\n\002id\030\001 \001(\tB\006\272H\003\310\001\001R\002id\022!\n\014backup_codes\030\003" + - " \003(\tR\013backupCodes\"m\n\036DisableRegistration" + - "TOTPRequest\022/\n\017registration_id\030\001 \001(\tB\006\272H" + - "\003\310\001\001R\016registrationId\022\032\n\004code\030\002 \001(\tB\006\272H\003\310" + - "\001\001R\004code\"\207\001\n\025GenerateQRCodeRequest\022-\n\016en" + - "vironment_id\030\001 \001(\tB\006\272H\003\310\001\001R\renvironmentI" + - "d\022&\n\nidentifier\030\002 \001(\tB\006\272H\003\310\001\001R\nidentifie" + - "r\022\027\n\007is_user\030\003 \001(\010R\006isUser\"1\n\026GenerateQR" + - "CodeResponse\022\027\n\007qr_code\030\001 \001(\tR\006qrCode\"T\n" + - "\025VerifyUserCodeRequest\022\037\n\007user_id\030\001 \001(\tB" + - "\006\272H\003\310\001\001R\006userId\022\032\n\004code\030\002 \001(\tB\006\272H\003\310\001\001R\004c" + - "ode\"*\n\022VerifyCodeResponse\022\024\n\005valid\030\001 \001(\010" + - "R\005valid\"l\n\035VerifyRegistrationCodeRequest" + + "api/field_behavior.proto\032\033google/api/vis" + + "ibility.proto\032\033google/protobuf/empty.pro" + + "to\032\034google/protobuf/struct.proto\032\037google" + + "/protobuf/timestamp.proto\032.protoc-gen-op" + + "enapiv2/options/annotations.proto\032!scale" + + "kit/v1/commons/commons.proto\032!scalekit/v" + + "1/options/options.proto\"t\n\027TOTPRegistrat" + + "ionRequest\022Y\n\021totp_registration\030\001 \001(\0132\'." + + "scalekit.v1.auth.totp.TOTPRegistrationB\003" + + "\272H\000R\020totpRegistration\"u\n\030TOTPRegistratio" + + "nResponse\022Y\n\021totp_registration\030\001 \001(\0132\'.s" + + "calekit.v1.auth.totp.TOTPRegistrationB\003\272" + + "H\000R\020totpRegistration\"\204\007\n\020TOTPRegistratio" + + "n\022{\n\002id\030\001 \001(\tBk\222Ah2MUnique scalekit-gene" + + "rated identifier that uniquely reference" + + "s an organizationJ\027\"org_5961519390628263" + + "5\"R\002id\022\214\001\n\013create_time\030\002 \001(\0132\032.google.pr" + + "otobuf.TimestampBO\222AI2+Timestamp when th" + + "e organization was createdJ\032\"2025-02-15T" + + "06:23:44.560Z\"\340A\002R\ncreateTime\022\216\001\n\013update" + + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + + "Q\222AN20Timestamp when the organization wa" + + "s last updatedJ\032\"2025-02-15T06:23:44.560" + + "Z\"R\nupdateTime\022y\n\007user_id\030\004 \001(\tB^\222AL21Th" + + "e user ID associated with the TOTP regis" + + "trationJ\027\"usr_59615193906282635\"\272H\014r\n\020\001\030" + + " :\004usr_H\000R\006userId\022|\n\014account_name\030\005 \001(\tB" + + "W\222AJ26The account name associated with t" + + "he TOTP registrationJ\020\"me@example.com\"\272H" + + "\007r\005\020\001\030\343\002H\000R\013accountName\022\262\001\n\013qr_code_uri\030" + + "\006 \001(\tB\214\001\222A|2+The URI for the QR code use" + + "d to set up TOTPJM\"otpauth://totp/Scalek" + + "it:usr_59615193906282635?secret=ABC123&i" + + "ssuer=Scalekit\"\340A\003\272H\007r\005\020\001\030\200\010H\001R\tqrCodeUr" + + "i\210\001\001B\025\n\023UserIdOrAccountNameB\016\n\014_qr_code_" + + "uri\"l\n\035EnableRegistrationTOTPRequest\022/\n\017" + + "registration_id\030\001 \001(\tB\006\272H\003\310\001\001R\016registrat" + + "ionId\022\032\n\004code\030\002 \001(\tB\006\272H\003\310\001\001R\004code\"[\n\036Ena" + + "bleRegistrationTOTPResponse\022\026\n\002id\030\001 \001(\tB" + + "\006\272H\003\310\001\001R\002id\022!\n\014backup_codes\030\003 \003(\tR\013backu" + + "pCodes\"m\n\036DisableRegistrationTOTPRequest" + "\022/\n\017registration_id\030\001 \001(\tB\006\272H\003\310\001\001R\016regis" + - "trationId\022\032\n\004code\030\002 \001(\tB\006\272H\003\310\001\001R\004code2\334\006" + - "\n\013TOTPService\022\253\001\n\014RegisterTOTP\022..scaleki" + - "t.v1.auth.totp.TOTPRegistrationRequest\032/" + - ".scalekit.v1.auth.totp.TOTPRegistrationR" + - "esponse\":\202\265\030\002\030D\202\323\344\223\002.\"\031/api/v1/totp/regi" + - "stration:\021totp_registration\022\261\001\n\nEnableTO" + - "TP\0224.scalekit.v1.auth.totp.EnableRegistr" + - "ationTOTPRequest\0325.scalekit.v1.auth.totp" + - ".EnableRegistrationTOTPResponse\"6\202\265\030\002\030D\202" + - "\323\344\223\002*\"%/api/v1/totp/{registration_id}/en" + - "able:\001*\022\236\001\n\016VerifyUserCode\022,.scalekit.v1" + - ".auth.totp.VerifyUserCodeRequest\032).scale" + - "kit.v1.auth.totp.VerifyCodeResponse\"3\202\265\030" + - "\002\030D\202\323\344\223\002\'\"\"/api/v1/user/{user_id}/totp:v" + - "erify:\001*\022\261\001\n\026VerifyRegistrationCode\0224.sc" + - "alekit.v1.auth.totp.VerifyRegistrationCo" + - "deRequest\032).scalekit.v1.auth.totp.Verify" + - "CodeResponse\"6\202\265\030\002\030D\202\323\344\223\002*\"%/api/v1/totp" + - "/{registration_id}/verify:\001*\022\225\001\n\013Disable" + - "TOTP\0225.scalekit.v1.auth.totp.DisableRegi" + - "strationTOTPRequest\032\026.google.protobuf.Em" + - "pty\"7\202\265\030\002\030D\202\323\344\223\002+\"&/api/v1/totp/{registr" + - "ation_id}/disable:\001*B\341\001\n\'com.scalekit.gr" + - "pc.scalekit.v1.auth.totpB\tTotpProtoP\001Z3g" + - "ithub.com/scalekit-inc/scalekit/pkg/grpc" + - "/auth/totp\242\002\004SVAT\252\002\025Scalekit.V1.Auth.Tot" + - "p\312\002\025Scalekit\\V1\\Auth\\Totp\342\002!Scalekit\\V1\\" + - "Auth\\Totp\\GPBMetadata\352\002\030Scalekit::V1::Au" + - "th::Totpb\006proto3" + "trationId\022\032\n\004code\030\002 \001(\tB\006\272H\003\310\001\001R\004code\"\207\001" + + "\n\025GenerateQRCodeRequest\022-\n\016environment_i" + + "d\030\001 \001(\tB\006\272H\003\310\001\001R\renvironmentId\022&\n\nidenti" + + "fier\030\002 \001(\tB\006\272H\003\310\001\001R\nidentifier\022\027\n\007is_use" + + "r\030\003 \001(\010R\006isUser\"1\n\026GenerateQRCodeRespons" + + "e\022\027\n\007qr_code\030\001 \001(\tR\006qrCode\"T\n\025VerifyUser" + + "CodeRequest\022\037\n\007user_id\030\001 \001(\tB\006\272H\003\310\001\001R\006us" + + "erId\022\032\n\004code\030\002 \001(\tB\006\272H\003\310\001\001R\004code\"*\n\022Veri" + + "fyCodeResponse\022\024\n\005valid\030\001 \001(\010R\005valid\"l\n\035" + + "VerifyRegistrationCodeRequest\022/\n\017registr" + + "ation_id\030\001 \001(\tB\006\272H\003\310\001\001R\016registrationId\022\032" + + "\n\004code\030\002 \001(\tB\006\272H\003\310\001\001R\004code2\247\007\n\013TOTPServi" + + "ce\022\272\001\n\014RegisterTOTP\022..scalekit.v1.auth.t" + + "otp.TOTPRegistrationRequest\032/.scalekit.v" + + "1.auth.totp.TOTPRegistrationResponse\"I\202\265" + + "\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002.\"\031/api/v1/totp/" + + "registration:\021totp_registration\022\300\001\n\nEnab" + + "leTOTP\0224.scalekit.v1.auth.totp.EnableReg" + + "istrationTOTPRequest\0325.scalekit.v1.auth." + + "totp.EnableRegistrationTOTPResponse\"E\202\265\030" + + "\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002*\"%/api/v1/totp/{" + + "registration_id}/enable:\001*\022\255\001\n\016VerifyUse" + + "rCode\022,.scalekit.v1.auth.totp.VerifyUser" + + "CodeRequest\032).scalekit.v1.auth.totp.Veri" + + "fyCodeResponse\"B\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344" + + "\223\002\'\"\"/api/v1/user/{user_id}/totp:verify:" + + "\001*\022\300\001\n\026VerifyRegistrationCode\0224.scalekit" + + ".v1.auth.totp.VerifyRegistrationCodeRequ" + + "est\032).scalekit.v1.auth.totp.VerifyCodeRe" + + "sponse\"E\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002*\"%/ap" + + "i/v1/totp/{registration_id}/verify:\001*\022\244\001" + + "\n\013DisableTOTP\0225.scalekit.v1.auth.totp.Di" + + "sableRegistrationTOTPRequest\032\026.google.pr" + + "otobuf.Empty\"F\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002" + + "+\"&/api/v1/totp/{registration_id}/disabl" + + "e:\001*B\341\001\n\'com.scalekit.grpc.scalekit.v1.a" + + "uth.totpB\tTotpProtoP\001Z3github.com/scalek" + + "it-inc/scalekit/pkg/grpc/auth/totp\242\002\004SVA" + + "T\252\002\025Scalekit.V1.Auth.Totp\312\002\025Scalekit\\V1\\" + + "Auth\\Totp\342\002!Scalekit\\V1\\Auth\\Totp\\GPBMet" + + "adata\352\002\030Scalekit::V1::Auth::Totpb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -170,6 +172,7 @@ public static void registerAllExtensions( com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(), com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(), com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(), + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -248,6 +251,7 @@ public static void registerAllExtensions( registry.add(com.scalekit.grpc.buf.validate.ValidateProto.field); registry.add(com.scalekit.grpc.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.scalekit.grpc.google.api.AnnotationsProto.http); + registry.add(com.scalekit.grpc.google.api.VisibilityProto.methodVisibility); registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Field); registry.add(com.scalekit.grpc.scalekit.v1.options.OptionsProto.authOption); com.google.protobuf.Descriptors.FileDescriptor @@ -255,6 +259,7 @@ public static void registerAllExtensions( com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(); com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(); com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(); + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/Client.java b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/Client.java index deed448a..da4ef87d 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/Client.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/Client.java @@ -19,9 +19,6 @@ private Client(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Client() { id_ = ""; keyId_ = ""; - redirectUris_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - defaultRedirectUri_ = ""; secrets_ = java.util.Collections.emptyList(); postLogoutRedirectUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -190,82 +187,6 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; } - public static final int REDIRECT_URIS_FIELD_NUMBER = 5; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList redirectUris_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return A list containing the redirectUris. - */ - public com.google.protobuf.ProtocolStringList - getRedirectUrisList() { - return redirectUris_; - } - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The count of redirectUris. - */ - public int getRedirectUrisCount() { - return redirectUris_.size(); - } - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index of the element to return. - * @return The redirectUris at the given index. - */ - public java.lang.String getRedirectUris(int index) { - return redirectUris_.get(index); - } - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the redirectUris at the given index. - */ - public com.google.protobuf.ByteString - getRedirectUrisBytes(int index) { - return redirectUris_.getByteString(index); - } - - public static final int DEFAULT_REDIRECT_URI_FIELD_NUMBER = 6; - @SuppressWarnings("serial") - private volatile java.lang.Object defaultRedirectUri_ = ""; - /** - * string default_redirect_uri = 6 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The defaultRedirectUri. - */ - @java.lang.Override - public java.lang.String getDefaultRedirectUri() { - java.lang.Object ref = defaultRedirectUri_; - 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(); - defaultRedirectUri_ = s; - return s; - } - } - /** - * string default_redirect_uri = 6 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for defaultRedirectUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultRedirectUriBytes() { - java.lang.Object ref = defaultRedirectUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultRedirectUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int SECRETS_FIELD_NUMBER = 7; @SuppressWarnings("serial") private java.util.List secrets_; @@ -717,12 +638,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getUpdateTime()); } - for (int i = 0; i < redirectUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, redirectUris_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultRedirectUri_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, defaultRedirectUri_); - } for (int i = 0; i < secrets_.size(); i++) { output.writeMessage(7, secrets_.get(i)); } @@ -785,17 +700,6 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getUpdateTime()); } - { - int dataSize = 0; - for (int i = 0; i < redirectUris_.size(); i++) { - dataSize += computeStringSizeNoTag(redirectUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getRedirectUrisList().size(); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultRedirectUri_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, defaultRedirectUri_); - } for (int i = 0; i < secrets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, secrets_.get(i)); @@ -894,10 +798,6 @@ public boolean equals(final java.lang.Object obj) { if (!getUpdateTime() .equals(other.getUpdateTime())) return false; } - if (!getRedirectUrisList() - .equals(other.getRedirectUrisList())) return false; - if (!getDefaultRedirectUri() - .equals(other.getDefaultRedirectUri())) return false; if (!getSecretsList() .equals(other.getSecretsList())) return false; if (!getPostLogoutRedirectUrisList() @@ -950,12 +850,6 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } - if (getRedirectUrisCount() > 0) { - hash = (37 * hash) + REDIRECT_URIS_FIELD_NUMBER; - hash = (53 * hash) + getRedirectUrisList().hashCode(); - } - hash = (37 * hash) + DEFAULT_REDIRECT_URI_FIELD_NUMBER; - hash = (53 * hash) + getDefaultRedirectUri().hashCode(); if (getSecretsCount() > 0) { hash = (37 * hash) + SECRETS_FIELD_NUMBER; hash = (53 * hash) + getSecretsList().hashCode(); @@ -1153,16 +1047,13 @@ public Builder clear() { updateTimeBuilder_.dispose(); updateTimeBuilder_ = null; } - redirectUris_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - defaultRedirectUri_ = ""; if (secretsBuilder_ == null) { secrets_ = java.util.Collections.emptyList(); } else { secrets_ = null; secretsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); postLogoutRedirectUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); backChannelLogoutUris_ = @@ -1180,7 +1071,7 @@ public Builder clear() { customClaims_ = null; customClaimsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00001000); disallowScalekitApiAccess_ = false; grantTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); @@ -1220,18 +1111,18 @@ public com.scalekit.grpc.scalekit.v1.clients.Client buildPartial() { private void buildPartialRepeatedFields(com.scalekit.grpc.scalekit.v1.clients.Client result) { if (secretsBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0)) { + if (((bitField0_ & 0x00000010) != 0)) { secrets_ = java.util.Collections.unmodifiableList(secrets_); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } result.secrets_ = secrets_; } else { result.secrets_ = secretsBuilder_.build(); } if (customClaimsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { customClaims_ = java.util.Collections.unmodifiableList(customClaims_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00001000); } result.customClaims_ = customClaims_; } else { @@ -1260,50 +1151,43 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.clients.Client result) : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000010) != 0)) { - redirectUris_.makeImmutable(); - result.redirectUris_ = redirectUris_; - } if (((from_bitField0_ & 0x00000020) != 0)) { - result.defaultRedirectUri_ = defaultRedirectUri_; - } - if (((from_bitField0_ & 0x00000080) != 0)) { postLogoutRedirectUris_.makeImmutable(); result.postLogoutRedirectUris_ = postLogoutRedirectUris_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { backChannelLogoutUris_.makeImmutable(); result.backChannelLogoutUris_ = backChannelLogoutUris_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.initiateLoginUri_ = initiateLoginUri_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { postLoginUris_.makeImmutable(); result.postLoginUris_ = postLoginUris_; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.accessTokenExpiry_ = accessTokenExpiry_; to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { scopes_.makeImmutable(); result.scopes_ = scopes_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.disallowScalekitApiAccess_ = disallowScalekitApiAccess_; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { grantTypes_.makeImmutable(); result.grantTypes_ = grantTypes_; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00008000) != 0)) { result.clientType_ = clientType_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.enforcePkce_ = enforcePkce_; } result.bitField0_ |= to_bitField0_; @@ -1369,26 +1253,11 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.Client other) { if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } - if (!other.redirectUris_.isEmpty()) { - if (redirectUris_.isEmpty()) { - redirectUris_ = other.redirectUris_; - bitField0_ |= 0x00000010; - } else { - ensureRedirectUrisIsMutable(); - redirectUris_.addAll(other.redirectUris_); - } - onChanged(); - } - if (!other.getDefaultRedirectUri().isEmpty()) { - defaultRedirectUri_ = other.defaultRedirectUri_; - bitField0_ |= 0x00000020; - onChanged(); - } if (secretsBuilder_ == null) { if (!other.secrets_.isEmpty()) { if (secrets_.isEmpty()) { secrets_ = other.secrets_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); } else { ensureSecretsIsMutable(); secrets_.addAll(other.secrets_); @@ -1401,7 +1270,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.Client other) { secretsBuilder_.dispose(); secretsBuilder_ = null; secrets_ = other.secrets_; - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); secretsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSecretsFieldBuilder() : null; @@ -1413,7 +1282,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.Client other) { if (!other.postLogoutRedirectUris_.isEmpty()) { if (postLogoutRedirectUris_.isEmpty()) { postLogoutRedirectUris_ = other.postLogoutRedirectUris_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; } else { ensurePostLogoutRedirectUrisIsMutable(); postLogoutRedirectUris_.addAll(other.postLogoutRedirectUris_); @@ -1423,7 +1292,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.Client other) { if (!other.backChannelLogoutUris_.isEmpty()) { if (backChannelLogoutUris_.isEmpty()) { backChannelLogoutUris_ = other.backChannelLogoutUris_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; } else { ensureBackChannelLogoutUrisIsMutable(); backChannelLogoutUris_.addAll(other.backChannelLogoutUris_); @@ -1432,13 +1301,13 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.Client other) { } if (!other.getInitiateLoginUri().isEmpty()) { initiateLoginUri_ = other.initiateLoginUri_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; onChanged(); } if (!other.postLoginUris_.isEmpty()) { if (postLoginUris_.isEmpty()) { postLoginUris_ = other.postLoginUris_; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000100; } else { ensurePostLoginUrisIsMutable(); postLoginUris_.addAll(other.postLoginUris_); @@ -1447,7 +1316,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.Client other) { } if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; onChanged(); } if (other.hasAccessTokenExpiry()) { @@ -1456,7 +1325,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.Client other) { if (!other.scopes_.isEmpty()) { if (scopes_.isEmpty()) { scopes_ = other.scopes_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00000800; } else { ensureScopesIsMutable(); scopes_.addAll(other.scopes_); @@ -1467,7 +1336,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.Client other) { if (!other.customClaims_.isEmpty()) { if (customClaims_.isEmpty()) { customClaims_ = other.customClaims_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureCustomClaimsIsMutable(); customClaims_.addAll(other.customClaims_); @@ -1480,7 +1349,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.Client other) { customClaimsBuilder_.dispose(); customClaimsBuilder_ = null; customClaims_ = other.customClaims_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00001000); customClaimsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCustomClaimsFieldBuilder() : null; @@ -1495,7 +1364,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.Client other) { if (!other.grantTypes_.isEmpty()) { if (grantTypes_.isEmpty()) { grantTypes_ = other.grantTypes_; - bitField0_ |= 0x00010000; + bitField0_ |= 0x00004000; } else { ensureGrantTypesIsMutable(); grantTypes_.addAll(other.grantTypes_); @@ -1504,7 +1373,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.Client other) { } if (!other.getClientType().isEmpty()) { clientType_ = other.clientType_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00008000; onChanged(); } if (other.getEnforcePkce() != false) { @@ -1560,17 +1429,6 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - ensureRedirectUrisIsMutable(); - redirectUris_.add(s); - break; - } // case 42 - case 50: { - defaultRedirectUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; - break; - } // case 50 case 58: { com.scalekit.grpc.scalekit.v1.clients.ClientSecret m = input.readMessage( @@ -1598,7 +1456,7 @@ public Builder mergeFrom( } // case 74 case 82: { initiateLoginUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; break; } // case 82 case 90: { @@ -1609,12 +1467,12 @@ public Builder mergeFrom( } // case 90 case 98: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; break; } // case 98 case 104: { accessTokenExpiry_ = input.readInt64(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000400; break; } // case 104 case 114: { @@ -1638,7 +1496,7 @@ public Builder mergeFrom( } // case 122 case 128: { disallowScalekitApiAccess_ = input.readBool(); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00002000; break; } // case 128 case 138: { @@ -1649,12 +1507,12 @@ public Builder mergeFrom( } // case 138 case 146: { clientType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00008000; break; } // case 146 case 152: { enforcePkce_ = input.readBool(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00010000; break; } // case 152 default: { @@ -2060,195 +1918,12 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } - private com.google.protobuf.LazyStringArrayList redirectUris_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureRedirectUrisIsMutable() { - if (!redirectUris_.isModifiable()) { - redirectUris_ = new com.google.protobuf.LazyStringArrayList(redirectUris_); - } - bitField0_ |= 0x00000010; - } - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return A list containing the redirectUris. - */ - public com.google.protobuf.ProtocolStringList - getRedirectUrisList() { - redirectUris_.makeImmutable(); - return redirectUris_; - } - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The count of redirectUris. - */ - public int getRedirectUrisCount() { - return redirectUris_.size(); - } - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index of the element to return. - * @return The redirectUris at the given index. - */ - public java.lang.String getRedirectUris(int index) { - return redirectUris_.get(index); - } - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the redirectUris at the given index. - */ - public com.google.protobuf.ByteString - getRedirectUrisBytes(int index) { - return redirectUris_.getByteString(index); - } - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index to set the value at. - * @param value The redirectUris to set. - * @return This builder for chaining. - */ - public Builder setRedirectUris( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureRedirectUrisIsMutable(); - redirectUris_.set(index, value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The redirectUris to add. - * @return This builder for chaining. - */ - public Builder addRedirectUris( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureRedirectUrisIsMutable(); - redirectUris_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param values The redirectUris to add. - * @return This builder for chaining. - */ - public Builder addAllRedirectUris( - java.lang.Iterable values) { - ensureRedirectUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, redirectUris_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return This builder for chaining. - */ - public Builder clearRedirectUris() { - redirectUris_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010);; - onChanged(); - return this; - } - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes of the redirectUris to add. - * @return This builder for chaining. - */ - public Builder addRedirectUrisBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureRedirectUrisIsMutable(); - redirectUris_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.lang.Object defaultRedirectUri_ = ""; - /** - * string default_redirect_uri = 6 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The defaultRedirectUri. - */ - public java.lang.String getDefaultRedirectUri() { - java.lang.Object ref = defaultRedirectUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultRedirectUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string default_redirect_uri = 6 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for defaultRedirectUri. - */ - public com.google.protobuf.ByteString - getDefaultRedirectUriBytes() { - java.lang.Object ref = defaultRedirectUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultRedirectUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string default_redirect_uri = 6 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The defaultRedirectUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultRedirectUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - defaultRedirectUri_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - /** - * string default_redirect_uri = 6 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return This builder for chaining. - */ - public Builder clearDefaultRedirectUri() { - defaultRedirectUri_ = getDefaultInstance().getDefaultRedirectUri(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - return this; - } - /** - * string default_redirect_uri = 6 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for defaultRedirectUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultRedirectUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - defaultRedirectUri_ = value; - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - private java.util.List secrets_ = java.util.Collections.emptyList(); private void ensureSecretsIsMutable() { - if (!((bitField0_ & 0x00000040) != 0)) { + if (!((bitField0_ & 0x00000010) != 0)) { secrets_ = new java.util.ArrayList(secrets_); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; } } @@ -2398,7 +2073,7 @@ public Builder addAllSecrets( public Builder clearSecrets() { if (secretsBuilder_ == null) { secrets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { secretsBuilder_.clear(); @@ -2475,7 +2150,7 @@ public com.scalekit.grpc.scalekit.v1.clients.ClientSecret.Builder addSecretsBuil secretsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.scalekit.grpc.scalekit.v1.clients.ClientSecret, com.scalekit.grpc.scalekit.v1.clients.ClientSecret.Builder, com.scalekit.grpc.scalekit.v1.clients.ClientSecretOrBuilder>( secrets_, - ((bitField0_ & 0x00000040) != 0), + ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); secrets_ = null; @@ -2489,7 +2164,7 @@ private void ensurePostLogoutRedirectUrisIsMutable() { if (!postLogoutRedirectUris_.isModifiable()) { postLogoutRedirectUris_ = new com.google.protobuf.LazyStringArrayList(postLogoutRedirectUris_); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; } /** * repeated string post_logout_redirect_uris = 8 [json_name = "postLogoutRedirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -2535,7 +2210,7 @@ public Builder setPostLogoutRedirectUris( if (value == null) { throw new NullPointerException(); } ensurePostLogoutRedirectUrisIsMutable(); postLogoutRedirectUris_.set(index, value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2549,7 +2224,7 @@ public Builder addPostLogoutRedirectUris( if (value == null) { throw new NullPointerException(); } ensurePostLogoutRedirectUrisIsMutable(); postLogoutRedirectUris_.add(value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2563,7 +2238,7 @@ public Builder addAllPostLogoutRedirectUris( ensurePostLogoutRedirectUrisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, postLogoutRedirectUris_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2574,7 +2249,7 @@ public Builder addAllPostLogoutRedirectUris( public Builder clearPostLogoutRedirectUris() { postLogoutRedirectUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080);; + bitField0_ = (bitField0_ & ~0x00000020);; onChanged(); return this; } @@ -2589,7 +2264,7 @@ public Builder addPostLogoutRedirectUrisBytes( checkByteStringIsUtf8(value); ensurePostLogoutRedirectUrisIsMutable(); postLogoutRedirectUris_.add(value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2600,7 +2275,7 @@ private void ensureBackChannelLogoutUrisIsMutable() { if (!backChannelLogoutUris_.isModifiable()) { backChannelLogoutUris_ = new com.google.protobuf.LazyStringArrayList(backChannelLogoutUris_); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; } /** * repeated string back_channel_logout_uris = 9 [json_name = "backChannelLogoutUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -2646,7 +2321,7 @@ public Builder setBackChannelLogoutUris( if (value == null) { throw new NullPointerException(); } ensureBackChannelLogoutUrisIsMutable(); backChannelLogoutUris_.set(index, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2660,7 +2335,7 @@ public Builder addBackChannelLogoutUris( if (value == null) { throw new NullPointerException(); } ensureBackChannelLogoutUrisIsMutable(); backChannelLogoutUris_.add(value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2674,7 +2349,7 @@ public Builder addAllBackChannelLogoutUris( ensureBackChannelLogoutUrisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, backChannelLogoutUris_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2685,7 +2360,7 @@ public Builder addAllBackChannelLogoutUris( public Builder clearBackChannelLogoutUris() { backChannelLogoutUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100);; + bitField0_ = (bitField0_ & ~0x00000040);; onChanged(); return this; } @@ -2700,7 +2375,7 @@ public Builder addBackChannelLogoutUrisBytes( checkByteStringIsUtf8(value); ensureBackChannelLogoutUrisIsMutable(); backChannelLogoutUris_.add(value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2748,7 +2423,7 @@ public Builder setInitiateLoginUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } initiateLoginUri_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2758,7 +2433,7 @@ public Builder setInitiateLoginUri( */ public Builder clearInitiateLoginUri() { initiateLoginUri_ = getDefaultInstance().getInitiateLoginUri(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -2772,7 +2447,7 @@ public Builder setInitiateLoginUriBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); initiateLoginUri_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2783,7 +2458,7 @@ private void ensurePostLoginUrisIsMutable() { if (!postLoginUris_.isModifiable()) { postLoginUris_ = new com.google.protobuf.LazyStringArrayList(postLoginUris_); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000100; } /** * repeated string post_login_uris = 11 [json_name = "postLoginUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -2829,7 +2504,7 @@ public Builder setPostLoginUris( if (value == null) { throw new NullPointerException(); } ensurePostLoginUrisIsMutable(); postLoginUris_.set(index, value); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2843,7 +2518,7 @@ public Builder addPostLoginUris( if (value == null) { throw new NullPointerException(); } ensurePostLoginUrisIsMutable(); postLoginUris_.add(value); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2857,7 +2532,7 @@ public Builder addAllPostLoginUris( ensurePostLoginUrisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, postLoginUris_); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2868,7 +2543,7 @@ public Builder addAllPostLoginUris( public Builder clearPostLoginUris() { postLoginUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400);; + bitField0_ = (bitField0_ & ~0x00000100);; onChanged(); return this; } @@ -2883,7 +2558,7 @@ public Builder addPostLoginUrisBytes( checkByteStringIsUtf8(value); ensurePostLoginUrisIsMutable(); postLoginUris_.add(value); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2931,7 +2606,7 @@ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2941,7 +2616,7 @@ public Builder setName( */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -2955,7 +2630,7 @@ public Builder setNameBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2967,7 +2642,7 @@ public Builder setNameBytes( */ @java.lang.Override public boolean hasAccessTokenExpiry() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * optional int64 access_token_expiry = 13 [json_name = "accessTokenExpiry", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -2985,7 +2660,7 @@ public long getAccessTokenExpiry() { public Builder setAccessTokenExpiry(long value) { accessTokenExpiry_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2994,7 +2669,7 @@ public Builder setAccessTokenExpiry(long value) { * @return This builder for chaining. */ public Builder clearAccessTokenExpiry() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000400); accessTokenExpiry_ = 0L; onChanged(); return this; @@ -3006,7 +2681,7 @@ private void ensureScopesIsMutable() { if (!scopes_.isModifiable()) { scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00000800; } /** * repeated string scopes = 14 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -3052,7 +2727,7 @@ public Builder setScopes( if (value == null) { throw new NullPointerException(); } ensureScopesIsMutable(); scopes_.set(index, value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3066,7 +2741,7 @@ public Builder addScopes( if (value == null) { throw new NullPointerException(); } ensureScopesIsMutable(); scopes_.add(value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3080,7 +2755,7 @@ public Builder addAllScopes( ensureScopesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, scopes_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3091,7 +2766,7 @@ public Builder addAllScopes( public Builder clearScopes() { scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000);; + bitField0_ = (bitField0_ & ~0x00000800);; onChanged(); return this; } @@ -3106,7 +2781,7 @@ public Builder addScopesBytes( checkByteStringIsUtf8(value); ensureScopesIsMutable(); scopes_.add(value); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -3114,9 +2789,9 @@ public Builder addScopesBytes( private java.util.List customClaims_ = java.util.Collections.emptyList(); private void ensureCustomClaimsIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { customClaims_ = new java.util.ArrayList(customClaims_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00001000; } } @@ -3266,7 +2941,7 @@ public Builder addAllCustomClaims( public Builder clearCustomClaims() { if (customClaimsBuilder_ == null) { customClaims_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { customClaimsBuilder_.clear(); @@ -3343,7 +3018,7 @@ public com.scalekit.grpc.scalekit.v1.clients.CustomClaim.Builder addCustomClaims customClaimsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.scalekit.grpc.scalekit.v1.clients.CustomClaim, com.scalekit.grpc.scalekit.v1.clients.CustomClaim.Builder, com.scalekit.grpc.scalekit.v1.clients.CustomClaimOrBuilder>( customClaims_, - ((bitField0_ & 0x00004000) != 0), + ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); customClaims_ = null; @@ -3368,7 +3043,7 @@ public boolean getDisallowScalekitApiAccess() { public Builder setDisallowScalekitApiAccess(boolean value) { disallowScalekitApiAccess_ = value; - bitField0_ |= 0x00008000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -3377,7 +3052,7 @@ public Builder setDisallowScalekitApiAccess(boolean value) { * @return This builder for chaining. */ public Builder clearDisallowScalekitApiAccess() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00002000); disallowScalekitApiAccess_ = false; onChanged(); return this; @@ -3389,7 +3064,7 @@ private void ensureGrantTypesIsMutable() { if (!grantTypes_.isModifiable()) { grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00004000; } /** * repeated string grant_types = 17 [json_name = "grantTypes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -3435,7 +3110,7 @@ public Builder setGrantTypes( if (value == null) { throw new NullPointerException(); } ensureGrantTypesIsMutable(); grantTypes_.set(index, value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -3449,7 +3124,7 @@ public Builder addGrantTypes( if (value == null) { throw new NullPointerException(); } ensureGrantTypesIsMutable(); grantTypes_.add(value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -3463,7 +3138,7 @@ public Builder addAllGrantTypes( ensureGrantTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, grantTypes_); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -3474,7 +3149,7 @@ public Builder addAllGrantTypes( public Builder clearGrantTypes() { grantTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000);; + bitField0_ = (bitField0_ & ~0x00004000);; onChanged(); return this; } @@ -3489,7 +3164,7 @@ public Builder addGrantTypesBytes( checkByteStringIsUtf8(value); ensureGrantTypesIsMutable(); grantTypes_.add(value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -3537,7 +3212,7 @@ public Builder setClientType( java.lang.String value) { if (value == null) { throw new NullPointerException(); } clientType_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -3547,7 +3222,7 @@ public Builder setClientType( */ public Builder clearClientType() { clientType_ = getDefaultInstance().getClientType(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); return this; } @@ -3561,7 +3236,7 @@ public Builder setClientTypeBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); clientType_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -3583,7 +3258,7 @@ public boolean getEnforcePkce() { public Builder setEnforcePkce(boolean value) { enforcePkce_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -3592,7 +3267,7 @@ public Builder setEnforcePkce(boolean value) { * @return This builder for chaining. */ public Builder clearEnforcePkce() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00010000); enforcePkce_ = false; onChanged(); return this; diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ClientOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ClientOrBuilder.java index 0f169e2c..ff97a166 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ClientOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ClientOrBuilder.java @@ -62,43 +62,6 @@ public interface ClientOrBuilder extends */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return A list containing the redirectUris. - */ - java.util.List - getRedirectUrisList(); - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The count of redirectUris. - */ - int getRedirectUrisCount(); - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index of the element to return. - * @return The redirectUris at the given index. - */ - java.lang.String getRedirectUris(int index); - /** - * repeated string redirect_uris = 5 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the redirectUris at the given index. - */ - com.google.protobuf.ByteString - getRedirectUrisBytes(int index); - - /** - * string default_redirect_uri = 6 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The defaultRedirectUri. - */ - java.lang.String getDefaultRedirectUri(); - /** - * string default_redirect_uri = 6 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for defaultRedirectUri. - */ - com.google.protobuf.ByteString - getDefaultRedirectUriBytes(); - /** * repeated .scalekit.v1.clients.ClientSecret secrets = 7 [json_name = "secrets", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ClientsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ClientsProto.java index db5eb4e5..5cbaba86 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ClientsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ClientsProto.java @@ -405,6 +405,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_clients_GetConsentDetailsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_clients_ConsentOrganization_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_clients_ConsentOrganization_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_scalekit_v1_clients_ConsentClient_descriptor; static final @@ -1210,1030 +1215,1015 @@ public static void registerAllExtensions( "ion settings, redirect URIs, and secrets" + ". This contains all current settings for" + " the requested client resource.R\006client\"" + - "\353\006\n\022ListClientsRequest\022\362\001\n\024include_plain" + + "\341\006\n\022ListClientsRequest\022\362\001\n\024include_plain" + "_secret\030\001 \001(\010B\277\001\222A\273\0012\261\001Whether to includ" + "e plain secret values in the response. E" + "nable only during initial client creatio" + "n, then store secrets securely. Not avai" + "lable when filtering by ALL client types" + - "J\005falseR\022includePlainSecret\022\212\001\n\006filter\030\003" + + "J\005falseR\022includePlainSecret\022\205\001\n\006filter\030\003" + " \001(\0132..scalekit.v1.clients.ListClientsRe" + - "quest.FilterBB\222A?2=Filters clients by ty" + - "pe: WEB, ENV, WEB_APP, NTV, SPA, or ALL." + - "R\006filter\022]\n\npage_token\030\004 \001(\tB>\222A;2\"Token" + - " for the next page of resultsJ\025\"next_pag" + - "e_token_123\"R\tpageToken\022d\n\tpage_size\030\005 \001" + - "(\rBG\222A=27Number of clients per page. Def" + - "aults to 10, maximum 30.J\00230\272H\004*\002\030\036R\010pag" + - "eSize\032\207\002\n\006Filter\022\374\001\n\013client_type\030\001 \003(\tB\332" + - "\001\222A\326\0012\323\001Filters clients by type. Valid v" + - "alues: WEB, ENV, WEB_APP, NTV, SPA, ALL." + - " Defaults to WEB. ALL takes precedence a" + - "nd other types are ignored. For resource" + - "-specific clients (e.g., M2M), use ListR" + - "esourceClients API.R\nclientTypeJ\004\010\002\020\003\"\361\003" + - "\n\023ListClientsResponse\022Z\n\ntotal_size\030\001 \001(" + - "\rB;\222A822Total number of client resources" + - " in the workspace.J\00212R\ttotalSize\022\301\001\n\007cl" + - "ients\030\002 \003(\0132\033.scalekit.v1.clients.Client" + - "B\211\001\222A\205\0012\202\001List of client resource config" + - "urations matching the query criteria. Ea" + - "ch client includes its metadata and auth" + - "entication settings.R\007clients\022e\n\017next_pa" + - "ge_token\030\003 \001(\tB=\222A:28Pagination token th" + - "at retrieves the next page of resultsR\rn" + - "extPageToken\022S\n\017prev_page_token\030\004 \001(\tB+\222" + - "A(2&Token for the previous page of resul" + - "tsR\rprevPageToken\"\355\001\n\023CreateClientReques" + - "t\022\325\001\n\006client\030\001 \001(\0132!.scalekit.v1.clients" + - ".CreateClientB\231\001\222A\217\0012\033Client parameters " + - "to createJp{\"post_login_uris\": [\"https:/" + - "/app.example.com/callback\"], \"initiate_l" + - "ogin_uri\": \"https://app.example.com/logi" + - "n\"}\272H\003\310\001\001R\006client\"\310\027\n\014CreateClient\022\336\001\n\004n" + - "ame\030\001 \001(\tB\311\001\222A\272\0012\236\001A descriptive name fo" + - "r the API client that helps identify its" + - " purpose. This name is displayed in the " + - "dashboard and logs. Must be between 1 an" + - "d 128 characters.J\027\"My Application Clien" + - "t\"\272H\010r\003\030\200\001\310\001\001R\004name\022\326\001\n\013client_type\030\002 \001(" + - "\tB\264\001\222A\245\0012\231\001Client application type. Vali" + - "d values: WEB_APP (web applications), SP", - "A (single-page applications), NTV (nativ" + - "e applications including mobile and desk" + - "top)J\007WEB_APP\272H\010r\003\030\200\001\310\001\001R\nclientType\022\266\002\n" + - "\030back_channel_logout_uris\030\003 \003(\tB\374\001\222A\351\0012w" + - "HTTPS endpoints that receive back-channe" + - "l logout notifications for application-i" + - "nitiated logout and session management.J" + - "n[\"https://app.example.com/backchannel-l" + - "ogout-internal\", \"https://app.example.co" + - "m/backchannel-logout-external\"]\272H\014\222\001\t\030\001\"" + - "\005r\003\210\001\001R\025backChannelLogoutUris\022\266\002\n\031post_l" + - "ogout_redirect_uris\030\004 \003(\tB\372\001\222A\347\0012\234\001Allow" + - "ed URIs for post-logout redirection. The" + - "se URIs are used when a user is redirect" + - "ed after logout. Must use HTTPS and conf" + - "orm to security specifications.JF[\"https" + - "://app.example.com/logged-out\", \"https:/" + - "/app.example.com/home\"]\272H\014\222\001\t\030\001\"\005r\003\210\001\001R\026" + - "postLogoutRedirectUris\022\377\001\n\022initiate_logi" + - "n_uri\030\005 \001(\tB\313\001\222A\307\0012\243\001Pre-configured URI " + - "for initiating login flows. This URI is " + - "used to start authentication flows progr" + - "ammatically. Must use HTTPS protocol and" + - " contain a valid domain.J\037\"https://app.e" + - "xample.com/login\"H\000R\020initiateLoginUri\210\001\001" + - "\022\371\001\n\017post_login_uris\030\006 \003(\tB\320\001\222A\275\0012uList " + - "of allowed post login URIs for OAuth 2.0" + - " authorization flows. Each URI must be v" + - "alid. Maximum of 5 URIs allowed.JD[\"http" + - "s://app.example.com/callback\", \"https://" + - "dev.example.com/auth\"]\272H\014\222\001\t\030\001\"\005r\003\210\001\001R\rp" + - "ostLoginUris\022g\n\023access_token_expiry\030\007 \001(" + + "quest.FilterB=\222A:28Filters clients by ty" + + "pe: ENV, WEB_APP, NTV, SPA, or ALL.R\006fil" + + "ter\022]\n\npage_token\030\004 \001(\tB>\222A;2\"Token for " + + "the next page of resultsJ\025\"next_page_tok" + + "en_123\"R\tpageToken\022d\n\tpage_size\030\005 \001(\rBG\222" + + "A=27Number of clients per page. Defaults" + + " to 10, maximum 30.J\00230\272H\004*\002\030\036R\010pageSize" + + "\032\202\002\n\006Filter\022\367\001\n\013client_type\030\001 \003(\tB\325\001\222A\321\001" + + "2\316\001Filters clients by type. Valid values" + + ": ENV, WEB_APP, NTV, SPA, ALL. Defaults " + + "to ENV. ALL takes precedence and other t" + + "ypes are ignored. For resource-specific " + + "clients (e.g., M2M), use ListResourceCli" + + "ents API.R\nclientTypeJ\004\010\002\020\003\"\361\003\n\023ListClie" + + "ntsResponse\022Z\n\ntotal_size\030\001 \001(\rB;\222A822To" + + "tal number of client resources in the wo" + + "rkspace.J\00212R\ttotalSize\022\301\001\n\007clients\030\002 \003(" + + "\0132\033.scalekit.v1.clients.ClientB\211\001\222A\205\0012\202\001" + + "List of client resource configurations m" + + "atching the query criteria. Each client " + + "includes its metadata and authentication" + + " settings.R\007clients\022e\n\017next_page_token\030\003" + + " \001(\tB=\222A:28Pagination token that retriev" + + "es the next page of resultsR\rnextPageTok" + + "en\022S\n\017prev_page_token\030\004 \001(\tB+\222A(2&Token " + + "for the previous page of resultsR\rprevPa" + + "geToken\"\355\001\n\023CreateClientRequest\022\325\001\n\006clie" + + "nt\030\001 \001(\0132!.scalekit.v1.clients.CreateCli" + + "entB\231\001\222A\217\0012\033Client parameters to createJ" + + "p{\"post_login_uris\": [\"https://app.examp" + + "le.com/callback\"], \"initiate_login_uri\":" + + " \"https://app.example.com/login\"}\272H\003\310\001\001R" + + "\006client\"\353\027\n\014CreateClient\022\336\001\n\004name\030\001 \001(\tB" + + "\311\001\222A\272\0012\236\001A descriptive name for the API " + + "client that helps identify its purpose. " + + "This name is displayed in the dashboard " + + "and logs. Must be between 1 and 128 char" + + "acters.J\027\"My Application Client\"\272H\010r\003\030\200\001" + + "\310\001\001R\004name\022\326\001\n\013client_type\030\002 \001(\tB\264\001\222A\245\0012\231" + + "\001Client application type. Valid values: " + + "WEB_APP (web applications), SPA (single-", + "page applications), NTV (native applicat" + + "ions including mobile and desktop)J\007WEB_" + + "APP\272H\010r\003\030\200\001\310\001\001R\nclientType\022\266\002\n\030back_chan" + + "nel_logout_uris\030\003 \003(\tB\374\001\222A\351\0012wHTTPS endp" + + "oints that receive back-channel logout n" + + "otifications for application-initiated l" + + "ogout and session management.Jn[\"https:/" + + "/app.example.com/backchannel-logout-inte" + + "rnal\", \"https://app.example.com/backchan" + + "nel-logout-external\"]\272H\014\222\001\t\030\001\"\005r\003\210\001\001R\025ba" + + "ckChannelLogoutUris\022\266\002\n\031post_logout_redi" + + "rect_uris\030\004 \003(\tB\372\001\222A\347\0012\234\001Allowed URIs fo" + + "r post-logout redirection. These URIs ar" + + "e used when a user is redirected after l" + + "ogout. Must use HTTPS and conform to sec" + + "urity specifications.JF[\"https://app.exa" + + "mple.com/logged-out\", \"https://app.examp" + + "le.com/home\"]\272H\014\222\001\t\030\001\"\005r\003\210\001\001R\026postLogout" + + "RedirectUris\022\377\001\n\022initiate_login_uri\030\005 \001(" + + "\tB\313\001\222A\307\0012\243\001Pre-configured URI for initia" + + "ting login flows. This URI is used to st" + + "art authentication flows programmaticall" + + "y. Must use HTTPS protocol and contain a" + + " valid domain.J\037\"https://app.example.com" + + "/login\"H\000R\020initiateLoginUri\210\001\001\022\234\002\n\017post_" + + "login_uris\030\006 \003(\tB\363\001\222A\347\0012\236\001List of allowe" + + "d post login URIs for OAuth 2.0 authoriz" + + "ation flows. Each URI must be valid and " + + "use HTTPS in production environments. Ma" + + "ximum of 5 URIs allowed.JD[\"https://app." + + "example.com/callback\", \"https://dev.exam" + + "ple.com/auth\"]\272H\005\222\001\002\030\001R\rpostLoginUris\022g\n" + + "\023access_token_expiry\030\007 \001(\003B7\222A42,Expiry " + + "time in seconds for the access token.J\0043" + + "600R\021accessTokenExpiry\022\263\001\n\006scopes\030\010 \003(\tB" + + "\232\001\222A\226\0012wList of scopes to be attached to" + + " this client. These scopes must be a sub" + + "set of the scopes available in the envir" + + "onment.J\033[\"data:read\", \"data:write\"]R\006sc" + + "opes\022\306\001\n\rcustom_claims\030\t \003(\0132 .scalekit." + + "v1.clients.CustomClaimB\177\222A|2zCustom clai" + + "ms to be included in access tokens. Plea" + + "se keep this to the essentials as this i" + + "ncreases the size of the token.R\014customC" + + "laims\022\360\001\n\034disallow_scalekit_api_access\030\n" + + " \001(\0132\032.google.protobuf.BoolValueB\222\001\222A\216\0012" + + "\205\001If set to true, the client will be res" + + "tricted from accessing Scalekit APIs dir" + + "ectly, enhancing security by limiting it" + + "s capabilities.J\004trueR\031disallowScalekitA" + + "piAccess\022\340\001\n\013grant_types\030\013 \003(\tB\276\001\222A\272\0012yL" + + "ist of OAuth 2.0 grant types that the cl" + + "ient is authorized to use. This defines " + + "how the client can obtain access tokens." + + "J=[\"authorization_code\", \"refresh_token\"" + + ", \"client_credentials\"]R\ngrantTypes\022\341\001\n\014" + + "enforce_pkce\030\014 \001(\0132\032.google.protobuf.Boo" + + "lValueB\241\001\222A\235\0012\224\001Whether Proof Key for Co" + + "de Exchange (PKCE) is required. PKCE mit" + + "igates authorization code interception a" + + "ttacks. Defaults to true for public clie" + + "nts.J\004trueR\013enforcePkce:\324\001\222A\320\001\n\234\001*\rCreat" + + "e Client2\212\001Request message for creating " + + "a new API client with specified configur" + + "ation parameters including redirect URIs" + + " and authentication settings.*/\n\021API Doc" + + "umentation\022\032https://docs.scalekit.com/B\025" + + "\n\023_initiate_login_uri\"\214\001\n\024CreateClientRe" + + "sponse\022t\n\006client\030\001 \001(\0132\033.scalekit.v1.cli" + + "ents.ClientB?\222A<2:Created client with al" + + "l settings reflected in the responseR\006cl" + + "ient\"\303\003\n\023UpdateClientRequest\022}\n\tclient_i" + + "d\030\001 \001(\tB`\222AT2:Unique identifier of the r" + + "egistered application to update.J\026\"skc_0" + + "1H9XPQR7ZY2AJKL\"\272H\006r\004\020\001\030 R\010clientId\022\350\001\n\006" + + "client\030\002 \001(\0132!.scalekit.v1.clients.Updat" + + "eClientB\254\001\222A\242\0012eApplication configuratio" + + "n parameters to update. Contains post_lo" + + "gin_uris and authentication settings.J9{" + + "\"post_login_uris\": [\"https://app.example" + + ".com/callback\"]}\272H\003\310\001\001R\006client\022B\n\004mask\030\003" + + " \001(\0132\032.google.protobuf.FieldMaskB\022\340A\003\372\322\344" + + "\223\002\t\022\007PREVIEWR\004mask\"\364\026\n\014UpdateClient\022\303\002\n\030" + + "back_channel_logout_uris\030\004 \003(\tB\211\002\222A\366\0012\225\001" + + "HTTPS endpoints for receiving back-chann" + + "el logout notifications. Required for im" + + "plementing application-initiated logout " + + "flows and session management.J\\[\"https:/" + + "/app.example.com/backchannel-logout\", \"h" + + "ttps://app.example.com/backchannel-logou" + + "t\"]\272H\014\222\001\t\030\001\"\005r\003\210\001\001R\025backChannelLogoutUri" + + "s\022\266\002\n\031post_logout_redirect_uris\030\005 \003(\tB\372\001" + + "\222A\347\0012\234\001Allowed URIs for post-logout redi" + + "rection. These URIs are used when a user" + + " is redirected after logout. Must use HT" + + "TPS and conform to security specificatio" + + "ns.JF[\"https://app.example.com/logged-ou" + + "t\", \"https://app.example.com/home\"]\272H\014\222\001" + + "\t\030\001\"\005r\003\210\001\001R\026postLogoutRedirectUris\022\377\001\n\022i" + + "nitiate_login_uri\030\006 \001(\tB\313\001\222A\307\0012\243\001Pre-con" + + "figured URI for initiating login flows. " + + "This URI is used to start authentication" + + " flows programmatically. Must use HTTPS " + + "protocol and contain a valid domain.J\037\"h" + + "ttps://app.example.com/login\"H\000R\020initiat" + + "eLoginUri\210\001\001\022\234\002\n\017post_login_uris\030\007 \003(\tB\363" + + "\001\222A\347\0012\236\001List of allowed post login URIs " + + "for OAuth 2.0 authorization flows. Each " + + "URI must be valid and use HTTPS in produ" + + "ction environments. Maximum of 5 URIs al" + + "lowed.JD[\"https://app.example.com/callba" + + "ck\", \"https://dev.example.com/auth\"]\272H\005\222" + + "\001\002\030\001R\rpostLoginUris\022\323\001\n\004name\030\010 \001(\tB\276\001\222A\272" + + "\0012\236\001A descriptive name for the API clien" + + "t that helps identify its purpose. This " + + "name is displayed in the dashboard and l" + + "ogs. Must be between 1 and 128 character" + + "s.J\027\"My Application Client\"R\004name\022g\n\023acc" + + "ess_token_expiry\030\t \001(\003B7\222A42,Expiry time" + + " in seconds for the access token.J\0043600R" + + "\021accessTokenExpiry\022\263\001\n\006scopes\030\013 \003(\tB\232\001\222A" + + "\226\0012wList of scopes to be attached to thi" + + "s client. These scopes must be a subset " + + "of the scopes available in the environme" + + "nt.J\033[\"data:read\", \"data:write\"]R\006scopes" + + "\022\306\001\n\rcustom_claims\030\014 \003(\0132 .scalekit.v1.c" + + "lients.CustomClaimB\177\222A|2zCustom claims t" + + "o be included in access tokens. Please k" + + "eep this to the essentials as this incre" + + "ases the size of the token.R\014customClaim" + + "s\022\360\001\n\034disallow_scalekit_api_access\030\r \001(\013" + + "2\032.google.protobuf.BoolValueB\222\001\222A\216\0012\205\001If" + + " set to true, the client will be restric" + + "ted from accessing Scalekit APIs directl" + + "y, enhancing security by limiting its ca" + + "pabilities.J\004trueR\031disallowScalekitApiAc" + + "cess\022\340\001\n\013grant_types\030\016 \003(\tB\276\001\222A\272\0012yList " + + "of OAuth 2.0 grant types that the client" + + " is authorized to use. This defines how " + + "the client can obtain access tokens.J=[\"" + + "authorization_code\", \"refresh_token\", \"c" + + "lient_credentials\"]R\ngrantTypes\022\341\001\n\014enfo" + + "rce_pkce\030\017 \001(\0132\032.google.protobuf.BoolVal" + + "ueB\241\001\222A\235\0012\224\001Whether Proof Key for Code E" + + "xchange (PKCE) is required. PKCE mitigat" + + "es authorization code interception attac" + + "ks. Defaults to true for public clients." + + "J\004trueR\013enforcePkce:\203\002\222A\377\001\n\277\001*\033Update Cl" + + "ient Configuration2\237\001Parameters for upda" + + "ting an API client application\'s configu" + + "ration. This allows modification of post" + + "_login_uris, logout settings, and other " + + "security parameters.*;\n\021API Documentatio" + + "n\022&https://docs.scalekit.com/m2m/overvie" + + "wB\025\n\023_initiate_login_uriJ\004\010\002\020\003J\004\010\003\020\004R\rre" + + "direct_urisR\024default_redirect_uri\"\250\001\n\024Up" + + "dateClientResponse\022\217\001\n\006client\030\001 \001(\0132\033.sc" + + "alekit.v1.clients.ClientBZ\222AW2UUpdated a" + + "pplication configuration with all curren" + + "t settings reflected in the responseR\006cl" + + "ient\"\256\001\n\031CreateClientSecretRequest\022\220\001\n\tc" + + "lient_id\030\001 \001(\tBs\222Ag2MUnique identifier o" + + "f the client application for which to cr" + + "eate a new secret.J\026\"skc_01H9XPQR7ZY2AJK" + + "L\"\272H\006r\004\020\001\030 R\010clientId\"\255\003\n\032CreateClientSe" + + "cretResponse\022\306\001\n\014plain_secret\030\001 \001(\tB\242\001\222A" + + "\236\0012\204\001Plaintext secret value. This value " + + "is only returned once at creation time a" + + "nd must be stored securely. It cannot be" + + " retrieved again.J\025\"sec_plaintext123456\"" + + "R\013plainSecret\022\305\001\n\006secret\030\002 \001(\0132!.scaleki" + + "t.v1.clients.ClientSecretB\211\001\222A\205\0012\202\001Metad" + + "ata about the newly created secret, incl" + + "uding its ID, creation time, and status." + + " Does not include the plaintext secret v" + + "alue.R\006secret\"\203\005\n\031UpdateClientSecretRequ" + + "est\022\217\001\n\tclient_id\030\001 \001(\tBr\222Af2LUnique ide" + + "ntifier of the client application contai" + + "ning the secret to update.J\026\"skc_01H9XPQ" + + "R7ZY2AJKL\"\272H\006r\004\020\001\030 R\010clientId\022\253\001\n\tsecret" + + "_id\030\002 \001(\tB\215\001\222A\200\0012fUnique identifier of t" + + "he client secret to update. This referen" + + "ces a specific secret within the client." + + "J\026\"sec_01H9XPQR7ZY2AJKL\"\272H\006r\004\020\001\030 R\010secre" + + "tId\022\260\001\n\006secret\030\003 \001(\0132\'.scalekit.v1.clien" + + "ts.UpdateClientSecretBo\222Af2dUpdated sett" + + "ings for the secret. Currently supports " + + "modifying the secret\'s status (active/in" + + "active).\272H\003\310\001\001R\006secret\022s\n\004mask\030\004 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskBC\222A@2>Specifies" + + " which fields to update. System-controll" + + "ed parameter.R\004mask\"\354\001\n\022UpdateClientSecr" + + "et\022\325\001\n\006status\030\001 \001(\0162\'.scalekit.v1.client" + + "s.ClientSecretStatusB\223\001\222A\217\0012\202\001Status to " + + "set for the client secret. Set to ACTIVE" + + " to enable the secret for authentication" + + ", or INACTIVE to temporarily disable it." + + "J\010INACTIVER\006status\"\347\001\n\032UpdateClientSecre" + + "tResponse\022\310\001\n\006secret\030\001 \001(\0132!.scalekit.v1" + + ".clients.ClientSecretB\214\001\222A\210\0012\205\001Updated s" + + "ecret metadata, reflecting the changes m" + + "ade by the update operation. Note that t" + + "he plaintext secret value is never retur" + + "ned.R\006secret\"\205\001\n\023DeleteClientRequest\022n\n\t" + + "client_id\030\001 \001(\tBQ\222AE2*Unique identifier " + + "of the client to delete.J\027\"webc_01H9XPQR" + + "7ZY2AJKL\"\272H\006r\004\020\001\030 R\010clientId\"\263\002\n\031DeleteC" + + "lientSecretRequest\022q\n\tclient_id\030\001 \001(\tBT\222" + + "AH2.Identifier of the client containing " + + "the secretJ\026\"skc_01H9XPQR7ZY2AJKL\"\272H\006r\004\020" + + "\001\030 R\010clientId\022\242\001\n\tsecret_id\030\002 \001(\tB\204\001\222Ax2" + + "^Unique identifier of the client secret " + + "to permanently delete. This operation ca" + + "nnot be undone.J\026\"sec_01H9XPQR7ZY2AJKL\"\272" + + "H\006r\004\020\001\030 R\010secretId\"\250\036\n\006Client\022\342\001\n\002id\030\001 \001" + + "(\tB\321\001\222A\315\0012\262\001Unique identifier for the cl" + + "ient application. This ID is automatical" + + "ly generated when the client is created " + + "and cannot be modified. Used in API requ" + + "ests and authentication flows.J\026\"skc_123" + + "4abcd5678efgh\"R\002id\022\327\001\n\005keyId\030\002 \001(\tB\300\001\222A\274" + + "\0012\241\001Identifier for the cryptographic key" + + " pair used to sign tokens. This key is u" + + "sed for JWT signing operations. Keys can" + + " be rotated by generating new client sec" + + "rets.J\026\"key_9876zyxw5432vuts\"R\005keyId\022\360\001\n" + + "\013create_time\030\003 \001(\0132\032.google.protobuf.Tim" + + "estampB\262\001\222A\256\0012\217\001Timestamp indicating whe" + + "n the client configuration was initially" + + " created. This field is automatically se" + + "t by the server and cannot be modified.J" + + "\032\"2024-01-05T14:48:00.000Z\"R\ncreateTime\022" + + "\201\002\n\013update_time\030\004 \001(\0132\032.google.protobuf." + + "TimestampB\303\001\222A\277\0012\240\001Timestamp of the last" + + " modification to the client configuratio" + + "n. This field is automatically updated b" + + "y the server whenever any aspect of the " + + "client is modified.J\032\"2024-01-10T09:12:0" + + "0.000Z\"R\nupdateTime\022\245\002\n\007secrets\030\007 \003(\0132!." + + "scalekit.v1.clients.ClientSecretB\347\001\222A\343\0012" + + "\340\001List of client secrets used for authen" + + "tication. Each secret is stored securely" + + " using one-way hashing (bcrypt). The pla" + + "intext secret values are only displayed " + + "during initial creation and must be stor" + + "ed securely by the client.R\007secrets\022\243\002\n\031" + + "post_logout_redirect_uris\030\010 \003(\tB\347\001\222A\343\0012\272" + + "\001Allowed URIs for post-logout redirectio" + + "n. These URIs are used when a user is re" + + "directed after signing out. Must use HTT" + + "PS and conform to OpenID Connect Session" + + " Management specifications.J$[\"https://a" + + "uth.your-app.com/logout\"]R\026postLogoutRed" + + "irectUris\022\311\002\n\030back_channel_logout_uris\030\t" + + " \003(\tB\217\002\222A\213\0022\330\001HTTPS endpoint for receivi" + + "ng back-channel logout notifications. Th" + + "is URI is called by the authentication s" + + "erver when a session expires or is termi" + + "nated. Required for implementing relying" + + " party-initiated logout flows.J.\"https:/" + + "/auth.your-app.com/backchannel-logout\"R\025" + + "backChannelLogoutUris\022\240\002\n\022initiate_login" + + "_uri\030\n \001(\tB\361\001\222A\355\0012\277\001Pre-configured URI f" + + "or initiating login flows programmatical" + + "ly. This URI must use the HTTPS scheme a" + + "nd contain a valid domain. Used for star" + + "ting authentication flows without user i" + + "nteraction.J)\"https://auth.your-app.com/" + + "initiate-auth\"R\020initiateLoginUri\022\253\002\n\017pos" + + "t_login_uris\030\013 \003(\tB\202\002\222A\376\0012\263\001List of allo" + + "wed redirect URIs for OAuth 2.0 authoriz" + + "ation flows. These URIs must use HTTPS p" + + "rotocol in production environments and c" + + "omply with RFC 6749. Maximum of 5 URIs a" + + "llowed.JF[\"https://auth.your-app.com/cal" + + "lback\", \"https://dev.example.com/auth\"]R" + + "\rpostLoginUris\022t\n\004name\030\014 \001(\tB`\222A]2BA des" + + "criptive name for the client that helps " + + "identify its purpose.J\027\"My Application C" + + "lient\"R\004name\022l\n\023access_token_expiry\030\r \001(" + "\003B7\222A42,Expiry time in seconds for the a" + - "ccess token.J\0043600R\021accessTokenExpiry\022\263\001" + - "\n\006scopes\030\010 \003(\tB\232\001\222A\226\0012wList of scopes to" + - " be attached to this client. These scope" + - "s must be a subset of the scopes availab" + - "le in the environment.J\033[\"data:read\", \"d" + - "ata:write\"]R\006scopes\022\306\001\n\rcustom_claims\030\t " + - "\003(\0132 .scalekit.v1.clients.CustomClaimB\177\222" + - "A|2zCustom claims to be included in acce" + - "ss tokens. Please keep this to the essen" + - "tials as this increases the size of the " + - "token.R\014customClaims\022\360\001\n\034disallow_scalek" + - "it_api_access\030\n \001(\0132\032.google.protobuf.Bo" + - "olValueB\222\001\222A\216\0012\205\001If set to true, the cli" + - "ent will be restricted from accessing Sc" + - "alekit APIs directly, enhancing security" + - " by limiting its capabilities.J\004trueR\031di" + - "sallowScalekitApiAccess\022\340\001\n\013grant_types\030" + - "\013 \003(\tB\276\001\222A\272\0012yList of OAuth 2.0 grant ty" + - "pes that the client is authorized to use" + - ". This defines how the client can obtain" + - " access tokens.J=[\"authorization_code\", " + - "\"refresh_token\", \"client_credentials\"]R\n" + - "grantTypes\022\341\001\n\014enforce_pkce\030\014 \001(\0132\032.goog" + - "le.protobuf.BoolValueB\241\001\222A\235\0012\224\001Whether P" + - "roof Key for Code Exchange (PKCE) is req" + - "uired. PKCE mitigates authorization code" + - " interception attacks. Defaults to true " + - "for public clients.J\004trueR\013enforcePkce:\324" + - "\001\222A\320\001\n\234\001*\rCreate Client2\212\001Request messag" + - "e for creating a new API client with spe" + - "cified configuration parameters includin" + - "g redirect URIs and authentication setti" + - "ngs.*/\n\021API Documentation\022\032https://docs." + - "scalekit.com/B\025\n\023_initiate_login_uri\"\214\001\n" + - "\024CreateClientResponse\022t\n\006client\030\001 \001(\0132\033." + - "scalekit.v1.clients.ClientB?\222A<2:Created" + - " client with all settings reflected in t" + - "he responseR\006client\"\372\003\n\023UpdateClientRequ" + - "est\022}\n\tclient_id\030\001 \001(\tB`\222AT2:Unique iden" + - "tifier of the registered application to " + - "update.J\026\"skc_01H9XPQR7ZY2AJKL\"\272H\006r\004\020\001\030 " + - "R\010clientId\022\237\002\n\006client\030\002 \001(\0132!.scalekit.v" + - "1.clients.UpdateClientB\343\001\222A\331\0012bApplicati" + - "on configuration parameters to update. C" + - "ontains redirect URIs and authentication" + - " settingsJs{\"redirect_uris\": [\"https://a" + - "pp.example.com/callback\"], \"default_redi" + - "rect_uri\": \"https://app.example.com/call" + - "back\"}\272H\003\310\001\001R\006client\022B\n\004mask\030\003 \001(\0132\032.goo" + - "gle.protobuf.FieldMaskB\022\340A\003\372\322\344\223\002\t\022\007PREVI" + - "EWR\004mask\"\240\033\n\014UpdateClient\022\236\002\n\rredirect_u" + - "ris\030\002 \003(\tB\370\001\222A\345\0012\234\001List of allowed redir" + - "ect URIs for OAuth 2.0 authorization flo" + - "ws. Each URI must be valid and use HTTPS" + - " in production environments. Maximum of " + - "5 URIs allowed.JD[\"https://app.example.c" + - "om/callback\", \"https://dev.example.com/a" + - "uth\"]\272H\014\222\001\t\030\001\"\005r\003\210\001\001R\014redirectUris\022\233\002\n\024d" + - "efault_redirect_uri\030\003 \001(\tB\343\001\222A\247\0012\200\001Prima" + - "ry redirect URI used when none is specif" + - "ied in authorization requests. Must exac" + - "tly match one of the URIs in redirect_ur" + - "is.J\"\"https://app.example.com/callback\"\272" + - "H5\272\0012\n\tvalid_uri\022\027uri must be a valid UR" + - "I\032\014this.isUri()H\000R\022defaultRedirectUri\210\001\001" + - "\022\303\002\n\030back_channel_logout_uris\030\004 \003(\tB\211\002\222A" + - "\366\0012\225\001HTTPS endpoints for receiving back-" + - "channel logout notifications. Required f" + - "or implementing application-initiated lo" + - "gout flows and session management.J\\[\"ht" + - "tps://app.example.com/backchannel-logout" + - "\", \"https://app.example.com/backchannel-" + - "logout\"]\272H\014\222\001\t\030\001\"\005r\003\210\001\001R\025backChannelLogo" + - "utUris\022\266\002\n\031post_logout_redirect_uris\030\005 \003" + - "(\tB\372\001\222A\347\0012\234\001Allowed URIs for post-logout" + - " redirection. These URIs are used when a" + - " user is redirected after logout. Must u" + - "se HTTPS and conform to security specifi" + - "cations.JF[\"https://app.example.com/logg" + - "ed-out\", \"https://app.example.com/home\"]" + - "\272H\014\222\001\t\030\001\"\005r\003\210\001\001R\026postLogoutRedirectUris\022" + - "\377\001\n\022initiate_login_uri\030\006 \001(\tB\313\001\222A\307\0012\243\001Pr" + - "e-configured URI for initiating login fl" + - "ows. This URI is used to start authentic" + - "ation flows programmatically. Must use H" + - "TTPS protocol and contain a valid domain" + - ".J\037\"https://app.example.com/login\"H\001R\020in" + - "itiateLoginUri\210\001\001\022\243\002\n\017post_login_uris\030\007 " + - "\003(\tB\372\001\222A\347\0012\236\001List of allowed post login " + - "URIs for OAuth 2.0 authorization flows. " + - "Each URI must be valid and use HTTPS in " + - "production environments. Maximum of 5 UR" + - "Is allowed.JD[\"https://app.example.com/c" + - "allback\", \"https://dev.example.com/auth\"" + - "]\272H\014\222\001\t\030\001\"\005r\003\210\001\001R\rpostLoginUris\022\323\001\n\004name" + - "\030\010 \001(\tB\276\001\222A\272\0012\236\001A descriptive name for t" + - "he API client that helps identify its pu" + - "rpose. This name is displayed in the das" + - "hboard and logs. Must be between 1 and 1" + - "28 characters.J\027\"My Application Client\"R" + - "\004name\022g\n\023access_token_expiry\030\t \001(\003B7\222A42" + - ",Expiry time in seconds for the access t" + - "oken.J\0043600R\021accessTokenExpiry\022\263\001\n\006scope" + - "s\030\013 \003(\tB\232\001\222A\226\0012wList of scopes to be att" + - "ached to this client. These scopes must " + - "be a subset of the scopes available in t" + - "he environment.J\033[\"data:read\", \"data:wri" + - "te\"]R\006scopes\022\306\001\n\rcustom_claims\030\014 \003(\0132 .s" + - "calekit.v1.clients.CustomClaimB\177\222A|2zCus" + - "tom claims to be included in access toke" + - "ns. Please keep this to the essentials a" + - "s this increases the size of the token.R" + - "\014customClaims\022\360\001\n\034disallow_scalekit_api_" + - "access\030\r \001(\0132\032.google.protobuf.BoolValue" + - "B\222\001\222A\216\0012\205\001If set to true, the client wil" + - "l be restricted from accessing Scalekit " + - "APIs directly, enhancing security by lim" + - "iting its capabilities.J\004trueR\031disallowS" + - "calekitApiAccess\022\340\001\n\013grant_types\030\016 \003(\tB\276" + - "\001\222A\272\0012yList of OAuth 2.0 grant types tha" + - "t the client is authorized to use. This " + - "defines how the client can obtain access" + - " tokens.J=[\"authorization_code\", \"refres" + - "h_token\", \"client_credentials\"]R\ngrantTy" + - "pes\022\341\001\n\014enforce_pkce\030\017 \001(\0132\032.google.prot" + - "obuf.BoolValueB\241\001\222A\235\0012\224\001Whether Proof Ke" + - "y for Code Exchange (PKCE) is required. " + - "PKCE mitigates authorization code interc" + - "eption attacks. Defaults to true for pub" + - "lic clients.J\004trueR\013enforcePkce:\201\002\222A\375\001\n\275" + - "\001*\033Update Client Configuration2\235\001Paramet" + - "ers for updating an API client applicati" + - "on\'s configuration. This allows modifica" + - "tion of redirect URIs, logout settings, " + - "and other security parameters.*;\n\021API Do" + - "cumentation\022&https://docs.scalekit.com/m" + - "2m/overviewB\027\n\025_default_redirect_uriB\025\n\023" + - "_initiate_login_uri\"\250\001\n\024UpdateClientResp" + - "onse\022\217\001\n\006client\030\001 \001(\0132\033.scalekit.v1.clie" + - "nts.ClientBZ\222AW2UUpdated application con" + - "figuration with all current settings ref" + - "lected in the responseR\006client\"\256\001\n\031Creat" + - "eClientSecretRequest\022\220\001\n\tclient_id\030\001 \001(\t" + - "Bs\222Ag2MUnique identifier of the client a" + - "pplication for which to create a new sec" + - "ret.J\026\"skc_01H9XPQR7ZY2AJKL\"\272H\006r\004\020\001\030 R\010c" + - "lientId\"\255\003\n\032CreateClientSecretResponse\022\306" + - "\001\n\014plain_secret\030\001 \001(\tB\242\001\222A\236\0012\204\001Plaintext" + - " secret value. This value is only return" + - "ed once at creation time and must be sto" + - "red securely. It cannot be retrieved aga" + - "in.J\025\"sec_plaintext123456\"R\013plainSecret\022" + - "\305\001\n\006secret\030\002 \001(\0132!.scalekit.v1.clients.C" + - "lientSecretB\211\001\222A\205\0012\202\001Metadata about the " + - "newly created secret, including its ID, " + - "creation time, and status. Does not incl" + - "ude the plaintext secret value.R\006secret\"" + - "\203\005\n\031UpdateClientSecretRequest\022\217\001\n\tclient" + - "_id\030\001 \001(\tBr\222Af2LUnique identifier of the" + - " client application containing the secre" + - "t to update.J\026\"skc_01H9XPQR7ZY2AJKL\"\272H\006r" + - "\004\020\001\030 R\010clientId\022\253\001\n\tsecret_id\030\002 \001(\tB\215\001\222A" + - "\200\0012fUnique identifier of the client secr" + - "et to update. This references a specific" + - " secret within the client.J\026\"sec_01H9XPQ" + - "R7ZY2AJKL\"\272H\006r\004\020\001\030 R\010secretId\022\260\001\n\006secret" + - "\030\003 \001(\0132\'.scalekit.v1.clients.UpdateClien" + - "tSecretBo\222Af2dUpdated settings for the s" + - "ecret. Currently supports modifying the " + - "secret\'s status (active/inactive).\272H\003\310\001\001" + - "R\006secret\022s\n\004mask\030\004 \001(\0132\032.google.protobuf" + - ".FieldMaskBC\222A@2>Specifies which fields " + - "to update. System-controlled parameter.R" + - "\004mask\"\354\001\n\022UpdateClientSecret\022\325\001\n\006status\030" + - "\001 \001(\0162\'.scalekit.v1.clients.ClientSecret" + - "StatusB\223\001\222A\217\0012\202\001Status to set for the cl" + - "ient secret. Set to ACTIVE to enable the" + - " secret for authentication, or INACTIVE " + - "to temporarily disable it.J\010INACTIVER\006st" + - "atus\"\347\001\n\032UpdateClientSecretResponse\022\310\001\n\006" + - "secret\030\001 \001(\0132!.scalekit.v1.clients.Clien" + - "tSecretB\214\001\222A\210\0012\205\001Updated secret metadata" + - ", reflecting the changes made by the upd" + - "ate operation. Note that the plaintext s" + - "ecret value is never returned.R\006secret\"\205" + - "\001\n\023DeleteClientRequest\022n\n\tclient_id\030\001 \001(" + - "\tBQ\222AE2*Unique identifier of the client " + - "to delete.J\027\"webc_01H9XPQR7ZY2AJKL\"\272H\006r\004" + - "\020\001\030 R\010clientId\"\263\002\n\031DeleteClientSecretReq" + - "uest\022q\n\tclient_id\030\001 \001(\tBT\222AH2.Identifier" + - " of the client containing the secretJ\026\"s" + - "kc_01H9XPQR7ZY2AJKL\"\272H\006r\004\020\001\030 R\010clientId\022" + - "\242\001\n\tsecret_id\030\002 \001(\tB\204\001\222Ax2^Unique identi" + - "fier of the client secret to permanently" + - " delete. This operation cannot be undone" + - ".J\026\"sec_01H9XPQR7ZY2AJKL\"\272H\006r\004\020\001\030 R\010secr" + - "etId\"\327\"\n\006Client\022\342\001\n\002id\030\001 \001(\tB\321\001\222A\315\0012\262\001Un" + - "ique identifier for the client applicati" + - "on. This ID is automatically generated w" + - "hen the client is created and cannot be " + - "modified. Used in API requests and authe" + - "ntication flows.J\026\"skc_1234abcd5678efgh\"" + - "R\002id\022\327\001\n\005keyId\030\002 \001(\tB\300\001\222A\274\0012\241\001Identifier" + - " for the cryptographic key pair used to " + - "sign tokens. This key is used for JWT si" + - "gning operations. Keys can be rotated by" + - " generating new client secrets.J\026\"key_98" + - "76zyxw5432vuts\"R\005keyId\022\360\001\n\013create_time\030\003" + - " \001(\0132\032.google.protobuf.TimestampB\262\001\222A\256\0012" + - "\217\001Timestamp indicating when the client c" + - "onfiguration was initially created. This" + - " field is automatically set by the serve" + - "r and cannot be modified.J\032\"2024-01-05T1" + - "4:48:00.000Z\"R\ncreateTime\022\201\002\n\013update_tim" + - "e\030\004 \001(\0132\032.google.protobuf.TimestampB\303\001\222A" + - "\277\0012\240\001Timestamp of the last modification " + - "to the client configuration. This field " + - "is automatically updated by the server w" + - "henever any aspect of the client is modi" + - "fied.J\032\"2024-01-10T09:12:00.000Z\"R\nupdat" + - "eTime\022\325\002\n\rredirect_uris\030\005 \003(\tB\257\002\222A\253\0022\333\001L" + - "ist of allowed redirect URIs for OAuth 2" + - ".0 authorization flows. These URIs must " + - "use HTTPS protocol in production environ" + - "ments and comply with RFC 6749. Users wi" + - "ll be redirected to one of these URIs af" + - "ter authorization.JK[\"https://auth.your-" + - "app.com/callback\", \"https://scalekit.exa" + - "mple.org/auth\"]R\014redirectUris\022\200\002\n\024defaul" + - "t_redirect_uri\030\006 \001(\tB\315\001\222A\311\0012\240\001Primary re" + - "direct URI used when none is explicitly " + - "specified in authorization requests. Thi" + - "s URI must exactly match one of the entr" + - "ies in the redirect_uris list.J$\"https:/" + - "/auth.your-app.com/callback\"R\022defaultRed" + - "irectUri\022\245\002\n\007secrets\030\007 \003(\0132!.scalekit.v1" + - ".clients.ClientSecretB\347\001\222A\343\0012\340\001List of c" + - "lient secrets used for authentication. E" + - "ach secret is stored securely using one-" + - "way hashing (bcrypt). The plaintext secr" + - "et values are only displayed during init" + - "ial creation and must be stored securely" + - " by the client.R\007secrets\022\243\002\n\031post_logout" + - "_redirect_uris\030\010 \003(\tB\347\001\222A\343\0012\272\001Allowed UR" + - "Is for post-logout redirection. These UR" + - "Is are used when a user is redirected af" + - "ter signing out. Must use HTTPS and conf" + - "orm to OpenID Connect Session Management" + - " specifications.J$[\"https://auth.your-ap" + - "p.com/logout\"]R\026postLogoutRedirectUris\022\311" + - "\002\n\030back_channel_logout_uris\030\t \003(\tB\217\002\222A\213\002" + - "2\330\001HTTPS endpoint for receiving back-cha" + - "nnel logout notifications. This URI is c" + - "alled by the authentication server when " + - "a session expires or is terminated. Requ" + - "ired for implementing relying party-init" + - "iated logout flows.J.\"https://auth.your-" + - "app.com/backchannel-logout\"R\025backChannel" + - "LogoutUris\022\240\002\n\022initiate_login_uri\030\n \001(\tB" + - "\361\001\222A\355\0012\277\001Pre-configured URI for initiati" + - "ng login flows programmatically. This UR" + - "I must use the HTTPS scheme and contain " + - "a valid domain. Used for starting authen" + - "tication flows without user interaction." + - "J)\"https://auth.your-app.com/initiate-au" + - "th\"R\020initiateLoginUri\022\253\002\n\017post_login_uri" + - "s\030\013 \003(\tB\202\002\222A\376\0012\263\001List of allowed redirec" + - "t URIs for OAuth 2.0 authorization flows" + - ". These URIs must use HTTPS protocol in " + - "production environments and comply with " + - "RFC 6749. Maximum of 5 URIs allowed.JF[\"" + - "https://auth.your-app.com/callback\", \"ht" + - "tps://dev.example.com/auth\"]R\rpostLoginU" + - "ris\022t\n\004name\030\014 \001(\tB`\222A]2BA descriptive na" + - "me for the client that helps identify it" + - "s purpose.J\027\"My Application Client\"R\004nam" + - "e\022l\n\023access_token_expiry\030\r \001(\003B7\222A42,Exp" + - "iry time in seconds for the access token" + - ".J\0043600H\000R\021accessTokenExpiry\210\001\001\022g\n\006scope" + - "s\030\016 \003(\tBO\222AL2-List of scopes to be attac" + - "hed to this client.J\033[\"data:read\", \"data" + - ":write\"]R\006scopes\022\306\001\n\rcustom_claims\030\017 \003(\013" + - "2 .scalekit.v1.clients.CustomClaimB\177\222A|2" + - "zCustom claims to be included in access " + - "tokens. Please keep this to the essentia" + - "ls as this increases the size of the tok" + - "en.R\014customClaims\022\217\001\n\034disallow_scalekit_" + - "api_access\030\020 \001(\010BN\222AK2CIf true, the clie" + - "nt will be restricted from accessing Sca" + - "lekit APIsJ\004trueR\031disallowScalekitApiAcc" + - "ess\022\252\001\n\013grant_types\030\021 \003(\tB\210\001\222A\204\0012CList o" + - "f OAuth 2.0 grant types that the client " + - "is authorized to use.J=[\"authorization_c" + - "ode\", \"refresh_token\", \"client_credentia" + - "ls\"]R\ngrantTypes\022f\n\013client_type\030\022 \001(\tBE\222" + - "AB29Type of client. Valid values: WEB, E" + - "NV, WEB_APP, NTV, SPAJ\005\"WEB\"R\nclientType" + - "\022\305\001\n\014enforce_pkce\030\023 \001(\010B\241\001\222A\235\0012\224\001Whether" + - " Proof Key for Code Exchange (PKCE) is r" + - "equired. PKCE mitigates authorization co" + - "de interception attacks. Defaults to tru" + - "e for public clients.J\004trueR\013enforcePkce" + - ":\263\001\222A\257\001\n\254\001*\022Client Application2\225\001Configu" + - "ration for an API client application reg" + - "istered with Scalekit. Contains authenti" + - "cation settings, redirect URIs, and othe" + - "r security parameters.B\026\n\024_access_token_" + - "expiry\"\301\023\n\014ClientSecret\022\325\001\n\002id\030\001 \001(\tB\304\001\222" + - "A\300\0012\245\001The unique identifier for this cli" + - "ent secret. This ID is used to reference" + - " the secret in API requests for manageme" + - "nt operations like updating or deleting " + - "the secret.J\026\"sec_1234abcd5678efgh\"R\002id\022" + - "\321\001\n\013create_time\030\002 \001(\0132\032.google.protobuf." + - "TimestampB\223\001\222A\217\0012qThe timestamp when thi" + - "s secret was created. This field is auto" + - "matically set by the server and cannot b" + - "e modified.J\032\"2024-01-05T14:48:00.000Z\"R" + - "\ncreateTime\022\206\002\n\013update_time\030\003 \001(\0132\032.goog" + - "le.protobuf.TimestampB\310\001\222A\304\0012\245\001The times" + - "tamp when this secret was last updated. " + - "This field is automatically updated by t" + - "he server when the secret\'s status chang" + - "es or other properties are modified.J\032\"2" + - "024-01-10T09:12:00.000Z\"R\nupdateTime\022\202\002\n" + - "\rsecret_suffix\030\004 \001(\tB\334\001\222A\330\0012\315\001A suffix t" + - "hat helps identify this secret. This is " + - "the last few characters of the full secr" + - "et value but is not sufficient for authe" + - "ntication. Helps identify which secret i" + - "s being used in logs and debugging.J\006\"xy" + - "zw\"R\014secretSuffix\022\311\001\n\ncreated_by\030\005 \001(\tB\244" + - "\001\222A\240\0012\217\001The identifier of the user or sy" + - "stem that created this secret. This fiel" + - "d helps track who created the secret for" + - " audit and compliance purposes.J\014\"user_1" + - "2345\"H\000R\tcreatedBy\210\001\001\022\206\002\n\006status\030\006 \001(\0162\'" + - ".scalekit.v1.clients.ClientSecretStatusB" + - "\304\001\222A\300\0012\261\001The current status of this secr" + - "et. A secret must be ACTIVE to be used f" + - "or authentication. INACTIVE secrets cann" + - "ot be used for authentication but are re" + - "tained for audit purposes.J\n\"INACTIVE\"R\006" + - "status\022\214\002\n\013expire_time\030\007 \001(\0132\032.google.pr" + - "otobuf.TimestampB\316\001\222A\312\0012\253\001The timestamp " + - "when this secret will expire. After this" + - " time, the secret cannot be used for aut" + - "hentication regardless of its status. If" + - " not set, the secret does not expire.J\032\"" + - "2025-01-05T14:48:00.000Z\"R\nexpireTime\022\246\002" + - "\n\016last_used_time\030\010 \001(\0132\032.google.protobuf" + - ".TimestampB\343\001\222A\337\0012\300\001The timestamp when t" + - "his secret was last used for authenticat" + - "ion. This field helps track secret usage" + - " for security monitoring and identifying" + - " unused secrets that may be candidates f" + - "or rotation.J\032\"2024-02-15T10:30:00.000Z\"" + - "R\014lastUsedTime\022\263\002\n\014plain_secret\030\t \001(\tB\212\002" + - "\222A\206\0022\327\001The full plaintext secret value. " + - "This field is only populated when the se" + - "cret is first created and is never store" + - "d by the server. It must be securely sto" + - "red by the client application as it cann" + - "ot be retrieved again.J*\"sec_1234567890a" + - "bcdefghijklmnopqrstuvwxyz\"H\001R\013plainSecre" + - "t\210\001\001:\223\001\222A\217\001\n\214\001*\rClient Secret2{A secure " + - "credential used for authenticating an AP", - "I client. Each client can have multiple " + - "secrets for key rotation purposes.B\r\n\013_c" + - "reated_byB\017\n\r_plain_secret\"\270\002\n\005Scope\022\250\001\n" + - "\002id\030\001 \001(\tB\227\001\222A\212\0012tUnique identifier for " + - "the scope resource. Must be between 1 an" + - "d 100 characters long and match the spec" + - "ified pattern.J\022\"scope_1234567890\"\272H\006r\004\020" + - "\001\030dR\002id\0226\n\004name\030\002 \001(\tB\"\272H\037r\032\020\001\030d2\024^[a-zA" + - "-Z0-9:]{1,64}$\310\001\001R\004name\022*\n\013description\030\003" + - " \001(\tB\010\272H\005r\003\030\320\017R\013description\022 \n\007enabled\030\004" + - " \001(\010B\006\272H\003\310\001\001R\007enabled\"q\n\013CreateScope\0226\n\004" + - "name\030\001 \001(\tB\"\272H\037r\032\020\001\030d2\024^[a-zA-Z0-9:]{1,6" + - "4}$\310\001\001R\004name\022*\n\013description\030\002 \001(\tB\010\272H\005r\003" + - "\030\320\017R\013description\"\363\001\n\022CreateScopeRequest\022" + - ">\n\005scope\030\001 \001(\0132 .scalekit.v1.clients.Cre" + - "ateScopeB\006\272H\003\310\001\001R\005scope\022\234\001\n\006env_id\030\002 \001(\t" + - "B\204\001\222Ax2dUnique identifier of the environ" + - "ment where the scope will be created. Mu" + - "st start with \'env_\' prefix.J\020\"env_12345" + - "67890\"\272H\006r\004\020\000\030 R\005envId\"G\n\023CreateScopeRes" + - "ponse\0220\n\005scope\030\001 \001(\0132\032.scalekit.v1.clien" + - "ts.ScopeR\005scope\"\252\001\n\021ListScopesRequest\022\224\001" + - "\n\006env_id\030\001 \001(\tB}\222Aq2]Unique identifier o" + - "f the environment for which to list scop" + - "es. Must start with \'env_\' prefix.J\020\"env" + - "_1234567890\"\272H\006r\004\020\000\030 R\005envId\"H\n\022ListScop" + - "esResponse\0222\n\006scopes\030\001 \003(\0132\032.scalekit.v1" + - ".clients.ScopeR\006scopes\"o\n\022UpdateScopeReq" + - "uest\022\031\n\002id\030\001 \001(\tB\t\272H\006r\004\020\001\030dR\002id\022>\n\005scope" + - "\030\002 \001(\0132 .scalekit.v1.clients.UpdateScope" + - "B\006\272H\003\310\001\001R\005scope\"o\n\013UpdateScope\022*\n\013descri" + - "ption\030\001 \001(\tB\010\272H\005r\003\030\320\017R\013description\0224\n\007en" + - "abled\030\002 \001(\0132\032.google.protobuf.BoolValueR" + - "\007enabled\"G\n\023UpdateScopeResponse\0220\n\005scope" + - "\030\001 \001(\0132\032.scalekit.v1.clients.ScopeR\005scop" + - "e\"1\n\022DeleteScopeRequest\022\033\n\002id\030\001 \001(\tB\013\272H\010" + - "r\006:\004scp_R\002id\"\334\004\n\031GetConsentDetailsRespon" + - "se\022a\n\010resource\030\001 \001(\0132\035.scalekit.v1.clien" + - "ts.ResourceB&\222A#2!Details of the request" + - "ed resourceR\010resource\022[\n\004user\030\002 \001(\0132\031.sc" + - "alekit.v1.clients.UserB,\222A)2\'Details of " + - "the user who granted consentR\004user\022r\n\006cl" + - "ient\030\003 \001(\0132\".scalekit.v1.clients.Consent" + - "ClientB6\222A321Details of the client resou" + - "rce requesting consentR\006client\022\233\001\n\006scope" + - "s\030\004 \003(\0132!.scalekit.v1.clients.ConsentSco" + - "peB`\222A]2[List of scopes for which consen" + - "t was granted. Each scope includes its n" + - "ame and description.R\006scopes\022m\n\013applicat" + - "ion\030\005 \001(\0132 .scalekit.v1.clients.Applicat" + - "ionB)\222A&2$Details of the requested appli" + - "cationR\013application\"\272\005\n\rConsentClient\022R\n" + - "\004name\030\001 \001(\tB>\222A;2.Name of the client res" + - "ource requesting consentJ\t\"VS Code\"R\004nam" + - "e\022x\n\013privacy_uri\030\002 \001(\tBW\222AM2,Privacy pol" + - "icy URI of the client applicationJ\035\"http" + - "s://yourapp.com/privacy\"\272H\004r\002\030dR\nprivacy" + - "Uri\022q\n\007tos_uri\030\003 \001(\tBX\222AM2.Terms of serv" + - "ice URI of the client applicationJ\033\"http" + - "s://yourapp.com/terms\"\272H\005r\003\030\320\017R\006tosUri\022o" + - "\n\tclient_id\030\004 \001(\tBR\222AO2;Unique identifie" + - "r of the client resource requesting cons" + - "entJ\020\"m2m_1234567890\"R\010clientId\022\216\001\n\014meta" + - "data_uri\030\005 \001(\tBk\222Ah2AMetadata URI of the" + - " client application - applicable for CIM" + - "D onlyJ#\"https://example.com/metadata.js" + - "on\"R\013metadataUri\022f\n\010logo_uri\030\006 \001(\tBK\222AH2" + - "\"Logo URI of the client applicationJ\"\"ht" + - "tps://cdn.example.com/logo.png\"R\007logoUri" + - "\"\\\n\014ConsentScope\022 \n\004name\030\001 \001(\tB\014\272H\tr\004\020\001\030" + - "d\310\001\001R\004name\022*\n\013description\030\002 \001(\tB\010\272H\005r\003\030\320" + - "\017R\013description\"r\n\004User\022j\n\005email\030\001 \001(\tBT\222" + - "AQ28Email address of the user. Must be a" + - " valid email format.J\025alice.doe@example." + - "comR\005email\"\242\002\n\030RevokeUserConsentRequest\022" + - "\207\001\n\tclient_id\030\001 \001(\tBj\222AX2DUnique identif" + - "ier of the client resource for which to " + - "revoke consentJ\020\"m2m_1234567890\"\272H\014r\n\020\001\030" + - " :\004m2m_R\010clientId\022|\n\nconsent_id\030\002 \001(\tB]\222" + - "AG2/Unique identifier of the user consen" + - "t to revokeJ\024\"usrcnst_1234567890\"\272H\020r\016\020\001" + - "\030 :\010usrcnst_R\tconsentId\"\033\n\031RevokeUserCon" + - "sentResponse\"\237\001\n\037EnsureResourceConnectio" + - "nRequest\022|\n\013resource_id\030\001 \001(\tB[\222AO24Uniq" + - "ue identifier of the client resource to " + - "retrieveJ\027\"app_69388798466720005\"\272H\006r\004\020\001" + - "\030 R\nresourceId\"\324\001\n EnsureResourceConnect" + - "ionResponse\022\257\001\n\nconnection\030\001 \001(\0132\'.scale" + - "kit.v1.clients.ResourceConnectionBf\222A]2[" + - "Details of the connection resource. Cont" + - "ains configuration settings and status i" + - "nformation.\272H\003\310\001\001R\nconnection\"\260\007\n\022Resour" + - "ceConnection\022T\n\002id\030\001 \001(\tBD\222AA2,Unique id" + - "entifier of the connection resourceJ\021\"co" + - "nn_1234567890\"R\002id\022\241\001\n\004type\030\002 \001(\0162+.scal" + - "ekit.v1.clients.ResourceConnectionTypeB`" + - "\222A]2QType of connection. Determines the " + - "authentication method used for the conne" + - "ction.J\010\"CUSTOM\"R\004type\022\224\001\n\006status\030\003 \001(\tB" + - "|\222Ay2mCurrent status of the connection. " + - "Indicates whether the connection is acti" + - "ve, inactive, or in an error state.J\010\"AC" + - "TIVE\"R\006status\022\211\001\n\007enabled\030\004 \001(\010Bo\222Al2dIn" + - "dicates whether the connection is enable" + - "d. Disabled connections cannot be used f" + - "or authentication.J\004trueR\007enabled\022\347\001\n\010se" + - "ttings\030\005 \001(\0132\027.google.protobuf.StructB\261\001" + - "\222A\255\0012kConfiguration settings for the con" + - "nection. The structure of this field var" + - "ies based on the connection type.J>{\"api" + - "_key\": \"abcd1234\", \"endpoint\": \"https://" + - "api.example.com\"}R\010settings\022\222\001\n\010provider" + - "\030\006 \001(\tBv\222As2^The provider of the connect" + - "ion. Indicates the service or platform t" + - "hat manages the connection.J\021\"custom_pro" + - "vider\"R\010provider\"\334\001\n ResourceCustomConne" + - "ctionSettings\022\267\001\n\rauthorize_uri\030\001 \001(\tB\221\001" + - "\222A\203\0012[The URI where users are redirected" + - " to authorize the application. Must be a" + - " valid HTTPS URL.J$\"https://auth.example" + - ".com/authorize\"\272H\007r\005\020\001\210\001\001R\014authorizeUri*" + - "k\n\014ResourceType\022\035\n\031RESOURCE_TYPE_UNSPECI" + - "FIED\020\000\022\007\n\003WEB\020\001\022\n\n\006MOBILE\020\002\022\013\n\007DESKTOP\020\003" + - "\022\n\n\006SERVER\020\004\022\016\n\nMCP_SERVER\020\005*.\n\022ClientSe" + - "cretStatus\022\n\n\006ACTIVE\020\000\022\014\n\010INACTIVE\020\001*1\n\026" + - "ResourceConnectionType\022\013\n\007INVALID\020\000\022\n\n\006C" + - "USTOM\020\0012\271\212\001\n\rClientService\022\240\003\n\nListClien" + - "t\022\'.scalekit.v1.clients.ListClientsReque" + - "st\032(.scalekit.v1.clients.ListClientsResp" + - "onse\"\276\002\222A\216\002\n\010API Auth\022\020List API clients\032" + - "\220\001Retrieves a paginated list of API clie" + - "nt applications in the environment. Retu" + - "rns only environment-level clients, not " + - "resource-specific clients.J]\n\003200\022V\n&Lis" + - "t of clients returned successfully.\022,\n*\032" + - "(.scalekit.v1.clients.ListClientsRespons" + - "e\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\021\022\017/api/v1/cl" + - "ients\022\264\003\n\014CreateClient\022(.scalekit.v1.cli" + - "ents.CreateClientRequest\032).scalekit.v1.c" + - "lients.CreateClientResponse\"\316\002\222A\226\002\n\006Clie" + - "nt\022\rCreate Client\032\201\001Creates an OAuth cli" + - "ent with properties including post-login" + - " URIs, scopes, and custom claims. Requir" + - "ed fields: name, client_type.Jy\n\003200\022r\nA" + - "Client created successfully. Returns the" + - " created client resource.\022-\n+\032).scalekit" + - ".v1.clients.CreateClientResponse\202\265\030\002\030D\372\322" + - "\344\223\002\t\022\007PREVIEW\202\323\344\223\002\031\"\017/api/v1/clients:\006cl" + - "ient\022\320\004\n\tGetClient\022%.scalekit.v1.clients" + - ".GetClientRequest\032&.scalekit.v1.clients." + - "GetClientResponse\"\363\003\222A\267\003\n\016Client Configs" + - "\022\030Get Client Configuration\032\305\001Retrieves c" + - "omplete client configuration including s" + - "copes, custom claims, redirect URIs, and" + - " access token expiration time. Use this " + - "endpoint to view or verify client settin" + - "gs and security parametersJ\302\001\n\003200\022\272\001\n\213\001" + - "Client configuration retrieved successfu" + - "lly. Returns full client metadata includ" + - "ing scopes, audience, custom claims, and" + - " security settings.\022*\n(\032&.scalekit.v1.cl" + - "ients.GetClientResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PRE" + - "VIEW\202\323\344\223\002\035\022\033/api/v1/clients/{client_id}\022" + - "\303\005\n\014UpdateClient\022(.scalekit.v1.clients.U" + - "pdateClientRequest\032).scalekit.v1.clients" + - ".UpdateClientResponse\"\335\004\222A\231\004\n\016Client Con" + - "figs\022\033Update Client Configuration\032\260\002Upda" + - "tes the configuration settings for an M2" + - "M client. This endpoint allows you to mo" + - "dify client properties such as redirect " + - "URIs, scopes, audience, and custom claim" + - "s. Required fields include redirect_uris" + - " and default_redirect_uri. Note that cli" + - "ent_id and create_time are immutable and" + - " cannot be modified.J\266\001\n\003201\022\256\001\n}Client " + - "configuration updated successfully. Retu" + - "rns the updated client resource with new" + - " update_time and all current settings.\022-" + - "\n+\032).scalekit.v1.clients.UpdateClientRes" + - "ponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002%2\033/api/v" + - "1/clients/{client_id}:\006client\022\232\003\n\014Delete" + - "Client\022(.scalekit.v1.clients.DeleteClien" + - "tRequest\032\026.google.protobuf.Empty\"\307\002\222A\213\002\n" + - "\006Client\022\rDelete Client\032\262\001Permanently del" + - "etes a client and associated secrets. Th" + - "is operation cannot be undone. Supports " + - "WEB_APP, NTV, and SPA client types only." + - " Cannot delete default environment clien" + - "ts.J=\n\003200\0226\n4Client successfully delete" + - "d and no longer accessible\202\265\030\002\030D\372\322\344\223\002\t\022\007" + - "PREVIEW\202\323\344\223\002\035*\033/api/v1/clients/{client_i" + - "d}\022\244\005\n\022CreateClientSecret\022..scalekit.v1." + - "clients.CreateClientSecretRequest\032/.scal" + - "ekit.v1.clients.CreateClientSecretRespon" + - "se\"\254\004\222A\350\003\n\016Client Configs\022\024Create Client" + - " Secret\032\202\002Generates a new client secret " + - "for an API client. This endpoint creates" + - " a secure credential that can be used fo" + - "r OAuth 2.0 client credentials flow. The" + - " plain secret is only returned once duri" + - "ng creation and should be stored securel" + - "y by the client application.J\272\001\n\003201\022\262\001\n" + - "{Client secret created successfully. Ret" + - "urns the new secret ID and the plain sec" + - "ret value (only available at creation ti" + - "me).\0223\n1\032/.scalekit.v1.clients.CreateCli" + - "entSecretResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323" + - "\344\223\002%\"#/api/v1/clients/{client_id}/secret" + - "s\022\312\005\n\022UpdateClientSecret\022..scalekit.v1.c" + - "lients.UpdateClientSecretRequest\032/.scale" + - "kit.v1.clients.UpdateClientSecretRespons" + - "e\"\322\004\222A\277\003\n\016Client Configs\022\024Update Client " + - "Secret\032\375\001Updates the status of a client " + - "secret. This endpoint allows you to acti" + - "vate or deactivate a client secret. Use " + - "this to rotate secrets or revoke access " + - "for compromised credentials. The secret " + - "value itself cannot be modified - create" + - " a new secret instead.J\226\001\n\003200\022\216\001\nWClien" + - "t secret updated successfully. Returns t" + - "he updated secret with its current statu" + - "s.\0223\n1\032/.scalekit.v1.clients.UpdateClien" + - "tSecretResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223" + - "\002t\032//api/v1/clients/{client_id}/secrets/" + - "{secret_id}:\006secretZ92//api/v1/clients/{" + - "client_id}/secrets/{secret_id}:\006secret\022\343" + - "\003\n\022DeleteClientSecret\022..scalekit.v1.clie" + - "nts.DeleteClientSecretRequest\032\026.google.p" + - "rotobuf.Empty\"\204\003\222A\264\002\n\016Client Configs\022\024De" + - "lete Client Secret\032\305\001Permanently deletes" + - " a client secret. This operation cannot " + - "be undone. Use this endpoint to remove c" + - "ompromised or unused secrets. After dele" + - "tion, the secret can no longer be used f" + - "or authentication.JD\n\003200\022=\n;Client secr" + - "et successfully deleted and no longer ac" + - "cessible\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0021*//ap" + - "i/v1/clients/{client_id}/secrets/{secret" + - "_id}\022\222\005\n\030CreateOrganizationClient\0224.scal" + + "ccess token.J\0043600H\000R\021accessTokenExpiry\210" + + "\001\001\022g\n\006scopes\030\016 \003(\tBO\222AL2-List of scopes " + + "to be attached to this client.J\033[\"data:r" + + "ead\", \"data:write\"]R\006scopes\022\306\001\n\rcustom_c" + + "laims\030\017 \003(\0132 .scalekit.v1.clients.Custom" + + "ClaimB\177\222A|2zCustom claims to be included" + + " in access tokens. Please keep this to t" + + "he essentials as this increases the size" + + " of the token.R\014customClaims\022\217\001\n\034disallo" + + "w_scalekit_api_access\030\020 \001(\010BN\222AK2CIf tru" + + "e, the client will be restricted from ac" + + "cessing Scalekit APIsJ\004trueR\031disallowSca" + + "lekitApiAccess\022\252\001\n\013grant_types\030\021 \003(\tB\210\001\222" + + "A\204\0012CList of OAuth 2.0 grant types that " + + "the client is authorized to use.J=[\"auth" + + "orization_code\", \"refresh_token\", \"clien" + + "t_credentials\"]R\ngrantTypes\022a\n\013client_ty" + + "pe\030\022 \001(\tB@\222A=24Type of client. Valid val" + + "ues: ENV, WEB_APP, NTV, SPAJ\005\"ENV\"R\nclie" + + "ntType\022\305\001\n\014enforce_pkce\030\023 \001(\010B\241\001\222A\235\0012\224\001W" + + "hether Proof Key for Code Exchange (PKCE" + + ") is required. PKCE mitigates authorizat" + + "ion code interception attacks. Defaults " + + "to true for public clients.J\004trueR\013enfor" + + "cePkce:\263\001\222A\257\001\n\254\001*\022Client Application2\225\001C" + + "onfiguration for an API client applicati" + + "on registered with Scalekit. Contains au" + + "thentication settings, redirect URIs, an" + + "d other security parameters.B\026\n\024_access_" + + "token_expiryJ\004\010\005\020\006J\004\010\006\020\007R\rredirect_urisR" + + "\024default_redirect_uri\"\301\023\n\014ClientSecret\022\325" + + "\001\n\002id\030\001 \001(\tB\304\001\222A\300\0012\245\001The unique identifi" + + "er for this client secret. This ID is us" + + "ed to reference the secret in API reques" + + "ts for management operations like updati" + + "ng or deleting the secret.J\026\"sec_1234abc" + + "d5678efgh\"R\002id\022\321\001\n\013create_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\223\001\222A\217\0012qThe tim" + + "estamp when this secret was created. Thi" + + "s field is automatically set by the serv" + + "er and cannot be modified.J\032\"2024-01-05T" + + "14:48:00.000Z\"R\ncreateTime\022\206\002\n\013update_ti" + + "me\030\003 \001(\0132\032.google.protobuf.TimestampB\310\001\222" + + "A\304\0012\245\001The timestamp when this secret was" + + " last updated. This field is automatical" + + "ly updated by the server when the secret" + + "\'s status changes or other properties ar" + + "e modified.J\032\"2024-01-10T09:12:00.000Z\"R" + + "\nupdateTime\022\202\002\n\rsecret_suffix\030\004 \001(\tB\334\001\222A" + + "\330\0012\315\001A suffix that helps identify this s" + + "ecret. This is the last few characters o" + + "f the full secret value but is not suffi" + + "cient for authentication. Helps identify" + + " which secret is being used in logs and " + + "debugging.J\006\"xyzw\"R\014secretSuffix\022\311\001\n\ncre" + + "ated_by\030\005 \001(\tB\244\001\222A\240\0012\217\001The identifier of" + + " the user or system that created this se" + + "cret. This field helps track who created" + + " the secret for audit and compliance pur" + + "poses.J\014\"user_12345\"H\000R\tcreatedBy\210\001\001\022\206\002\n" + + "\006status\030\006 \001(\0162\'.scalekit.v1.clients.Clie" + + "ntSecretStatusB\304\001\222A\300\0012\261\001The current stat" + + "us of this secret. A secret must be ACTI" + + "VE to be used for authentication. INACTI" + + "VE secrets cannot be used for authentica" + + "tion but are retained for audit purposes" + + ".J\n\"INACTIVE\"R\006status\022\214\002\n\013expire_time\030\007 " + + "\001(\0132\032.google.protobuf.TimestampB\316\001\222A\312\0012\253" + + "\001The timestamp when this secret will exp" + + "ire. After this time, the secret cannot " + + "be used for authentication regardless of" + + " its status. If not set, the secret does" + + " not expire.J\032\"2025-01-05T14:48:00.000Z\"" + + "R\nexpireTime\022\246\002\n\016last_used_time\030\010 \001(\0132\032." + + "google.protobuf.TimestampB\343\001\222A\337\0012\300\001The t" + + "imestamp when this secret was last used " + + "for authentication. This field helps tra" + + "ck secret usage for security monitoring " + + "and identifying unused secrets that may " + + "be candidates for rotation.J\032\"2024-02-15" + + "T10:30:00.000Z\"R\014lastUsedTime\022\263\002\n\014plain_" + + "secret\030\t \001(\tB\212\002\222A\206\0022\327\001The full plaintext" + + " secret value. This field is only popula" + + "ted when the secret is first created and" + + " is never stored by the server. It must " + + "be securely stored by the client applica" + + "tion as it cannot be retrieved again.J*\"" + + "sec_1234567890abcdefghijklmnopqrstuvwxyz" + + "\"H\001R\013plainSecret\210\001\001:\223\001\222A\217\001\n\214\001*\rClient Se" + + "cret2{A secure credential used for authe" + + "nticating an API client. Each client can" + + " have multiple secrets for key rotation " + + "purposes.B\r\n\013_created_byB\017\n\r_plain_secre" + + "t\"\270\002\n\005Scope\022\250\001\n\002id\030\001 \001(\tB\227\001\222A\212\0012tUnique " + + "identifier for the scope resource. Must " + + "be between 1 and 100 characters long and" + + " match the specified pattern.J\022\"scope_12" + + "34567890\"\272H\006r\004\020\001\030dR\002id\0226\n\004name\030\002 \001(\tB\"\272H" + + "\037r\032\020\001\030d2\024^[a-zA-Z0-9:]{1,64}$\310\001\001R\004name\022*" + + "\n\013description\030\003 \001(\tB\010\272H\005r\003\030\320\017R\013descripti" + + "on\022 \n\007enabled\030\004 \001(\010B\006\272H\003\310\001\001R\007enabled\"q\n\013" + + "CreateScope\0226\n\004name\030\001 \001(\tB\"\272H\037r\032\020\001\030d2\024^[" + + "a-zA-Z0-9:]{1,64}$\310\001\001R\004name\022*\n\013descripti" + + "on\030\002 \001(\tB\010\272H\005r\003\030\320\017R\013description\"\363\001\n\022Crea" + + "teScopeRequest\022>\n\005scope\030\001 \001(\0132 .scalekit" + + ".v1.clients.CreateScopeB\006\272H\003\310\001\001R\005scope\022\234" + + "\001\n\006env_id\030\002 \001(\tB\204\001\222Ax2dUnique identifier" + + " of the environment where the scope will" + + " be created. Must start with \'env_\' pref" + + "ix.J\020\"env_1234567890\"\272H\006r\004\020\000\030 R\005envId\"G\n" + + "\023CreateScopeResponse\0220\n\005scope\030\001 \001(\0132\032.sc" + + "alekit.v1.clients.ScopeR\005scope\"\252\001\n\021ListS" + + "copesRequest\022\224\001\n\006env_id\030\001 \001(\tB}\222Aq2]Uniq" + + "ue identifier of the environment for whi" + + "ch to list scopes. Must start with \'env_" + + "\' prefix.J\020\"env_1234567890\"\272H\006r\004\020\000\030 R\005en" + + "vId\"H\n\022ListScopesResponse\0222\n\006scopes\030\001 \003(" + + "\0132\032.scalekit.v1.clients.ScopeR\006scopes\"o\n" + + "\022UpdateScopeRequest\022\031\n\002id\030\001 \001(\tB\t\272H\006r\004\020\001", + "\030dR\002id\022>\n\005scope\030\002 \001(\0132 .scalekit.v1.clie" + + "nts.UpdateScopeB\006\272H\003\310\001\001R\005scope\"o\n\013Update" + + "Scope\022*\n\013description\030\001 \001(\tB\010\272H\005r\003\030\320\017R\013de" + + "scription\0224\n\007enabled\030\002 \001(\0132\032.google.prot" + + "obuf.BoolValueR\007enabled\"G\n\023UpdateScopeRe" + + "sponse\0220\n\005scope\030\001 \001(\0132\032.scalekit.v1.clie" + + "nts.ScopeR\005scope\"1\n\022DeleteScopeRequest\022\033" + + "\n\002id\030\001 \001(\tB\013\272H\010r\006:\004scp_R\002id\"\335\005\n\031GetConse" + + "ntDetailsResponse\022a\n\010resource\030\001 \001(\0132\035.sc" + + "alekit.v1.clients.ResourceB&\222A#2!Details" + + " of the requested resourceR\010resource\022[\n\004" + + "user\030\002 \001(\0132\031.scalekit.v1.clients.UserB,\222" + + "A)2\'Details of the user who granted cons" + + "entR\004user\022r\n\006client\030\003 \001(\0132\".scalekit.v1." + + "clients.ConsentClientB6\222A321Details of t" + + "he client resource requesting consentR\006c" + + "lient\022\233\001\n\006scopes\030\004 \003(\0132!.scalekit.v1.cli" + + "ents.ConsentScopeB`\222A]2[List of scopes f" + + "or which consent was granted. Each scope" + + " includes its name and description.R\006sco" + + "pes\022m\n\013application\030\005 \001(\0132 .scalekit.v1.c" + + "lients.ApplicationB)\222A&2$Details of the " + + "requested applicationR\013application\022\177\n\014or" + + "ganization\030\006 \001(\0132(.scalekit.v1.clients.C" + + "onsentOrganizationB1\222A.2,Organization co" + + "ntext for the consent screen.R\014organizat" + + "ion\"\367\002\n\023ConsentOrganization\022\231\001\n\021organiza" + + "tion_name\030\001 \001(\tBg\222Ad2UName of the organi" + + "zation the user is authenticating into. " + + "Omitted when not available.J\013\"Acme Corp\"" + + "H\000R\020organizationName\210\001\001\022\255\001\n\026organization" + + "_meta_name\030\002 \001(\tBw\222At2bEnvironment-level" + + " label for what an organization is calle" + + "d (e.g. Workspace, Team). Always present" + + ".J\016\"Organization\"R\024organizationMetaNameB" + + "\024\n\022_organization_name\"\272\005\n\rConsentClient\022" + + "R\n\004name\030\001 \001(\tB>\222A;2.Name of the client r" + + "esource requesting consentJ\t\"VS Code\"R\004n" + + "ame\022x\n\013privacy_uri\030\002 \001(\tBW\222AM2,Privacy p" + + "olicy URI of the client applicationJ\035\"ht" + + "tps://yourapp.com/privacy\"\272H\004r\002\030dR\npriva" + + "cyUri\022q\n\007tos_uri\030\003 \001(\tBX\222AM2.Terms of se" + + "rvice URI of the client applicationJ\033\"ht" + + "tps://yourapp.com/terms\"\272H\005r\003\030\320\017R\006tosUri" + + "\022o\n\tclient_id\030\004 \001(\tBR\222AO2;Unique identif" + + "ier of the client resource requesting co" + + "nsentJ\020\"m2m_1234567890\"R\010clientId\022\216\001\n\014me" + + "tadata_uri\030\005 \001(\tBk\222Ah2AMetadata URI of t" + + "he client application - applicable for C" + + "IMD onlyJ#\"https://example.com/metadata." + + "json\"R\013metadataUri\022f\n\010logo_uri\030\006 \001(\tBK\222A" + + "H2\"Logo URI of the client applicationJ\"\"" + + "https://cdn.example.com/logo.png\"R\007logoU" + + "ri\"\\\n\014ConsentScope\022 \n\004name\030\001 \001(\tB\014\272H\tr\004\020" + + "\001\030d\310\001\001R\004name\022*\n\013description\030\002 \001(\tB\010\272H\005r\003" + + "\030\320\017R\013description\"r\n\004User\022j\n\005email\030\001 \001(\tB" + + "T\222AQ28Email address of the user. Must be" + + " a valid email format.J\025alice.doe@exampl" + + "e.comR\005email\"\242\002\n\030RevokeUserConsentReques" + + "t\022\207\001\n\tclient_id\030\001 \001(\tBj\222AX2DUnique ident" + + "ifier of the client resource for which t" + + "o revoke consentJ\020\"m2m_1234567890\"\272H\014r\n\020" + + "\001\030 :\004m2m_R\010clientId\022|\n\nconsent_id\030\002 \001(\tB" + + "]\222AG2/Unique identifier of the user cons" + + "ent to revokeJ\024\"usrcnst_1234567890\"\272H\020r\016" + + "\020\001\030 :\010usrcnst_R\tconsentId\"\033\n\031RevokeUserC" + + "onsentResponse\"\237\001\n\037EnsureResourceConnect" + + "ionRequest\022|\n\013resource_id\030\001 \001(\tB[\222AO24Un" + + "ique identifier of the client resource t" + + "o retrieveJ\027\"app_69388798466720005\"\272H\006r\004" + + "\020\001\030 R\nresourceId\"\324\001\n EnsureResourceConne" + + "ctionResponse\022\257\001\n\nconnection\030\001 \001(\0132\'.sca" + + "lekit.v1.clients.ResourceConnectionBf\222A]" + + "2[Details of the connection resource. Co" + + "ntains configuration settings and status" + + " information.\272H\003\310\001\001R\nconnection\"\260\007\n\022Reso" + + "urceConnection\022T\n\002id\030\001 \001(\tBD\222AA2,Unique " + + "identifier of the connection resourceJ\021\"" + + "conn_1234567890\"R\002id\022\241\001\n\004type\030\002 \001(\0162+.sc" + + "alekit.v1.clients.ResourceConnectionType" + + "B`\222A]2QType of connection. Determines th" + + "e authentication method used for the con" + + "nection.J\010\"CUSTOM\"R\004type\022\224\001\n\006status\030\003 \001(" + + "\tB|\222Ay2mCurrent status of the connection" + + ". Indicates whether the connection is ac" + + "tive, inactive, or in an error state.J\010\"" + + "ACTIVE\"R\006status\022\211\001\n\007enabled\030\004 \001(\010Bo\222Al2d" + + "Indicates whether the connection is enab" + + "led. Disabled connections cannot be used" + + " for authentication.J\004trueR\007enabled\022\347\001\n\010" + + "settings\030\005 \001(\0132\027.google.protobuf.StructB" + + "\261\001\222A\255\0012kConfiguration settings for the c" + + "onnection. The structure of this field v" + + "aries based on the connection type.J>{\"a" + + "pi_key\": \"abcd1234\", \"endpoint\": \"https:" + + "//api.example.com\"}R\010settings\022\222\001\n\010provid" + + "er\030\006 \001(\tBv\222As2^The provider of the conne" + + "ction. Indicates the service or platform" + + " that manages the connection.J\021\"custom_p" + + "rovider\"R\010provider\"\334\001\n ResourceCustomCon" + + "nectionSettings\022\267\001\n\rauthorize_uri\030\001 \001(\tB" + + "\221\001\222A\203\0012[The URI where users are redirect" + + "ed to authorize the application. Must be" + + " a valid HTTPS URL.J$\"https://auth.examp" + + "le.com/authorize\"\272H\007r\005\020\001\210\001\001R\014authorizeUr" + + "i*k\n\014ResourceType\022\035\n\031RESOURCE_TYPE_UNSPE" + + "CIFIED\020\000\022\007\n\003WEB\020\001\022\n\n\006MOBILE\020\002\022\013\n\007DESKTOP" + + "\020\003\022\n\n\006SERVER\020\004\022\016\n\nMCP_SERVER\020\005*.\n\022Client" + + "SecretStatus\022\n\n\006ACTIVE\020\000\022\014\n\010INACTIVE\020\001*1" + + "\n\026ResourceConnectionType\022\013\n\007INVALID\020\000\022\n\n" + + "\006CUSTOM\020\0012\303\212\001\n\rClientService\022\240\003\n\nListCli" + + "ent\022\'.scalekit.v1.clients.ListClientsReq" + + "uest\032(.scalekit.v1.clients.ListClientsRe" + + "sponse\"\276\002\222A\216\002\n\010API Auth\022\020List API client" + + "s\032\220\001Retrieves a paginated list of API cl" + + "ient applications in the environment. Re" + + "turns only environment-level clients, no" + + "t resource-specific clients.J]\n\003200\022V\n&L" + + "ist of clients returned successfully.\022,\n" + + "*\032(.scalekit.v1.clients.ListClientsRespo" + + "nse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\021\022\017/api/v1/" + + "clients\022\264\003\n\014CreateClient\022(.scalekit.v1.c" + + "lients.CreateClientRequest\032).scalekit.v1" + + ".clients.CreateClientResponse\"\316\002\222A\226\002\n\006Cl" + + "ient\022\rCreate Client\032\201\001Creates an OAuth c" + + "lient with properties including post-log" + + "in URIs, scopes, and custom claims. Requ" + + "ired fields: name, client_type.Jy\n\003200\022r" + + "\nAClient created successfully. Returns t" + + "he created client resource.\022-\n+\032).scalek" + + "it.v1.clients.CreateClientResponse\202\265\030\002\030D" + + "\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\031\"\017/api/v1/clients:\006" + + "client\022\320\004\n\tGetClient\022%.scalekit.v1.clien" + + "ts.GetClientRequest\032&.scalekit.v1.client" + + "s.GetClientResponse\"\363\003\222A\267\003\n\016Client Confi" + + "gs\022\030Get Client Configuration\032\305\001Retrieves" + + " complete client configuration including" + + " scopes, custom claims, redirect URIs, a" + + "nd access token expiration time. Use thi" + + "s endpoint to view or verify client sett" + + "ings and security parametersJ\302\001\n\003200\022\272\001\n" + + "\213\001Client configuration retrieved success" + + "fully. Returns full client metadata incl" + + "uding scopes, audience, custom claims, a" + + "nd security settings.\022*\n(\032&.scalekit.v1." + + "clients.GetClientResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007P" + + "REVIEW\202\323\344\223\002\035\022\033/api/v1/clients/{client_id" + + "}\022\315\005\n\014UpdateClient\022(.scalekit.v1.clients" + + ".UpdateClientRequest\032).scalekit.v1.clien" + + "ts.UpdateClientResponse\"\347\004\222A\243\004\n\016Client C" + + "onfigs\022\033Update Client Configuration\032\272\002Up" + + "dates the configuration settings for a c" + + "lient. Only fields included in the reque" + + "st are modified. Updatable fields includ" + + "e post_login_uris, post_logout_redirect_" + + "uris, back_channel_logout_uris, initiate" + + "_login_uri, scopes, audience, and custom" + + " claims. client_id and create_time are i" + + "mmutable and cannot be modified.J\266\001\n\003201" + + "\022\256\001\n}Client configuration updated succes" + + "sfully. Returns the updated client resou" + + "rce with new update_time and all current" + + " settings.\022-\n+\032).scalekit.v1.clients.Upd" + + "ateClientResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323" + + "\344\223\002%2\033/api/v1/clients/{client_id}:\006clien" + + "t\022\232\003\n\014DeleteClient\022(.scalekit.v1.clients" + + ".DeleteClientRequest\032\026.google.protobuf.E" + + "mpty\"\307\002\222A\213\002\n\006Client\022\rDelete Client\032\262\001Per" + + "manently deletes a client and associated" + + " secrets. This operation cannot be undon" + + "e. Supports WEB_APP, NTV, and SPA client" + + " types only. Cannot delete default envir" + + "onment clients.J=\n\003200\0226\n4Client success" + + "fully deleted and no longer accessible\202\265" + + "\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\035*\033/api/v1/clien" + + "ts/{client_id}\022\244\005\n\022CreateClientSecret\022.." + + "scalekit.v1.clients.CreateClientSecretRe" + + "quest\032/.scalekit.v1.clients.CreateClient" + + "SecretResponse\"\254\004\222A\350\003\n\016Client Configs\022\024C" + + "reate Client Secret\032\202\002Generates a new cl" + + "ient secret for an API client. This endp" + + "oint creates a secure credential that ca" + + "n be used for OAuth 2.0 client credentia" + + "ls flow. The plain secret is only return" + + "ed once during creation and should be st" + + "ored securely by the client application." + + "J\272\001\n\003201\022\262\001\n{Client secret created succe" + + "ssfully. Returns the new secret ID and t" + + "he plain secret value (only available at" + + " creation time).\0223\n1\032/.scalekit.v1.clien" + + "ts.CreateClientSecretResponse\202\265\030\002\030D\372\322\344\223\002" + + "\t\022\007PREVIEW\202\323\344\223\002%\"#/api/v1/clients/{clien" + + "t_id}/secrets\022\312\005\n\022UpdateClientSecret\022..s" + + "calekit.v1.clients.UpdateClientSecretReq" + + "uest\032/.scalekit.v1.clients.UpdateClientS" + + "ecretResponse\"\322\004\222A\277\003\n\016Client Configs\022\024Up" + + "date Client Secret\032\375\001Updates the status " + + "of a client secret. This endpoint allows" + + " you to activate or deactivate a client " + + "secret. Use this to rotate secrets or re" + + "voke access for compromised credentials." + + " The secret value itself cannot be modif" + + "ied - create a new secret instead.J\226\001\n\0032" + + "00\022\216\001\nWClient secret updated successfull" + + "y. Returns the updated secret with its c" + + "urrent status.\0223\n1\032/.scalekit.v1.clients" + + ".UpdateClientSecretResponse\202\265\030\002\030D\372\322\344\223\002\t\022" + + "\007PREVIEW\202\323\344\223\002t\032//api/v1/clients/{client_" + + "id}/secrets/{secret_id}:\006secretZ92//api/" + + "v1/clients/{client_id}/secrets/{secret_i" + + "d}:\006secret\022\343\003\n\022DeleteClientSecret\022..scal" + + "ekit.v1.clients.DeleteClientSecretReques" + + "t\032\026.google.protobuf.Empty\"\204\003\222A\264\002\n\016Client" + + " Configs\022\024Delete Client Secret\032\305\001Permane" + + "ntly deletes a client secret. This opera" + + "tion cannot be undone. Use this endpoint" + + " to remove compromised or unused secrets" + + ". After deletion, the secret can no long" + + "er be used for authentication.JD\n\003200\022=\n" + + ";Client secret successfully deleted and " + + "no longer accessible\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIE" + + "W\202\323\344\223\0021*//api/v1/clients/{client_id}/sec" + + "rets/{secret_id}\022\222\005\n\030CreateOrganizationC" + + "lient\0224.scalekit.v1.clients.CreateOrgani" + + "zationClientRequest\0325.scalekit.v1.client" + + "s.CreateOrganizationClientResponse\"\210\004\222A\277" + + "\003\n\010API Auth\022\036Create organization API cli" + + "ent\032rCreates a new API client for an org" + + "anization. Returns the client details an" + + "d a plain secret (available only once).J" + + "\236\002\n\003201\022\226\002\n\330\001API client created successf" + + "ully. Returns the client ID and plain se" + + "cret (only available at creation time). " + + "The client can be configured with scopes" + + ", audience values, and custom claims for" + + " fine-grained access control.\0229\n7\0325.scal" + "ekit.v1.clients.CreateOrganizationClient" + - "Request\0325.scalekit.v1.clients.CreateOrga" + - "nizationClientResponse\"\210\004\222A\277\003\n\010API Auth\022" + - "\036Create organization API client\032rCreates" + - " a new API client for an organization. R" + - "eturns the client details and a plain se" + - "cret (available only once).J\236\002\n\003201\022\226\002\n\330" + - "\001API client created successfully. Return" + - "s the client ID and plain secret (only a" + - "vailable at creation time). The client c" + - "an be configured with scopes, audience v" + - "alues, and custom claims for fine-graine" + - "d access control.\0229\n7\0325.scalekit.v1.clie" + - "nts.CreateOrganizationClientResponse\202\265\030\002" + - "\030D\202\323\344\223\0029\"//api/v1/organizations/{organiz" + - "ation_id}/clients:\006client\022\265\004\n\025GetOrganiz" + - "ationClient\0221.scalekit.v1.clients.GetOrg" + - "anizationClientRequest\0322.scalekit.v1.cli" + - "ents.GetOrganizationClientResponse\"\264\003\222A\347" + - "\002\n\010API Auth\022\033Get organization API client" + - "\032>Retrieves details of a specific API cl" + - "ient in an organization.J\375\001\n\003200\022\365\001\n\272\001Re" + - "turns the complete API client configurat" + - "ion, including all current settings and " + - "a list of active secrets. Note that secr" + - "et values are not included in the respon" + - "se for security reasons.\0226\n4\0322.scalekit." + - "v1.clients.GetOrganizationClientResponse" + - "\202\265\030\002\030D\202\323\344\223\002=\022;/api/v1/organizations/{org" + - "anization_id}/clients/{client_id}\022\211\005\n\036Cr" + - "eateOrganizationClientSecret\022:.scalekit." + - "v1.clients.CreateOrganizationClientSecre" + - "tRequest\032;.scalekit.v1.clients.CreateOrg" + - "anizationClientSecretResponse\"\355\003\222A\230\003\n\010AP" + - "I Auth\022%Create organization API client s" + - "ecret\032dCreates a new secret for an organ" + - "ization API client. Returns the plain se" + - "cret (available only once).J\376\001\n\003201\022\366\001\n\262" + - "\001Client secret created successfully. Ret" + - "urns the new secret ID and the plain sec" + - "ret value (only available at creation ti" + - "me). The secret can be used immediately " + - "for authentication.\022?\n=\032;.scalekit.v1.cl" + - "ients.CreateOrganizationClientSecretResp" + - "onse\202\265\030\002\030D\202\323\344\223\002E\"C/api/v1/organizations/" + - "{organization_id}/clients/{client_id}/se" + - "crets\022\257\003\n\036DeleteOrganizationClientSecret" + - "\022:.scalekit.v1.clients.DeleteOrganizatio" + - "nClientSecretRequest\032\026.google.protobuf.E" + - "mpty\"\270\002\222A\327\001\n\010API Auth\022%Delete organizati" + - "on API client secret\032^Permanently delete" + - "s a secret from an organization API clie" + - "nt. This operation cannot be undone.JD\n\003" + - "200\022=\n;Client secret successfully delete" + - "d and no longer accessible\202\265\030\002\030D\202\323\344\223\002Q*O" + - "/api/v1/organizations/{organization_id}/" + - "clients/{client_id}/secrets/{secret_id}\022" + - "\302\004\n\030UpdateOrganizationClient\0224.scalekit." + - "v1.clients.UpdateOrganizationClientReque" + - "st\0325.scalekit.v1.clients.UpdateOrganizat" + - "ionClientResponse\"\270\003\222A\343\002\n\010API Auth\022\036Upda" + - "te organization API client\032PUpdates an e" + - "xisting organization API client. Only sp" + - "ecified fields are modified.J\344\001\n\003200\022\334\001\n" + - "\236\001Returns the updated organization API c" + - "lient with all current details reflected" + - " in the response, including modified sco" + - "pes, audience values, and custom claims." + - "\0229\n7\0325.scalekit.v1.clients.UpdateOrganiz" + - "ationClientResponse\202\265\030\002\030D\202\323\344\223\002E2;/api/v1" + - "/organizations/{organization_id}/clients" + - "/{client_id}:\006client\022\243\004\n\030DeleteOrganizat" + - "ionClient\0224.scalekit.v1.clients.DeleteOr" + - "ganizationClientRequest\032\026.google.protobu" + - "f.Empty\"\270\003\222A\353\002\n\010API Auth\022\036Delete organiz" + - "ation API client\032\356\001Permanently deletes a" + - "n API client from an organization. This " + - "operation cannot be undone and will revo" + - "ke all access for the client. All associ" + - "ated secrets will also be invalidated. U" + - "se this endpoint to remove unused or com" + - "promised clients.JN\n\003200\022G\nEOrganization" + - " API client successfully deleted and no " + - "longer accessible\202\265\030\002\030D\202\323\344\223\002=*;/api/v1/o" + - "rganizations/{organization_id}/clients/{" + - "client_id}\022\350\004\n\027ListOrganizationClients\0223" + - ".scalekit.v1.clients.ListOrganizationCli" + - "entsRequest\0324.scalekit.v1.clients.ListOr" + - "ganizationClientsResponse\"\341\003\222A\240\003\n\010API Au" + - "th\022\035List organization API clients\032\271\001Retr" + - "ieves a paginated list of API clients fo" + - "r a specific organization. Returns clien" + - "t details including metadata, scopes, an" + - "d secret information (without exposing a" + - "ctual secret values).J\270\001\n\003200\022\260\001\ntList o" + - "f organization API clients returned succ" + - "essfully. Each client includes its confi" + - "guration details and metadata.\0228\n6\0324.sca" + - "lekit.v1.clients.ListOrganizationClients" + - "Response\202\265\030\002\030D\202\323\344\223\0021\022//api/v1/organizati" + - "ons/{organization_id}/clients\022\225\003\n\016Create" + - "Resource\022*.scalekit.v1.clients.CreateRes" + - "ourceRequest\032+.scalekit.v1.clients.Creat" + - "eResourceResponse\"\251\002\222A\355\001\n\010API Auth\022\017Crea" + - "te Resource\032XCreates a new client resour" + - "ce. The response includes the resource I" + - "D and other metadata.Jv\n\003201\022o\nResour" + - "ce details retrieved successfully. Retur" + - "ns the resource.\022,\n*\032(.scalekit.v1.clien" + - "ts.GetResourceResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREV" + - "IEW\202\323\344\223\002!\022\037/api/v1/resources/{resource_i" + - "d}\022\323\002\n\rListResources\022).scalekit.v1.clien" + - "ts.ListResourcesRequest\032*.scalekit.v1.cl" + - "ients.ListResourcesResponse\"\352\001\222A\270\001\n\010API " + - "Auth\022\021List applications\0326Retrieves a pag" + - "inated list of API client applications.J" + - "a\n\003200\022Z\n(List of resources returned suc" + - "cessfully.\022.\n,\032*.scalekit.v1.clients.Lis" + - "tResourcesResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202" + - "\323\344\223\002\023\022\021/api/v1/resources\022\223\003\n\016UpdateResou" + - "rce\022*.scalekit.v1.clients.UpdateResource" + - "Request\032+.scalekit.v1.clients.UpdateReso" + - "urceResponse\"\247\002\222A\335\001\n\010API Auth\022\017Update Re" + - "source\032HUpdates an existing client resou" + - "rce. Only specified fields are modified." + - "Jv\n\003200\022o\nResource details retrieved succ" + - "essfully. Returns the resource.\022,\n*\032(.sc" + - "alekit.v1.clients.GetResourceResponse\202\265\030" + - "\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0021\032//api/v1/resour" + - "ces/{resource_id}/provider:delete\022\365\003\n\024Cr" + - "eateResourceClient\0220.scalekit.v1.clients", - ".CreateResourceClientRequest\0321.scalekit." + - "v1.clients.CreateResourceClientResponse\"" + - "\367\002\222A\247\002\n\010API Auth\022\026Create Resource Client" + - "\032pCreates a new API client under the spe" + - "cified resource. Returns client details " + - "and the plain secret (shown once).J\220\001\n\0032" + - "01\022\210\001\nOClient created successfully. Retu" + - "rns the client configuration and plain s" + - "ecret.\0225\n3\0321.scalekit.v1.clients.CreateR" + - "esourceClientResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVI" + - "EW\202\323\344\223\0021\"\'/api/v1/resources/{resource_id" + - "}/clients:\006client\022\317\003\n\024UpdateResourceClie" + - "nt\0220.scalekit.v1.clients.UpdateResourceC" + - "lientRequest\0321.scalekit.v1.clients.Updat" + - "eResourceClientResponse\"\321\002\222A\365\001\n\010API Auth" + - "\022\026Update Resource Client\032HUpdates the co" + - "nfiguration of an API client under the s" + - "pecified resource.J\206\001\n\003200\022\177\nFClient upd" + - "ated successfully. Returns the updated c" + - "lient configuration.\0225\n3\0321.scalekit.v1.c" + - "lients.UpdateResourceClientResponse\202\265\030\002\030" + - "D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002=23/api/v1/resource" + - "s/{resource_id}/clients/{client_id}:\006cli" + - "ent\022\316\003\n\021GetResourceClient\022-.scalekit.v1." + - "clients.GetResourceClientRequest\032..scale" + + "Response\202\265\030\002\030D\202\323\344\223\0029\"//api/v1/organizati" + + "ons/{organization_id}/clients:\006client\022\265\004" + + "\n\025GetOrganizationClient\0221.scalekit.v1.cl" + + "ients.GetOrganizationClientRequest\0322.sca" + + "lekit.v1.clients.GetOrganizationClientRe" + + "sponse\"\264\003\222A\347\002\n\010API Auth\022\033Get organizatio" + + "n API client\032>Retrieves details of a spe" + + "cific API client in an organization.J\375\001\n" + + "\003200\022\365\001\n\272\001Returns the complete API clien" + + "t configuration, including all current s" + + "ettings and a list of active secrets. No" + + "te that secret values are not included i" + + "n the response for security reasons.\0226\n4" + + "\0322.scalekit.v1.clients.GetOrganizationCl" + + "ientResponse\202\265\030\002\030D\202\323\344\223\002=\022;/api/v1/organi" + + "zations/{organization_id}/clients/{clien" + + "t_id}\022\211\005\n\036CreateOrganizationClientSecret" + + "\022:.scalekit.v1.clients.CreateOrganizatio" + + "nClientSecretRequest\032;.scalekit.v1.clien" + + "ts.CreateOrganizationClientSecretRespons" + + "e\"\355\003\222A\230\003\n\010API Auth\022%Create organization " + + "API client secret\032dCreates a new secret " + + "for an organization API client. Returns " + + "the plain secret (available only once).J" + + "\376\001\n\003201\022\366\001\n\262\001Client secret created succe" + + "ssfully. Returns the new secret ID and t" + + "he plain secret value (only available at" + + " creation time). The secret can be used " + + "immediately for authentication.\022?\n=\032;.sc" + + "alekit.v1.clients.CreateOrganizationClie" + + "ntSecretResponse\202\265\030\002\030D\202\323\344\223\002E\"C/api/v1/or" + + "ganizations/{organization_id}/clients/{c" + + "lient_id}/secrets\022\257\003\n\036DeleteOrganization" + + "ClientSecret\022:.scalekit.v1.clients.Delet" + + "eOrganizationClientSecretRequest\032\026.googl" + + "e.protobuf.Empty\"\270\002\222A\327\001\n\010API Auth\022%Delet" + + "e organization API client secret\032^Perman" + + "ently deletes a secret from an organizat" + + "ion API client. This operation cannot be" + + " undone.JD\n\003200\022=\n;Client secret success" + + "fully deleted and no longer accessible\202\265" + + "\030\002\030D\202\323\344\223\002Q*O/api/v1/organizations/{organ" + + "ization_id}/clients/{client_id}/secrets/" + + "{secret_id}\022\302\004\n\030UpdateOrganizationClient" + + "\0224.scalekit.v1.clients.UpdateOrganizatio" + + "nClientRequest\0325.scalekit.v1.clients.Upd" + + "ateOrganizationClientResponse\"\270\003\222A\343\002\n\010AP" + + "I Auth\022\036Update organization API client\032P" + + "Updates an existing organization API cli" + + "ent. Only specified fields are modified." + + "J\344\001\n\003200\022\334\001\n\236\001Returns the updated organi" + + "zation API client with all current detai" + + "ls reflected in the response, including " + + "modified scopes, audience values, and cu" + + "stom claims.\0229\n7\0325.scalekit.v1.clients.U" + + "pdateOrganizationClientResponse\202\265\030\002\030D\202\323\344" + + "\223\002E2;/api/v1/organizations/{organization" + + "_id}/clients/{client_id}:\006client\022\243\004\n\030Del" + + "eteOrganizationClient\0224.scalekit.v1.clie" + + "nts.DeleteOrganizationClientRequest\032\026.go" + + "ogle.protobuf.Empty\"\270\003\222A\353\002\n\010API Auth\022\036De" + + "lete organization API client\032\356\001Permanent" + + "ly deletes an API client from an organiz" + + "ation. This operation cannot be undone a" + + "nd will revoke all access for the client" + + ". All associated secrets will also be in" + + "validated. Use this endpoint to remove u" + + "nused or compromised clients.JN\n\003200\022G\nE" + + "Organization API client successfully del" + + "eted and no longer accessible\202\265\030\002\030D\202\323\344\223\002" + + "=*;/api/v1/organizations/{organization_i" + + "d}/clients/{client_id}\022\350\004\n\027ListOrganizat" + + "ionClients\0223.scalekit.v1.clients.ListOrg" + + "anizationClientsRequest\0324.scalekit.v1.cl" + + "ients.ListOrganizationClientsResponse\"\341\003" + + "\222A\240\003\n\010API Auth\022\035List organization API cl" + + "ients\032\271\001Retrieves a paginated list of AP" + + "I clients for a specific organization. R" + + "eturns client details including metadata" + + ", scopes, and secret information (withou" + + "t exposing actual secret values).J\270\001\n\00320" + + "0\022\260\001\ntList of organization API clients r" + + "eturned successfully. Each client includ" + + "es its configuration details and metadat" + + "a.\0228\n6\0324.scalekit.v1.clients.ListOrganiz" + + "ationClientsResponse\202\265\030\002\030D\202\323\344\223\0021\022//api/v" + + "1/organizations/{organization_id}/client" + + "s\022\225\003\n\016CreateResource\022*.scalekit.v1.clien" + + "ts.CreateResourceRequest\032+.scalekit.v1.c" + + "lients.CreateResourceResponse\"\251\002\222A\355\001\n\010AP" + + "I Auth\022\017Create Resource\032XCreates a new c" + + "lient resource. The response includes th" + + "e resource ID and other metadata.Jv\n\003201" + + "\022o\nResource details retrieved success" + + "fully. Returns the resource.\022,\n*\032(.scale" + + "kit.v1.clients.GetResourceResponse\202\265\030\002\030D" + + "\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002!\022\037/api/v1/resources" + + "/{resource_id}\022\323\002\n\rListResources\022).scale" + + "kit.v1.clients.ListResourcesRequest\032*.sc" + + "alekit.v1.clients.ListResourcesResponse\"" + + "\352\001\222A\270\001\n\010API Auth\022\021List applications\0326Ret" + + "rieves a paginated list of API client ap" + + "plications.Ja\n\003200\022Z\n(List of resources " + + "returned successfully.\022.\n,\032*.scalekit.v1" + + ".clients.ListResourcesResponse\202\265\030\002\030D\372\322\344\223" + + "\002\t\022\007PREVIEW\202\323\344\223\002\023\022\021/api/v1/resources\022\223\003\n" + + "\016UpdateResource\022*.scalekit.v1.clients.Up" + + "dateResourceRequest\032+.scalekit.v1.client" + + "s.UpdateResourceResponse\"\247\002\222A\335\001\n\010API Aut" + + "h\022\017Update Resource\032HUpdates an existing " + + "client resource. Only specified fields a" + + "re modified.Jv\n\003200\022o\nResource details re" + + "trieved successfully. Returns the resour" + + "ce.\022,\n*\032(.scalekit.v1.clients.GetResourc" + + "eResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0021\032//a" + + "pi/v1/resources/{resource_id}/provider:d" + + "elete\022\365\003\n\024CreateResourceClient\0220.scaleki" + + "t.v1.clients.CreateResourceClientRequest" + + "\0321.scalekit.v1.clients.CreateResourceCli" + + "entResponse\"\367\002\222A\247\002\n\010API Auth\022\026Create Res" + + "ource Client\032pCreates a new API client u" + + "nder the specified resource. Returns cli" + + "ent details and the plain secret (shown " + + "once).J\220\001\n\003201\022\210\001\nOClient created succes" + + "sfully. Returns the client configuration" + + " and plain secret.\0225\n3\0321.scalekit.v1.cli" + + "ents.CreateResourceClientResponse\202\265\030\002\030D\372" + + "\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0021\"\'/api/v1/resources/" + + "{resource_id}/clients:\006client\022\317\003\n\024Update" + + "ResourceClient\0220.scalekit.v1.clients.Upd" + + "ateResourceClientRequest\0321.scalekit.v1.c" + + "lients.UpdateResourceClientResponse\"\321\002\222A" + + "\365\001\n\010API Auth\022\026Update Resource Client\032HUp", + "dates the configuration of an API client" + + " under the specified resource.J\206\001\n\003200\022\177" + + "\nFClient updated successfully. Returns t" + + "he updated client configuration.\0225\n3\0321.s" + + "calekit.v1.clients.UpdateResourceClientR" + + "esponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002=23/api" + + "/v1/resources/{resource_id}/clients/{cli" + + "ent_id}:\006client\022\316\003\n\021GetResourceClient\022-." + + "scalekit.v1.clients.GetResourceClientReq" + + "uest\032..scalekit.v1.clients.GetResourceCl" + + "ientResponse\"\331\002\222A\205\002\n\010API Auth\022\027Get Resou" + + "rce API Client\032JRetrieves details of a s" + + "pecific API client associated with an ap" + + "plication.J\223\001\n\003200\022\213\001\nUClient details re" + + "trieved successfully. Returns the resour" + + "ce and client configuration.\0222\n0\032..scale" + "kit.v1.clients.GetResourceClientResponse" + - "\"\331\002\222A\205\002\n\010API Auth\022\027Get Resource API Clie" + - "nt\032JRetrieves details of a specific API " + - "client associated with an application.J\223" + - "\001\n\003200\022\213\001\nUClient details retrieved succ" + - "essfully. Returns the resource and clien" + - "t configuration.\0222\n0\032..scalekit.v1.clien" + - "ts.GetResourceClientResponse\202\265\030\002\030D\372\322\344\223\002\t" + - "\022\007PREVIEW\202\323\344\223\0025\0223/api/v1/resources/{reso" + - "urce_id}/clients/{client_id}\022\347\003\n\023ListRes" + - "ourceClients\022/.scalekit.v1.clients.ListR" + - "esourceClientsRequest\0320.scalekit.v1.clie" + - "nts.ListResourceClientsResponse\"\354\002\222A\244\002\n\010" + - "API Auth\022\031List Resource API Clients\032PRet" + - "rieves a list of API clients associated " + - "with a specific application resource.J\252\001" + - "\n\003200\022\242\001\njList of clients retrieved succ" + - "essfully. Returns the resource details a" + - "nd associated client configurations.\0224\n2" + - "\0320.scalekit.v1.clients.ListResourceClien" + - "tsResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002)\022\'/" + - "api/v1/resources/{resource_id}/clients\022\313" + - "\003\n\030ListResourceUserConsents\0224.scalekit.v" + - "1.clients.ListResourceUserConsentsReques" + - "t\0325.scalekit.v1.clients.ListResourceUser" + - "ConsentsResponse\"\301\002\222A\213\002\n\010API Auth\022!List " + - "user consents for a resource\032jRetrieves " + - "a paginated list of user consents for a " + - "given resource, with optional search by " + - "external user IDJp\n\003200\022i\n,List of user " + - "consents retrieved successfully\0229\n7\0325.sc" + - "alekit.v1.clients.ListResourceUserConsen" + - "tsResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\027\022\025/" + - "api/v1/user_consents\022\207\003\n\024DeleteResourceC" + - "lient\0220.scalekit.v1.clients.DeleteResour" + - "ceClientRequest\0321.scalekit.v1.clients.De" + - "leteResourceClientResponse\"\211\002\222A\265\001\n\010API A" + - "uth\022\026Delete Resource Client\0323Deletes an " + - "API client under the specified resource." + - "J\\\n\003200\022U\n\034Client deleted successfully.\022" + - "5\n3\0321.scalekit.v1.clients.DeleteResource" + - "ClientResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002" + - "5*3/api/v1/resources/{resource_id}/clien" + - "ts/{client_id}\022\202\004\n\016RegisterClient\022*.scal" + - "ekit.v1.clients.RegisterClientRequest\032+." + - "scalekit.v1.clients.RegisterClientRespon" + - "se\"\226\003\222A\302\002\n\010API Auth\022\023Register API client" + - "\032\204\001Registers a new API client under an e" + - "xisting resource using dynamic client re" + - "gistration. Returns the created client a" + - "nd its secrets.J\231\001\n\003201\022\221\001\n^Client regis" + - "tered successfully. Returns client detai" + - "ls and plain secret (available only once" + - ").\022/\n-\032+.scalekit.v1.clients.RegisterCli" + - "entResponse\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0025\"+" + - "/api/v1/resources/{res_id}/clients:regis" + - "ter:\006client\022\266\005\n\013CreateScope\022\'.scalekit.v" + - "1.clients.CreateScopeRequest\032(.scalekit." + - "v1.clients.CreateScopeResponse\"\323\004\210\002\001\222A\353\003" + - "\022\031Create scope (Deprecated)\032\241\002DEPRECATED" + - ": Use permission management APIs instead" + - ". Creates a new OAuth scope for API auth" + - "orization. Scopes define the level of ac" + - "cess granted to API clients. Reserved Op" + - "enID Connect scopes (profile, email, add" + - "ress, phone) cannot be created as they a" + - "re automatically managed by the system.J" + - "\251\001\n\003201\022\241\001\nqOAuth scope created successf" + - "ully. Returns the newly created scope wi" + - "th its name, description, and enabled st" + - "atus.\022,\n*\032(.scalekit.v1.clients.CreateSc" + - "opeResponse\202\265\030\002\030@\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002F\"\016" + - "/api/v1/scopes:\005scopeZ-\"$/api/v1/environ" + - "ments/{env_id}/scopes:\005scope\022\351\003\n\nListSco" + - "pes\022&.scalekit.v1.clients.ListScopesRequ" + - "est\032\'.scalekit.v1.clients.ListScopesResp" + - "onse\"\211\003\222A\262\002\022\013List scopes\032\177Retrieves all " + - "OAuth scopes configured for the environm" + - "ent. Returns both custom scopes and syst" + - "em-managed OpenID Connect scopes.J\241\001\n\00320" + - "0\022\231\001\njList of OAuth scopes returned succ" + - "essfully. Each scope includes its name, " + - "description, and enabled status.\022+\n)\032\'.s" + - "calekit.v1.clients.ListScopesResponse\202\265\030" + - "\002\030`\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0028\022\016/api/v1/scopes" + - "Z&\022$/api/v1/environments/{env_id}/scopes" + - "\022\257\004\n\013UpdateScope\022\'.scalekit.v1.clients.U" + - "pdateScopeRequest\032(.scalekit.v1.clients." + - "UpdateScopeResponse\"\314\003\210\002\001\222A\216\003\022\031Update sc" + - "ope (Deprecated)\032\340\001DEPRECATED: Use perm" + - "ission management APIs instead. Updates " + - "an existing OAuth scope\'s description an" + - "d enabled status. Reserved OpenID Connec" + - "t scopes (profile, email, address, phone" + - ") cannot be modified through this endpoi" + - "nt.J\215\001\n\003200\022\205\001\nUOAuth scope updated succ" + - "essfully. Returns the updated scope with" + - " all current details.\022,\n*\032(.scalekit.v1." + - "clients.UpdateScopeResponse\202\265\030\002\030@\372\322\344\223\002\t\022" + - "\007PREVIEW\202\323\344\223\002\0342\023/api/v1/scopes/{id}:\005sco" + - "pe\022\340\003\n\013DeleteScope\022\'.scalekit.v1.clients" + - ".DeleteScopeRequest\032\026.google.protobuf.Em" + - "pty\"\217\003\210\002\001\222A\330\002\022\031Delete scope (Deprecated)" + - "\032\366\001DEPRECATED: Use permission management" + - " APIs instead. Permanently deletes an OA" + - "uth scope from the environment. This ope" + - "ration cannot be undone. Reserved OpenID" + - " Connect scopes (profile, email, address" + - ", phone) cannot be deleted through this " + - "endpoint.JB\n\003200\022;\n9OAuth scope successf" + - "ully deleted and no longer accessible\202\265\030" + - "\002\030@\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\025*\023/api/v1/scopes" + - "/{id}\022\227\001\n\021GetConsentDetails\022\026.google.pro" + - "tobuf.Empty\032..scalekit.v1.clients.GetCon" + - "sentDetailsResponse\":\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVI" + - "EW\202\323\344\223\002\037\022\035/api/v1/oauth/consent/details\022" + - "\302\001\n\021RevokeUserConsent\022-.scalekit.v1.clie" + - "nts.RevokeUserConsentRequest\032..scalekit." + - "v1.clients.RevokeUserConsentResponse\"N\202\265" + - "\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0023*1/api/v1/clien" + - "ts/{client_id}/consents/{consent_id}\022\352\003\n" + - "\030EnsureResourceConnection\0224.scalekit.v1." + - "clients.EnsureResourceConnectionRequest\032" + - "5.scalekit.v1.clients.EnsureResourceConn" + - "ectionResponse\"\340\002\222A\221\002\n\010API Auth\022!Get or " + - "Create Resource Connection\032SRetrieves an" + - " existing resource connection or creates" + - " a new one if it doesn\'t exist.J\214\001\n\003200\022" + - "\204\001\nBReturns the existing or newly create" + - "d resource connection details.\022>\n<\032:.sca" + - "lekit.v1.clients.GetOrCreateResourceConn" + - "ectionResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002" + - "0\"+/api/v1/resources/{resource_id}/conne" + - "ctions:\001*\032\270\003\222A\264\003\n\010API Auth\022\375\002Endpoints f" + - "or managing API client applications. API" + - " clients enable secure, automated intera" + - "ctions between software systems without " + - "human intervention. Each client is uniqu" + - "ely identified by a `client_id` and can " + - "be configured with authentication settin" + - "gs, redirect URIs, and security paramete" + - "rs. Use these endpoints to create, manag" + - "e, and configure API clients for your AP" + - "I clients.\032(\022&https://docs.scalekit.com/" + - "m2m/overviewB\326\001\n%com.scalekit.grpc.scale" + - "kit.v1.clientsB\014ClientsProtoP\001Z1github.c" + - "om/scalekit-inc/scalekit/pkg/grpc/client" + - "s\242\002\003SVC\252\002\023Scalekit.V1.Clients\312\002\023Scalekit" + - "\\V1\\Clients\342\002\037Scalekit\\V1\\Clients\\GPBMet" + - "adata\352\002\025Scalekit::V1::Clientsb\006proto3" + "\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0025\0223/api/v1/res" + + "ources/{resource_id}/clients/{client_id}" + + "\022\347\003\n\023ListResourceClients\022/.scalekit.v1.c" + + "lients.ListResourceClientsRequest\0320.scal" + + "ekit.v1.clients.ListResourceClientsRespo" + + "nse\"\354\002\222A\244\002\n\010API Auth\022\031List Resource API " + + "Clients\032PRetrieves a list of API clients" + + " associated with a specific application " + + "resource.J\252\001\n\003200\022\242\001\njList of clients re" + + "trieved successfully. Returns the resour" + + "ce details and associated client configu" + + "rations.\0224\n2\0320.scalekit.v1.clients.ListR" + + "esourceClientsResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREV" + + "IEW\202\323\344\223\002)\022\'/api/v1/resources/{resource_i" + + "d}/clients\022\313\003\n\030ListResourceUserConsents\022" + + "4.scalekit.v1.clients.ListResourceUserCo" + + "nsentsRequest\0325.scalekit.v1.clients.List" + + "ResourceUserConsentsResponse\"\301\002\222A\213\002\n\010API" + + " Auth\022!List user consents for a resource" + + "\032jRetrieves a paginated list of user con" + + "sents for a given resource, with optiona" + + "l search by external user IDJp\n\003200\022i\n,L" + + "ist of user consents retrieved successfu" + + "lly\0229\n7\0325.scalekit.v1.clients.ListResour" + + "ceUserConsentsResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREV" + + "IEW\202\323\344\223\002\027\022\025/api/v1/user_consents\022\207\003\n\024Del" + + "eteResourceClient\0220.scalekit.v1.clients." + + "DeleteResourceClientRequest\0321.scalekit.v" + + "1.clients.DeleteResourceClientResponse\"\211" + + "\002\222A\265\001\n\010API Auth\022\026Delete Resource Client\032" + + "3Deletes an API client under the specifi" + + "ed resource.J\\\n\003200\022U\n\034Client deleted su" + + "ccessfully.\0225\n3\0321.scalekit.v1.clients.De" + + "leteResourceClientResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007" + + "PREVIEW\202\323\344\223\0025*3/api/v1/resources/{resour" + + "ce_id}/clients/{client_id}\022\202\004\n\016RegisterC" + + "lient\022*.scalekit.v1.clients.RegisterClie" + + "ntRequest\032+.scalekit.v1.clients.Register" + + "ClientResponse\"\226\003\222A\302\002\n\010API Auth\022\023Registe" + + "r API client\032\204\001Registers a new API clien" + + "t under an existing resource using dynam" + + "ic client registration. Returns the crea" + + "ted client and its secrets.J\231\001\n\003201\022\221\001\n^" + + "Client registered successfully. Returns " + + "client details and plain secret (availab" + + "le only once).\022/\n-\032+.scalekit.v1.clients" + + ".RegisterClientResponse\202\265\030\002\030\001\372\322\344\223\002\t\022\007PRE" + + "VIEW\202\323\344\223\0025\"+/api/v1/resources/{res_id}/c" + + "lients:register:\006client\022\266\005\n\013CreateScope\022" + + "\'.scalekit.v1.clients.CreateScopeRequest" + + "\032(.scalekit.v1.clients.CreateScopeRespon" + + "se\"\323\004\210\002\001\222A\353\003\022\031Create scope (Deprecated)\032" + + "\241\002DEPRECATED: Use permission management " + + "APIs instead. Creates a new OAuth scope " + + "for API authorization. Scopes define the" + + " level of access granted to API clients." + + " Reserved OpenID Connect scopes (profile" + + ", email, address, phone) cannot be creat" + + "ed as they are automatically managed by " + + "the system.J\251\001\n\003201\022\241\001\nqOAuth scope crea" + + "ted successfully. Returns the newly crea" + + "ted scope with its name, description, an" + + "d enabled status.\022,\n*\032(.scalekit.v1.clie" + + "nts.CreateScopeResponse\202\265\030\002\030@\372\322\344\223\002\t\022\007PRE" + + "VIEW\202\323\344\223\002F\"\016/api/v1/scopes:\005scopeZ-\"$/ap" + + "i/v1/environments/{env_id}/scopes:\005scope" + + "\022\351\003\n\nListScopes\022&.scalekit.v1.clients.Li" + + "stScopesRequest\032\'.scalekit.v1.clients.Li" + + "stScopesResponse\"\211\003\222A\262\002\022\013List scopes\032\177Re" + + "trieves all OAuth scopes configured for " + + "the environment. Returns both custom sco" + + "pes and system-managed OpenID Connect sc" + + "opes.J\241\001\n\003200\022\231\001\njList of OAuth scopes r" + + "eturned successfully. Each scope include" + + "s its name, description, and enabled sta" + + "tus.\022+\n)\032\'.scalekit.v1.clients.ListScope" + + "sResponse\202\265\030\002\030`\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0028\022\016/a" + + "pi/v1/scopesZ&\022$/api/v1/environments/{en" + + "v_id}/scopes\022\257\004\n\013UpdateScope\022\'.scalekit." + + "v1.clients.UpdateScopeRequest\032(.scalekit" + + ".v1.clients.UpdateScopeResponse\"\314\003\210\002\001\222A\216" + + "\003\022\031Update scope (Deprecated)\032\340\001DEPRECATE" + + "D: Use permission management APIs inste" + + "ad. Updates an existing OAuth scope\'s de" + + "scription and enabled status. Reserved O" + + "penID Connect scopes (profile, email, ad" + + "dress, phone) cannot be modified through" + + " this endpoint.J\215\001\n\003200\022\205\001\nUOAuth scope " + + "updated successfully. Returns the update" + + "d scope with all current details.\022,\n*\032(." + + "scalekit.v1.clients.UpdateScopeResponse\202" + + "\265\030\002\030@\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\0342\023/api/v1/scop" + + "es/{id}:\005scope\022\340\003\n\013DeleteScope\022\'.scaleki" + + "t.v1.clients.DeleteScopeRequest\032\026.google" + + ".protobuf.Empty\"\217\003\210\002\001\222A\330\002\022\031Delete scope " + + "(Deprecated)\032\366\001DEPRECATED: Use permissio" + + "n management APIs instead. Permanently d" + + "eletes an OAuth scope from the environme" + + "nt. This operation cannot be undone. Res" + + "erved OpenID Connect scopes (profile, em" + + "ail, address, phone) cannot be deleted t" + + "hrough this endpoint.JB\n\003200\022;\n9OAuth sc" + + "ope successfully deleted and no longer a" + + "ccessible\202\265\030\002\030@\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\025*\023/a" + + "pi/v1/scopes/{id}\022\227\001\n\021GetConsentDetails\022" + + "\026.google.protobuf.Empty\032..scalekit.v1.cl" + + "ients.GetConsentDetailsResponse\":\202\265\030\002\030\001\372" + + "\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\037\022\035/api/v1/oauth/cons" + + "ent/details\022\302\001\n\021RevokeUserConsent\022-.scal" + + "ekit.v1.clients.RevokeUserConsentRequest" + + "\032..scalekit.v1.clients.RevokeUserConsent" + + "Response\"N\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0023*1/" + + "api/v1/clients/{client_id}/consents/{con" + + "sent_id}\022\352\003\n\030EnsureResourceConnection\0224." + + "scalekit.v1.clients.EnsureResourceConnec" + + "tionRequest\0325.scalekit.v1.clients.Ensure" + + "ResourceConnectionResponse\"\340\002\222A\221\002\n\010API A" + + "uth\022!Get or Create Resource Connection\032S" + + "Retrieves an existing resource connectio" + + "n or creates a new one if it doesn\'t exi" + + "st.J\214\001\n\003200\022\204\001\nBReturns the existing or " + + "newly created resource connection detail" + + "s.\022>\n<\032:.scalekit.v1.clients.GetOrCreate" + + "ResourceConnectionResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007" + + "PREVIEW\202\323\344\223\0020\"+/api/v1/resources/{resour" + + "ce_id}/connections:\001*\032\270\003\222A\264\003\n\010API Auth\022\375" + + "\002Endpoints for managing API client appli" + + "cations. API clients enable secure, auto" + + "mated interactions between software syst" + + "ems without human intervention. Each cli" + + "ent is uniquely identified by a `client_" + + "id` and can be configured with authentic" + + "ation settings, redirect URIs, and secur" + + "ity parameters. Use these endpoints to c" + + "reate, manage, and configure API clients" + + " for your API clients.\032(\022&https://docs.s" + + "calekit.com/m2m/overviewB\326\001\n%com.scaleki" + + "t.grpc.scalekit.v1.clientsB\014ClientsProto" + + "P\001Z1github.com/scalekit-inc/scalekit/pkg" + + "/grpc/clients\242\002\003SVC\252\002\023Scalekit.V1.Client" + + "s\312\002\023Scalekit\\V1\\Clients\342\002\037Scalekit\\V1\\Cl" + + "ients\\GPBMetadata\352\002\025Scalekit::V1::Client" + + "sb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -2595,7 +2585,7 @@ public static void registerAllExtensions( internal_static_scalekit_v1_clients_UpdateClient_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_clients_UpdateClient_descriptor, - new java.lang.String[] { "RedirectUris", "DefaultRedirectUri", "BackChannelLogoutUris", "PostLogoutRedirectUris", "InitiateLoginUri", "PostLoginUris", "Name", "AccessTokenExpiry", "Scopes", "CustomClaims", "DisallowScalekitApiAccess", "GrantTypes", "EnforcePkce", }); + new java.lang.String[] { "BackChannelLogoutUris", "PostLogoutRedirectUris", "InitiateLoginUri", "PostLoginUris", "Name", "AccessTokenExpiry", "Scopes", "CustomClaims", "DisallowScalekitApiAccess", "GrantTypes", "EnforcePkce", }); internal_static_scalekit_v1_clients_UpdateClientResponse_descriptor = getDescriptor().getMessageTypes().get(56); internal_static_scalekit_v1_clients_UpdateClientResponse_fieldAccessorTable = new @@ -2649,7 +2639,7 @@ public static void registerAllExtensions( internal_static_scalekit_v1_clients_Client_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_clients_Client_descriptor, - new java.lang.String[] { "Id", "KeyId", "CreateTime", "UpdateTime", "RedirectUris", "DefaultRedirectUri", "Secrets", "PostLogoutRedirectUris", "BackChannelLogoutUris", "InitiateLoginUri", "PostLoginUris", "Name", "AccessTokenExpiry", "Scopes", "CustomClaims", "DisallowScalekitApiAccess", "GrantTypes", "ClientType", "EnforcePkce", }); + new java.lang.String[] { "Id", "KeyId", "CreateTime", "UpdateTime", "Secrets", "PostLogoutRedirectUris", "BackChannelLogoutUris", "InitiateLoginUri", "PostLoginUris", "Name", "AccessTokenExpiry", "Scopes", "CustomClaims", "DisallowScalekitApiAccess", "GrantTypes", "ClientType", "EnforcePkce", }); internal_static_scalekit_v1_clients_ClientSecret_descriptor = getDescriptor().getMessageTypes().get(65); internal_static_scalekit_v1_clients_ClientSecret_fieldAccessorTable = new @@ -2721,57 +2711,63 @@ public static void registerAllExtensions( internal_static_scalekit_v1_clients_GetConsentDetailsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_clients_GetConsentDetailsResponse_descriptor, - new java.lang.String[] { "Resource", "User", "Client", "Scopes", "Application", }); - internal_static_scalekit_v1_clients_ConsentClient_descriptor = + new java.lang.String[] { "Resource", "User", "Client", "Scopes", "Application", "Organization", }); + internal_static_scalekit_v1_clients_ConsentOrganization_descriptor = getDescriptor().getMessageTypes().get(77); + internal_static_scalekit_v1_clients_ConsentOrganization_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_clients_ConsentOrganization_descriptor, + new java.lang.String[] { "OrganizationName", "OrganizationMetaName", }); + internal_static_scalekit_v1_clients_ConsentClient_descriptor = + getDescriptor().getMessageTypes().get(78); internal_static_scalekit_v1_clients_ConsentClient_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_clients_ConsentClient_descriptor, new java.lang.String[] { "Name", "PrivacyUri", "TosUri", "ClientId", "MetadataUri", "LogoUri", }); internal_static_scalekit_v1_clients_ConsentScope_descriptor = - getDescriptor().getMessageTypes().get(78); + getDescriptor().getMessageTypes().get(79); internal_static_scalekit_v1_clients_ConsentScope_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_clients_ConsentScope_descriptor, new java.lang.String[] { "Name", "Description", }); internal_static_scalekit_v1_clients_User_descriptor = - getDescriptor().getMessageTypes().get(79); + getDescriptor().getMessageTypes().get(80); internal_static_scalekit_v1_clients_User_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_clients_User_descriptor, new java.lang.String[] { "Email", }); internal_static_scalekit_v1_clients_RevokeUserConsentRequest_descriptor = - getDescriptor().getMessageTypes().get(80); + getDescriptor().getMessageTypes().get(81); internal_static_scalekit_v1_clients_RevokeUserConsentRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_clients_RevokeUserConsentRequest_descriptor, new java.lang.String[] { "ClientId", "ConsentId", }); internal_static_scalekit_v1_clients_RevokeUserConsentResponse_descriptor = - getDescriptor().getMessageTypes().get(81); + getDescriptor().getMessageTypes().get(82); internal_static_scalekit_v1_clients_RevokeUserConsentResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_clients_RevokeUserConsentResponse_descriptor, new java.lang.String[] { }); internal_static_scalekit_v1_clients_EnsureResourceConnectionRequest_descriptor = - getDescriptor().getMessageTypes().get(82); + getDescriptor().getMessageTypes().get(83); internal_static_scalekit_v1_clients_EnsureResourceConnectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_clients_EnsureResourceConnectionRequest_descriptor, new java.lang.String[] { "ResourceId", }); internal_static_scalekit_v1_clients_EnsureResourceConnectionResponse_descriptor = - getDescriptor().getMessageTypes().get(83); + getDescriptor().getMessageTypes().get(84); internal_static_scalekit_v1_clients_EnsureResourceConnectionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_clients_EnsureResourceConnectionResponse_descriptor, new java.lang.String[] { "Connection", }); internal_static_scalekit_v1_clients_ResourceConnection_descriptor = - getDescriptor().getMessageTypes().get(84); + getDescriptor().getMessageTypes().get(85); internal_static_scalekit_v1_clients_ResourceConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_clients_ResourceConnection_descriptor, new java.lang.String[] { "Id", "Type", "Status", "Enabled", "Settings", "Provider", }); internal_static_scalekit_v1_clients_ResourceCustomConnectionSettings_descriptor = - getDescriptor().getMessageTypes().get(85); + getDescriptor().getMessageTypes().get(86); internal_static_scalekit_v1_clients_ResourceCustomConnectionSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_clients_ResourceCustomConnectionSettings_descriptor, diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ConsentOrganization.java b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ConsentOrganization.java new file mode 100644 index 00000000..bbd19650 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ConsentOrganization.java @@ -0,0 +1,702 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/clients/clients.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.clients; + +/** + * Protobuf type {@code scalekit.v1.clients.ConsentOrganization} + */ +public final class ConsentOrganization extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.clients.ConsentOrganization) + ConsentOrganizationOrBuilder { +private static final long serialVersionUID = 0L; + // Use ConsentOrganization.newBuilder() to construct. + private ConsentOrganization(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ConsentOrganization() { + organizationName_ = ""; + organizationMetaName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ConsentOrganization(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.clients.ClientsProto.internal_static_scalekit_v1_clients_ConsentOrganization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.clients.ClientsProto.internal_static_scalekit_v1_clients_ConsentOrganization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.class, com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATION_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationName_ = ""; + /** + * optional string organization_name = 1 [json_name = "organizationName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the organizationName field is set. + */ + @java.lang.Override + public boolean hasOrganizationName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string organization_name = 1 [json_name = "organizationName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationName. + */ + @java.lang.Override + public java.lang.String getOrganizationName() { + java.lang.Object ref = organizationName_; + 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(); + organizationName_ = s; + return s; + } + } + /** + * optional string organization_name = 1 [json_name = "organizationName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationNameBytes() { + java.lang.Object ref = organizationName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_META_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationMetaName_ = ""; + /** + * string organization_meta_name = 2 [json_name = "organizationMetaName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationMetaName. + */ + @java.lang.Override + public java.lang.String getOrganizationMetaName() { + java.lang.Object ref = organizationMetaName_; + 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(); + organizationMetaName_ = s; + return s; + } + } + /** + * string organization_meta_name = 2 [json_name = "organizationMetaName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationMetaName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationMetaNameBytes() { + java.lang.Object ref = organizationMetaName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationMetaName_ = 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)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, organizationName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationMetaName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, organizationMetaName_); + } + 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.GeneratedMessageV3.computeStringSize(1, organizationName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationMetaName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, organizationMetaName_); + } + 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.scalekit.grpc.scalekit.v1.clients.ConsentOrganization)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization other = (com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization) obj; + + if (hasOrganizationName() != other.hasOrganizationName()) return false; + if (hasOrganizationName()) { + if (!getOrganizationName() + .equals(other.getOrganizationName())) return false; + } + if (!getOrganizationMetaName() + .equals(other.getOrganizationMetaName())) 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 (hasOrganizationName()) { + hash = (37 * hash) + ORGANIZATION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationName().hashCode(); + } + hash = (37 * hash) + ORGANIZATION_META_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationMetaName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.clients.ConsentOrganization} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.clients.ConsentOrganization) + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganizationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.clients.ClientsProto.internal_static_scalekit_v1_clients_ConsentOrganization_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.clients.ClientsProto.internal_static_scalekit_v1_clients_ConsentOrganization_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.class, com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationName_ = ""; + organizationMetaName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.clients.ClientsProto.internal_static_scalekit_v1_clients_ConsentOrganization_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization build() { + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization buildPartial() { + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization result = new com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationName_ = organizationName_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.organizationMetaName_ = organizationMetaName_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization other) { + if (other == com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.getDefaultInstance()) return this; + if (other.hasOrganizationName()) { + organizationName_ = other.organizationName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getOrganizationMetaName().isEmpty()) { + organizationMetaName_ = other.organizationMetaName_; + 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: { + organizationName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + organizationMetaName_ = 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 organizationName_ = ""; + /** + * optional string organization_name = 1 [json_name = "organizationName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the organizationName field is set. + */ + public boolean hasOrganizationName() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional string organization_name = 1 [json_name = "organizationName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationName. + */ + public java.lang.String getOrganizationName() { + java.lang.Object ref = organizationName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string organization_name = 1 [json_name = "organizationName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationName. + */ + public com.google.protobuf.ByteString + getOrganizationNameBytes() { + java.lang.Object ref = organizationName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string organization_name = 1 [json_name = "organizationName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The organizationName to set. + * @return This builder for chaining. + */ + public Builder setOrganizationName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * optional string organization_name = 1 [json_name = "organizationName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearOrganizationName() { + organizationName_ = getDefaultInstance().getOrganizationName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * optional string organization_name = 1 [json_name = "organizationName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for organizationName to set. + * @return This builder for chaining. + */ + public Builder setOrganizationNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object organizationMetaName_ = ""; + /** + * string organization_meta_name = 2 [json_name = "organizationMetaName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationMetaName. + */ + public java.lang.String getOrganizationMetaName() { + java.lang.Object ref = organizationMetaName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationMetaName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_meta_name = 2 [json_name = "organizationMetaName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationMetaName. + */ + public com.google.protobuf.ByteString + getOrganizationMetaNameBytes() { + java.lang.Object ref = organizationMetaName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationMetaName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_meta_name = 2 [json_name = "organizationMetaName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The organizationMetaName to set. + * @return This builder for chaining. + */ + public Builder setOrganizationMetaName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationMetaName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string organization_meta_name = 2 [json_name = "organizationMetaName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearOrganizationMetaName() { + organizationMetaName_ = getDefaultInstance().getOrganizationMetaName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string organization_meta_name = 2 [json_name = "organizationMetaName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for organizationMetaName to set. + * @return This builder for chaining. + */ + public Builder setOrganizationMetaNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationMetaName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.clients.ConsentOrganization) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.clients.ConsentOrganization) + private static final com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization(); + } + + public static com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConsentOrganization 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.scalekit.grpc.scalekit.v1.clients.ConsentOrganization getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ConsentOrganizationOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ConsentOrganizationOrBuilder.java new file mode 100644 index 00000000..2932f600 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/ConsentOrganizationOrBuilder.java @@ -0,0 +1,39 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/clients/clients.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.clients; + +public interface ConsentOrganizationOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.clients.ConsentOrganization) + com.google.protobuf.MessageOrBuilder { + + /** + * optional string organization_name = 1 [json_name = "organizationName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the organizationName field is set. + */ + boolean hasOrganizationName(); + /** + * optional string organization_name = 1 [json_name = "organizationName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationName. + */ + java.lang.String getOrganizationName(); + /** + * optional string organization_name = 1 [json_name = "organizationName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationName. + */ + com.google.protobuf.ByteString + getOrganizationNameBytes(); + + /** + * string organization_meta_name = 2 [json_name = "organizationMetaName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationMetaName. + */ + java.lang.String getOrganizationMetaName(); + /** + * string organization_meta_name = 2 [json_name = "organizationMetaName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationMetaName. + */ + com.google.protobuf.ByteString + getOrganizationMetaNameBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/GetConsentDetailsResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/GetConsentDetailsResponse.java index 93a7b8ad..968bceff 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/GetConsentDetailsResponse.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/GetConsentDetailsResponse.java @@ -186,6 +186,32 @@ public com.scalekit.grpc.scalekit.v1.clients.ApplicationOrBuilder getApplication return application_ == null ? com.scalekit.grpc.scalekit.v1.clients.Application.getDefaultInstance() : application_; } + public static final int ORGANIZATION_FIELD_NUMBER = 6; + private com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization organization_; + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the organization field is set. + */ + @java.lang.Override + public boolean hasOrganization() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organization. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization getOrganization() { + return organization_ == null ? com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.getDefaultInstance() : organization_; + } + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.clients.ConsentOrganizationOrBuilder getOrganizationOrBuilder() { + return organization_ == null ? com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.getDefaultInstance() : organization_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -215,6 +241,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getApplication()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getOrganization()); + } getUnknownFields().writeTo(output); } @@ -244,6 +273,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getApplication()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getOrganization()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -281,6 +314,11 @@ public boolean equals(final java.lang.Object obj) { if (!getApplication() .equals(other.getApplication())) return false; } + if (hasOrganization() != other.hasOrganization()) return false; + if (hasOrganization()) { + if (!getOrganization() + .equals(other.getOrganization())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -312,6 +350,10 @@ public int hashCode() { hash = (37 * hash) + APPLICATION_FIELD_NUMBER; hash = (53 * hash) + getApplication().hashCode(); } + if (hasOrganization()) { + hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + getOrganization().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -447,6 +489,7 @@ private void maybeForceBuilderInitialization() { getClientFieldBuilder(); getScopesFieldBuilder(); getApplicationFieldBuilder(); + getOrganizationFieldBuilder(); } } @java.lang.Override @@ -480,6 +523,11 @@ public Builder clear() { applicationBuilder_.dispose(); applicationBuilder_ = null; } + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } return this; } @@ -551,6 +599,12 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.clients.GetConsentDetai : applicationBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.organization_ = organizationBuilder_ == null + ? organization_ + : organizationBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -636,6 +690,9 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.GetConsentDetails if (other.hasApplication()) { mergeApplication(other.getApplication()); } + if (other.hasOrganization()) { + mergeOrganization(other.getOrganization()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -703,6 +760,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: { + input.readMessage( + getOrganizationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1443,6 +1507,127 @@ public com.scalekit.grpc.scalekit.v1.clients.ApplicationOrBuilder getApplication } return applicationBuilder_; } + + private com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization organization_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization, com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.Builder, com.scalekit.grpc.scalekit.v1.clients.ConsentOrganizationOrBuilder> organizationBuilder_; + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the organization field is set. + */ + public boolean hasOrganization() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organization. + */ + public com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization getOrganization() { + if (organizationBuilder_ == null) { + return organization_ == null ? com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.getDefaultInstance() : organization_; + } else { + return organizationBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setOrganization(com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization value) { + if (organizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + organization_ = value; + } else { + organizationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setOrganization( + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.Builder builderForValue) { + if (organizationBuilder_ == null) { + organization_ = builderForValue.build(); + } else { + organizationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeOrganization(com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization value) { + if (organizationBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + organization_ != null && + organization_ != com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.getDefaultInstance()) { + getOrganizationBuilder().mergeFrom(value); + } else { + organization_ = value; + } + } else { + organizationBuilder_.mergeFrom(value); + } + if (organization_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearOrganization() { + bitField0_ = (bitField0_ & ~0x00000020); + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.Builder getOrganizationBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getOrganizationFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.clients.ConsentOrganizationOrBuilder getOrganizationOrBuilder() { + if (organizationBuilder_ != null) { + return organizationBuilder_.getMessageOrBuilder(); + } else { + return organization_ == null ? + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.getDefaultInstance() : organization_; + } + } + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization, com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.Builder, com.scalekit.grpc.scalekit.v1.clients.ConsentOrganizationOrBuilder> + getOrganizationFieldBuilder() { + if (organizationBuilder_ == null) { + organizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization, com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization.Builder, com.scalekit.grpc.scalekit.v1.clients.ConsentOrganizationOrBuilder>( + getOrganization(), + getParentForChildren(), + isClean()); + organization_ = null; + } + return organizationBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/GetConsentDetailsResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/GetConsentDetailsResponseOrBuilder.java index 9fd5b53e..161cdf6d 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/GetConsentDetailsResponseOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/GetConsentDetailsResponseOrBuilder.java @@ -91,4 +91,19 @@ com.scalekit.grpc.scalekit.v1.clients.ConsentScopeOrBuilder getScopesOrBuilder( * .scalekit.v1.clients.Application application = 5 [json_name = "application", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ com.scalekit.grpc.scalekit.v1.clients.ApplicationOrBuilder getApplicationOrBuilder(); + + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the organization field is set. + */ + boolean hasOrganization(); + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organization. + */ + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganization getOrganization(); + /** + * .scalekit.v1.clients.ConsentOrganization organization = 6 [json_name = "organization", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.clients.ConsentOrganizationOrBuilder getOrganizationOrBuilder(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/UpdateClient.java b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/UpdateClient.java index bb3438a2..94603f10 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/UpdateClient.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/UpdateClient.java @@ -17,9 +17,6 @@ private UpdateClient(com.google.protobuf.GeneratedMessageV3.Builder builder) super(builder); } private UpdateClient() { - redirectUris_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - defaultRedirectUri_ = ""; backChannelLogoutUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); postLogoutRedirectUris_ = @@ -56,90 +53,6 @@ protected java.lang.Object newInstance( } private int bitField0_; - public static final int REDIRECT_URIS_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList redirectUris_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return A list containing the redirectUris. - */ - public com.google.protobuf.ProtocolStringList - getRedirectUrisList() { - return redirectUris_; - } - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The count of redirectUris. - */ - public int getRedirectUrisCount() { - return redirectUris_.size(); - } - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index of the element to return. - * @return The redirectUris at the given index. - */ - public java.lang.String getRedirectUris(int index) { - return redirectUris_.get(index); - } - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the redirectUris at the given index. - */ - public com.google.protobuf.ByteString - getRedirectUrisBytes(int index) { - return redirectUris_.getByteString(index); - } - - public static final int DEFAULT_REDIRECT_URI_FIELD_NUMBER = 3; - @SuppressWarnings("serial") - private volatile java.lang.Object defaultRedirectUri_ = ""; - /** - * optional string default_redirect_uri = 3 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the defaultRedirectUri field is set. - */ - @java.lang.Override - public boolean hasDefaultRedirectUri() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * optional string default_redirect_uri = 3 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The defaultRedirectUri. - */ - @java.lang.Override - public java.lang.String getDefaultRedirectUri() { - java.lang.Object ref = defaultRedirectUri_; - 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(); - defaultRedirectUri_ = s; - return s; - } - } - /** - * optional string default_redirect_uri = 3 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for defaultRedirectUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDefaultRedirectUriBytes() { - java.lang.Object ref = defaultRedirectUri_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultRedirectUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int BACK_CHANNEL_LOGOUT_URIS_FIELD_NUMBER = 4; @SuppressWarnings("serial") private com.google.protobuf.LazyStringArrayList backChannelLogoutUris_ = @@ -223,7 +136,7 @@ public java.lang.String getPostLogoutRedirectUris(int index) { */ @java.lang.Override public boolean hasInitiateLoginUri() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000001) != 0); } /** * optional string initiate_login_uri = 6 [json_name = "initiateLoginUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -434,7 +347,7 @@ public com.scalekit.grpc.scalekit.v1.clients.CustomClaimOrBuilder getCustomClaim */ @java.lang.Override public boolean hasDisallowScalekitApiAccess() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * .google.protobuf.BoolValue disallow_scalekit_api_access = 13 [json_name = "disallowScalekitApiAccess", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -497,7 +410,7 @@ public java.lang.String getGrantTypes(int index) { */ @java.lang.Override public boolean hasEnforcePkce() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * .google.protobuf.BoolValue enforce_pkce = 15 [json_name = "enforcePkce", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -529,19 +442,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < redirectUris_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, redirectUris_.getRaw(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, defaultRedirectUri_); - } for (int i = 0; i < backChannelLogoutUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, backChannelLogoutUris_.getRaw(i)); } for (int i = 0; i < postLogoutRedirectUris_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, postLogoutRedirectUris_.getRaw(i)); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, initiateLoginUri_); } for (int i = 0; i < postLoginUris_.size(); i++) { @@ -559,13 +466,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) for (int i = 0; i < customClaims_.size(); i++) { output.writeMessage(12, customClaims_.get(i)); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(13, getDisallowScalekitApiAccess()); } for (int i = 0; i < grantTypes_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 14, grantTypes_.getRaw(i)); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(15, getEnforcePkce()); } getUnknownFields().writeTo(output); @@ -577,17 +484,6 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - { - int dataSize = 0; - for (int i = 0; i < redirectUris_.size(); i++) { - dataSize += computeStringSizeNoTag(redirectUris_.getRaw(i)); - } - size += dataSize; - size += 1 * getRedirectUrisList().size(); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, defaultRedirectUri_); - } { int dataSize = 0; for (int i = 0; i < backChannelLogoutUris_.size(); i++) { @@ -604,7 +500,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getPostLogoutRedirectUrisList().size(); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, initiateLoginUri_); } { @@ -634,7 +530,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, customClaims_.get(i)); } - if (((bitField0_ & 0x00000004) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, getDisallowScalekitApiAccess()); } @@ -646,7 +542,7 @@ public int getSerializedSize() { size += dataSize; size += 1 * getGrantTypesList().size(); } - if (((bitField0_ & 0x00000008) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, getEnforcePkce()); } @@ -665,13 +561,6 @@ public boolean equals(final java.lang.Object obj) { } com.scalekit.grpc.scalekit.v1.clients.UpdateClient other = (com.scalekit.grpc.scalekit.v1.clients.UpdateClient) obj; - if (!getRedirectUrisList() - .equals(other.getRedirectUrisList())) return false; - if (hasDefaultRedirectUri() != other.hasDefaultRedirectUri()) return false; - if (hasDefaultRedirectUri()) { - if (!getDefaultRedirectUri() - .equals(other.getDefaultRedirectUri())) return false; - } if (!getBackChannelLogoutUrisList() .equals(other.getBackChannelLogoutUrisList())) return false; if (!getPostLogoutRedirectUrisList() @@ -714,14 +603,6 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getRedirectUrisCount() > 0) { - hash = (37 * hash) + REDIRECT_URIS_FIELD_NUMBER; - hash = (53 * hash) + getRedirectUrisList().hashCode(); - } - if (hasDefaultRedirectUri()) { - hash = (37 * hash) + DEFAULT_REDIRECT_URI_FIELD_NUMBER; - hash = (53 * hash) + getDefaultRedirectUri().hashCode(); - } if (getBackChannelLogoutUrisCount() > 0) { hash = (37 * hash) + BACK_CHANNEL_LOGOUT_URIS_FIELD_NUMBER; hash = (53 * hash) + getBackChannelLogoutUrisList().hashCode(); @@ -902,9 +783,6 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; - redirectUris_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - defaultRedirectUri_ = ""; backChannelLogoutUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); postLogoutRedirectUris_ = @@ -922,7 +800,7 @@ public Builder clear() { customClaims_ = null; customClaimsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000080); disallowScalekitApiAccess_ = null; if (disallowScalekitApiAccessBuilder_ != null) { disallowScalekitApiAccessBuilder_.dispose(); @@ -969,9 +847,9 @@ public com.scalekit.grpc.scalekit.v1.clients.UpdateClient buildPartial() { private void buildPartialRepeatedFields(com.scalekit.grpc.scalekit.v1.clients.UpdateClient result) { if (customClaimsBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000080) != 0)) { customClaims_ = java.util.Collections.unmodifiableList(customClaims_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000080); } result.customClaims_ = customClaims_; } else { @@ -982,55 +860,47 @@ private void buildPartialRepeatedFields(com.scalekit.grpc.scalekit.v1.clients.Up private void buildPartial0(com.scalekit.grpc.scalekit.v1.clients.UpdateClient result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - redirectUris_.makeImmutable(); - result.redirectUris_ = redirectUris_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.defaultRedirectUri_ = defaultRedirectUri_; - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { backChannelLogoutUris_.makeImmutable(); result.backChannelLogoutUris_ = backChannelLogoutUris_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000002) != 0)) { postLogoutRedirectUris_.makeImmutable(); result.postLogoutRedirectUris_ = postLogoutRedirectUris_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { result.initiateLoginUri_ = initiateLoginUri_; - to_bitField0_ |= 0x00000002; + to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { postLoginUris_.makeImmutable(); result.postLoginUris_ = postLoginUris_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.accessTokenExpiry_ = accessTokenExpiry_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { scopes_.makeImmutable(); result.scopes_ = scopes_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.disallowScalekitApiAccess_ = disallowScalekitApiAccessBuilder_ == null ? disallowScalekitApiAccess_ : disallowScalekitApiAccessBuilder_.build(); - to_bitField0_ |= 0x00000004; + to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { grantTypes_.makeImmutable(); result.grantTypes_ = grantTypes_; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.enforcePkce_ = enforcePkceBuilder_ == null ? enforcePkce_ : enforcePkceBuilder_.build(); - to_bitField0_ |= 0x00000008; + to_bitField0_ |= 0x00000004; } result.bitField0_ |= to_bitField0_; } @@ -1079,25 +949,10 @@ public Builder mergeFrom(com.google.protobuf.Message other) { public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.UpdateClient other) { if (other == com.scalekit.grpc.scalekit.v1.clients.UpdateClient.getDefaultInstance()) return this; - if (!other.redirectUris_.isEmpty()) { - if (redirectUris_.isEmpty()) { - redirectUris_ = other.redirectUris_; - bitField0_ |= 0x00000001; - } else { - ensureRedirectUrisIsMutable(); - redirectUris_.addAll(other.redirectUris_); - } - onChanged(); - } - if (other.hasDefaultRedirectUri()) { - defaultRedirectUri_ = other.defaultRedirectUri_; - bitField0_ |= 0x00000002; - onChanged(); - } if (!other.backChannelLogoutUris_.isEmpty()) { if (backChannelLogoutUris_.isEmpty()) { backChannelLogoutUris_ = other.backChannelLogoutUris_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } else { ensureBackChannelLogoutUrisIsMutable(); backChannelLogoutUris_.addAll(other.backChannelLogoutUris_); @@ -1107,7 +962,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.UpdateClient othe if (!other.postLogoutRedirectUris_.isEmpty()) { if (postLogoutRedirectUris_.isEmpty()) { postLogoutRedirectUris_ = other.postLogoutRedirectUris_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; } else { ensurePostLogoutRedirectUrisIsMutable(); postLogoutRedirectUris_.addAll(other.postLogoutRedirectUris_); @@ -1116,13 +971,13 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.UpdateClient othe } if (other.hasInitiateLoginUri()) { initiateLoginUri_ = other.initiateLoginUri_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; onChanged(); } if (!other.postLoginUris_.isEmpty()) { if (postLoginUris_.isEmpty()) { postLoginUris_ = other.postLoginUris_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; } else { ensurePostLoginUrisIsMutable(); postLoginUris_.addAll(other.postLoginUris_); @@ -1131,7 +986,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.UpdateClient othe } if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; onChanged(); } if (other.getAccessTokenExpiry() != 0L) { @@ -1140,7 +995,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.UpdateClient othe if (!other.scopes_.isEmpty()) { if (scopes_.isEmpty()) { scopes_ = other.scopes_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; } else { ensureScopesIsMutable(); scopes_.addAll(other.scopes_); @@ -1151,7 +1006,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.UpdateClient othe if (!other.customClaims_.isEmpty()) { if (customClaims_.isEmpty()) { customClaims_ = other.customClaims_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000080); } else { ensureCustomClaimsIsMutable(); customClaims_.addAll(other.customClaims_); @@ -1164,7 +1019,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.UpdateClient othe customClaimsBuilder_.dispose(); customClaimsBuilder_ = null; customClaims_ = other.customClaims_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000080); customClaimsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCustomClaimsFieldBuilder() : null; @@ -1179,7 +1034,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.clients.UpdateClient othe if (!other.grantTypes_.isEmpty()) { if (grantTypes_.isEmpty()) { grantTypes_ = other.grantTypes_; - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; } else { ensureGrantTypesIsMutable(); grantTypes_.addAll(other.grantTypes_); @@ -1215,17 +1070,6 @@ public Builder mergeFrom( case 0: done = true; break; - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - ensureRedirectUrisIsMutable(); - redirectUris_.add(s); - break; - } // case 18 - case 26: { - defaultRedirectUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 case 34: { java.lang.String s = input.readStringRequireUtf8(); ensureBackChannelLogoutUrisIsMutable(); @@ -1240,7 +1084,7 @@ public Builder mergeFrom( } // case 42 case 50: { initiateLoginUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; break; } // case 50 case 58: { @@ -1251,12 +1095,12 @@ public Builder mergeFrom( } // case 58 case 66: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; break; } // case 66 case 72: { accessTokenExpiry_ = input.readInt64(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; break; } // case 72 case 90: { @@ -1282,7 +1126,7 @@ public Builder mergeFrom( input.readMessage( getDisallowScalekitApiAccessFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000100; break; } // case 106 case 114: { @@ -1295,7 +1139,7 @@ public Builder mergeFrom( input.readMessage( getEnforcePkceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000400; break; } // case 122 default: { @@ -1315,203 +1159,13 @@ public Builder mergeFrom( } private int bitField0_; - private com.google.protobuf.LazyStringArrayList redirectUris_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureRedirectUrisIsMutable() { - if (!redirectUris_.isModifiable()) { - redirectUris_ = new com.google.protobuf.LazyStringArrayList(redirectUris_); - } - bitField0_ |= 0x00000001; - } - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return A list containing the redirectUris. - */ - public com.google.protobuf.ProtocolStringList - getRedirectUrisList() { - redirectUris_.makeImmutable(); - return redirectUris_; - } - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The count of redirectUris. - */ - public int getRedirectUrisCount() { - return redirectUris_.size(); - } - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index of the element to return. - * @return The redirectUris at the given index. - */ - public java.lang.String getRedirectUris(int index) { - return redirectUris_.get(index); - } - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the redirectUris at the given index. - */ - public com.google.protobuf.ByteString - getRedirectUrisBytes(int index) { - return redirectUris_.getByteString(index); - } - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index to set the value at. - * @param value The redirectUris to set. - * @return This builder for chaining. - */ - public Builder setRedirectUris( - int index, java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureRedirectUrisIsMutable(); - redirectUris_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The redirectUris to add. - * @return This builder for chaining. - */ - public Builder addRedirectUris( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - ensureRedirectUrisIsMutable(); - redirectUris_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param values The redirectUris to add. - * @return This builder for chaining. - */ - public Builder addAllRedirectUris( - java.lang.Iterable values) { - ensureRedirectUrisIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, redirectUris_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return This builder for chaining. - */ - public Builder clearRedirectUris() { - redirectUris_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001);; - onChanged(); - return this; - } - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes of the redirectUris to add. - * @return This builder for chaining. - */ - public Builder addRedirectUrisBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - ensureRedirectUrisIsMutable(); - redirectUris_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object defaultRedirectUri_ = ""; - /** - * optional string default_redirect_uri = 3 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the defaultRedirectUri field is set. - */ - public boolean hasDefaultRedirectUri() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * optional string default_redirect_uri = 3 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The defaultRedirectUri. - */ - public java.lang.String getDefaultRedirectUri() { - java.lang.Object ref = defaultRedirectUri_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - defaultRedirectUri_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * optional string default_redirect_uri = 3 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for defaultRedirectUri. - */ - public com.google.protobuf.ByteString - getDefaultRedirectUriBytes() { - java.lang.Object ref = defaultRedirectUri_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - defaultRedirectUri_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * optional string default_redirect_uri = 3 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The defaultRedirectUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultRedirectUri( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - defaultRedirectUri_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * optional string default_redirect_uri = 3 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return This builder for chaining. - */ - public Builder clearDefaultRedirectUri() { - defaultRedirectUri_ = getDefaultInstance().getDefaultRedirectUri(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * optional string default_redirect_uri = 3 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for defaultRedirectUri to set. - * @return This builder for chaining. - */ - public Builder setDefaultRedirectUriBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - defaultRedirectUri_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - private com.google.protobuf.LazyStringArrayList backChannelLogoutUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); private void ensureBackChannelLogoutUrisIsMutable() { if (!backChannelLogoutUris_.isModifiable()) { backChannelLogoutUris_ = new com.google.protobuf.LazyStringArrayList(backChannelLogoutUris_); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; } /** * repeated string back_channel_logout_uris = 4 [json_name = "backChannelLogoutUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -1557,7 +1211,7 @@ public Builder setBackChannelLogoutUris( if (value == null) { throw new NullPointerException(); } ensureBackChannelLogoutUrisIsMutable(); backChannelLogoutUris_.set(index, value); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1571,7 +1225,7 @@ public Builder addBackChannelLogoutUris( if (value == null) { throw new NullPointerException(); } ensureBackChannelLogoutUrisIsMutable(); backChannelLogoutUris_.add(value); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1585,7 +1239,7 @@ public Builder addAllBackChannelLogoutUris( ensureBackChannelLogoutUrisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, backChannelLogoutUris_); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1596,7 +1250,7 @@ public Builder addAllBackChannelLogoutUris( public Builder clearBackChannelLogoutUris() { backChannelLogoutUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004);; + bitField0_ = (bitField0_ & ~0x00000001);; onChanged(); return this; } @@ -1611,7 +1265,7 @@ public Builder addBackChannelLogoutUrisBytes( checkByteStringIsUtf8(value); ensureBackChannelLogoutUrisIsMutable(); backChannelLogoutUris_.add(value); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -1622,7 +1276,7 @@ private void ensurePostLogoutRedirectUrisIsMutable() { if (!postLogoutRedirectUris_.isModifiable()) { postLogoutRedirectUris_ = new com.google.protobuf.LazyStringArrayList(postLogoutRedirectUris_); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; } /** * repeated string post_logout_redirect_uris = 5 [json_name = "postLogoutRedirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -1668,7 +1322,7 @@ public Builder setPostLogoutRedirectUris( if (value == null) { throw new NullPointerException(); } ensurePostLogoutRedirectUrisIsMutable(); postLogoutRedirectUris_.set(index, value); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1682,7 +1336,7 @@ public Builder addPostLogoutRedirectUris( if (value == null) { throw new NullPointerException(); } ensurePostLogoutRedirectUrisIsMutable(); postLogoutRedirectUris_.add(value); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1696,7 +1350,7 @@ public Builder addAllPostLogoutRedirectUris( ensurePostLogoutRedirectUrisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, postLogoutRedirectUris_); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1707,7 +1361,7 @@ public Builder addAllPostLogoutRedirectUris( public Builder clearPostLogoutRedirectUris() { postLogoutRedirectUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008);; + bitField0_ = (bitField0_ & ~0x00000002);; onChanged(); return this; } @@ -1722,7 +1376,7 @@ public Builder addPostLogoutRedirectUrisBytes( checkByteStringIsUtf8(value); ensurePostLogoutRedirectUrisIsMutable(); postLogoutRedirectUris_.add(value); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -1733,7 +1387,7 @@ public Builder addPostLogoutRedirectUrisBytes( * @return Whether the initiateLoginUri field is set. */ public boolean hasInitiateLoginUri() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** * optional string initiate_login_uri = 6 [json_name = "initiateLoginUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -1777,7 +1431,7 @@ public Builder setInitiateLoginUri( java.lang.String value) { if (value == null) { throw new NullPointerException(); } initiateLoginUri_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1787,7 +1441,7 @@ public Builder setInitiateLoginUri( */ public Builder clearInitiateLoginUri() { initiateLoginUri_ = getDefaultInstance().getInitiateLoginUri(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -1801,7 +1455,7 @@ public Builder setInitiateLoginUriBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); initiateLoginUri_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -1812,7 +1466,7 @@ private void ensurePostLoginUrisIsMutable() { if (!postLoginUris_.isModifiable()) { postLoginUris_ = new com.google.protobuf.LazyStringArrayList(postLoginUris_); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; } /** * repeated string post_login_uris = 7 [json_name = "postLoginUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -1858,7 +1512,7 @@ public Builder setPostLoginUris( if (value == null) { throw new NullPointerException(); } ensurePostLoginUrisIsMutable(); postLoginUris_.set(index, value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1872,7 +1526,7 @@ public Builder addPostLoginUris( if (value == null) { throw new NullPointerException(); } ensurePostLoginUrisIsMutable(); postLoginUris_.add(value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1886,7 +1540,7 @@ public Builder addAllPostLoginUris( ensurePostLoginUrisIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, postLoginUris_); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1897,7 +1551,7 @@ public Builder addAllPostLoginUris( public Builder clearPostLoginUris() { postLoginUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020);; + bitField0_ = (bitField0_ & ~0x00000008);; onChanged(); return this; } @@ -1912,7 +1566,7 @@ public Builder addPostLoginUrisBytes( checkByteStringIsUtf8(value); ensurePostLoginUrisIsMutable(); postLoginUris_.add(value); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1960,7 +1614,7 @@ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1970,7 +1624,7 @@ public Builder setName( */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1984,7 +1638,7 @@ public Builder setNameBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2006,7 +1660,7 @@ public long getAccessTokenExpiry() { public Builder setAccessTokenExpiry(long value) { accessTokenExpiry_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2015,7 +1669,7 @@ public Builder setAccessTokenExpiry(long value) { * @return This builder for chaining. */ public Builder clearAccessTokenExpiry() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000020); accessTokenExpiry_ = 0L; onChanged(); return this; @@ -2027,7 +1681,7 @@ private void ensureScopesIsMutable() { if (!scopes_.isModifiable()) { scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; } /** * repeated string scopes = 11 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -2073,7 +1727,7 @@ public Builder setScopes( if (value == null) { throw new NullPointerException(); } ensureScopesIsMutable(); scopes_.set(index, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2087,7 +1741,7 @@ public Builder addScopes( if (value == null) { throw new NullPointerException(); } ensureScopesIsMutable(); scopes_.add(value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2101,7 +1755,7 @@ public Builder addAllScopes( ensureScopesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, scopes_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2112,7 +1766,7 @@ public Builder addAllScopes( public Builder clearScopes() { scopes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100);; + bitField0_ = (bitField0_ & ~0x00000040);; onChanged(); return this; } @@ -2127,7 +1781,7 @@ public Builder addScopesBytes( checkByteStringIsUtf8(value); ensureScopesIsMutable(); scopes_.add(value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2135,9 +1789,9 @@ public Builder addScopesBytes( private java.util.List customClaims_ = java.util.Collections.emptyList(); private void ensureCustomClaimsIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00000080) != 0)) { customClaims_ = new java.util.ArrayList(customClaims_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000080; } } @@ -2287,7 +1941,7 @@ public Builder addAllCustomClaims( public Builder clearCustomClaims() { if (customClaimsBuilder_ == null) { customClaims_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { customClaimsBuilder_.clear(); @@ -2364,7 +2018,7 @@ public com.scalekit.grpc.scalekit.v1.clients.CustomClaim.Builder addCustomClaims customClaimsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.scalekit.grpc.scalekit.v1.clients.CustomClaim, com.scalekit.grpc.scalekit.v1.clients.CustomClaim.Builder, com.scalekit.grpc.scalekit.v1.clients.CustomClaimOrBuilder>( customClaims_, - ((bitField0_ & 0x00000200) != 0), + ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); customClaims_ = null; @@ -2380,7 +2034,7 @@ public com.scalekit.grpc.scalekit.v1.clients.CustomClaim.Builder addCustomClaims * @return Whether the disallowScalekitApiAccess field is set. */ public boolean hasDisallowScalekitApiAccess() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * .google.protobuf.BoolValue disallow_scalekit_api_access = 13 [json_name = "disallowScalekitApiAccess", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -2405,7 +2059,7 @@ public Builder setDisallowScalekitApiAccess(com.google.protobuf.BoolValue value) } else { disallowScalekitApiAccessBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2419,7 +2073,7 @@ public Builder setDisallowScalekitApiAccess( } else { disallowScalekitApiAccessBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2428,7 +2082,7 @@ public Builder setDisallowScalekitApiAccess( */ public Builder mergeDisallowScalekitApiAccess(com.google.protobuf.BoolValue value) { if (disallowScalekitApiAccessBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) && + if (((bitField0_ & 0x00000100) != 0) && disallowScalekitApiAccess_ != null && disallowScalekitApiAccess_ != com.google.protobuf.BoolValue.getDefaultInstance()) { getDisallowScalekitApiAccessBuilder().mergeFrom(value); @@ -2439,7 +2093,7 @@ public Builder mergeDisallowScalekitApiAccess(com.google.protobuf.BoolValue valu disallowScalekitApiAccessBuilder_.mergeFrom(value); } if (disallowScalekitApiAccess_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000100; onChanged(); } return this; @@ -2448,7 +2102,7 @@ public Builder mergeDisallowScalekitApiAccess(com.google.protobuf.BoolValue valu * .google.protobuf.BoolValue disallow_scalekit_api_access = 13 [json_name = "disallowScalekitApiAccess", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder clearDisallowScalekitApiAccess() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000100); disallowScalekitApiAccess_ = null; if (disallowScalekitApiAccessBuilder_ != null) { disallowScalekitApiAccessBuilder_.dispose(); @@ -2461,7 +2115,7 @@ public Builder clearDisallowScalekitApiAccess() { * .google.protobuf.BoolValue disallow_scalekit_api_access = 13 [json_name = "disallowScalekitApiAccess", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.google.protobuf.BoolValue.Builder getDisallowScalekitApiAccessBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000100; onChanged(); return getDisallowScalekitApiAccessFieldBuilder().getBuilder(); } @@ -2499,7 +2153,7 @@ private void ensureGrantTypesIsMutable() { if (!grantTypes_.isModifiable()) { grantTypes_ = new com.google.protobuf.LazyStringArrayList(grantTypes_); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; } /** * repeated string grant_types = 14 [json_name = "grantTypes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -2545,7 +2199,7 @@ public Builder setGrantTypes( if (value == null) { throw new NullPointerException(); } ensureGrantTypesIsMutable(); grantTypes_.set(index, value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2559,7 +2213,7 @@ public Builder addGrantTypes( if (value == null) { throw new NullPointerException(); } ensureGrantTypesIsMutable(); grantTypes_.add(value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2573,7 +2227,7 @@ public Builder addAllGrantTypes( ensureGrantTypesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, grantTypes_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2584,7 +2238,7 @@ public Builder addAllGrantTypes( public Builder clearGrantTypes() { grantTypes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800);; + bitField0_ = (bitField0_ & ~0x00000200);; onChanged(); return this; } @@ -2599,7 +2253,7 @@ public Builder addGrantTypesBytes( checkByteStringIsUtf8(value); ensureGrantTypesIsMutable(); grantTypes_.add(value); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -2612,7 +2266,7 @@ public Builder addGrantTypesBytes( * @return Whether the enforcePkce field is set. */ public boolean hasEnforcePkce() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** * .google.protobuf.BoolValue enforce_pkce = 15 [json_name = "enforcePkce", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -2637,7 +2291,7 @@ public Builder setEnforcePkce(com.google.protobuf.BoolValue value) { } else { enforcePkceBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2651,7 +2305,7 @@ public Builder setEnforcePkce( } else { enforcePkceBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -2660,7 +2314,7 @@ public Builder setEnforcePkce( */ public Builder mergeEnforcePkce(com.google.protobuf.BoolValue value) { if (enforcePkceBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) && + if (((bitField0_ & 0x00000400) != 0) && enforcePkce_ != null && enforcePkce_ != com.google.protobuf.BoolValue.getDefaultInstance()) { getEnforcePkceBuilder().mergeFrom(value); @@ -2671,7 +2325,7 @@ public Builder mergeEnforcePkce(com.google.protobuf.BoolValue value) { enforcePkceBuilder_.mergeFrom(value); } if (enforcePkce_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -2680,7 +2334,7 @@ public Builder mergeEnforcePkce(com.google.protobuf.BoolValue value) { * .google.protobuf.BoolValue enforce_pkce = 15 [json_name = "enforcePkce", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder clearEnforcePkce() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00000400); enforcePkce_ = null; if (enforcePkceBuilder_ != null) { enforcePkceBuilder_.dispose(); @@ -2693,7 +2347,7 @@ public Builder clearEnforcePkce() { * .google.protobuf.BoolValue enforce_pkce = 15 [json_name = "enforcePkce", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.google.protobuf.BoolValue.Builder getEnforcePkceBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00000400; onChanged(); return getEnforcePkceFieldBuilder().getBuilder(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/UpdateClientOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/UpdateClientOrBuilder.java index 30897119..7a267994 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/clients/UpdateClientOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/clients/UpdateClientOrBuilder.java @@ -8,48 +8,6 @@ public interface UpdateClientOrBuilder extends // @@protoc_insertion_point(interface_extends:scalekit.v1.clients.UpdateClient) com.google.protobuf.MessageOrBuilder { - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return A list containing the redirectUris. - */ - java.util.List - getRedirectUrisList(); - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The count of redirectUris. - */ - int getRedirectUrisCount(); - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index of the element to return. - * @return The redirectUris at the given index. - */ - java.lang.String getRedirectUris(int index); - /** - * repeated string redirect_uris = 2 [json_name = "redirectUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param index The index of the value to return. - * @return The bytes of the redirectUris at the given index. - */ - com.google.protobuf.ByteString - getRedirectUrisBytes(int index); - - /** - * optional string default_redirect_uri = 3 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the defaultRedirectUri field is set. - */ - boolean hasDefaultRedirectUri(); - /** - * optional string default_redirect_uri = 3 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The defaultRedirectUri. - */ - java.lang.String getDefaultRedirectUri(); - /** - * optional string default_redirect_uri = 3 [json_name = "defaultRedirectUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for defaultRedirectUri. - */ - com.google.protobuf.ByteString - getDefaultRedirectUriBytes(); - /** * repeated string back_channel_logout_uris = 4 [json_name = "backChannelLogoutUris", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return A list containing the backChannelLogoutUris. diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/commons/CommonsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/commons/CommonsProto.java index f87847bd..bbe57735 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/commons/CommonsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/commons/CommonsProto.java @@ -342,12 +342,14 @@ public static void registerAllExtensions( "\020\016\022\014\n\010SCALEKIT\020\017\022\010\n\004ADFS\020\020*`\n\022Authentica" + "tionMode\022#\n\037AUTHENTICATION_MODE_UNSPECIF" + "IED\020\000\022\020\n\014MODULAR_AUTH\020\001\022\023\n\017FULL_STACK_AU" + - "TH\020\002B\326\001\n%com.scalekit.grpc.scalekit.v1.c" + - "ommonsB\014CommonsProtoP\001Z1github.com/scale" + - "kit-inc/scalekit/pkg/grpc/commons\242\002\003SVC\252" + - "\002\023Scalekit.V1.Commons\312\002\023Scalekit\\V1\\Comm" + - "ons\342\002\037Scalekit\\V1\\Commons\\GPBMetadata\352\002\025" + - "Scalekit::V1::Commonsb\006proto3" + "TH\020\002*O\n\010TimeUnit\022!\n\035SESSION_TIME_UNIT_UN" + + "SPECIFIED\020\000\022\013\n\007MINUTES\020\001\022\t\n\005HOURS\020\002\022\010\n\004D" + + "AYS\020\003B\326\001\n%com.scalekit.grpc.scalekit.v1." + + "commonsB\014CommonsProtoP\001Z1github.com/scal" + + "ekit-inc/scalekit/pkg/grpc/commons\242\002\003SVC" + + "\252\002\023Scalekit.V1.Commons\312\002\023Scalekit\\V1\\Com" + + "mons\342\002\037Scalekit\\V1\\Commons\\GPBMetadata\352\002" + + "\025Scalekit::V1::Commonsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/commons/TimeUnit.java b/src/main/java/com/scalekit/grpc/scalekit/v1/commons/TimeUnit.java new file mode 100644 index 00000000..39fe861e --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/commons/TimeUnit.java @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/commons/commons.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.commons; + +/** + * Protobuf enum {@code scalekit.v1.commons.TimeUnit} + */ +public enum TimeUnit + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SESSION_TIME_UNIT_UNSPECIFIED = 0; + */ + SESSION_TIME_UNIT_UNSPECIFIED(0), + /** + * MINUTES = 1; + */ + MINUTES(1), + /** + * HOURS = 2; + */ + HOURS(2), + /** + * DAYS = 3; + */ + DAYS(3), + UNRECOGNIZED(-1), + ; + + /** + * SESSION_TIME_UNIT_UNSPECIFIED = 0; + */ + public static final int SESSION_TIME_UNIT_UNSPECIFIED_VALUE = 0; + /** + * MINUTES = 1; + */ + public static final int MINUTES_VALUE = 1; + /** + * HOURS = 2; + */ + public static final int HOURS_VALUE = 2; + /** + * DAYS = 3; + */ + public static final int DAYS_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TimeUnit 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 TimeUnit forNumber(int value) { + switch (value) { + case 0: return SESSION_TIME_UNIT_UNSPECIFIED; + case 1: return MINUTES; + case 2: return HOURS; + case 3: return DAYS; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + TimeUnit> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TimeUnit findValueByNumber(int number) { + return TimeUnit.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.commons.CommonsProto.getDescriptor().getEnumTypes().get(5); + } + + private static final TimeUnit[] VALUES = values(); + + public static TimeUnit 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 TimeUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:scalekit.v1.commons.TimeUnit) +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/AuthorizationDetails.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/AuthorizationDetails.java index 1b85f082..c65f3132 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/AuthorizationDetails.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/AuthorizationDetails.java @@ -51,6 +51,7 @@ public enum DetailsCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { OAUTH_TOKEN(1), STATIC_AUTH(2), + GOOGLE_DWD(3), DETAILS_NOT_SET(0); private final int value; private DetailsCase(int value) { @@ -70,6 +71,7 @@ public static DetailsCase forNumber(int value) { switch (value) { case 1: return OAUTH_TOKEN; case 2: return STATIC_AUTH; + case 3: return GOOGLE_DWD; case 0: return DETAILS_NOT_SET; default: return null; } @@ -171,6 +173,49 @@ public com.scalekit.grpc.scalekit.v1.connected_accounts.StaticAuthOrBuilder getS return com.scalekit.grpc.scalekit.v1.connected_accounts.StaticAuth.getDefaultInstance(); } + public static final int GOOGLE_DWD_FIELD_NUMBER = 3; + /** + *
+   * Google Domain-Wide Delegation credentials
+   * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + * @return Whether the googleDwd field is set. + */ + @java.lang.Override + public boolean hasGoogleDwd() { + return detailsCase_ == 3; + } + /** + *
+   * Google Domain-Wide Delegation credentials
+   * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + * @return The googleDwd. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth getGoogleDwd() { + if (detailsCase_ == 3) { + return (com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth) details_; + } + return com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.getDefaultInstance(); + } + /** + *
+   * Google Domain-Wide Delegation credentials
+   * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuthOrBuilder getGoogleDwdOrBuilder() { + if (detailsCase_ == 3) { + return (com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth) details_; + } + return com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -191,6 +236,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (detailsCase_ == 2) { output.writeMessage(2, (com.scalekit.grpc.scalekit.v1.connected_accounts.StaticAuth) details_); } + if (detailsCase_ == 3) { + output.writeMessage(3, (com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth) details_); + } getUnknownFields().writeTo(output); } @@ -208,6 +256,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (com.scalekit.grpc.scalekit.v1.connected_accounts.StaticAuth) details_); } + if (detailsCase_ == 3) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, (com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth) details_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -233,6 +285,10 @@ public boolean equals(final java.lang.Object obj) { if (!getStaticAuth() .equals(other.getStaticAuth())) return false; break; + case 3: + if (!getGoogleDwd() + .equals(other.getGoogleDwd())) return false; + break; case 0: default: } @@ -256,6 +312,10 @@ public int hashCode() { hash = (37 * hash) + STATIC_AUTH_FIELD_NUMBER; hash = (53 * hash) + getStaticAuth().hashCode(); break; + case 3: + hash = (37 * hash) + GOOGLE_DWD_FIELD_NUMBER; + hash = (53 * hash) + getGoogleDwd().hashCode(); + break; case 0: default: } @@ -400,6 +460,9 @@ public Builder clear() { if (staticAuthBuilder_ != null) { staticAuthBuilder_.clear(); } + if (googleDwdBuilder_ != null) { + googleDwdBuilder_.clear(); + } detailsCase_ = 0; details_ = null; return this; @@ -449,6 +512,10 @@ private void buildPartialOneofs(com.scalekit.grpc.scalekit.v1.connected_accounts staticAuthBuilder_ != null) { result.details_ = staticAuthBuilder_.build(); } + if (detailsCase_ == 3 && + googleDwdBuilder_ != null) { + result.details_ = googleDwdBuilder_.build(); + } } @java.lang.Override @@ -504,6 +571,10 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connected_accounts.Author mergeStaticAuth(other.getStaticAuth()); break; } + case GOOGLE_DWD: { + mergeGoogleDwd(other.getGoogleDwd()); + break; + } case DETAILS_NOT_SET: { break; } @@ -548,6 +619,13 @@ public Builder mergeFrom( detailsCase_ = 2; break; } // case 18 + case 26: { + input.readMessage( + getGoogleDwdFieldBuilder().getBuilder(), + extensionRegistry); + detailsCase_ = 3; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -935,6 +1013,184 @@ public com.scalekit.grpc.scalekit.v1.connected_accounts.StaticAuthOrBuilder getS onChanged(); return staticAuthBuilder_; } + + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth, com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.Builder, com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuthOrBuilder> googleDwdBuilder_; + /** + *
+     * Google Domain-Wide Delegation credentials
+     * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + * @return Whether the googleDwd field is set. + */ + @java.lang.Override + public boolean hasGoogleDwd() { + return detailsCase_ == 3; + } + /** + *
+     * Google Domain-Wide Delegation credentials
+     * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + * @return The googleDwd. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth getGoogleDwd() { + if (googleDwdBuilder_ == null) { + if (detailsCase_ == 3) { + return (com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth) details_; + } + return com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.getDefaultInstance(); + } else { + if (detailsCase_ == 3) { + return googleDwdBuilder_.getMessage(); + } + return com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.getDefaultInstance(); + } + } + /** + *
+     * Google Domain-Wide Delegation credentials
+     * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + */ + public Builder setGoogleDwd(com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth value) { + if (googleDwdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + onChanged(); + } else { + googleDwdBuilder_.setMessage(value); + } + detailsCase_ = 3; + return this; + } + /** + *
+     * Google Domain-Wide Delegation credentials
+     * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + */ + public Builder setGoogleDwd( + com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.Builder builderForValue) { + if (googleDwdBuilder_ == null) { + details_ = builderForValue.build(); + onChanged(); + } else { + googleDwdBuilder_.setMessage(builderForValue.build()); + } + detailsCase_ = 3; + return this; + } + /** + *
+     * Google Domain-Wide Delegation credentials
+     * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + */ + public Builder mergeGoogleDwd(com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth value) { + if (googleDwdBuilder_ == null) { + if (detailsCase_ == 3 && + details_ != com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.getDefaultInstance()) { + details_ = com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.newBuilder((com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth) details_) + .mergeFrom(value).buildPartial(); + } else { + details_ = value; + } + onChanged(); + } else { + if (detailsCase_ == 3) { + googleDwdBuilder_.mergeFrom(value); + } else { + googleDwdBuilder_.setMessage(value); + } + } + detailsCase_ = 3; + return this; + } + /** + *
+     * Google Domain-Wide Delegation credentials
+     * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + */ + public Builder clearGoogleDwd() { + if (googleDwdBuilder_ == null) { + if (detailsCase_ == 3) { + detailsCase_ = 0; + details_ = null; + onChanged(); + } + } else { + if (detailsCase_ == 3) { + detailsCase_ = 0; + details_ = null; + } + googleDwdBuilder_.clear(); + } + return this; + } + /** + *
+     * Google Domain-Wide Delegation credentials
+     * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + */ + public com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.Builder getGoogleDwdBuilder() { + return getGoogleDwdFieldBuilder().getBuilder(); + } + /** + *
+     * Google Domain-Wide Delegation credentials
+     * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuthOrBuilder getGoogleDwdOrBuilder() { + if ((detailsCase_ == 3) && (googleDwdBuilder_ != null)) { + return googleDwdBuilder_.getMessageOrBuilder(); + } else { + if (detailsCase_ == 3) { + return (com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth) details_; + } + return com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.getDefaultInstance(); + } + } + /** + *
+     * Google Domain-Wide Delegation credentials
+     * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth, com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.Builder, com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuthOrBuilder> + getGoogleDwdFieldBuilder() { + if (googleDwdBuilder_ == null) { + if (!(detailsCase_ == 3)) { + details_ = com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.getDefaultInstance(); + } + googleDwdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth, com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.Builder, com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuthOrBuilder>( + (com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth) details_, + getParentForChildren(), + isClean()); + details_ = null; + } + detailsCase_ = 3; + onChanged(); + return googleDwdBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/AuthorizationDetailsOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/AuthorizationDetailsOrBuilder.java index a86dd66b..98f1763c 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/AuthorizationDetailsOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/AuthorizationDetailsOrBuilder.java @@ -62,5 +62,32 @@ public interface AuthorizationDetailsOrBuilder extends */ com.scalekit.grpc.scalekit.v1.connected_accounts.StaticAuthOrBuilder getStaticAuthOrBuilder(); + /** + *
+   * Google Domain-Wide Delegation credentials
+   * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + * @return Whether the googleDwd field is set. + */ + boolean hasGoogleDwd(); + /** + *
+   * Google Domain-Wide Delegation credentials
+   * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + * @return The googleDwd. + */ + com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth getGoogleDwd(); + /** + *
+   * Google Domain-Wide Delegation credentials
+   * 
+ * + * .scalekit.v1.connected_accounts.GoogleDWDAuth google_dwd = 3 [json_name = "googleDwd"]; + */ + com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuthOrBuilder getGoogleDwdOrBuilder(); + com.scalekit.grpc.scalekit.v1.connected_accounts.AuthorizationDetails.DetailsCase getDetailsCase(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectedAccountServiceGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectedAccountServiceGrpc.java index 6c9c3d0b..f3b0b10f 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectedAccountServiceGrpc.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectedAccountServiceGrpc.java @@ -201,6 +201,68 @@ com.scalekit.grpc.scalekit.v1.connected_accounts.GetMagicLinkForConnectedAccount return getGetMagicLinkForConnectedAccountMethod; } + private static volatile io.grpc.MethodDescriptor getGetConnectedAccountMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnectedAccount", + requestType = com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConnectedAccountMethod() { + io.grpc.MethodDescriptor getGetConnectedAccountMethod; + if ((getGetConnectedAccountMethod = ConnectedAccountServiceGrpc.getGetConnectedAccountMethod) == null) { + synchronized (ConnectedAccountServiceGrpc.class) { + if ((getGetConnectedAccountMethod = ConnectedAccountServiceGrpc.getGetConnectedAccountMethod) == null) { + ConnectedAccountServiceGrpc.getGetConnectedAccountMethod = getGetConnectedAccountMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnectedAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectedAccountServiceMethodDescriptorSupplier("GetConnectedAccount")) + .build(); + } + } + } + return getGetConnectedAccountMethod; + } + + private static volatile io.grpc.MethodDescriptor getDisconnectConnectedAccountMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DisconnectConnectedAccount", + requestType = com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDisconnectConnectedAccountMethod() { + io.grpc.MethodDescriptor getDisconnectConnectedAccountMethod; + if ((getDisconnectConnectedAccountMethod = ConnectedAccountServiceGrpc.getDisconnectConnectedAccountMethod) == null) { + synchronized (ConnectedAccountServiceGrpc.class) { + if ((getDisconnectConnectedAccountMethod = ConnectedAccountServiceGrpc.getDisconnectConnectedAccountMethod) == null) { + ConnectedAccountServiceGrpc.getDisconnectConnectedAccountMethod = getDisconnectConnectedAccountMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DisconnectConnectedAccount")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectedAccountServiceMethodDescriptorSupplier("DisconnectConnectedAccount")) + .build(); + } + } + } + return getDisconnectConnectedAccountMethod; + } + private static volatile io.grpc.MethodDescriptor getGetConnectedAccountAuthMethod; @@ -232,6 +294,68 @@ com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifier return getGetConnectedAccountAuthMethod; } + private static volatile io.grpc.MethodDescriptor getGetConnectedAccountDetailsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnectedAccountDetails", + requestType = com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConnectedAccountDetailsMethod() { + io.grpc.MethodDescriptor getGetConnectedAccountDetailsMethod; + if ((getGetConnectedAccountDetailsMethod = ConnectedAccountServiceGrpc.getGetConnectedAccountDetailsMethod) == null) { + synchronized (ConnectedAccountServiceGrpc.class) { + if ((getGetConnectedAccountDetailsMethod = ConnectedAccountServiceGrpc.getGetConnectedAccountDetailsMethod) == null) { + ConnectedAccountServiceGrpc.getGetConnectedAccountDetailsMethod = getGetConnectedAccountDetailsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnectedAccountDetails")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectedAccountServiceMethodDescriptorSupplier("GetConnectedAccountDetails")) + .build(); + } + } + } + return getGetConnectedAccountDetailsMethod; + } + + private static volatile io.grpc.MethodDescriptor getVerifyConnectedAccountUserMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "VerifyConnectedAccountUser", + requestType = com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getVerifyConnectedAccountUserMethod() { + io.grpc.MethodDescriptor getVerifyConnectedAccountUserMethod; + if ((getVerifyConnectedAccountUserMethod = ConnectedAccountServiceGrpc.getVerifyConnectedAccountUserMethod) == null) { + synchronized (ConnectedAccountServiceGrpc.class) { + if ((getVerifyConnectedAccountUserMethod = ConnectedAccountServiceGrpc.getVerifyConnectedAccountUserMethod) == null) { + ConnectedAccountServiceGrpc.getVerifyConnectedAccountUserMethod = getVerifyConnectedAccountUserMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyConnectedAccountUser")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectedAccountServiceMethodDescriptorSupplier("VerifyConnectedAccountUser")) + .build(); + } + } + } + return getVerifyConnectedAccountUserMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -340,6 +464,26 @@ default void getMagicLinkForConnectedAccount(com.scalekit.grpc.scalekit.v1.conne io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMagicLinkForConnectedAccountMethod(), responseObserver); } + /** + *
+     * Get Connected Account by ID
+     * 
+ */ + default void getConnectedAccount(com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectedAccountMethod(), responseObserver); + } + + /** + *
+     * Disconnect a Connected Account
+     * 
+ */ + default void disconnectConnectedAccount(com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDisconnectConnectedAccountMethod(), responseObserver); + } + /** *
      * Get Connected Account Authentication Details
@@ -349,6 +493,26 @@ default void getConnectedAccountAuth(com.scalekit.grpc.scalekit.v1.connected_acc
         io.grpc.stub.StreamObserver responseObserver) {
       io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectedAccountAuthMethod(), responseObserver);
     }
+
+    /**
+     * 
+     * Get Connected Account Details (without auth credentials)
+     * 
+ */ + default void getConnectedAccountDetails(com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectedAccountDetailsMethod(), responseObserver); + } + + /** + *
+     * Verify connected account user after OAuth callback
+     * 
+ */ + default void verifyConnectedAccountUser(com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyConnectedAccountUserMethod(), responseObserver); + } } /** @@ -444,6 +608,28 @@ public void getMagicLinkForConnectedAccount(com.scalekit.grpc.scalekit.v1.connec getChannel().newCall(getGetMagicLinkForConnectedAccountMethod(), getCallOptions()), request, responseObserver); } + /** + *
+     * Get Connected Account by ID
+     * 
+ */ + public void getConnectedAccount(com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectedAccountMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Disconnect a Connected Account
+     * 
+ */ + public void disconnectConnectedAccount(com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDisconnectConnectedAccountMethod(), getCallOptions()), request, responseObserver); + } + /** *
      * Get Connected Account Authentication Details
@@ -454,6 +640,28 @@ public void getConnectedAccountAuth(com.scalekit.grpc.scalekit.v1.connected_acco
       io.grpc.stub.ClientCalls.asyncUnaryCall(
           getChannel().newCall(getGetConnectedAccountAuthMethod(), getCallOptions()), request, responseObserver);
     }
+
+    /**
+     * 
+     * Get Connected Account Details (without auth credentials)
+     * 
+ */ + public void getConnectedAccountDetails(com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectedAccountDetailsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * Verify connected account user after OAuth callback
+     * 
+ */ + public void verifyConnectedAccountUser(com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getVerifyConnectedAccountUserMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -532,6 +740,26 @@ public com.scalekit.grpc.scalekit.v1.connected_accounts.GetMagicLinkForConnected getChannel(), getGetMagicLinkForConnectedAccountMethod(), getCallOptions(), request); } + /** + *
+     * Get Connected Account by ID
+     * 
+ */ + public com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse getConnectedAccount(com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectedAccountMethod(), getCallOptions(), request); + } + + /** + *
+     * Disconnect a Connected Account
+     * 
+ */ + public com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse disconnectConnectedAccount(com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDisconnectConnectedAccountMethod(), getCallOptions(), request); + } + /** *
      * Get Connected Account Authentication Details
@@ -541,6 +769,26 @@ public com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIde
       return io.grpc.stub.ClientCalls.blockingUnaryCall(
           getChannel(), getGetConnectedAccountAuthMethod(), getCallOptions(), request);
     }
+
+    /**
+     * 
+     * Get Connected Account Details (without auth credentials)
+     * 
+ */ + public com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierResponse getConnectedAccountDetails(com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectedAccountDetailsMethod(), getCallOptions(), request); + } + + /** + *
+     * Verify connected account user after OAuth callback
+     * 
+ */ + public com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse verifyConnectedAccountUser(com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getVerifyConnectedAccountUserMethod(), getCallOptions(), request); + } } /** @@ -625,6 +873,28 @@ public com.google.common.util.concurrent.ListenableFuture + * Get Connected Account by ID + *
+ */ + public com.google.common.util.concurrent.ListenableFuture getConnectedAccount( + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectedAccountMethod(), getCallOptions()), request); + } + + /** + *
+     * Disconnect a Connected Account
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture disconnectConnectedAccount( + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDisconnectConnectedAccountMethod(), getCallOptions()), request); + } + /** *
      * Get Connected Account Authentication Details
@@ -635,6 +905,28 @@ public com.google.common.util.concurrent.ListenableFuture
+     * Get Connected Account Details (without auth credentials)
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture getConnectedAccountDetails( + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectedAccountDetailsMethod(), getCallOptions()), request); + } + + /** + *
+     * Verify connected account user after OAuth callback
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture verifyConnectedAccountUser( + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getVerifyConnectedAccountUserMethod(), getCallOptions()), request); + } } private static final int METHODID_LIST_CONNECTED_ACCOUNTS = 0; @@ -643,7 +935,11 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -686,10 +982,26 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.getMagicLinkForConnectedAccount((com.scalekit.grpc.scalekit.v1.connected_accounts.GetMagicLinkForConnectedAccountRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_CONNECTED_ACCOUNT: + serviceImpl.getConnectedAccount((com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DISCONNECT_CONNECTED_ACCOUNT: + serviceImpl.disconnectConnectedAccount((com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_CONNECTED_ACCOUNT_AUTH: serviceImpl.getConnectedAccountAuth((com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_CONNECTED_ACCOUNT_DETAILS: + serviceImpl.getConnectedAccountDetails((com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VERIFY_CONNECTED_ACCOUNT_USER: + serviceImpl.verifyConnectedAccountUser((com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -750,6 +1062,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.connected_accounts.GetMagicLinkForConnectedAccountRequest, com.scalekit.grpc.scalekit.v1.connected_accounts.GetMagicLinkForConnectedAccountResponse>( service, METHODID_GET_MAGIC_LINK_FOR_CONNECTED_ACCOUNT))) + .addMethod( + getGetConnectedAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest, + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse>( + service, METHODID_GET_CONNECTED_ACCOUNT))) + .addMethod( + getDisconnectConnectedAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest, + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse>( + service, METHODID_DISCONNECT_CONNECTED_ACCOUNT))) .addMethod( getGetConnectedAccountAuthMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -757,6 +1083,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierRequest, com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierResponse>( service, METHODID_GET_CONNECTED_ACCOUNT_AUTH))) + .addMethod( + getGetConnectedAccountDetailsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierRequest, + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountByIdentifierResponse>( + service, METHODID_GET_CONNECTED_ACCOUNT_DETAILS))) + .addMethod( + getVerifyConnectedAccountUserMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest, + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse>( + service, METHODID_VERIFY_CONNECTED_ACCOUNT_USER))) .build(); } @@ -811,7 +1151,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateConnectedAccountMethod()) .addMethod(getDeleteConnectedAccountMethod()) .addMethod(getGetMagicLinkForConnectedAccountMethod()) + .addMethod(getGetConnectedAccountMethod()) + .addMethod(getDisconnectConnectedAccountMethod()) .addMethod(getGetConnectedAccountAuthMethod()) + .addMethod(getGetConnectedAccountDetailsMethod()) + .addMethod(getVerifyConnectedAccountUserMethod()) .build(); } } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectedAccountsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectedAccountsProto.java index c8a3f52f..a5b86b15 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectedAccountsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectedAccountsProto.java @@ -75,6 +75,16 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_connected_accounts_GetMagicLinkForConnectedAccountResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_scalekit_v1_connected_accounts_GetConnectedAccountByIdentifierRequest_descriptor; static final @@ -110,6 +120,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_connected_accounts_AuthorizationDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_connected_accounts_GoogleDWDAuth_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_connected_accounts_GoogleDWDAuth_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_scalekit_v1_connected_accounts_OauthToken_descriptor; static final @@ -120,6 +135,26 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_connected_accounts_StaticAuth_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_connected_accounts_GetConnectedAccountRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_connected_accounts_GetConnectedAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_connected_accounts_GetConnectedAccountResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_connected_accounts_GetConnectedAccountResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -137,7 +172,7 @@ public static void registerAllExtensions( "lity.proto\032\034google/protobuf/struct.proto" + "\032\037google/protobuf/timestamp.proto\032.proto" + "c-gen-openapiv2/options/annotations.prot" + - "o\032!scalekit/v1/options/options.proto\"\225\014\n" + + "o\032!scalekit/v1/options/options.proto\"\251\014\n" + "\034ListConnectedAccountsRequest\022\261\001\n\017organi" + "zation_id\030\001 \001(\tB\202\001\222Av2]Filter by organiz" + "ation ID. Returns only connected account" + @@ -146,572 +181,724 @@ public static void registerAllExtensions( "tionId\210\001\001\022\221\001\n\007user_id\030\002 \001(\tBs\222Ag2MFilter" + " by user ID. Returns only connected acco" + "unts associated with this user.J\026\"user_1" + - "21312434123312\"\272H\006r\004\020\000\030 H\001R\006userId\210\001\001\022\333\001" + - "\n\tconnector\030\003 \001(\tB\267\001\222A\230\0012\213\001Filter by con" + + "21312434123312\"\272H\006r\004\020\000\030 H\001R\006userId\210\001\001\022\357\001" + + "\n\tconnector\030\003 \001(\tB\313\001\222A\251\0012\234\001Filter by con" + "nector type. Connector identifier such a" + "s \'notion\', \'slack\', \'google\', etc. Alph" + - "anumeric with hyphens and underscores al" + - "lowed.J\010\"notion\"\272H\030r\026\020\000\03022\020^[a-zA-Z0-9_-" + - "]*$H\002R\tconnector\210\001\001\022\333\001\n\nidentifier\030\004 \001(\t" + - "B\265\001\222A\250\0012\221\001Filter by account identifier. " + - "The unique identifier for the connected " + - "account within the third-party service (" + - "e.g., email address, workspace ID).J\022\"us" + + "anumeric with spaces, hyphens, underscor" + + "es, and colons allowed.J\010\"notion\"\272H\033r\031\020\000" + + "\030\220\0032\022^[a-zA-Z0-9_: -]*$H\002R\tconnector\210\001\001\022" + + "\333\001\n\nidentifier\030\004 \001(\tB\265\001\222A\250\0012\221\001Filter by " + + "account identifier. The unique identifie" + + "r for the connected account within the t" + + "hird-party service (e.g., email address," + + " workspace ID).J\022\"user@example.com\"\272H\006r\004" + + "\020\000\030dH\003R\nidentifier\210\001\001\022\235\001\n\010provider\030\005 \001(\t" + + "B\200\001\222At2hFilter by OAuth provider. The au" + + "thentication provider name such as \'goog" + + "le\', \'microsoft\', \'github\', etc.J\010\"googl" + + "e\"\272H\006r\004\020\000\0302R\010provider\022\233\001\n\tpage_size\030\006 \001(" + + "\rB~\222Ar2lMaximum number of connected acco" + + "unts to return per page. Must be between" + + " 0 and 100. Default is typically 10.J\00210" + + "\272H\006*\004\020d(\000R\010pageSize\022\313\001\n\npage_token\030\007 \001(\t" + + "B\253\001\222A\236\0012\203\001Pagination token from a previo" + + "us response. Use the next_page_token val" + + "ue from ListConnectedAccountsResponse to" + + " fetch the next page.J\026\"eyJvZmZzZXQiOjEw" + + "fQ==\"\272H\006r\004\020\000\030dR\tpageToken\022\247\001\n\005query\030\010 \001(" + + "\tB\220\001\222A\203\0012qText search query to filter co" + + "nnected accounts by name, identifier, or" + + " other searchable fields. Case-insensiti" + + "ve.J\016\"john@example\"\272H\006r\004\020\000\030dR\005queryB\022\n\020_" + + "organization_idB\n\n\010_user_idB\014\n\n_connecto" + + "rB\r\n\013_identifier\"\273\006\n\035ListConnectedAccoun" + + "tsResponse\022\334\001\n\022connected_accounts\030\001 \003(\0132" + + "7.scalekit.v1.connected_accounts.Connect" + + "edAccountForListBt\222Aq2oList of connected" + + " accounts matching the filter criteria. " + + "Excludes sensitive authorization details" + + " for security.R\021connectedAccounts\022\231\001\n\nto" + + "tal_size\030\002 \001(\rBz\222Aw2pTotal count of conn" + + "ected accounts matching the filter crite" + + "ria across all pages. Use for calculatin" + + "g pagination.J\003100R\ttotalSize\022\322\001\n\017next_p" + + "age_token\030\003 \001(\tB\251\001\222A\234\0012\201\001Pagination toke" + + "n for retrieving the next page. Empty if" + + " this is the last page. Pass this value " + + "to page_token in the next request.J\026\"eyJ" + + "vZmZzZXQiOjIwfQ==\"\272H\006r\004\020\000\030 R\rnextPageTok" + + "en\022\311\001\n\017prev_page_token\030\004 \001(\tB\240\001\222A\223\0012}Pag" + + "ination token for retrieving the previou" + + "s page. Empty if this is the first page." + + " Pass this value to page_token to go bac" + + "k.J\022\"eyJvZmZzZXQiOjB9\"\272H\006r\004\020\000\030 R\rprevPag" + + "eToken\"\340\006\n\036SearchConnectedAccountsReques" + + "t\022\271\001\n\005query\030\001 \001(\tB\242\001\222A\221\0012\206\001Search term t" + + "o match against connected account identi" + + "fiers, providers, or connectors. Must be" + + " at least 3 characters. Case insensitive" + + ".J\006google\272H\nr\005\020\003\030\310\001\310\001\001R\005query\022\205\001\n\tpage_s" + + "ize\030\002 \001(\rBh\222A^2XMaximum number of connec" + + "ted accounts to return per page. Value m" + + "ust be between 1 and 30.J\00230\272H\004*\002\030\036R\010pag" + + "eSize\022\245\001\n\npage_token\030\003 \001(\tB\205\001\222A\201\0012aToken" + + " from a previous response for pagination" + + ". Provide this to retrieve the next page" + + " of results.J\034eyJwYWdlIjoyLCJsaW1pdCI6Mz" + + "B9R\tpageToken\022i\n\rconnection_id\030\004 \001(\tBD\222A" + + "82*Connection ID to filter connected acc" + + "ountsJ\n\"conn_123\"\272H\006r\004\020\000\030 R\014connectionId" + + ":\346\001\222A\342\001\n\234\001*\031Search Connected Accounts2\177S" + + "earch for connected accounts in your env" + + "ironment using a text query that matches" + + " against identifiers, providers, or conn" + + "ectors2Aquery=google&page_size=30&page_t" + + "oken=eyJwYWdlIjoyLCJsaW1pdCI6MzB9\"\207\005\n\037Se" + + "archConnectedAccountsResponse\022\314\001\n\022connec" + + "ted_accounts\030\001 \003(\01327.scalekit.v1.connect" + + "ed_accounts.ConnectedAccountForListBd\222Aa" + + "2_List of connected accounts matching th" + + "e search query. Excludes sensitive autho" + + "rization details.R\021connectedAccounts\022l\n\n" + + "total_size\030\002 \001(\rBM\222AJ2CTotal count of ac" + + "counts matching the search query across " + + "all pages.J\003100R\ttotalSize\022\221\001\n\017next_page" + + "_token\030\003 \001(\tBi\222A]2CPagination token for " + + "the next page. Empty if this is the last" + + " page.J\026\"eyJvZmZzZXQiOjMwfQ==\"\272H\006r\004\020\000\030 R" + + "\rnextPageToken\022\222\001\n\017prev_page_token\030\004 \001(\t" + + "Bj\222A^2HPagination token for the previous" + + " page. Empty if this is the first page.J" + + "\022\"eyJvZmZzZXQiOjB9\"\272H\006r\004\020\000\030 R\rprevPageTo" + + "ken\"\250\007\n\035CreateConnectedAccountRequest\022t\n" + + "\017organization_id\030\001 \001(\tBF\222A:2!Organizatio" + + "n ID for the connectorJ\025\"org_12131243412" + + "3312\"\272H\006r\004\020\000\030 H\000R\016organizationId\210\001\001\022]\n\007u" + + "ser_id\030\002 \001(\tB?\222A32\031User ID for the conne" + + "ctorJ\026\"user_121312434123312\"\272H\006r\004\020\000\030 H\001R" + + "\006userId\210\001\001\022d\n\tconnector\030\003 \001(\tBA\222A 2\024Conn" + + "ector identifierJ\010\"notion\"\272H\033r\031\020\000\030\220\0032\022^[" + + "a-zA-Z0-9_: -]*$H\002R\tconnector\210\001\001\022\316\001\n\nide" + + "ntifier\030\004 \001(\tB\250\001\222A\233\0012\204\001The unique identi" + + "fier for the connected account within th" + + "e third-party service (e.g., email addre" + + "ss, user ID, workspace identifier).J\022\"us" + "er@example.com\"\272H\006r\004\020\000\030dH\003R\nidentifier\210\001" + - "\001\022\235\001\n\010provider\030\005 \001(\tB\200\001\222At2hFilter by OA" + - "uth provider. The authentication provide" + - "r name such as \'google\', \'microsoft\', \'g" + - "ithub\', etc.J\010\"google\"\272H\006r\004\020\000\0302R\010provide" + - "r\022\233\001\n\tpage_size\030\006 \001(\rB~\222Ar2lMaximum numb" + - "er of connected accounts to return per p" + - "age. Must be between 0 and 100. Default " + - "is typically 10.J\00210\272H\006*\004\020d(\000R\010pageSize\022" + - "\313\001\n\npage_token\030\007 \001(\tB\253\001\222A\236\0012\203\001Pagination" + - " token from a previous response. Use the" + - " next_page_token value from ListConnecte" + - "dAccountsResponse to fetch the next page" + - ".J\026\"eyJvZmZzZXQiOjEwfQ==\"\272H\006r\004\020\000\030dR\tpage" + - "Token\022\247\001\n\005query\030\010 \001(\tB\220\001\222A\203\0012qText searc" + - "h query to filter connected accounts by " + - "name, identifier, or other searchable fi" + - "elds. Case-insensitive.J\016\"john@example\"\272" + - "H\006r\004\020\000\030dR\005queryB\022\n\020_organization_idB\n\n\010_" + - "user_idB\014\n\n_connectorB\r\n\013_identifier\"\273\006\n" + - "\035ListConnectedAccountsResponse\022\334\001\n\022conne" + - "cted_accounts\030\001 \003(\01327.scalekit.v1.connec" + - "ted_accounts.ConnectedAccountForListBt\222A" + - "q2oList of connected accounts matching t" + - "he filter criteria. Excludes sensitive a" + - "uthorization details for security.R\021conn" + - "ectedAccounts\022\231\001\n\ntotal_size\030\002 \001(\rBz\222Aw2" + - "pTotal count of connected accounts match" + - "ing the filter criteria across all pages" + - ". Use for calculating pagination.J\003100R\t" + - "totalSize\022\322\001\n\017next_page_token\030\003 \001(\tB\251\001\222A" + - "\234\0012\201\001Pagination token for retrieving the" + - " next page. Empty if this is the last pa" + - "ge. Pass this value to page_token in the" + - " next request.J\026\"eyJvZmZzZXQiOjIwfQ==\"\272H" + - "\006r\004\020\000\030 R\rnextPageToken\022\311\001\n\017prev_page_tok" + - "en\030\004 \001(\tB\240\001\222A\223\0012}Pagination token for re" + - "trieving the previous page. Empty if thi" + - "s is the first page. Pass this value to " + - "page_token to go back.J\022\"eyJvZmZzZXQiOjB" + - "9\"\272H\006r\004\020\000\030 R\rprevPageToken\"\340\006\n\036SearchCon" + - "nectedAccountsRequest\022\271\001\n\005query\030\001 \001(\tB\242\001" + - "\222A\221\0012\206\001Search term to match against conn" + - "ected account identifiers, providers, or" + - " connectors. Must be at least 3 characte" + - "rs. Case insensitive.J\006google\272H\nr\005\020\003\030\310\001\310" + - "\001\001R\005query\022\205\001\n\tpage_size\030\002 \001(\rBh\222A^2XMaxi" + - "mum number of connected accounts to retu" + - "rn per page. Value must be between 1 and" + - " 30.J\00230\272H\004*\002\030\036R\010pageSize\022\245\001\n\npage_token" + - "\030\003 \001(\tB\205\001\222A\201\0012aToken from a previous res" + - "ponse for pagination. Provide this to re" + - "trieve the next page of results.J\034eyJwYW" + - "dlIjoyLCJsaW1pdCI6MzB9R\tpageToken\022i\n\rcon" + - "nection_id\030\004 \001(\tBD\222A82*Connection ID to " + - "filter connected accountsJ\n\"conn_123\"\272H\006" + - "r\004\020\000\030 R\014connectionId:\346\001\222A\342\001\n\234\001*\031Search C" + - "onnected Accounts2\177Search for connected " + - "accounts in your environment using a tex" + - "t query that matches against identifiers" + - ", providers, or connectors2Aquery=google" + - "&page_size=30&page_token=eyJwYWdlIjoyLCJ" + - "saW1pdCI6MzB9\"\207\005\n\037SearchConnectedAccount" + - "sResponse\022\314\001\n\022connected_accounts\030\001 \003(\01327" + - ".scalekit.v1.connected_accounts.Connecte" + - "dAccountForListBd\222Aa2_List of connected " + - "accounts matching the search query. Excl" + - "udes sensitive authorization details.R\021c" + - "onnectedAccounts\022l\n\ntotal_size\030\002 \001(\rBM\222A" + - "J2CTotal count of accounts matching the " + - "search query across all pages.J\003100R\ttot" + - "alSize\022\221\001\n\017next_page_token\030\003 \001(\tBi\222A]2CP" + - "agination token for the next page. Empty" + - " if this is the last page.J\026\"eyJvZmZzZXQ" + - "iOjMwfQ==\"\272H\006r\004\020\000\030 R\rnextPageToken\022\222\001\n\017p" + - "rev_page_token\030\004 \001(\tBj\222A^2HPagination to" + - "ken for the previous page. Empty if this" + - " is the first page.J\022\"eyJvZmZzZXQiOjB9\"\272" + - "H\006r\004\020\000\030 R\rprevPageToken\"\245\007\n\035CreateConnec" + - "tedAccountRequest\022t\n\017organization_id\030\001 \001" + - "(\tBF\222A:2!Organization ID for the connect" + - "orJ\025\"org_121312434123312\"\272H\006r\004\020\000\030 H\000R\016or" + - "ganizationId\210\001\001\022]\n\007user_id\030\002 \001(\tB?\222A32\031U" + - "ser ID for the connectorJ\026\"user_12131243" + - "4123312\"\272H\006r\004\020\000\030 H\001R\006userId\210\001\001\022a\n\tconnec" + - "tor\030\003 \001(\tB>\222A 2\024Connector identifierJ\010\"n" + - "otion\"\272H\030r\026\020\000\03022\020^[a-zA-Z0-9_-]*$H\002R\tcon" + - "nector\210\001\001\022\316\001\n\nidentifier\030\004 \001(\tB\250\001\222A\233\0012\204\001" + - "The unique identifier for the connected " + - "account within the third-party service (" + - "e.g., email address, user ID, workspace " + - "identifier).J\022\"user@example.com\"\272H\006r\004\020\000\030" + - "dH\003R\nidentifier\210\001\001\022\275\002\n\021connected_account" + - "\030\005 \001(\01326.scalekit.v1.connected_accounts." + - "CreateConnectedAccountB\327\001\222A\315\0012*Details o" + - "f the connected account to createJ\236\001{ \"a" + - "uthorization_type\": \"OAUTH2\", \"authoriza" + - "tion_details\": { \"oauth_token\": { \"acces" + - "s_token\": \"...\", \"refresh_token\": \"...\"," + - " \"scopes\": [\"read\", \"write\"] } } }\272H\003\310\001\001" + - "R\020connectedAccountB\022\n\020_organization_idB\n" + - "\n\010_user_idB\014\n\n_connectorB\r\n\013_identifier\"" + - "\215\002\n\036CreateConnectedAccountResponse\022\352\001\n\021c" + - "onnected_account\030\001 \001(\01320.scalekit.v1.con" + - "nected_accounts.ConnectedAccountB\212\001\222A\206\0012" + - "\203\001The newly created connected account wi" + - "th its unique identifier, status, and co" + - "mplete authorization details including a" + - "ccess tokens.R\020connectedAccount\"\203\010\n\035Upda" + - "teConnectedAccountRequest\022t\n\017organizatio" + - "n_id\030\001 \001(\tBF\222A:2!Organization ID for the" + - " connectorJ\025\"org_121312434123312\"\272H\006r\004\020\000" + - "\030 H\000R\016organizationId\210\001\001\022]\n\007user_id\030\002 \001(\t" + - "B?\222A32\031User ID for the connectorJ\026\"user_" + - "121312434123312\"\272H\006r\004\020\000\030 H\001R\006userId\210\001\001\022O" + - "\n\tconnector\030\003 \001(\tB,\222A 2\024Connector identi" + - "fierJ\010\"notion\"\272H\006r\004\020\000\0302H\002R\tconnector\210\001\001\022" + - "\316\001\n\nidentifier\030\004 \001(\tB\250\001\222A\233\0012\204\001The unique" + - " identifier for the connected account wi" + - "thin the third-party service (e.g., emai" + - "l address, user ID, workspace identifier" + - ").J\022\"user@example.com\"\272H\006r\004\020\000\030dH\003R\nident" + - "ifier\210\001\001\022g\n\002id\030\006 \001(\tBR\222AA25Unique identi" + - "fier for the connected account to update" + - "J\010\"ca_123\"\272H\013r\t\020\000\030 :\003ca_H\004R\002id\210\001\001\022\275\002\n\021co" + - "nnected_account\030\005 \001(\01326.scalekit.v1.conn" + - "ected_accounts.UpdateConnectedAccountB\327\001" + - "\222A\315\0012*Details of the connected account t" + - "o updateJ\236\001{ \"authorization_type\": \"OAUT" + - "H2\", \"authorization_details\": { \"oauth_t" + - "oken\": { \"access_token\": \"...\", \"refresh" + - "_token\": \"...\", \"scopes\": [\"read\", \"writ" + - "e\"] } } }\272H\003\310\001\001R\020connectedAccountB\022\n\020_or" + - "ganization_idB\n\n\010_user_idB\014\n\n_connectorB" + - "\r\n\013_identifierB\005\n\003_id\"\367\001\n\036UpdateConnecte" + - "dAccountResponse\022\324\001\n\021connected_account\030\001" + - " \001(\01320.scalekit.v1.connected_accounts.Co" + - "nnectedAccountBu\222Ar2pThe updated connect" + - "ed account with refreshed credentials, n" + - "ew token expiry, and modified configurat" + - "ion settings.R\020connectedAccount\"\325\005\n\035Dele" + - "teConnectedAccountRequest\022t\n\017organizatio" + - "n_id\030\001 \001(\tBF\222A:2!Organization ID for the" + - " connectorJ\025\"org_121312434123312\"\272H\006r\004\020\000" + - "\030 H\000R\016organizationId\210\001\001\022]\n\007user_id\030\002 \001(\t" + - "B?\222A32\031User ID for the connectorJ\026\"user_" + - "121312434123312\"\272H\006r\004\020\000\030 H\001R\006userId\210\001\001\022a" + - "\n\tconnector\030\003 \001(\tB>\222A 2\024Connector identi" + - "fierJ\010\"notion\"\272H\030r\026\020\000\03022\020^[a-zA-Z0-9_-]*" + - "$H\002R\tconnector\210\001\001\022\316\001\n\nidentifier\030\004 \001(\tB\250" + - "\001\222A\233\0012\204\001The unique identifier for the co" + - "nnected account within the third-party s" + - "ervice (e.g., email address, user ID, wo" + - "rkspace identifier).J\022\"user@example.com\"" + - "\272H\006r\004\020\000\030dH\003R\nidentifier\210\001\001\022g\n\002id\030\005 \001(\tBR" + - "\222AA25Unique identifier for the connected" + - " account to deleteJ\010\"ca_123\"\272H\013r\t\020\000\030 :\003c" + - "a_H\004R\002id\210\001\001B\022\n\020_organization_idB\n\n\010_user" + - "_idB\014\n\n_connectorB\r\n\013_identifierB\005\n\003_id\"" + - " \n\036DeleteConnectedAccountResponse\"\302\005\n&Ge" + - "tMagicLinkForConnectedAccountRequest\022t\n\017" + - "organization_id\030\001 \001(\tBF\222A:2!Organization" + - " ID for the connectorJ\025\"org_121312434123" + - "312\"\272H\006r\004\020\000\030 H\000R\016organizationId\210\001\001\022]\n\007us" + - "er_id\030\002 \001(\tB?\222A32\031User ID for the connec" + - "torJ\026\"user_121312434123312\"\272H\006r\004\020\000\030 H\001R\006" + - "userId\210\001\001\022O\n\tconnector\030\003 \001(\tB,\222A 2\024Conne" + - "ctor identifierJ\010\"notion\"\272H\006r\004\020\000\0302H\002R\tco" + - "nnector\210\001\001\022\316\001\n\nidentifier\030\004 \001(\tB\250\001\222A\233\0012\204" + - "\001The unique identifier for the connected" + - " account within the third-party service " + - "(e.g., email address, user ID, workspace" + - " identifier).J\022\"user@example.com\"\272H\006r\004\020\000" + - "\030dH\003R\nidentifier\210\001\001\022]\n\002id\030\005 \001(\tBH\222A72+Un" + - "ique identifier for the connected accoun" + - "tJ\010\"ca_123\"\272H\013r\t\020\000\030 :\003ca_H\004R\002id\210\001\001B\022\n\020_o" + - "rganization_idB\n\n\010_user_idB\014\n\n_connector" + - "B\r\n\013_identifierB\005\n\003_id\"\234\002\n\'GetMagicLinkF" + - "orConnectedAccountResponse\022r\n\004link\030\001 \001(\t" + - "B^\222A[2%Authentication link for the conne" + - "ctorJ2\"https://notion.com/oauth/authoriz" + - "e?client_id=...\"R\004link\022}\n\006expiry\030\002 \001(\0132\032" + - ".google.protobuf.TimestampBI\222AF2,Expiry " + - "timestamp for the authentication linkJ\026\"" + - "2024-03-20T15:04:05Z\"R\006expiry\"\302\005\n&GetCon" + - "nectedAccountByIdentifierRequest\022t\n\017orga" + - "nization_id\030\001 \001(\tBF\222A:2!Organization ID " + - "for the connectorJ\025\"org_121312434123312\"" + - "\272H\006r\004\020\000\030 H\000R\016organizationId\210\001\001\022]\n\007user_i" + - "d\030\002 \001(\tB?\222A32\031User ID for the connectorJ" + - "\026\"user_121312434123312\"\272H\006r\004\020\000\030 H\001R\006user" + - "Id\210\001\001\022O\n\tconnector\030\003 \001(\tB,\222A 2\024Connector" + - " identifierJ\010\"notion\"\272H\006r\004\020\000\0302H\002R\tconnec" + - "tor\210\001\001\022\316\001\n\nidentifier\030\004 \001(\tB\250\001\222A\233\0012\204\001The" + - " unique identifier for the connected acc" + - "ount within the third-party service (e.g" + - "., email address, user ID, workspace ide" + - "ntifier).J\022\"user@example.com\"\272H\006r\004\020\000\030dH\003" + - "R\nidentifier\210\001\001\022]\n\002id\030\005 \001(\tBH\222A72+Unique" + - " identifier for the connected accountJ\010\"" + - "ca_123\"\272H\013r\t\020\000\030 :\003ca_H\004R\002id\210\001\001B\022\n\020_organ" + - "ization_idB\n\n\010_user_idB\014\n\n_connectorB\r\n\013" + - "_identifierB\005\n\003_id\"\276\002\n\'GetConnectedAccou" + - "ntByIdentifierResponse\022\222\002\n\021connected_acc" + - "ount\030\001 \001(\01320.scalekit.v1.connected_accou" + - "nts.ConnectedAccountB\262\001\222A\256\0012\253\001The connec" + - "ted account with complete details includ" + - "ing sensitive authorization credentials " + - "(access tokens, refresh tokens, scopes)." + - " Handle with appropriate access controls" + - ".R\020connectedAccount\"\274\023\n\020ConnectedAccount" + - "\022\274\001\n\nidentifier\030\001 \001(\tB\233\001\222A\227\0012\200\001The uniqu" + - "e identifier for this account in the thi" + - "rd-party service. Typically an email add" + - "ress, user ID, or workspace identifier.J" + - "\022\"user@example.com\"R\nidentifier\022\252\001\n\010prov" + - "ider\030\002 \001(\tB\215\001\222A\211\0012}OAuth provider name (" + - "e.g., \'google\', \'microsoft\', \'github\'). " + - "Identifies which authentication service " + - "manages this connection.J\010\"google\"R\010prov" + - "ider\022\275\001\n\006status\030\003 \001(\0162/.scalekit.v1.conn" + - "ected_accounts.ConnectorStatusBt\222Aq2oCur" + - "rent status of the connected account. In" + - "dicates if the account is active, expire" + - "d, or pending authorization.R\006status\022\351\001\n" + - "\022authorization_type\030\004 \001(\0162-.scalekit.v1." + - "connected_accounts.ConnectorTypeB\212\001\222A\206\0012" + - "\203\001Type of authorization mechanism used. " + - "Specifies whether this connection uses O" + - "Auth, API keys, bearer tokens, or other " + - "auth methods.R\021authorizationType\022\201\002\n\025aut" + - "horization_details\030\005 \001(\01324.scalekit.v1.c" + - "onnected_accounts.AuthorizationDetailsB\225" + - "\001\222A\221\0012\216\001Sensitive authentication credent" + - "ials including access tokens, refresh to" + - "kens, and scopes. Contains either OAuth " + - "tokens or static auth details.R\024authoriz" + - "ationDetails\022\316\001\n\020token_expires_at\030\006 \001(\0132" + - "\032.google.protobuf.TimestampB\207\001\222A\203\0012iExpi" + - "ration timestamp for the access token. A" + - "fter this time, the token must be refres" + - "hed or re-authorized.J\026\"2024-12-31T23:59" + - ":59Z\"R\016tokenExpiresAt\022\311\001\n\nupdated_at\030\007 \001" + - "(\0132\032.google.protobuf.TimestampB\215\001\222A\211\0012oT" + - "imestamp when this connected account was" + - " last modified. Updated whenever credent" + - "ials or configuration changes.J\026\"2024-03" + - "-20T15:04:05Z\"R\tupdatedAt\022\256\001\n\tconnector\030" + - "\010 \001(\tB\217\001\222A\213\0012\177Connector identifier (e.g." + - ", \'notion\', \'slack\', \'salesforce\'). Indi" + - "cates which third-party application this" + - " account connects to.J\010\"notion\"R\tconnect" + - "or\022\315\001\n\014last_used_at\030\t \001(\0132\032.google.proto" + - "buf.TimestampB\216\001\222A\212\0012pTimestamp when thi" + - "s connected account was last used to mak" + - "e an API call. Useful for tracking activ" + - "e connections.J\026\"2024-03-20T14:30:00Z\"R\n" + - "lastUsedAt\022\230\001\n\002id\030\n \001(\tB\207\001\222Av2\\Unique Sc" + - "alekit-generated identifier for this con" + - "nected account. Always prefixed with \'ca" + - "_\'.J\026\"ca_24834495392086178\"\272H\013r\t\020\000\030 :\003ca" + - "_R\002id\022\306\001\n\rconnection_id\030\013 \001(\tB\240\001\222A\223\0012wRe" + - "ference to the parent connection configu" + - "ration. Links this account to a specific" + - " connector setup in your environment.J\030\"" + - "conn_24834495392086178\"\272H\006r\004\020\000\030 R\014connec" + - "tionId\022\211\002\n\napi_config\030\014 \001(\0132\027.google.pro" + - "tobuf.StructB\320\001\222A\314\0012xOptional JSON confi" + - "guration for connector-specific API sett" + - "ings such as rate limits, custom endpoin" + - "ts, or feature flags.JP{\"rate_limit\": 10" + - "00, \"timeout\": 30, \"base_url\": \"https://" + - "api.custom-domain.com\"}R\tapiConfig\"\212\006\n\026C" + - "reateConnectedAccount\022\236\003\n\025authorization_" + - "details\030\005 \001(\01324.scalekit.v1.connected_ac" + - "counts.AuthorizationDetailsB\262\002\222A\250\0022\267\001Req" + - "uired authentication credentials for the" + - " connected account. Must include either " + - "OAuth tokens (access_token, refresh_toke" + - "n, scopes) or static auth details (API k" + - "eys, bearer tokens).Jl{\"oauth_token\": {\"" + - "access_token\": \"ya29.a0...\", \"refresh_to" + - "ken\": \"1//0g...\", \"scopes\": [\"email\", \"p" + - "rofile\"]}}\272H\003\310\001\001R\024authorizationDetails\022\230" + - "\002\n\napi_config\030\013 \001(\0132\027.google.protobuf.St" + - "ructB\337\001\222A\333\0012\206\001Optional JSON configuratio" + - "n for connector-specific API settings su" + - "ch as rate limits, custom API endpoints," + - " timeouts, or feature flags.JP{\"rate_lim" + - "it\": 1000, \"timeout\": 30, \"base_url\": \"h" + - "ttps://api.custom-domain.com\"}R\tapiConfi" + - "gJ\004\010\001\020\002J\004\010\002\020\003J\004\010\003\020\004J\004\010\004\020\005J\004\010\006\020\007J\004\010\007\020\010J\004\010" + - "\010\020\tJ\004\010\t\020\nJ\004\010\n\020\013\"\274\005\n\026UpdateConnectedAccou" + - "nt\022\215\003\n\025authorization_details\030\005 \001(\01324.sca" + - "lekit.v1.connected_accounts.Authorizatio" + - "nDetailsB\241\002\222A\235\0022\231\001Updated authentication" + - " credentials. Provide new OAuth tokens (" + - "e.g., after refresh) or updated static a" + - "uth details. Only included fields will b" + - "e modified.J\177{\"oauth_token\": {\"access_to" + - "ken\": \"ya29.new_token...\", \"refresh_toke" + - "n\": \"1//0g...\", \"scopes\": [\"email\", \"pro" + - "file\", \"calendar\"]}}R\024authorizationDetai" + - "ls\022\341\001\n\napi_config\030\n \001(\0132\027.google.protobu" + - "f.StructB\250\001\222A\244\0012}Updated JSON configurat" + - "ion for API-specific settings. Merges wi" + - "th existing configuration - only provide" + - "d fields are modified.J#{\"rate_limit\": 2" + - "000, \"timeout\": 60}R\tapiConfigJ\004\010\001\020\002J\004\010\002" + - "\020\003J\004\010\003\020\004J\004\010\004\020\005J\004\010\006\020\007J\004\010\007\020\010J\004\010\010\020\tJ\004\010\t\020\n\"\340" + - "\010\n\027ConnectedAccountForList\022{\n\nidentifier" + - "\030\001 \001(\tB[\222AX2BThe unique identifier for t" + - "his account in the third-party service.J" + - "\022\"user@example.com\"R\nidentifier\022]\n\010provi" + - "der\030\002 \001(\tBA\222A>22OAuth provider name (e.g" + - "., \'google\', \'microsoft\').J\010\"google\"R\010pr" + - "ovider\022h\n\006status\030\003 \001(\0162/.scalekit.v1.con" + - "nected_accounts.ConnectorStatusB\037\222A\0342\032Cu" + - "rrent connection status.R\006status\022\200\001\n\022aut" + - "horization_type\030\004 \001(\0162-.scalekit.v1.conn" + - "ected_accounts.ConnectorTypeB\"\222A\0372\035Autho" + - "rization mechanism type.R\021authorizationT" + - "ype\022~\n\020token_expires_at\030\006 \001(\0132\032.google.p" + - "rotobuf.TimestampB8\222A52\033Token expiration" + - " timestamp.J\026\"2024-12-31T23:59:59Z\"R\016tok" + - "enExpiresAt\022t\n\nupdated_at\030\007 \001(\0132\032.google" + - ".protobuf.TimestampB9\222A62\034Last modificat" + - "ion timestamp.J\026\"2024-03-20T15:04:05Z\"R\t" + - "updatedAt\022B\n\tconnector\030\010 \001(\tB$\222A!2\025Conne" + - "ctor identifier.J\010\"notion\"R\tconnector\022p\n" + - "\014last_used_at\030\t \001(\0132\032.google.protobuf.Ti" + - "mestampB2\222A/2\025Last usage timestamp.J\026\"20" + - "24-03-20T14:30:00Z\"R\nlastUsedAt\022Q\n\002id\030\n " + - "\001(\tBA\222A>2$Unique connected account ident" + - "ifier.J\026\"ca_24834495392086178\"R\002id\022w\n\rco" + - "nnection_id\030\013 \001(\tBR\222AF2*Parent connectio" + - "n configuration reference.J\030\"conn_248344" + - "95392086178\"\272H\006r\004\020\000\030 R\014connectionIdJ\004\010\005\020" + - "\006\"\277\001\n\024AuthorizationDetails\022M\n\013oauth_toke" + - "n\030\001 \001(\0132*.scalekit.v1.connected_accounts" + - ".OauthTokenH\000R\noauthToken\022M\n\013static_auth" + - "\030\002 \001(\0132*.scalekit.v1.connected_accounts." + - "StaticAuthH\000R\nstaticAuthB\t\n\007details\"\334\005\n\n" + - "OauthToken\022\240\001\n\014access_token\030\001 \001(\tB}\222Az2b" + - "OAuth access token for API requests. Typ" + - "ically short-lived and must be refreshed" + - " after expiration.J\024\"ya29.a0AfH6SMBx...\"" + - "R\013accessToken\022\256\001\n\rrefresh_token\030\002 \001(\tB\210\001" + - "\222A\204\0012nOAuth refresh token for obtaining " + - "new access tokens. Long-lived and used t" + - "o maintain persistent authorization.J\022\"1" + - "//0gHJxZ-Lb2...\"R\014refreshToken\022\341\001\n\006scope" + - "s\030\003 \003(\tB\310\001\222A\304\0012\\List of granted OAuth sc" + - "opes defining the permissions and access" + - " levels for this connection.Jd[\"https://" + - "www.googleapis.com/auth/drive.readonly\"," + - " \"https://www.googleapis.com/auth/userin" + - "fo.email\"]R\006scopes\022\225\001\n\006domain\030\004 \001(\tB}\222Az" + - "2iAssociated domain for workspace or org" + - "anization-scoped OAuth connections (e.g." + - ", Google Workspace domain).J\r\"example.co" + - "m\"R\006domain\"\364\001\n\nStaticAuth\022\345\001\n\007details\030\001 " + - "\001(\0132\027.google.protobuf.StructB\261\001\222A\255\0012zFle" + - "xible JSON structure containing static c" + - "redentials. Format varies by connector t" + - "ype (API key, username/password, etc.).J" + - "/{\"api_key\": \"sk_live_...\", \"api_secret\"" + - ": \"...\"}R\007details*_\n\017ConnectorStatus\022!\n\035" + - "CONNECTION_STATUS_UNSPECIFIED\020\000\022\n\n\006ACTIV" + - "E\020\001\022\013\n\007EXPIRED\020\002\022\020\n\014PENDING_AUTH\020\003*\201\001\n\rC" + - "onnectorType\022\037\n\033CONNECTION_TYPE_UNSPECIF" + - "IED\020\000\022\t\n\005OAUTH\020\001\022\013\n\007API_KEY\020\002\022\016\n\nBASIC_A", - "UTH\020\003\022\020\n\014BEARER_TOKEN\020\004\022\n\n\006CUSTOM\020\005\022\t\n\005B" + - "ASIC\020\0062\2724\n\027ConnectedAccountService\022\336\006\n\025L" + - "istConnectedAccounts\022<.scalekit.v1.conne" + - "cted_accounts.ListConnectedAccountsReque" + - "st\032=.scalekit.v1.connected_accounts.List" + - "ConnectedAccountsResponse\"\307\005\222A\233\005\n\022Connec" + - "ted Accounts\022\027List connected accounts\032\232\002" + - "Retrieves a paginated list of connected " + - "accounts for third-party integrations. F" + - "ilter by organization, user, connector t" + - "ype, provider, or identifier. Returns OA" + - "uth tokens, API keys, and connection sta" + - "tus for each account. Use pagination tok" + - "ens to navigate through large result set" + - "s.J\257\001\n\003200\022\247\001\nbSuccessfully retrieved th" + - "e list of connected accounts with their " + - "authentication details and status\022A\n?\032=." + - "scalekit.v1.connected_accounts.ListConne" + - "ctedAccountsResponseJY\n\003400\022R\nPInvalid r" + - "equest - occurs when query parameters ar" + - "e malformed or validation failsJB\n\003401\022;" + - "\n9Authentication required - missing or i" + - "nvalid access token\202\265\030\002\030D\202\323\344\223\002\034\022\032/api/v1" + - "/connected_accounts\022\340\006\n\027SearchConnectedA" + - "ccounts\022>.scalekit.v1.connected_accounts" + - ".SearchConnectedAccountsRequest\032?.scalek" + - "it.v1.connected_accounts.SearchConnected" + - "AccountsResponse\"\303\005\222A\220\005\n\022Connected Accou" + - "nts\022\031Search connected accounts\032\231\002Search " + - "for connected accounts in your environme" + - "nt using a text query that matches again" + - "st identifiers, providers, or connectors" + - ". The search performs case-insensitive m" + - "atching across account details. Returns " + - "paginated results with account status an" + - "d authentication type information.J\231\001\n\0032" + - "00\022\221\001\nJSuccessfully retrieved matching c" + - "onnected accounts with pagination suppor" + - "t\022C\nA\032?.scalekit.v1.connected_accounts.S" + - "earchConnectedAccountsResponseJc\n\003400\022\\\n" + - "ZInvalid request - query parameter is to" + - "o short (minimum 3 characters) or valida" + - "tion failedJB\n\003401\022;\n9Authentication req" + - "uired - missing or invalid access token\202" + - "\265\030\002\030D\202\323\344\223\002#\022!/api/v1/connected_accounts:" + - "search\022\376\007\n\026CreateConnectedAccount\022=.scal" + - "ekit.v1.connected_accounts.CreateConnect" + - "edAccountRequest\032>.scalekit.v1.connected" + - "_accounts.CreateConnectedAccountResponse" + - "\"\344\006\222A\265\006\n\022Connected Accounts\022\032Create a co" + - "nnected account\032\337\002Creates a new connecte" + - "d account with OAuth tokens or API crede" + - "ntials for third-party service integrati" + - "on. Supply authorization details includi" + - "ng access tokens, refresh tokens, scopes" + - ", and optional API configuration. The ac" + - "count can be scoped to an organization o" + - "r user. Returns the created account with" + - " its unique identifier and authenticatio" + - "n status.J\244\001\n\003201\022\234\001\nVConnected account " + - "created successfully with authentication" + - " credentials stored securely\022B\n@\032>.scale" + - "kit.v1.connected_accounts.CreateConnecte" + - "dAccountResponseJg\n\003400\022`\n^Invalid reque" + - "st - missing required fields, invalid au" + - "thorization details, or validation faile" + - "dJB\n\003401\022;\n9Authentication required - mi" + - "ssing or invalid access tokenJM\n\003409\022F\nD" + - "Conflict - connected account with the sa" + - "me identifier already exists\202\265\030\002\030D\202\323\344\223\002\037" + - "\"\032/api/v1/connected_accounts:\001*\022\357\007\n\026Upda" + - "teConnectedAccount\022=.scalekit.v1.connect" + - "ed_accounts.UpdateConnectedAccountReques" + - "t\032>.scalekit.v1.connected_accounts.Updat" + - "eConnectedAccountResponse\"\325\006\222A\246\006\n\022Connec" + - "ted Accounts\022$Update connected account c" + - "redentials\032\322\002Updates authentication cred" + - "entials and configuration for an existin" + - "g connected account. Modify OAuth tokens" + - ", refresh tokens, access scopes, or API " + - "configuration settings. Specify the acco" + - "unt by ID, or by combination of organiza" + - "tion/user, connector, and identifier. Re" + - "turns the updated account with new token" + - " expiry and status information.J\232\001\n\003200\022" + - "\222\001\nLConnected account updated successful" + - "ly with new credentials or configuration" + - "\022B\n@\032>.scalekit.v1.connected_accounts.Up" + - "dateConnectedAccountResponseJg\n\003400\022`\n^I" + - "nvalid request - missing required fields" + - ", invalid authorization details, or vali" + - "dation failedJB\n\003401\022;\n9Authentication r" + - "equired - missing or invalid access toke" + - "nJK\n\003404\022D\nBConnected account not found " + - "- the specified account does not exist\202\265" + - "\030\002\030D\202\323\344\223\002\037\032\032/api/v1/connected_accounts:\001" + - "*\022\306\006\n\026DeleteConnectedAccount\022=.scalekit." + - "v1.connected_accounts.DeleteConnectedAcc" + - "ountRequest\032>.scalekit.v1.connected_acco" + - "unts.DeleteConnectedAccountResponse\"\254\005\222A" + - "\366\004\n\022Connected Accounts\022\032Delete a connect" + - "ed account\032\237\002Permanently removes a conne" + - "cted account and revokes all associated " + - "authentication credentials. Identify the" + - " account by ID, or by combination of org" + - "anization/user, connector, and identifie" + - "r. This action cannot be undone. All OAu" + - "th tokens and API keys for this account " + - "will be invalidated.JK\n\003200\022D\nBConnected" + - " account deleted successfully and all cr" + - "edentials revokedJD\n\003400\022=\n;Invalid requ" + - "est - malformed parameters or validation" + + "\001\022\275\002\n\021connected_account\030\005 \001(\01326.scalekit" + + ".v1.connected_accounts.CreateConnectedAc" + + "countB\327\001\222A\315\0012*Details of the connected a" + + "ccount to createJ\236\001{ \"authorization_type" + + "\": \"OAUTH2\", \"authorization_details\": { " + + "\"oauth_token\": { \"access_token\": \"...\", " + + "\"refresh_token\": \"...\", \"scopes\": [\"read" + + "\", \"write\"] } } }\272H\003\310\001\001R\020connectedAccoun" + + "tB\022\n\020_organization_idB\n\n\010_user_idB\014\n\n_co" + + "nnectorB\r\n\013_identifier\"\215\002\n\036CreateConnect" + + "edAccountResponse\022\352\001\n\021connected_account\030" + + "\001 \001(\01320.scalekit.v1.connected_accounts.C" + + "onnectedAccountB\212\001\222A\206\0012\203\001The newly creat" + + "ed connected account with its unique ide" + + "ntifier, status, and complete authorizat" + + "ion details including access tokens.R\020co" + + "nnectedAccount\"\204\010\n\035UpdateConnectedAccoun" + + "tRequest\022t\n\017organization_id\030\001 \001(\tBF\222A:2!" + + "Organization ID for the connectorJ\025\"org_" + + "121312434123312\"\272H\006r\004\020\000\030 H\000R\016organizatio" + + "nId\210\001\001\022]\n\007user_id\030\002 \001(\tB?\222A32\031User ID fo" + + "r the connectorJ\026\"user_121312434123312\"\272" + + "H\006r\004\020\000\030 H\001R\006userId\210\001\001\022P\n\tconnector\030\003 \001(\t" + + "B-\222A 2\024Connector identifierJ\010\"notion\"\272H\007" + + "r\005\020\000\030\220\003H\002R\tconnector\210\001\001\022\316\001\n\nidentifier\030\004" + + " \001(\tB\250\001\222A\233\0012\204\001The unique identifier for " + + "the connected account within the third-p" + + "arty service (e.g., email address, user " + + "ID, workspace identifier).J\022\"user@exampl" + + "e.com\"\272H\006r\004\020\000\030dH\003R\nidentifier\210\001\001\022g\n\002id\030\006" + + " \001(\tBR\222AA25Unique identifier for the con" + + "nected account to updateJ\010\"ca_123\"\272H\013r\t\020" + + "\000\030 :\003ca_H\004R\002id\210\001\001\022\275\002\n\021connected_account\030" + + "\005 \001(\01326.scalekit.v1.connected_accounts.U" + + "pdateConnectedAccountB\327\001\222A\315\0012*Details of" + + " the connected account to updateJ\236\001{ \"au" + + "thorization_type\": \"OAUTH2\", \"authorizat" + + "ion_details\": { \"oauth_token\": { \"access" + + "_token\": \"...\", \"refresh_token\": \"...\", " + + "\"scopes\": [\"read\", \"write\"] } } }\272H\003\310\001\001R" + + "\020connectedAccountB\022\n\020_organization_idB\n\n" + + "\010_user_idB\014\n\n_connectorB\r\n\013_identifierB\005" + + "\n\003_id\"\367\001\n\036UpdateConnectedAccountResponse" + + "\022\324\001\n\021connected_account\030\001 \001(\01320.scalekit." + + "v1.connected_accounts.ConnectedAccountBu" + + "\222Ar2pThe updated connected account with " + + "refreshed credentials, new token expiry," + + " and modified configuration settings.R\020c" + + "onnectedAccount\"\330\005\n\035DeleteConnectedAccou" + + "ntRequest\022t\n\017organization_id\030\001 \001(\tBF\222A:2" + + "!Organization ID for the connectorJ\025\"org" + + "_121312434123312\"\272H\006r\004\020\000\030 H\000R\016organizati" + + "onId\210\001\001\022]\n\007user_id\030\002 \001(\tB?\222A32\031User ID f" + + "or the connectorJ\026\"user_121312434123312\"" + + "\272H\006r\004\020\000\030 H\001R\006userId\210\001\001\022d\n\tconnector\030\003 \001(" + + "\tBA\222A 2\024Connector identifierJ\010\"notion\"\272H" + + "\033r\031\020\000\030\220\0032\022^[a-zA-Z0-9_: -]*$H\002R\tconnecto" + + "r\210\001\001\022\316\001\n\nidentifier\030\004 \001(\tB\250\001\222A\233\0012\204\001The u" + + "nique identifier for the connected accou" + + "nt within the third-party service (e.g.," + + " email address, user ID, workspace ident" + + "ifier).J\022\"user@example.com\"\272H\006r\004\020\000\030dH\003R\n" + + "identifier\210\001\001\022g\n\002id\030\005 \001(\tBR\222AA25Unique i" + + "dentifier for the connected account to d" + + "eleteJ\010\"ca_123\"\272H\013r\t\020\000\030 :\003ca_H\004R\002id\210\001\001B\022" + + "\n\020_organization_idB\n\n\010_user_idB\014\n\n_conne" + + "ctorB\r\n\013_identifierB\005\n\003_id\" \n\036DeleteConn" + + "ectedAccountResponse\"\323\010\n&GetMagicLinkFor" + + "ConnectedAccountRequest\022t\n\017organization_" + + "id\030\001 \001(\tBF\222A:2!Organization ID for the c" + + "onnectorJ\025\"org_121312434123312\"\272H\006r\004\020\000\030 " + + "H\000R\016organizationId\210\001\001\022]\n\007user_id\030\002 \001(\tB?" + + "\222A32\031User ID for the connectorJ\026\"user_12" + + "1312434123312\"\272H\006r\004\020\000\030 H\001R\006userId\210\001\001\022P\n\t" + + "connector\030\003 \001(\tB-\222A 2\024Connector identifi" + + "erJ\010\"notion\"\272H\007r\005\020\000\030\220\003H\002R\tconnector\210\001\001\022\316" + + "\001\n\nidentifier\030\004 \001(\tB\250\001\222A\233\0012\204\001The unique " + + "identifier for the connected account wit" + + "hin the third-party service (e.g., email" + + " address, user ID, workspace identifier)" + + ".J\022\"user@example.com\"\272H\006r\004\020\000\030dH\003R\nidenti" + + "fier\210\001\001\022]\n\002id\030\005 \001(\tBH\222A72+Unique identif" + + "ier for the connected accountJ\010\"ca_123\"\272" + + "H\013r\t\020\000\030 :\003ca_H\004R\002id\210\001\001\022\317\001\n\005state\030\007 \001(\tB\263" + + "\001\222A\245\0012wOptional opaque state value. Stat" + + "e added to the user verify redirect URL " + + "query params to validate the user verifi" + + "cationJ*\"QVNDSUFyY2hhYml0dGVyXzE2ODQ5NzI" + + "wNzI0NTY=\"\272H\007r\005\020\000\030\200\004H\005R\005state\210\001\001\022\235\001\n\017use" + + "r_verify_url\030\010 \001(\tBp\222AT2\"B2B app\'s user " + + "verify redirect URLJ.\"https://app.yourap" + + "p.com/user/verify/callback\"\272H\026r\024\020\000\030\200\0202\r^" + + "$|^https?://H\006R\ruserVerifyUrl\210\001\001B\022\n\020_org" + + "anization_idB\n\n\010_user_idB\014\n\n_connectorB\r" + + "\n\013_identifierB\005\n\003_idB\010\n\006_stateB\022\n\020_user_" + + "verify_url\"\234\002\n\'GetMagicLinkForConnectedA" + + "ccountResponse\022r\n\004link\030\001 \001(\tB^\222A[2%Authe" + + "ntication link for the connectorJ2\"https" + + "://notion.com/oauth/authorize?client_id=" + + "...\"R\004link\022}\n\006expiry\030\002 \001(\0132\032.google.prot" + + "obuf.TimestampBI\222AF2,Expiry timestamp fo" + + "r the authentication linkJ\026\"2024-03-20T1" + + "5:04:05Z\"R\006expiry\"\353\002\n!VerifyConnectedAcc" + + "ountUserRequest\022\310\001\n\017auth_request_id\030\001 \001(" + + "\tB\237\001\222A\216\0012`Auth request ID as base64url-e" + + "ncoded opaque token from the user verify" + + " redirect URL query paramsJ*\"QVNDSUFyY2h" + + "hYml0dGVyXzE2ODQ5NzIwNzI0NTY=\"\340A\002\272H\007r\005\020\001" + + "\030\350\007R\rauthRequestId\022{\n\nidentifier\030\002 \001(\tB[" + + "\222AK25Current logged in user\'s connected " + + "account identifierJ\022\"user@example.com\"\340A" + + "\002\272H\007r\005\020\001\030\310\001R\nidentifier\"\323\001\n\"VerifyConnec" + + "tedAccountUserResponse\022\254\001\n\035post_user_ver" + + "ify_redirect_url\030\001 \001(\tBj\222Ag29URL to redi" + + "rect the user to after successful verifi" + + "cationJ*\"https://env1.example.com/connec" + + "t/success\"R\031postUserVerifyRedirectUrl\"\303\005" + + "\n&GetConnectedAccountByIdentifierRequest" + + "\022t\n\017organization_id\030\001 \001(\tBF\222A:2!Organiza" + + "tion ID for the connectorJ\025\"org_12131243" + + "4123312\"\272H\006r\004\020\000\030 H\000R\016organizationId\210\001\001\022]" + + "\n\007user_id\030\002 \001(\tB?\222A32\031User ID for the co" + + "nnectorJ\026\"user_121312434123312\"\272H\006r\004\020\000\030 " + + "H\001R\006userId\210\001\001\022P\n\tconnector\030\003 \001(\tB-\222A 2\024C" + + "onnector identifierJ\010\"notion\"\272H\007r\005\020\000\030\220\003H" + + "\002R\tconnector\210\001\001\022\316\001\n\nidentifier\030\004 \001(\tB\250\001\222" + + "A\233\0012\204\001The unique identifier for the conn" + + "ected account within the third-party ser" + + "vice (e.g., email address, user ID, work" + + "space identifier).J\022\"user@example.com\"\272H" + + "\006r\004\020\000\030dH\003R\nidentifier\210\001\001\022]\n\002id\030\005 \001(\tBH\222A" + + "72+Unique identifier for the connected a" + + "ccountJ\010\"ca_123\"\272H\013r\t\020\000\030 :\003ca_H\004R\002id\210\001\001B" + + "\022\n\020_organization_idB\n\n\010_user_idB\014\n\n_conn" + + "ectorB\r\n\013_identifierB\005\n\003_id\"\276\002\n\'GetConne" + + "ctedAccountByIdentifierResponse\022\222\002\n\021conn" + + "ected_account\030\001 \001(\01320.scalekit.v1.connec" + + "ted_accounts.ConnectedAccountB\262\001\222A\256\0012\253\001T" + + "he connected account with complete detai" + + "ls including sensitive authorization cre" + + "dentials (access tokens, refresh tokens," + + " scopes). Handle with appropriate access" + + " controls.R\020connectedAccount\"\343\023\n\020Connect" + + "edAccount\022\274\001\n\nidentifier\030\001 \001(\tB\233\001\222A\227\0012\200\001" + + "The unique identifier for this account i" + + "n the third-party service. Typically an " + + "email address, user ID, or workspace ide" + + "ntifier.J\022\"user@example.com\"R\nidentifier" + + "\022\252\001\n\010provider\030\002 \001(\tB\215\001\222A\211\0012}OAuth provid" + + "er name (e.g., \'google\', \'microsoft\', \'g" + + "ithub\'). Identifies which authentication" + + " service manages this connection.J\010\"goog" + + "le\"R\010provider\022\344\001\n\006status\030\003 \001(\0162/.scaleki" + + "t.v1.connected_accounts.ConnectorStatusB" + + "\232\001\222A\226\0012\223\001Current status of the connected" + + " account. Indicates if the account is ac" + + "tive, expired, pending authorization, or" + + " pending user identity verification.R\006st" + + "atus\022\351\001\n\022authorization_type\030\004 \001(\0162-.scal" + + "ekit.v1.connected_accounts.ConnectorType" + + "B\212\001\222A\206\0012\203\001Type of authorization mechanis" + + "m used. Specifies whether this connectio" + + "n uses OAuth, API keys, bearer tokens, o" + + "r other auth methods.R\021authorizationType" + + "\022\201\002\n\025authorization_details\030\005 \001(\01324.scale" + + "kit.v1.connected_accounts.AuthorizationD" + + "etailsB\225\001\222A\221\0012\216\001Sensitive authentication" + + " credentials including access tokens, re" + + "fresh tokens, and scopes. Contains eithe" + + "r OAuth tokens or static auth details.R\024" + + "authorizationDetails\022\316\001\n\020token_expires_a" + + "t\030\006 \001(\0132\032.google.protobuf.TimestampB\207\001\222A" + + "\203\0012iExpiration timestamp for the access " + + "token. After this time, the token must b" + + "e refreshed or re-authorized.J\026\"2024-12-" + + "31T23:59:59Z\"R\016tokenExpiresAt\022\311\001\n\nupdate" + + "d_at\030\007 \001(\0132\032.google.protobuf.TimestampB\215" + + "\001\222A\211\0012oTimestamp when this connected acc" + + "ount was last modified. Updated whenever" + + " credentials or configuration changes.J\026" + + "\"2024-03-20T15:04:05Z\"R\tupdatedAt\022\256\001\n\tco" + + "nnector\030\010 \001(\tB\217\001\222A\213\0012\177Connector identifi" + + "er (e.g., \'notion\', \'slack\', \'salesforce" + + "\'). Indicates which third-party applicat" + + "ion this account connects to.J\010\"notion\"R" + + "\tconnector\022\315\001\n\014last_used_at\030\t \001(\0132\032.goog" + + "le.protobuf.TimestampB\216\001\222A\212\0012pTimestamp " + + "when this connected account was last use" + + "d to make an API call. Useful for tracki" + + "ng active connections.J\026\"2024-03-20T14:3" + + "0:00Z\"R\nlastUsedAt\022\230\001\n\002id\030\n \001(\tB\207\001\222Av2\\U" + + "nique Scalekit-generated identifier for " + + "this connected account. Always prefixed " + + "with \'ca_\'.J\026\"ca_24834495392086178\"\272H\013r\t" + + "\020\000\030 :\003ca_R\002id\022\306\001\n\rconnection_id\030\013 \001(\tB\240\001" + + "\222A\223\0012wReference to the parent connection" + + " configuration. Links this account to a " + + "specific connector setup in your environ" + + "ment.J\030\"conn_24834495392086178\"\272H\006r\004\020\000\030 " + + "R\014connectionId\022\211\002\n\napi_config\030\014 \001(\0132\027.go" + + "ogle.protobuf.StructB\320\001\222A\314\0012xOptional JS" + + "ON configuration for connector-specific " + + "API settings such as rate limits, custom" + + " endpoints, or feature flags.JP{\"rate_li" + + "mit\": 1000, \"timeout\": 30, \"base_url\": \"" + + "https://api.custom-domain.com\"}R\tapiConf" + + "ig\"\232\006\n\026CreateConnectedAccount\022\256\003\n\025author" + + "ization_details\030\005 \001(\01324.scalekit.v1.conn" + + "ected_accounts.AuthorizationDetailsB\302\002\222A" + + "\276\0022\315\001Optional authentication credentials" + + " for the connected account. Include OAut" + + "h tokens (access_token, refresh_token, s" + + "copes) or static auth details (API keys," + + " bearer tokens). Can be provided later v" + + "ia update.Jl{\"oauth_token\": {\"access_tok" + + "en\": \"ya29.a0...\", \"refresh_token\": \"1//" + + "0g...\", \"scopes\": [\"email\", \"profile\"]}}" + + "R\024authorizationDetails\022\230\002\n\napi_config\030\013 " + + "\001(\0132\027.google.protobuf.StructB\337\001\222A\333\0012\206\001Op" + + "tional JSON configuration for connector-" + + "specific API settings such as rate limit" + + "s, custom API endpoints, timeouts, or fe" + + "ature flags.JP{\"rate_limit\": 1000, \"time" + + "out\": 30, \"base_url\": \"https://api.custo" + + "m-domain.com\"}R\tapiConfigJ\004\010\001\020\002J\004\010\002\020\003J\004\010" + + "\003\020\004J\004\010\004\020\005J\004\010\006\020\007J\004\010\007\020\010J\004\010\010\020\tJ\004\010\t\020\nJ\004\010\n\020\013\"" + + "\274\005\n\026UpdateConnectedAccount\022\215\003\n\025authoriza" + + "tion_details\030\005 \001(\01324.scalekit.v1.connect" + + "ed_accounts.AuthorizationDetailsB\241\002\222A\235\0022" + + "\231\001Updated authentication credentials. Pr" + + "ovide new OAuth tokens (e.g., after refr" + + "esh) or updated static auth details. Onl" + + "y included fields will be modified.J\177{\"o" + + "auth_token\": {\"access_token\": \"ya29.new_" + + "token...\", \"refresh_token\": \"1//0g...\", " + + "\"scopes\": [\"email\", \"profile\", \"calendar" + + "\"]}}R\024authorizationDetails\022\341\001\n\napi_confi" + + "g\030\n \001(\0132\027.google.protobuf.StructB\250\001\222A\244\0012" + + "}Updated JSON configuration for API-spec" + + "ific settings. Merges with existing conf" + + "iguration - only provided fields are mod" + + "ified.J#{\"rate_limit\": 2000, \"timeout\": " + + "60}R\tapiConfigJ\004\010\001\020\002J\004\010\002\020\003J\004\010\003\020\004J\004\010\004\020\005J\004" + + "\010\006\020\007J\004\010\007\020\010J\004\010\010\020\tJ\004\010\t\020\n\"\340\010\n\027ConnectedAcco" + + "untForList\022{\n\nidentifier\030\001 \001(\tB[\222AX2BThe" + + " unique identifier for this account in t" + + "he third-party service.J\022\"user@example.c" + + "om\"R\nidentifier\022]\n\010provider\030\002 \001(\tBA\222A>22" + + "OAuth provider name (e.g., \'google\', \'mi" + + "crosoft\').J\010\"google\"R\010provider\022h\n\006status" + + "\030\003 \001(\0162/.scalekit.v1.connected_accounts." + + "ConnectorStatusB\037\222A\0342\032Current connection" + + " status.R\006status\022\200\001\n\022authorization_type\030" + + "\004 \001(\0162-.scalekit.v1.connected_accounts.C" + + "onnectorTypeB\"\222A\0372\035Authorization mechani" + + "sm type.R\021authorizationType\022~\n\020token_exp" + + "ires_at\030\006 \001(\0132\032.google.protobuf.Timestam" + + "pB8\222A52\033Token expiration timestamp.J\026\"20" + + "24-12-31T23:59:59Z\"R\016tokenExpiresAt\022t\n\nu" + + "pdated_at\030\007 \001(\0132\032.google.protobuf.Timest" + + "ampB9\222A62\034Last modification timestamp.J\026" + + "\"2024-03-20T15:04:05Z\"R\tupdatedAt\022B\n\tcon" + + "nector\030\010 \001(\tB$\222A!2\025Connector identifier." + + "J\010\"notion\"R\tconnector\022p\n\014last_used_at\030\t " + + "\001(\0132\032.google.protobuf.TimestampB2\222A/2\025La" + + "st usage timestamp.J\026\"2024-03-20T14:30:0" + + "0Z\"R\nlastUsedAt\022Q\n\002id\030\n \001(\tBA\222A>2$Unique" + + " connected account identifier.J\026\"ca_2483" + + "4495392086178\"R\002id\022w\n\rconnection_id\030\013 \001(" + + "\tBR\222AF2*Parent connection configuration " + + "reference.J\030\"conn_24834495392086178\"\272H\006r" + + "\004\020\000\030 R\014connectionIdJ\004\010\005\020\006\"\217\002\n\024Authorizat" + + "ionDetails\022M\n\013oauth_token\030\001 \001(\0132*.scalek" + + "it.v1.connected_accounts.OauthTokenH\000R\no" + + "authToken\022M\n\013static_auth\030\002 \001(\0132*.scaleki" + + "t.v1.connected_accounts.StaticAuthH\000R\nst" + + "aticAuth\022N\n\ngoogle_dwd\030\003 \001(\0132-.scalekit." + + "v1.connected_accounts.GoogleDWDAuthH\000R\tg" + + "oogleDwdB\t\n\007details\"\330\004\n\rGoogleDWDAuth\022\210\001", + "\n\007subject\030\001 \001(\tBn\222Ak2UEmail address of t" + + "he Google Workspace user to impersonate " + + "via Domain-Wide Delegation.J\022\"user@examp" + + "le.com\"R\007subject\022\221\001\n\014access_token\030\002 \001(\tB" + + "n\222Ah2POAuth access token acquired via th" + + "e jwt-bearer grant. Present in responses" + + " only.J\024\"ya29.a0AfH6SMBx...\"\340A\003R\013accessT" + + "oken\022\235\001\n\006scopes\030\003 \003(\tB\204\001\222A~2>OAuth scope" + + "s granted to this token. Present in resp" + + "onses only.J<[\"openid\", \"https://www.goo" + + "gleapis.com/auth/userinfo.email\"]\340A\003R\006sc" + + "opes\022\207\001\n\020token_expires_at\030\004 \001(\0132\032.google" + + ".protobuf.TimestampBA\222A;29When the acces" + + "s token expires. Present in responses on" + + "ly.\340A\003R\016tokenExpiresAt\"\334\005\n\nOauthToken\022\240\001" + + "\n\014access_token\030\001 \001(\tB}\222Az2bOAuth access " + + "token for API requests. Typically short-" + + "lived and must be refreshed after expira" + + "tion.J\024\"ya29.a0AfH6SMBx...\"R\013accessToken" + + "\022\256\001\n\rrefresh_token\030\002 \001(\tB\210\001\222A\204\0012nOAuth r" + + "efresh token for obtaining new access to" + + "kens. Long-lived and used to maintain pe" + + "rsistent authorization.J\022\"1//0gHJxZ-Lb2." + + "..\"R\014refreshToken\022\341\001\n\006scopes\030\003 \003(\tB\310\001\222A\304" + + "\0012\\List of granted OAuth scopes defining" + + " the permissions and access levels for t" + + "his connection.Jd[\"https://www.googleapi" + + "s.com/auth/drive.readonly\", \"https://www" + + ".googleapis.com/auth/userinfo.email\"]R\006s" + + "copes\022\225\001\n\006domain\030\004 \001(\tB}\222Az2iAssociated " + + "domain for workspace or organization-sco" + + "ped OAuth connections (e.g., Google Work" + + "space domain).J\r\"example.com\"R\006domain\"\364\001" + + "\n\nStaticAuth\022\345\001\n\007details\030\001 \001(\0132\027.google." + + "protobuf.StructB\261\001\222A\255\0012zFlexible JSON st" + + "ructure containing static credentials. F" + + "ormat varies by connector type (API key," + + " username/password, etc.).J/{\"api_key\": " + + "\"sk_live_...\", \"api_secret\": \"...\"}R\007det" + + "ails\"\203\002\n\032GetConnectedAccountRequest\022\344\001\n\002" + + "id\030\001 \001(\tB\323\001\222A\306\0012\253\001Unique identifier for " + + "the connected account. Always prefixed w" + + "ith \'ca_\'. If omitted (via the /this pat" + + "h), the connected account is resolved fr" + + "om the current token context.J\026\"ca_24834" + + "495392086178\"\272H\006r\004\020\000\030 R\002id\"\305\001\n\033GetConnec" + + "tedAccountResponse\022\245\001\n\021connected_account" + + "\030\001 \001(\01320.scalekit.v1.connected_accounts." + + "ConnectedAccountBF\222AC2AThe connected acc" + + "ount with its details and authentication" + + " status.R\020connectedAccount\"\262\001\n!Disconnec" + + "tConnectedAccountRequest\022\214\001\n\002id\030\001 \001(\tB|\222" + + "Ap2VUnique identifier for the connected " + + "account to disconnect. Always prefixed w" + + "ith \'ca_\'.J\026\"ca_24834495392086178\"\272H\006r\004\020" + + "\000\030 R\002id\"\306\001\n\"DisconnectConnectedAccountRe" + + "sponse\022\237\001\n\021connected_account\030\001 \001(\01320.sca" + + "lekit.v1.connected_accounts.ConnectedAcc" + + "ountB@\222A=2;The connected account with it" + + "s updated DISCONNECTED status.R\020connecte" + + "dAccount*\213\001\n\017ConnectorStatus\022!\n\035CONNECTI" + + "ON_STATUS_UNSPECIFIED\020\000\022\n\n\006ACTIVE\020\001\022\013\n\007E" + + "XPIRED\020\002\022\020\n\014PENDING_AUTH\020\003\022\030\n\024PENDING_VE" + + "RIFICATION\020\004\022\020\n\014DISCONNECTED\020\005*\263\001\n\rConne" + + "ctorType\022\037\n\033CONNECTION_TYPE_UNSPECIFIED\020" + + "\000\022\t\n\005OAUTH\020\001\022\013\n\007API_KEY\020\002\022\016\n\nBASIC_AUTH\020" + + "\003\022\020\n\014BEARER_TOKEN\020\004\022\n\n\006CUSTOM\020\005\022\t\n\005BASIC" + + "\020\006\022\r\n\tOAUTH_M2M\020\007\022\021\n\rTRELLO_OAUTH1\020\010\022\016\n\n" + + "GOOGLE_DWD\020\t2\370N\n\027ConnectedAccountService" + + "\022\336\006\n\025ListConnectedAccounts\022<.scalekit.v1" + + ".connected_accounts.ListConnectedAccount" + + "sRequest\032=.scalekit.v1.connected_account" + + "s.ListConnectedAccountsResponse\"\307\005\222A\233\005\n\022" + + "Connected Accounts\022\027List connected accou" + + "nts\032\232\002Retrieves a paginated list of conn" + + "ected accounts for third-party integrati" + + "ons. Filter by organization, user, conne" + + "ctor type, provider, or identifier. Retu" + + "rns OAuth tokens, API keys, and connecti" + + "on status for each account. Use paginati" + + "on tokens to navigate through large resu" + + "lt sets.J\257\001\n\003200\022\247\001\nbSuccessfully retrie" + + "ved the list of connected accounts with " + + "their authentication details and status\022" + + "A\n?\032=.scalekit.v1.connected_accounts.Lis" + + "tConnectedAccountsResponseJY\n\003400\022R\nPInv" + + "alid request - occurs when query paramet" + + "ers are malformed or validation failsJB\n" + + "\003401\022;\n9Authentication required - missin" + + "g or invalid access token\202\265\030\002\030D\202\323\344\223\002\034\022\032/" + + "api/v1/connected_accounts\022\340\006\n\027SearchConn" + + "ectedAccounts\022>.scalekit.v1.connected_ac" + + "counts.SearchConnectedAccountsRequest\032?." + + "scalekit.v1.connected_accounts.SearchCon" + + "nectedAccountsResponse\"\303\005\222A\220\005\n\022Connected" + + " Accounts\022\031Search connected accounts\032\231\002S" + + "earch for connected accounts in your env" + + "ironment using a text query that matches" + + " against identifiers, providers, or conn" + + "ectors. The search performs case-insensi" + + "tive matching across account details. Re" + + "turns paginated results with account sta" + + "tus and authentication type information." + + "J\231\001\n\003200\022\221\001\nJSuccessfully retrieved matc" + + "hing connected accounts with pagination " + + "support\022C\nA\032?.scalekit.v1.connected_acco" + + "unts.SearchConnectedAccountsResponseJc\n\003" + + "400\022\\\nZInvalid request - query parameter" + + " is too short (minimum 3 characters) or " + + "validation failedJB\n\003401\022;\n9Authenticati" + + "on required - missing or invalid access " + + "token\202\265\030\002\030D\202\323\344\223\002#\022!/api/v1/connected_acc" + + "ounts:search\022\376\007\n\026CreateConnectedAccount\022" + + "=.scalekit.v1.connected_accounts.CreateC" + + "onnectedAccountRequest\032>.scalekit.v1.con" + + "nected_accounts.CreateConnectedAccountRe" + + "sponse\"\344\006\222A\265\006\n\022Connected Accounts\022\032Creat" + + "e a connected account\032\337\002Creates a new co" + + "nnected account with OAuth tokens or API" + + " credentials for third-party service int" + + "egration. Supply authorization details i" + + "ncluding access tokens, refresh tokens, " + + "scopes, and optional API configuration. " + + "The account can be scoped to an organiza" + + "tion or user. Returns the created accoun" + + "t with its unique identifier and authent" + + "ication status.J\244\001\n\003201\022\234\001\nVConnected ac" + + "count created successfully with authenti" + + "cation credentials stored securely\022B\n@\032>" + + ".scalekit.v1.connected_accounts.CreateCo" + + "nnectedAccountResponseJg\n\003400\022`\n^Invalid" + + " request - missing required fields, inva" + + "lid authorization details, or validation" + " failedJB\n\003401\022;\n9Authentication require" + - "d - missing or invalid access tokenJK\n\0034" + - "04\022D\nBConnected account not found - the " + - "specified account does not exist\202\265\030\002\030D\202\323" + - "\344\223\002&\"!/api/v1/connected_accounts:delete:" + - "\001*\022\377\006\n\037GetMagicLinkForConnectedAccount\022F" + - ".scalekit.v1.connected_accounts.GetMagic" + - "LinkForConnectedAccountRequest\032G.scaleki" + - "t.v1.connected_accounts.GetMagicLinkForC" + - "onnectedAccountResponse\"\312\005\222A\220\005\n\022Connecte" + - "d Accounts\022\"Generate authentication magi" + - "c link\032\242\002Creates a time-limited magic li" + - "nk for connecting or re-authorizing a th" + - "ird-party account. The link directs user" + - "s to the OAuth authorization flow for th" + - "e specified connector. Returns the gener" + - "ated link URL and expiration timestamp. " + - "Links typically expire after a short dur" + - "ation for security.J\237\001\n\003200\022\227\001\nHMagic li" + - "nk generated successfully with authoriza" + - "tion URL and expiry time\022K\nI\032G.scalekit." + - "v1.connected_accounts.GetMagicLinkForCon" + - "nectedAccountResponseJK\n\003400\022D\nBInvalid " + - "request - missing required parameters or" + - " invalid connectorJB\n\003401\022;\n9Authenticat" + - "ion required - missing or invalid access" + - " token\202\265\030\002\030D\202\323\344\223\002*\"%/api/v1/connected_ac" + - "counts/magic_link:\001*\022\266\007\n\027GetConnectedAcc" + - "ountAuth\022F.scalekit.v1.connected_account" + - "s.GetConnectedAccountByIdentifierRequest" + - "\032G.scalekit.v1.connected_accounts.GetCon" + - "nectedAccountByIdentifierResponse\"\211\006\222A\330\005" + - "\n\022Connected Accounts\022\035Get connected acco" + - "unt details\032\253\002Retrieves complete authent" + - "ication details for a connected account " + - "including OAuth tokens, refresh tokens, " + - "scopes, and API configuration. Query by " + - "account ID or by combination of organiza" + - "tion/user, connector, and identifier. Re" + - "turns sensitive credential information -" + - " use appropriate access controls.J\240\001\n\00320" + - "0\022\230\001\nISuccessfully retrieved connected a" + - "ccount with full authentication details\022" + - "K\nI\032G.scalekit.v1.connected_accounts.Get" + - "ConnectedAccountByIdentifierResponseJ<\n\003" + - "400\0225\n3Invalid request - missing require" + - "d query parametersJB\n\003401\022;\n9Authenticat" + - "ion required - missing or invalid access" + - " tokenJP\n\003404\022I\nGConnected account not f" + - "ound - no account matches the specified " + - "criteria\202\265\030\002\030D\202\323\344\223\002!\022\037/api/v1/connected_" + - "accounts/auth\032\343\001\222A\337\001\n\022Connected Accounts" + - "\022\310\001Manage connected accounts for third-p" + - "arty integrations and OAuth connections." + - " Connected accounts represent authentica" + - "ted access to external services like Goo" + - "gle, Notion, Slack, and other applicatio" + - "ns.B\204\004\n0com.scalekit.grpc.scalekit.v1.co" + - "nnected_accountsB\026ConnectedAccountsProto" + - "P\001Z.scalekit.v1.connected_accounts" + + ".UpdateConnectedAccountResponse\"\326\006\222A\246\006\n\022" + + "Connected Accounts\022$Update connected acc" + + "ount credentials\032\322\002Updates authenticatio" + + "n credentials and configuration for an e" + + "xisting connected account. Modify OAuth " + + "tokens, refresh tokens, access scopes, o" + + "r API configuration settings. Specify th" + + "e account by ID, or by combination of or" + + "ganization/user, connector, and identifi" + + "er. Returns the updated account with new" + + " token expiry and status information.J\232\001" + + "\n\003200\022\222\001\nLConnected account updated succ" + + "essfully with new credentials or configu" + + "ration\022B\n@\032>.scalekit.v1.connected_accou" + + "nts.UpdateConnectedAccountResponseJg\n\00340" + + "0\022`\n^Invalid request - missing required " + + "fields, invalid authorization details, o" + + "r validation failedJB\n\003401\022;\n9Authentica" + + "tion required - missing or invalid acces" + + "s tokenJK\n\003404\022D\nBConnected account not " + + "found - the specified account does not e" + + "xist\202\265\030\003\030\304\001\202\323\344\223\002\037\032\032/api/v1/connected_acc" + + "ounts:\001*\022\306\006\n\026DeleteConnectedAccount\022=.sc" + + "alekit.v1.connected_accounts.DeleteConne" + + "ctedAccountRequest\032>.scalekit.v1.connect" + + "ed_accounts.DeleteConnectedAccountRespon" + + "se\"\254\005\222A\366\004\n\022Connected Accounts\022\032Delete a " + + "connected account\032\237\002Permanently removes " + + "a connected account and revokes all asso" + + "ciated authentication credentials. Ident" + + "ify the account by ID, or by combination" + + " of organization/user, connector, and id" + + "entifier. This action cannot be undone. " + + "All OAuth tokens and API keys for this a" + + "ccount will be invalidated.JK\n\003200\022D\nBCo" + + "nnected account deleted successfully and" + + " all credentials revokedJD\n\003400\022=\n;Inval" + + "id request - malformed parameters or val" + + "idation failedJB\n\003401\022;\n9Authentication " + + "required - missing or invalid access tok" + + "enJK\n\003404\022D\nBConnected account not found" + + " - the specified account does not exist\202" + + "\265\030\002\030D\202\323\344\223\002&\"!/api/v1/connected_accounts:" + + "delete:\001*\022\377\006\n\037GetMagicLinkForConnectedAc" + + "count\022F.scalekit.v1.connected_accounts.G" + + "etMagicLinkForConnectedAccountRequest\032G." + + "scalekit.v1.connected_accounts.GetMagicL" + + "inkForConnectedAccountResponse\"\312\005\222A\220\005\n\022C" + + "onnected Accounts\022\"Generate authenticati" + + "on magic link\032\242\002Creates a time-limited m" + + "agic link for connecting or re-authorizi" + + "ng a third-party account. The link direc" + + "ts users to the OAuth authorization flow" + + " for the specified connector. Returns th" + + "e generated link URL and expiration time" + + "stamp. Links typically expire after a sh" + + "ort duration for security.J\237\001\n\003200\022\227\001\nHM" + + "agic link generated successfully with au" + + "thorization URL and expiry time\022K\nI\032G.sc" + + "alekit.v1.connected_accounts.GetMagicLin" + + "kForConnectedAccountResponseJK\n\003400\022D\nBI" + + "nvalid request - missing required parame" + + "ters or invalid connectorJB\n\003401\022;\n9Auth" + + "entication required - missing or invalid" + + " access token\202\265\030\002\030D\202\323\344\223\002*\"%/api/v1/conne" + + "cted_accounts/magic_link:\001*\022\366\005\n\023GetConne" + + "ctedAccount\022:.scalekit.v1.connected_acco" + + "unts.GetConnectedAccountRequest\032;.scalek" + + "it.v1.connected_accounts.GetConnectedAcc" + + "ountResponse\"\345\004\222A\220\004\n\022Connected Accounts\022" + + "\027Get a connected account\032\270\001Retrieves a c" + + "onnected account by its unique ID. Use t" + + "he path \'/this\' (e.g. /api/v1/connected_" + + "accounts/this) to retrieve the connected" + + " account associated with the current tok" + + "en context.Jv\n\003200\022o\n,Successfully retri" + + "eved the connected account\022?\n=\032;.scaleki" + + "t.v1.connected_accounts.GetConnectedAcco" + + "untResponseJD\n\003400\022=\n;Invalid request - " + + "missing or malformed connected account I" + + "DJB\n\003401\022;\n9Authentication required - mi" + + "ssing or invalid access tokenJ$\n\003404\022\035\n\033" + + "Connected account not found\202\265\030\003\030\304\001\202\323\344\223\002D" + + "\022\037/api/v1/connected_accounts/thisZ!\022\037/ap" + + "i/v1/connected_accounts/{id}\022\206\006\n\032Disconn" + + "ectConnectedAccount\022A.scalekit.v1.connec" + + "ted_accounts.DisconnectConnectedAccountR" + + "equest\032B.scalekit.v1.connected_accounts." + + "DisconnectConnectedAccountResponse\"\340\004\222A\362" + + "\003\n\022Connected Accounts\022\036Disconnect a conn" + + "ected account\032\210\001Disconnects a connected " + + "account by setting its status to DISCONN" + + "ECTED. The account record is retained bu" + + "t is marked as no longer active.J\200\001\n\003200" + + "\022y\n/Successfully disconnected the connec" + + "ted account\022F\nD\032B.scalekit.v1.connected_" + + "accounts.DisconnectConnectedAccountRespo" + + "nseJD\n\003400\022=\n;Invalid request - missing " + + "or malformed connected account IDJB\n\003401" + + "\022;\n9Authentication required - missing or" + + " invalid access tokenJ$\n\003404\022\035\n\033Connecte" + + "d account not found\202\265\030\003\030\304\001\202\323\344\223\002]\"*/api/v" + + "1/connected_accounts/{id}:disconnect:\001*Z" + + ",\"\'/api/v1/connected_accounts/-:disconne" + + "ct:\001*\022\266\007\n\027GetConnectedAccountAuth\022F.scal" + + "ekit.v1.connected_accounts.GetConnectedA" + + "ccountByIdentifierRequest\032G.scalekit.v1." + + "connected_accounts.GetConnectedAccountBy" + + "IdentifierResponse\"\211\006\222A\330\005\n\022Connected Acc" + + "ounts\022\035Get connected account details\032\253\002R" + + "etrieves complete authentication details" + + " for a connected account including OAuth" + + " tokens, refresh tokens, scopes, and API" + + " configuration. Query by account ID or b" + + "y combination of organization/user, conn" + + "ector, and identifier. Returns sensitive" + + " credential information - use appropriat" + + "e access controls.J\240\001\n\003200\022\230\001\nISuccessfu" + + "lly retrieved connected account with ful" + + "l authentication details\022K\nI\032G.scalekit." + + "v1.connected_accounts.GetConnectedAccoun" + + "tByIdentifierResponseJ<\n\003400\0225\n3Invalid " + + "request - missing required query paramet" + + "ersJB\n\003401\022;\n9Authentication required - " + + "missing or invalid access tokenJP\n\003404\022I" + + "\nGConnected account not found - no accou" + + "nt matches the specified criteria\202\265\030\002\030D\202" + + "\323\344\223\002!\022\037/api/v1/connected_accounts/auth\022\372" + + "\006\n\032GetConnectedAccountDetails\022F.scalekit" + + ".v1.connected_accounts.GetConnectedAccou" + + "ntByIdentifierRequest\032G.scalekit.v1.conn" + + "ected_accounts.GetConnectedAccountByIden" + + "tifierResponse\"\312\005\222A\226\005\n\022Connected Account" + + "s\022\035Get connected account details\032\203\002Retur" + + "ns metadata for a connected account incl" + + "uding status, connector type, provider, " + + "and configuration without exposing store" + + "d authorization credentials. Look up by " + + "account ID, or by a combination of organ" + + "ization (or user), connector, and extern" + + "al identifier.J\206\001\n\003200\022\177\n0Successfully r" + + "etrieved connected account details\022K\nI\032G" + + ".scalekit.v1.connected_accounts.GetConne" + + "ctedAccountByIdentifierResponseJ<\n\003400\0225" + + "\n3Invalid request - missing required que" + + "ry parametersJB\n\003401\022;\n9Authentication r" + + "equired - missing or invalid access toke" + + "nJP\n\003404\022I\nGConnected account not found " + + "- no account matches the specified crite" + + "ria\202\265\030\002\030D\202\323\344\223\002$\022\"/api/v1/connected_accou" + + "nts/details\022\273\007\n\032VerifyConnectedAccountUs" + + "er\022A.scalekit.v1.connected_accounts.Veri" + + "fyConnectedAccountUserRequest\032B.scalekit" + + ".v1.connected_accounts.VerifyConnectedAc" + + "countUserResponse\"\225\006\222A\332\005\n\022Connected Acco" + + "unts\022\035Verify connected account user\032\244\002Co" + + "nfirms the user assertion and activates " + + "the connected account after the user com" + + "pletes third-party OAuth. Called by the " + + "B2B app server with auth_request_id and " + + "identifier. Validates that the asserted " + + "identifier matches the one stored on the" + + " auth request and promotes pending token" + + "s to live.J\212\001\n\003200\022\202\001\n8Verification succ" + + "essful; connected account is now ACTIVE\022" + + "F\nD\032B.scalekit.v1.connected_accounts.Ver" + + "ifyConnectedAccountUserResponseJ6\n\003400\022/" + + "\n-Invalid request - missing or malformed" + + " fieldsJ7\n\003401\0220\n.Unauthorized - invalid" + + " or missing access tokenJ(\n\003403\022!\n\037Forbi" + + "dden - identifier mismatchJV\n\003404\022O\nMNot" + + " found - no pending flow for the given a" + + "uth_request_id or already consumed\202\265\030\002\030D" + + "\202\323\344\223\002+\"&/api/v1/connected_accounts/user/" + + "verify:\001*\032\343\001\222A\337\001\n\022Connected Accounts\022\310\001M" + + "anage connected accounts for third-party" + + " integrations and OAuth connections. Con" + + "nected accounts represent authenticated " + + "access to external services like Google," + + " Notion, Slack, and other applications.B" + + "\204\004\n0com.scalekit.grpc.scalekit.v1.connec" + + "ted_accountsB\026ConnectedAccountsProtoP\001Z<" + + "github.com/scalekit-inc/scalekit/pkg/grp" + + "c/connected_accounts\242\002\003SVC\252\002\035Scalekit.V1" + + ".ConnectedAccounts\312\002\035Scalekit\\V1\\Connect" + + "edAccounts\342\002)Scalekit\\V1\\ConnectedAccoun" + + "ts\\GPBMetadata\352\002\037Scalekit::V1::Connected" + + "Accounts\222A\342\001j\337\001\n\022Connected Accounts\022\310\001Ma" + + "nage connected accounts for third-party " + + "integrations and OAuth connections. Conn" + + "ected accounts represent authenticated a" + + "ccess to external services like Google, " + + "Notion, Slack, and other applications.b\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -790,70 +977,113 @@ public static void registerAllExtensions( internal_static_scalekit_v1_connected_accounts_GetMagicLinkForConnectedAccountRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_connected_accounts_GetMagicLinkForConnectedAccountRequest_descriptor, - new java.lang.String[] { "OrganizationId", "UserId", "Connector", "Identifier", "Id", }); + new java.lang.String[] { "OrganizationId", "UserId", "Connector", "Identifier", "Id", "State", "UserVerifyUrl", }); internal_static_scalekit_v1_connected_accounts_GetMagicLinkForConnectedAccountResponse_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_scalekit_v1_connected_accounts_GetMagicLinkForConnectedAccountResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_connected_accounts_GetMagicLinkForConnectedAccountResponse_descriptor, new java.lang.String[] { "Link", "Expiry", }); - internal_static_scalekit_v1_connected_accounts_GetConnectedAccountByIdentifierRequest_descriptor = + internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserRequest_descriptor = getDescriptor().getMessageTypes().get(12); + internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserRequest_descriptor, + new java.lang.String[] { "AuthRequestId", "Identifier", }); + internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserResponse_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserResponse_descriptor, + new java.lang.String[] { "PostUserVerifyRedirectUrl", }); + internal_static_scalekit_v1_connected_accounts_GetConnectedAccountByIdentifierRequest_descriptor = + getDescriptor().getMessageTypes().get(14); internal_static_scalekit_v1_connected_accounts_GetConnectedAccountByIdentifierRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_connected_accounts_GetConnectedAccountByIdentifierRequest_descriptor, new java.lang.String[] { "OrganizationId", "UserId", "Connector", "Identifier", "Id", }); internal_static_scalekit_v1_connected_accounts_GetConnectedAccountByIdentifierResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_scalekit_v1_connected_accounts_GetConnectedAccountByIdentifierResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_connected_accounts_GetConnectedAccountByIdentifierResponse_descriptor, new java.lang.String[] { "ConnectedAccount", }); internal_static_scalekit_v1_connected_accounts_ConnectedAccount_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_scalekit_v1_connected_accounts_ConnectedAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_connected_accounts_ConnectedAccount_descriptor, new java.lang.String[] { "Identifier", "Provider", "Status", "AuthorizationType", "AuthorizationDetails", "TokenExpiresAt", "UpdatedAt", "Connector", "LastUsedAt", "Id", "ConnectionId", "ApiConfig", }); internal_static_scalekit_v1_connected_accounts_CreateConnectedAccount_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_scalekit_v1_connected_accounts_CreateConnectedAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_connected_accounts_CreateConnectedAccount_descriptor, new java.lang.String[] { "AuthorizationDetails", "ApiConfig", }); internal_static_scalekit_v1_connected_accounts_UpdateConnectedAccount_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_scalekit_v1_connected_accounts_UpdateConnectedAccount_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_connected_accounts_UpdateConnectedAccount_descriptor, new java.lang.String[] { "AuthorizationDetails", "ApiConfig", }); internal_static_scalekit_v1_connected_accounts_ConnectedAccountForList_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_scalekit_v1_connected_accounts_ConnectedAccountForList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_connected_accounts_ConnectedAccountForList_descriptor, new java.lang.String[] { "Identifier", "Provider", "Status", "AuthorizationType", "TokenExpiresAt", "UpdatedAt", "Connector", "LastUsedAt", "Id", "ConnectionId", }); internal_static_scalekit_v1_connected_accounts_AuthorizationDetails_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_scalekit_v1_connected_accounts_AuthorizationDetails_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_connected_accounts_AuthorizationDetails_descriptor, - new java.lang.String[] { "OauthToken", "StaticAuth", "Details", }); + new java.lang.String[] { "OauthToken", "StaticAuth", "GoogleDwd", "Details", }); + internal_static_scalekit_v1_connected_accounts_GoogleDWDAuth_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_scalekit_v1_connected_accounts_GoogleDWDAuth_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_connected_accounts_GoogleDWDAuth_descriptor, + new java.lang.String[] { "Subject", "AccessToken", "Scopes", "TokenExpiresAt", }); internal_static_scalekit_v1_connected_accounts_OauthToken_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_scalekit_v1_connected_accounts_OauthToken_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_connected_accounts_OauthToken_descriptor, new java.lang.String[] { "AccessToken", "RefreshToken", "Scopes", "Domain", }); internal_static_scalekit_v1_connected_accounts_StaticAuth_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(23); internal_static_scalekit_v1_connected_accounts_StaticAuth_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_connected_accounts_StaticAuth_descriptor, new java.lang.String[] { "Details", }); + internal_static_scalekit_v1_connected_accounts_GetConnectedAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_scalekit_v1_connected_accounts_GetConnectedAccountRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_connected_accounts_GetConnectedAccountRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_scalekit_v1_connected_accounts_GetConnectedAccountResponse_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_scalekit_v1_connected_accounts_GetConnectedAccountResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_connected_accounts_GetConnectedAccountResponse_descriptor, + new java.lang.String[] { "ConnectedAccount", }); + internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountResponse_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountResponse_descriptor, + new java.lang.String[] { "ConnectedAccount", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.scalekit.grpc.buf.validate.ValidateProto.field); + registry.add(com.scalekit.grpc.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.scalekit.grpc.google.api.AnnotationsProto.http); registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Field); registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Operation); diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectorStatus.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectorStatus.java index 66322a4b..bff72a0a 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectorStatus.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectorStatus.java @@ -39,12 +39,28 @@ public enum ConnectorStatus EXPIRED(2), /** *
-   * Account awaiting user authorization
+   * Account awaiting user authorization (re-auth initiated)
    * 
* * PENDING_AUTH = 3; */ PENDING_AUTH(3), + /** + *
+   * OAuth complete; awaiting user identity verification before activation
+   * 
+ * + * PENDING_VERIFICATION = 4; + */ + PENDING_VERIFICATION(4), + /** + *
+   * Account has been manually disconnected
+   * 
+ * + * DISCONNECTED = 5; + */ + DISCONNECTED(5), UNRECOGNIZED(-1), ; @@ -74,12 +90,28 @@ public enum ConnectorStatus public static final int EXPIRED_VALUE = 2; /** *
-   * Account awaiting user authorization
+   * Account awaiting user authorization (re-auth initiated)
    * 
* * PENDING_AUTH = 3; */ public static final int PENDING_AUTH_VALUE = 3; + /** + *
+   * OAuth complete; awaiting user identity verification before activation
+   * 
+ * + * PENDING_VERIFICATION = 4; + */ + public static final int PENDING_VERIFICATION_VALUE = 4; + /** + *
+   * Account has been manually disconnected
+   * 
+ * + * DISCONNECTED = 5; + */ + public static final int DISCONNECTED_VALUE = 5; public final int getNumber() { @@ -110,6 +142,8 @@ public static ConnectorStatus forNumber(int value) { case 1: return ACTIVE; case 2: return EXPIRED; case 3: return PENDING_AUTH; + case 4: return PENDING_VERIFICATION; + case 5: return DISCONNECTED; default: return null; } } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectorType.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectorType.java index 0a36725d..6fc9aaf2 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectorType.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/ConnectorType.java @@ -69,6 +69,30 @@ public enum ConnectorType * BASIC = 6; */ BASIC(6), + /** + *
+   * OAuth 2.0 client credentials (machine-to-machine)
+   * 
+ * + * OAUTH_M2M = 7; + */ + OAUTH_M2M(7), + /** + *
+   * Trello token-based OAuth1-style browser authorization
+   * 
+ * + * TRELLO_OAUTH1 = 8; + */ + TRELLO_OAUTH1(8), + /** + *
+   * Google Domain-Wide Delegation
+   * 
+ * + * GOOGLE_DWD = 9; + */ + GOOGLE_DWD(9), UNRECOGNIZED(-1), ; @@ -128,6 +152,30 @@ public enum ConnectorType * BASIC = 6; */ public static final int BASIC_VALUE = 6; + /** + *
+   * OAuth 2.0 client credentials (machine-to-machine)
+   * 
+ * + * OAUTH_M2M = 7; + */ + public static final int OAUTH_M2M_VALUE = 7; + /** + *
+   * Trello token-based OAuth1-style browser authorization
+   * 
+ * + * TRELLO_OAUTH1 = 8; + */ + public static final int TRELLO_OAUTH1_VALUE = 8; + /** + *
+   * Google Domain-Wide Delegation
+   * 
+ * + * GOOGLE_DWD = 9; + */ + public static final int GOOGLE_DWD_VALUE = 9; public final int getNumber() { @@ -161,6 +209,9 @@ public static ConnectorType forNumber(int value) { case 4: return BEARER_TOKEN; case 5: return CUSTOM; case 6: return BASIC; + case 7: return OAUTH_M2M; + case 8: return TRELLO_OAUTH1; + case 9: return GOOGLE_DWD; default: return null; } } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/CreateConnectedAccount.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/CreateConnectedAccount.java index e41b05d7..a2e48cc2 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/CreateConnectedAccount.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/CreateConnectedAccount.java @@ -6,7 +6,7 @@ /** *
- * Payload for creating a new connected account - only authorization details required
+ * Payload for creating a new connected account - authorization details are optional
  * 
* * Protobuf type {@code scalekit.v1.connected_accounts.CreateConnectedAccount} @@ -276,7 +276,7 @@ protected Builder newBuilderForType( } /** *
-   * Payload for creating a new connected account - only authorization details required
+   * Payload for creating a new connected account - authorization details are optional
    * 
* * Protobuf type {@code scalekit.v1.connected_accounts.CreateConnectedAccount} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountRequest.java new file mode 100644 index 00000000..68609928 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountRequest.java @@ -0,0 +1,542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +/** + * Protobuf type {@code scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest} + */ +public final class DisconnectConnectedAccountRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest) + DisconnectConnectedAccountRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DisconnectConnectedAccountRequest.newBuilder() to construct. + private DisconnectConnectedAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DisconnectConnectedAccountRequest() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DisconnectConnectedAccountRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest.class, com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + 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.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest other = (com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest) obj; + + if (!getId() + .equals(other.getId())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest) + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest.class, com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest build() { + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest result = new com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + 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: { + id_ = 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 id_ = ""; + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest) + private static final com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisconnectConnectedAccountRequest 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.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountRequestOrBuilder.java new file mode 100644 index 00000000..e0af04c2 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountRequestOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +public interface DisconnectConnectedAccountRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.connected_accounts.DisconnectConnectedAccountRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountResponse.java new file mode 100644 index 00000000..8b742fe4 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountResponse.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +/** + * Protobuf type {@code scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse} + */ +public final class DisconnectConnectedAccountResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse) + DisconnectConnectedAccountResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use DisconnectConnectedAccountResponse.newBuilder() to construct. + private DisconnectConnectedAccountResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DisconnectConnectedAccountResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DisconnectConnectedAccountResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse.class, com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse.Builder.class); + } + + private int bitField0_; + public static final int CONNECTED_ACCOUNT_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount connectedAccount_; + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectedAccount field is set. + */ + @java.lang.Override + public boolean hasConnectedAccount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectedAccount. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount getConnectedAccount() { + return connectedAccount_ == null ? com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.getDefaultInstance() : connectedAccount_; + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountOrBuilder getConnectedAccountOrBuilder() { + return connectedAccount_ == null ? com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.getDefaultInstance() : connectedAccount_; + } + + 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, getConnectedAccount()); + } + 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, getConnectedAccount()); + } + 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.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse other = (com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse) obj; + + if (hasConnectedAccount() != other.hasConnectedAccount()) return false; + if (hasConnectedAccount()) { + if (!getConnectedAccount() + .equals(other.getConnectedAccount())) 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 (hasConnectedAccount()) { + hash = (37 * hash) + CONNECTED_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getConnectedAccount().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse) + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse.class, com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConnectedAccountFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + connectedAccount_ = null; + if (connectedAccountBuilder_ != null) { + connectedAccountBuilder_.dispose(); + connectedAccountBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_DisconnectConnectedAccountResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse build() { + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse result = new com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.connectedAccount_ = connectedAccountBuilder_ == null + ? connectedAccount_ + : connectedAccountBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse.getDefaultInstance()) return this; + if (other.hasConnectedAccount()) { + mergeConnectedAccount(other.getConnectedAccount()); + } + 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( + getConnectedAccountFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount connectedAccount_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount, com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.Builder, com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountOrBuilder> connectedAccountBuilder_; + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectedAccount field is set. + */ + public boolean hasConnectedAccount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectedAccount. + */ + public com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount getConnectedAccount() { + if (connectedAccountBuilder_ == null) { + return connectedAccount_ == null ? com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.getDefaultInstance() : connectedAccount_; + } else { + return connectedAccountBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setConnectedAccount(com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount value) { + if (connectedAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectedAccount_ = value; + } else { + connectedAccountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setConnectedAccount( + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.Builder builderForValue) { + if (connectedAccountBuilder_ == null) { + connectedAccount_ = builderForValue.build(); + } else { + connectedAccountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeConnectedAccount(com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount value) { + if (connectedAccountBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + connectedAccount_ != null && + connectedAccount_ != com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.getDefaultInstance()) { + getConnectedAccountBuilder().mergeFrom(value); + } else { + connectedAccount_ = value; + } + } else { + connectedAccountBuilder_.mergeFrom(value); + } + if (connectedAccount_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearConnectedAccount() { + bitField0_ = (bitField0_ & ~0x00000001); + connectedAccount_ = null; + if (connectedAccountBuilder_ != null) { + connectedAccountBuilder_.dispose(); + connectedAccountBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.Builder getConnectedAccountBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConnectedAccountFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountOrBuilder getConnectedAccountOrBuilder() { + if (connectedAccountBuilder_ != null) { + return connectedAccountBuilder_.getMessageOrBuilder(); + } else { + return connectedAccount_ == null ? + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.getDefaultInstance() : connectedAccount_; + } + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount, com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.Builder, com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountOrBuilder> + getConnectedAccountFieldBuilder() { + if (connectedAccountBuilder_ == null) { + connectedAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount, com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.Builder, com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountOrBuilder>( + getConnectedAccount(), + getParentForChildren(), + isClean()); + connectedAccount_ = null; + } + return connectedAccountBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse) + private static final com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisconnectConnectedAccountResponse 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.scalekit.grpc.scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountResponseOrBuilder.java new file mode 100644 index 00000000..8cab0c18 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/DisconnectConnectedAccountResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +public interface DisconnectConnectedAccountResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.connected_accounts.DisconnectConnectedAccountResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectedAccount field is set. + */ + boolean hasConnectedAccount(); + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectedAccount. + */ + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount getConnectedAccount(); + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountOrBuilder getConnectedAccountOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountRequest.java new file mode 100644 index 00000000..9ab86346 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountRequest.java @@ -0,0 +1,542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +/** + * Protobuf type {@code scalekit.v1.connected_accounts.GetConnectedAccountRequest} + */ +public final class GetConnectedAccountRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.connected_accounts.GetConnectedAccountRequest) + GetConnectedAccountRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetConnectedAccountRequest.newBuilder() to construct. + private GetConnectedAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetConnectedAccountRequest() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetConnectedAccountRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GetConnectedAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GetConnectedAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest.class, com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + 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.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest other = (com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest) obj; + + if (!getId() + .equals(other.getId())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.connected_accounts.GetConnectedAccountRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.connected_accounts.GetConnectedAccountRequest) + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GetConnectedAccountRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GetConnectedAccountRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest.class, com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GetConnectedAccountRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest build() { + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest result = new com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + 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: { + id_ = 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 id_ = ""; + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.connected_accounts.GetConnectedAccountRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.connected_accounts.GetConnectedAccountRequest) + private static final com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectedAccountRequest 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.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountRequestOrBuilder.java new file mode 100644 index 00000000..59a6f1a5 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountRequestOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +public interface GetConnectedAccountRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.connected_accounts.GetConnectedAccountRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountResponse.java new file mode 100644 index 00000000..d0c35f45 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountResponse.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +/** + * Protobuf type {@code scalekit.v1.connected_accounts.GetConnectedAccountResponse} + */ +public final class GetConnectedAccountResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.connected_accounts.GetConnectedAccountResponse) + GetConnectedAccountResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetConnectedAccountResponse.newBuilder() to construct. + private GetConnectedAccountResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetConnectedAccountResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetConnectedAccountResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GetConnectedAccountResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GetConnectedAccountResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse.class, com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse.Builder.class); + } + + private int bitField0_; + public static final int CONNECTED_ACCOUNT_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount connectedAccount_; + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectedAccount field is set. + */ + @java.lang.Override + public boolean hasConnectedAccount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectedAccount. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount getConnectedAccount() { + return connectedAccount_ == null ? com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.getDefaultInstance() : connectedAccount_; + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountOrBuilder getConnectedAccountOrBuilder() { + return connectedAccount_ == null ? com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.getDefaultInstance() : connectedAccount_; + } + + 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, getConnectedAccount()); + } + 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, getConnectedAccount()); + } + 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.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse other = (com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse) obj; + + if (hasConnectedAccount() != other.hasConnectedAccount()) return false; + if (hasConnectedAccount()) { + if (!getConnectedAccount() + .equals(other.getConnectedAccount())) 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 (hasConnectedAccount()) { + hash = (37 * hash) + CONNECTED_ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getConnectedAccount().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.connected_accounts.GetConnectedAccountResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.connected_accounts.GetConnectedAccountResponse) + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GetConnectedAccountResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GetConnectedAccountResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse.class, com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getConnectedAccountFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + connectedAccount_ = null; + if (connectedAccountBuilder_ != null) { + connectedAccountBuilder_.dispose(); + connectedAccountBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GetConnectedAccountResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse build() { + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse result = new com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.connectedAccount_ = connectedAccountBuilder_ == null + ? connectedAccount_ + : connectedAccountBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse.getDefaultInstance()) return this; + if (other.hasConnectedAccount()) { + mergeConnectedAccount(other.getConnectedAccount()); + } + 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( + getConnectedAccountFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount connectedAccount_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount, com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.Builder, com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountOrBuilder> connectedAccountBuilder_; + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectedAccount field is set. + */ + public boolean hasConnectedAccount() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectedAccount. + */ + public com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount getConnectedAccount() { + if (connectedAccountBuilder_ == null) { + return connectedAccount_ == null ? com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.getDefaultInstance() : connectedAccount_; + } else { + return connectedAccountBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setConnectedAccount(com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount value) { + if (connectedAccountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + connectedAccount_ = value; + } else { + connectedAccountBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setConnectedAccount( + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.Builder builderForValue) { + if (connectedAccountBuilder_ == null) { + connectedAccount_ = builderForValue.build(); + } else { + connectedAccountBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeConnectedAccount(com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount value) { + if (connectedAccountBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + connectedAccount_ != null && + connectedAccount_ != com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.getDefaultInstance()) { + getConnectedAccountBuilder().mergeFrom(value); + } else { + connectedAccount_ = value; + } + } else { + connectedAccountBuilder_.mergeFrom(value); + } + if (connectedAccount_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearConnectedAccount() { + bitField0_ = (bitField0_ & ~0x00000001); + connectedAccount_ = null; + if (connectedAccountBuilder_ != null) { + connectedAccountBuilder_.dispose(); + connectedAccountBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.Builder getConnectedAccountBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getConnectedAccountFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountOrBuilder getConnectedAccountOrBuilder() { + if (connectedAccountBuilder_ != null) { + return connectedAccountBuilder_.getMessageOrBuilder(); + } else { + return connectedAccount_ == null ? + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.getDefaultInstance() : connectedAccount_; + } + } + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount, com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.Builder, com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountOrBuilder> + getConnectedAccountFieldBuilder() { + if (connectedAccountBuilder_ == null) { + connectedAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount, com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount.Builder, com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountOrBuilder>( + getConnectedAccount(), + getParentForChildren(), + isClean()); + connectedAccount_ = null; + } + return connectedAccountBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.connected_accounts.GetConnectedAccountResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.connected_accounts.GetConnectedAccountResponse) + private static final com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectedAccountResponse 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.scalekit.grpc.scalekit.v1.connected_accounts.GetConnectedAccountResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountResponseOrBuilder.java new file mode 100644 index 00000000..3640c334 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetConnectedAccountResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +public interface GetConnectedAccountResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.connected_accounts.GetConnectedAccountResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectedAccount field is set. + */ + boolean hasConnectedAccount(); + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectedAccount. + */ + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccount getConnectedAccount(); + /** + * .scalekit.v1.connected_accounts.ConnectedAccount connected_account = 1 [json_name = "connectedAccount", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountOrBuilder getConnectedAccountOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetMagicLinkForConnectedAccountRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetMagicLinkForConnectedAccountRequest.java index 2c55b36e..a146de9c 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetMagicLinkForConnectedAccountRequest.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetMagicLinkForConnectedAccountRequest.java @@ -22,6 +22,8 @@ private GetMagicLinkForConnectedAccountRequest() { connector_ = ""; identifier_ = ""; id_ = ""; + state_ = ""; + userVerifyUrl_ = ""; } @java.lang.Override @@ -280,6 +282,100 @@ public java.lang.String getId() { } } + public static final int STATE_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object state_ = ""; + /** + * optional string state = 7 [json_name = "state", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the state field is set. + */ + @java.lang.Override + public boolean hasState() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string state = 7 [json_name = "state", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The state. + */ + @java.lang.Override + public java.lang.String getState() { + java.lang.Object ref = state_; + 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(); + state_ = s; + return s; + } + } + /** + * optional string state = 7 [json_name = "state", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for state. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStateBytes() { + java.lang.Object ref = state_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + state_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_VERIFY_URL_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object userVerifyUrl_ = ""; + /** + * optional string user_verify_url = 8 [json_name = "userVerifyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the userVerifyUrl field is set. + */ + @java.lang.Override + public boolean hasUserVerifyUrl() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string user_verify_url = 8 [json_name = "userVerifyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The userVerifyUrl. + */ + @java.lang.Override + public java.lang.String getUserVerifyUrl() { + java.lang.Object ref = userVerifyUrl_; + 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(); + userVerifyUrl_ = s; + return s; + } + } + /** + * optional string user_verify_url = 8 [json_name = "userVerifyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for userVerifyUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getUserVerifyUrlBytes() { + java.lang.Object ref = userVerifyUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userVerifyUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -309,6 +405,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, id_); } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, state_); + } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, userVerifyUrl_); + } getUnknownFields().writeTo(output); } @@ -333,6 +435,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, id_); } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, state_); + } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, userVerifyUrl_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -373,6 +481,16 @@ public boolean equals(final java.lang.Object obj) { if (!getId() .equals(other.getId())) return false; } + if (hasState() != other.hasState()) return false; + if (hasState()) { + if (!getState() + .equals(other.getState())) return false; + } + if (hasUserVerifyUrl() != other.hasUserVerifyUrl()) return false; + if (hasUserVerifyUrl()) { + if (!getUserVerifyUrl() + .equals(other.getUserVerifyUrl())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -404,6 +522,14 @@ public int hashCode() { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } + if (hasState()) { + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + getState().hashCode(); + } + if (hasUserVerifyUrl()) { + hash = (37 * hash) + USER_VERIFY_URL_FIELD_NUMBER; + hash = (53 * hash) + getUserVerifyUrl().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -540,6 +666,8 @@ public Builder clear() { connector_ = ""; identifier_ = ""; id_ = ""; + state_ = ""; + userVerifyUrl_ = ""; return this; } @@ -594,6 +722,14 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.connected_accounts.GetM result.id_ = id_; to_bitField0_ |= 0x00000010; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + to_bitField0_ |= 0x00000020; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.userVerifyUrl_ = userVerifyUrl_; + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -666,6 +802,16 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connected_accounts.GetMag bitField0_ |= 0x00000010; onChanged(); } + if (other.hasState()) { + state_ = other.state_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasUserVerifyUrl()) { + userVerifyUrl_ = other.userVerifyUrl_; + bitField0_ |= 0x00000040; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -717,6 +863,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 58: { + state_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: { + userVerifyUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1128,6 +1284,164 @@ public Builder setIdBytes( onChanged(); return this; } + + private java.lang.Object state_ = ""; + /** + * optional string state = 7 [json_name = "state", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the state field is set. + */ + public boolean hasState() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string state = 7 [json_name = "state", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The state. + */ + public java.lang.String getState() { + java.lang.Object ref = state_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + state_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string state = 7 [json_name = "state", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for state. + */ + public com.google.protobuf.ByteString + getStateBytes() { + java.lang.Object ref = state_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + state_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string state = 7 [json_name = "state", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional string state = 7 [json_name = "state", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearState() { + state_ = getDefaultInstance().getState(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * optional string state = 7 [json_name = "state", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for state to set. + * @return This builder for chaining. + */ + public Builder setStateBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object userVerifyUrl_ = ""; + /** + * optional string user_verify_url = 8 [json_name = "userVerifyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the userVerifyUrl field is set. + */ + public boolean hasUserVerifyUrl() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string user_verify_url = 8 [json_name = "userVerifyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The userVerifyUrl. + */ + public java.lang.String getUserVerifyUrl() { + java.lang.Object ref = userVerifyUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userVerifyUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string user_verify_url = 8 [json_name = "userVerifyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for userVerifyUrl. + */ + public com.google.protobuf.ByteString + getUserVerifyUrlBytes() { + java.lang.Object ref = userVerifyUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + userVerifyUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string user_verify_url = 8 [json_name = "userVerifyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The userVerifyUrl to set. + * @return This builder for chaining. + */ + public Builder setUserVerifyUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + userVerifyUrl_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional string user_verify_url = 8 [json_name = "userVerifyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearUserVerifyUrl() { + userVerifyUrl_ = getDefaultInstance().getUserVerifyUrl(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * optional string user_verify_url = 8 [json_name = "userVerifyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for userVerifyUrl to set. + * @return This builder for chaining. + */ + public Builder setUserVerifyUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + userVerifyUrl_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetMagicLinkForConnectedAccountRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetMagicLinkForConnectedAccountRequestOrBuilder.java index 470f08d5..13d09b1c 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetMagicLinkForConnectedAccountRequestOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GetMagicLinkForConnectedAccountRequestOrBuilder.java @@ -92,4 +92,38 @@ public interface GetMagicLinkForConnectedAccountRequestOrBuilder extends */ com.google.protobuf.ByteString getIdBytes(); + + /** + * optional string state = 7 [json_name = "state", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the state field is set. + */ + boolean hasState(); + /** + * optional string state = 7 [json_name = "state", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The state. + */ + java.lang.String getState(); + /** + * optional string state = 7 [json_name = "state", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for state. + */ + com.google.protobuf.ByteString + getStateBytes(); + + /** + * optional string user_verify_url = 8 [json_name = "userVerifyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the userVerifyUrl field is set. + */ + boolean hasUserVerifyUrl(); + /** + * optional string user_verify_url = 8 [json_name = "userVerifyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The userVerifyUrl. + */ + java.lang.String getUserVerifyUrl(); + /** + * optional string user_verify_url = 8 [json_name = "userVerifyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for userVerifyUrl. + */ + com.google.protobuf.ByteString + getUserVerifyUrlBytes(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GoogleDWDAuth.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GoogleDWDAuth.java new file mode 100644 index 00000000..1e4dad7d --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GoogleDWDAuth.java @@ -0,0 +1,1070 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +/** + *
+ * Google Domain-Wide Delegation authentication — used for GOOGLE_DWD connections.
+ * Send only subject in requests; access_token, scopes, and token_expires_at are response-only.
+ * 
+ * + * Protobuf type {@code scalekit.v1.connected_accounts.GoogleDWDAuth} + */ +public final class GoogleDWDAuth extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.connected_accounts.GoogleDWDAuth) + GoogleDWDAuthOrBuilder { +private static final long serialVersionUID = 0L; + // Use GoogleDWDAuth.newBuilder() to construct. + private GoogleDWDAuth(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GoogleDWDAuth() { + subject_ = ""; + accessToken_ = ""; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GoogleDWDAuth(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GoogleDWDAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GoogleDWDAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.class, com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.Builder.class); + } + + private int bitField0_; + public static final int SUBJECT_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object subject_ = ""; + /** + * string subject = 1 [json_name = "subject", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The subject. + */ + @java.lang.Override + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + 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(); + subject_ = s; + return s; + } + } + /** + * string subject = 1 [json_name = "subject", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for subject. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCESS_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object accessToken_ = ""; + /** + * string access_token = 2 [json_name = "accessToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The accessToken. + */ + @java.lang.Override + public java.lang.String getAccessToken() { + java.lang.Object ref = accessToken_; + 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(); + accessToken_ = s; + return s; + } + } + /** + * string access_token = 2 [json_name = "accessToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for accessToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAccessTokenBytes() { + java.lang.Object ref = accessToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPES_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + return scopes_; + } + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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); + } + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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 TOKEN_EXPIRES_AT_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp tokenExpiresAt_; + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the tokenExpiresAt field is set. + */ + @java.lang.Override + public boolean hasTokenExpiresAt() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The tokenExpiresAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getTokenExpiresAt() { + return tokenExpiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : tokenExpiresAt_; + } + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getTokenExpiresAtOrBuilder() { + return tokenExpiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : tokenExpiresAt_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, subject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accessToken_); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, scopes_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getTokenExpiresAt()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(subject_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, subject_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accessToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accessToken_); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getTokenExpiresAt()); + } + 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.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth other = (com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth) obj; + + if (!getSubject() + .equals(other.getSubject())) return false; + if (!getAccessToken() + .equals(other.getAccessToken())) return false; + if (!getScopesList() + .equals(other.getScopesList())) return false; + if (hasTokenExpiresAt() != other.hasTokenExpiresAt()) return false; + if (hasTokenExpiresAt()) { + if (!getTokenExpiresAt() + .equals(other.getTokenExpiresAt())) 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) + SUBJECT_FIELD_NUMBER; + hash = (53 * hash) + getSubject().hashCode(); + hash = (37 * hash) + ACCESS_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getAccessToken().hashCode(); + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + if (hasTokenExpiresAt()) { + hash = (37 * hash) + TOKEN_EXPIRES_AT_FIELD_NUMBER; + hash = (53 * hash) + getTokenExpiresAt().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * Google Domain-Wide Delegation authentication — used for GOOGLE_DWD connections.
+   * Send only subject in requests; access_token, scopes, and token_expires_at are response-only.
+   * 
+ * + * Protobuf type {@code scalekit.v1.connected_accounts.GoogleDWDAuth} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.connected_accounts.GoogleDWDAuth) + com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuthOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GoogleDWDAuth_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GoogleDWDAuth_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.class, com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getTokenExpiresAtFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + subject_ = ""; + accessToken_ = ""; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + tokenExpiresAt_ = null; + if (tokenExpiresAtBuilder_ != null) { + tokenExpiresAtBuilder_.dispose(); + tokenExpiresAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_GoogleDWDAuth_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth build() { + com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth buildPartial() { + com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth result = new com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.subject_ = subject_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.accessToken_ = accessToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.tokenExpiresAt_ = tokenExpiresAtBuilder_ == null + ? tokenExpiresAt_ + : tokenExpiresAtBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth other) { + if (other == com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth.getDefaultInstance()) return this; + if (!other.getSubject().isEmpty()) { + subject_ = other.subject_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAccessToken().isEmpty()) { + accessToken_ = other.accessToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000004; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (other.hasTokenExpiresAt()) { + mergeTokenExpiresAt(other.getTokenExpiresAt()); + } + 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: { + subject_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + accessToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 26 + case 34: { + input.readMessage( + getTokenExpiresAtFieldBuilder().getBuilder(), + extensionRegistry); + 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 subject_ = ""; + /** + * string subject = 1 [json_name = "subject", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The subject. + */ + public java.lang.String getSubject() { + java.lang.Object ref = subject_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + subject_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string subject = 1 [json_name = "subject", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for subject. + */ + public com.google.protobuf.ByteString + getSubjectBytes() { + java.lang.Object ref = subject_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + subject_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string subject = 1 [json_name = "subject", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The subject to set. + * @return This builder for chaining. + */ + public Builder setSubject( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + subject_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string subject = 1 [json_name = "subject", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearSubject() { + subject_ = getDefaultInstance().getSubject(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string subject = 1 [json_name = "subject", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for subject to set. + * @return This builder for chaining. + */ + public Builder setSubjectBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + subject_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object accessToken_ = ""; + /** + * string access_token = 2 [json_name = "accessToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The accessToken. + */ + public java.lang.String getAccessToken() { + java.lang.Object ref = accessToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string access_token = 2 [json_name = "accessToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for accessToken. + */ + public com.google.protobuf.ByteString + getAccessTokenBytes() { + java.lang.Object ref = accessToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + accessToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string access_token = 2 [json_name = "accessToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The accessToken to set. + * @return This builder for chaining. + */ + public Builder setAccessToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + accessToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string access_token = 2 [json_name = "accessToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearAccessToken() { + accessToken_ = getDefaultInstance().getAccessToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string access_token = 2 [json_name = "accessToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for accessToken to set. + * @return This builder for chaining. + */ + public Builder setAccessTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + accessToken_ = value; + bitField0_ |= 0x00000002; + 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_ |= 0x00000004; + } + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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); + } + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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); + } + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000004; + onChanged(); + return this; + } + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004);; + onChanged(); + return this; + } + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp tokenExpiresAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> tokenExpiresAtBuilder_; + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the tokenExpiresAt field is set. + */ + public boolean hasTokenExpiresAt() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The tokenExpiresAt. + */ + public com.google.protobuf.Timestamp getTokenExpiresAt() { + if (tokenExpiresAtBuilder_ == null) { + return tokenExpiresAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : tokenExpiresAt_; + } else { + return tokenExpiresAtBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setTokenExpiresAt(com.google.protobuf.Timestamp value) { + if (tokenExpiresAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokenExpiresAt_ = value; + } else { + tokenExpiresAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setTokenExpiresAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (tokenExpiresAtBuilder_ == null) { + tokenExpiresAt_ = builderForValue.build(); + } else { + tokenExpiresAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeTokenExpiresAt(com.google.protobuf.Timestamp value) { + if (tokenExpiresAtBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + tokenExpiresAt_ != null && + tokenExpiresAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getTokenExpiresAtBuilder().mergeFrom(value); + } else { + tokenExpiresAt_ = value; + } + } else { + tokenExpiresAtBuilder_.mergeFrom(value); + } + if (tokenExpiresAt_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearTokenExpiresAt() { + bitField0_ = (bitField0_ & ~0x00000008); + tokenExpiresAt_ = null; + if (tokenExpiresAtBuilder_ != null) { + tokenExpiresAtBuilder_.dispose(); + tokenExpiresAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.Timestamp.Builder getTokenExpiresAtBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getTokenExpiresAtFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.TimestampOrBuilder getTokenExpiresAtOrBuilder() { + if (tokenExpiresAtBuilder_ != null) { + return tokenExpiresAtBuilder_.getMessageOrBuilder(); + } else { + return tokenExpiresAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : tokenExpiresAt_; + } + } + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getTokenExpiresAtFieldBuilder() { + if (tokenExpiresAtBuilder_ == null) { + tokenExpiresAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getTokenExpiresAt(), + getParentForChildren(), + isClean()); + tokenExpiresAt_ = null; + } + return tokenExpiresAtBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.connected_accounts.GoogleDWDAuth) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.connected_accounts.GoogleDWDAuth) + private static final com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth(); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleDWDAuth 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.scalekit.grpc.scalekit.v1.connected_accounts.GoogleDWDAuth getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GoogleDWDAuthOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GoogleDWDAuthOrBuilder.java new file mode 100644 index 00000000..0cbadd2b --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/GoogleDWDAuthOrBuilder.java @@ -0,0 +1,74 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +public interface GoogleDWDAuthOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.connected_accounts.GoogleDWDAuth) + com.google.protobuf.MessageOrBuilder { + + /** + * string subject = 1 [json_name = "subject", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The subject. + */ + java.lang.String getSubject(); + /** + * string subject = 1 [json_name = "subject", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for subject. + */ + com.google.protobuf.ByteString + getSubjectBytes(); + + /** + * string access_token = 2 [json_name = "accessToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The accessToken. + */ + java.lang.String getAccessToken(); + /** + * string access_token = 2 [json_name = "accessToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for accessToken. + */ + com.google.protobuf.ByteString + getAccessTokenBytes(); + + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the scopes. + */ + java.util.List + getScopesList(); + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of scopes. + */ + int getScopesCount(); + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + /** + * repeated string scopes = 3 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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); + + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the tokenExpiresAt field is set. + */ + boolean hasTokenExpiresAt(); + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The tokenExpiresAt. + */ + com.google.protobuf.Timestamp getTokenExpiresAt(); + /** + * .google.protobuf.Timestamp token_expires_at = 4 [json_name = "tokenExpiresAt", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.TimestampOrBuilder getTokenExpiresAtOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserRequest.java new file mode 100644 index 00000000..71198522 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserRequest.java @@ -0,0 +1,678 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +/** + * Protobuf type {@code scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest} + */ +public final class VerifyConnectedAccountUserRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest) + VerifyConnectedAccountUserRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use VerifyConnectedAccountUserRequest.newBuilder() to construct. + private VerifyConnectedAccountUserRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VerifyConnectedAccountUserRequest() { + authRequestId_ = ""; + identifier_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VerifyConnectedAccountUserRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest.class, com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest.Builder.class); + } + + public static final int AUTH_REQUEST_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object authRequestId_ = ""; + /** + * string auth_request_id = 1 [json_name = "authRequestId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The authRequestId. + */ + @java.lang.Override + public java.lang.String getAuthRequestId() { + java.lang.Object ref = authRequestId_; + 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(); + authRequestId_ = s; + return s; + } + } + /** + * string auth_request_id = 1 [json_name = "authRequestId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for authRequestId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAuthRequestIdBytes() { + java.lang.Object ref = authRequestId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authRequestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IDENTIFIER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object identifier_ = ""; + /** + * string identifier = 2 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The identifier. + */ + @java.lang.Override + public java.lang.String getIdentifier() { + java.lang.Object ref = identifier_; + 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(); + identifier_ = s; + return s; + } + } + /** + * string identifier = 2 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for identifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdentifierBytes() { + java.lang.Object ref = identifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authRequestId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, authRequestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identifier_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, identifier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(authRequestId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, authRequestId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identifier_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, identifier_); + } + 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.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest other = (com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest) obj; + + if (!getAuthRequestId() + .equals(other.getAuthRequestId())) return false; + if (!getIdentifier() + .equals(other.getIdentifier())) 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) + AUTH_REQUEST_ID_FIELD_NUMBER; + hash = (53 * hash) + getAuthRequestId().hashCode(); + hash = (37 * hash) + IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getIdentifier().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest) + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest.class, com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + authRequestId_ = ""; + identifier_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest build() { + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest result = new com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.authRequestId_ = authRequestId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.identifier_ = identifier_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest.getDefaultInstance()) return this; + if (!other.getAuthRequestId().isEmpty()) { + authRequestId_ = other.authRequestId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getIdentifier().isEmpty()) { + identifier_ = other.identifier_; + 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: { + authRequestId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + identifier_ = 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 authRequestId_ = ""; + /** + * string auth_request_id = 1 [json_name = "authRequestId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The authRequestId. + */ + public java.lang.String getAuthRequestId() { + java.lang.Object ref = authRequestId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + authRequestId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string auth_request_id = 1 [json_name = "authRequestId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for authRequestId. + */ + public com.google.protobuf.ByteString + getAuthRequestIdBytes() { + java.lang.Object ref = authRequestId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + authRequestId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string auth_request_id = 1 [json_name = "authRequestId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The authRequestId to set. + * @return This builder for chaining. + */ + public Builder setAuthRequestId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + authRequestId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string auth_request_id = 1 [json_name = "authRequestId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearAuthRequestId() { + authRequestId_ = getDefaultInstance().getAuthRequestId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string auth_request_id = 1 [json_name = "authRequestId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for authRequestId to set. + * @return This builder for chaining. + */ + public Builder setAuthRequestIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + authRequestId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object identifier_ = ""; + /** + * string identifier = 2 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The identifier. + */ + public java.lang.String getIdentifier() { + java.lang.Object ref = identifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string identifier = 2 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for identifier. + */ + public com.google.protobuf.ByteString + getIdentifierBytes() { + java.lang.Object ref = identifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string identifier = 2 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifier( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + identifier_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string identifier = 2 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIdentifier() { + identifier_ = getDefaultInstance().getIdentifier(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string identifier = 2 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifierBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + identifier_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest) + private static final com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyConnectedAccountUserRequest 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.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserRequestOrBuilder.java new file mode 100644 index 00000000..c0c090f4 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserRequestOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +public interface VerifyConnectedAccountUserRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.connected_accounts.VerifyConnectedAccountUserRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string auth_request_id = 1 [json_name = "authRequestId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The authRequestId. + */ + java.lang.String getAuthRequestId(); + /** + * string auth_request_id = 1 [json_name = "authRequestId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for authRequestId. + */ + com.google.protobuf.ByteString + getAuthRequestIdBytes(); + + /** + * string identifier = 2 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The identifier. + */ + java.lang.String getIdentifier(); + /** + * string identifier = 2 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for identifier. + */ + com.google.protobuf.ByteString + getIdentifierBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserResponse.java new file mode 100644 index 00000000..f12aeac9 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserResponse.java @@ -0,0 +1,542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +/** + * Protobuf type {@code scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse} + */ +public final class VerifyConnectedAccountUserResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse) + VerifyConnectedAccountUserResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use VerifyConnectedAccountUserResponse.newBuilder() to construct. + private VerifyConnectedAccountUserResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VerifyConnectedAccountUserResponse() { + postUserVerifyRedirectUrl_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VerifyConnectedAccountUserResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse.class, com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse.Builder.class); + } + + public static final int POST_USER_VERIFY_REDIRECT_URL_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object postUserVerifyRedirectUrl_ = ""; + /** + * string post_user_verify_redirect_url = 1 [json_name = "postUserVerifyRedirectUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The postUserVerifyRedirectUrl. + */ + @java.lang.Override + public java.lang.String getPostUserVerifyRedirectUrl() { + java.lang.Object ref = postUserVerifyRedirectUrl_; + 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(); + postUserVerifyRedirectUrl_ = s; + return s; + } + } + /** + * string post_user_verify_redirect_url = 1 [json_name = "postUserVerifyRedirectUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for postUserVerifyRedirectUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPostUserVerifyRedirectUrlBytes() { + java.lang.Object ref = postUserVerifyRedirectUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + postUserVerifyRedirectUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postUserVerifyRedirectUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, postUserVerifyRedirectUrl_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(postUserVerifyRedirectUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, postUserVerifyRedirectUrl_); + } + 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.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse other = (com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse) obj; + + if (!getPostUserVerifyRedirectUrl() + .equals(other.getPostUserVerifyRedirectUrl())) 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) + POST_USER_VERIFY_REDIRECT_URL_FIELD_NUMBER; + hash = (53 * hash) + getPostUserVerifyRedirectUrl().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse) + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse.class, com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + postUserVerifyRedirectUrl_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.ConnectedAccountsProto.internal_static_scalekit_v1_connected_accounts_VerifyConnectedAccountUserResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse build() { + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse result = new com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.postUserVerifyRedirectUrl_ = postUserVerifyRedirectUrl_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse.getDefaultInstance()) return this; + if (!other.getPostUserVerifyRedirectUrl().isEmpty()) { + postUserVerifyRedirectUrl_ = other.postUserVerifyRedirectUrl_; + 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: { + postUserVerifyRedirectUrl_ = 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 postUserVerifyRedirectUrl_ = ""; + /** + * string post_user_verify_redirect_url = 1 [json_name = "postUserVerifyRedirectUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The postUserVerifyRedirectUrl. + */ + public java.lang.String getPostUserVerifyRedirectUrl() { + java.lang.Object ref = postUserVerifyRedirectUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + postUserVerifyRedirectUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string post_user_verify_redirect_url = 1 [json_name = "postUserVerifyRedirectUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for postUserVerifyRedirectUrl. + */ + public com.google.protobuf.ByteString + getPostUserVerifyRedirectUrlBytes() { + java.lang.Object ref = postUserVerifyRedirectUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + postUserVerifyRedirectUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string post_user_verify_redirect_url = 1 [json_name = "postUserVerifyRedirectUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The postUserVerifyRedirectUrl to set. + * @return This builder for chaining. + */ + public Builder setPostUserVerifyRedirectUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + postUserVerifyRedirectUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string post_user_verify_redirect_url = 1 [json_name = "postUserVerifyRedirectUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearPostUserVerifyRedirectUrl() { + postUserVerifyRedirectUrl_ = getDefaultInstance().getPostUserVerifyRedirectUrl(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string post_user_verify_redirect_url = 1 [json_name = "postUserVerifyRedirectUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for postUserVerifyRedirectUrl to set. + * @return This builder for chaining. + */ + public Builder setPostUserVerifyRedirectUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + postUserVerifyRedirectUrl_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse) + private static final com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyConnectedAccountUserResponse 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.scalekit.grpc.scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserResponseOrBuilder.java new file mode 100644 index 00000000..091ecbb1 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connected_accounts/VerifyConnectedAccountUserResponseOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connected_accounts/connected_accounts.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connected_accounts; + +public interface VerifyConnectedAccountUserResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.connected_accounts.VerifyConnectedAccountUserResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string post_user_verify_redirect_url = 1 [json_name = "postUserVerifyRedirectUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The postUserVerifyRedirectUrl. + */ + java.lang.String getPostUserVerifyRedirectUrl(); + /** + * string post_user_verify_redirect_url = 1 [json_name = "postUserVerifyRedirectUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for postUserVerifyRedirectUrl. + */ + com.google.protobuf.ByteString + getPostUserVerifyRedirectUrlBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/Connection.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/Connection.java index 75e9ee95..129dc87d 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/Connection.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/Connection.java @@ -75,6 +75,7 @@ public enum SettingsCase PASSWORDLESS_CONFIG(22), STATIC_CONFIG(26), WEBAUTHN_CONFIG(27), + GOOGLE_DWD_CONFIG(28), SETTINGS_NOT_SET(0); private final int value; private SettingsCase(int value) { @@ -98,6 +99,7 @@ public static SettingsCase forNumber(int value) { case 22: return PASSWORDLESS_CONFIG; case 26: return STATIC_CONFIG; case 27: return WEBAUTHN_CONFIG; + case 28: return GOOGLE_DWD_CONFIG; case 0: return SETTINGS_NOT_SET; default: return null; } @@ -688,6 +690,37 @@ public com.scalekit.grpc.scalekit.v1.connections.WebAuthConfigurationOrBuilder g return com.scalekit.grpc.scalekit.v1.connections.WebAuthConfiguration.getDefaultInstance(); } + public static final int GOOGLE_DWD_CONFIG_FIELD_NUMBER = 28; + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the googleDwdConfig field is set. + */ + @java.lang.Override + public boolean hasGoogleDwdConfig() { + return settingsCase_ == 28; + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The googleDwdConfig. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig getGoogleDwdConfig() { + if (settingsCase_ == 28) { + return (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_; + } + return com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder getGoogleDwdConfigOrBuilder() { + if (settingsCase_ == 28) { + return (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_; + } + return com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } + public static final int KEY_ID_FIELD_NUMBER = 25; @SuppressWarnings("serial") private volatile java.lang.Object keyId_ = ""; @@ -898,6 +931,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (settingsCase_ == 27) { output.writeMessage(27, (com.scalekit.grpc.scalekit.v1.connections.WebAuthConfiguration) settings_); } + if (settingsCase_ == 28) { + output.writeMessage(28, (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_); + } getUnknownFields().writeTo(output); } @@ -995,6 +1031,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(27, (com.scalekit.grpc.scalekit.v1.connections.WebAuthConfiguration) settings_); } + if (settingsCase_ == 28) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(28, (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1076,6 +1116,10 @@ public boolean equals(final java.lang.Object obj) { if (!getWebauthnConfig() .equals(other.getWebauthnConfig())) return false; break; + case 28: + if (!getGoogleDwdConfig() + .equals(other.getGoogleDwdConfig())) return false; + break; case 0: default: } @@ -1161,6 +1205,10 @@ public int hashCode() { hash = (37 * hash) + WEBAUTHN_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getWebauthnConfig().hashCode(); break; + case 28: + hash = (37 * hash) + GOOGLE_DWD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGoogleDwdConfig().hashCode(); + break; case 0: default: } @@ -1364,6 +1412,9 @@ public Builder clear() { if (webauthnConfigBuilder_ != null) { webauthnConfigBuilder_.clear(); } + if (googleDwdConfigBuilder_ != null) { + googleDwdConfigBuilder_.clear(); + } keyId_ = ""; providerKey_ = ""; if (domainsBuilder_ == null) { @@ -1372,7 +1423,7 @@ public Builder clear() { domains_ = null; domainsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); settingsCase_ = 0; settings_ = null; return this; @@ -1410,9 +1461,9 @@ public com.scalekit.grpc.scalekit.v1.connections.Connection buildPartial() { private void buildPartialRepeatedFields(com.scalekit.grpc.scalekit.v1.connections.Connection result) { if (domainsBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { domains_ = java.util.Collections.unmodifiableList(domains_); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); } result.domains_ = domains_; } else { @@ -1470,11 +1521,11 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.connections.Connection : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.keyId_ = keyId_; to_bitField0_ |= 0x00000008; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.providerKey_ = providerKey_; } result.bitField0_ |= to_bitField0_; @@ -1507,6 +1558,10 @@ private void buildPartialOneofs(com.scalekit.grpc.scalekit.v1.connections.Connec webauthnConfigBuilder_ != null) { result.settings_ = webauthnConfigBuilder_.build(); } + if (settingsCase_ == 28 && + googleDwdConfigBuilder_ != null) { + result.settings_ = googleDwdConfigBuilder_.build(); + } } @java.lang.Override @@ -1602,19 +1657,19 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connections.Connection ot } if (other.hasKeyId()) { keyId_ = other.keyId_; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } if (!other.getProviderKey().isEmpty()) { providerKey_ = other.providerKey_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } if (domainsBuilder_ == null) { if (!other.domains_.isEmpty()) { if (domains_.isEmpty()) { domains_ = other.domains_; - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); } else { ensureDomainsIsMutable(); domains_.addAll(other.domains_); @@ -1627,7 +1682,7 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connections.Connection ot domainsBuilder_.dispose(); domainsBuilder_ = null; domains_ = other.domains_; - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); domainsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDomainsFieldBuilder() : null; @@ -1661,6 +1716,10 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connections.Connection ot mergeWebauthnConfig(other.getWebauthnConfig()); break; } + case GOOGLE_DWD_CONFIG: { + mergeGoogleDwdConfig(other.getGoogleDwdConfig()); + break; + } case SETTINGS_NOT_SET: { break; } @@ -1794,7 +1853,7 @@ public Builder mergeFrom( } // case 178 case 186: { providerKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 186 case 194: { @@ -1812,7 +1871,7 @@ public Builder mergeFrom( } // case 194 case 202: { keyId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 202 case 210: { @@ -1829,6 +1888,13 @@ public Builder mergeFrom( settingsCase_ = 27; break; } // case 218 + case 226: { + input.readMessage( + getGoogleDwdConfigFieldBuilder().getBuilder(), + extensionRegistry); + settingsCase_ = 28; + break; + } // case 226 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -3653,13 +3719,155 @@ public com.scalekit.grpc.scalekit.v1.connections.WebAuthConfigurationOrBuilder g return webauthnConfigBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.Builder, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder> googleDwdConfigBuilder_; + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the googleDwdConfig field is set. + */ + @java.lang.Override + public boolean hasGoogleDwdConfig() { + return settingsCase_ == 28; + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The googleDwdConfig. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig getGoogleDwdConfig() { + if (googleDwdConfigBuilder_ == null) { + if (settingsCase_ == 28) { + return (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_; + } + return com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } else { + if (settingsCase_ == 28) { + return googleDwdConfigBuilder_.getMessage(); + } + return com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setGoogleDwdConfig(com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig value) { + if (googleDwdConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + settings_ = value; + onChanged(); + } else { + googleDwdConfigBuilder_.setMessage(value); + } + settingsCase_ = 28; + return this; + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setGoogleDwdConfig( + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.Builder builderForValue) { + if (googleDwdConfigBuilder_ == null) { + settings_ = builderForValue.build(); + onChanged(); + } else { + googleDwdConfigBuilder_.setMessage(builderForValue.build()); + } + settingsCase_ = 28; + return this; + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeGoogleDwdConfig(com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig value) { + if (googleDwdConfigBuilder_ == null) { + if (settingsCase_ == 28 && + settings_ != com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance()) { + settings_ = com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.newBuilder((com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_) + .mergeFrom(value).buildPartial(); + } else { + settings_ = value; + } + onChanged(); + } else { + if (settingsCase_ == 28) { + googleDwdConfigBuilder_.mergeFrom(value); + } else { + googleDwdConfigBuilder_.setMessage(value); + } + } + settingsCase_ = 28; + return this; + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearGoogleDwdConfig() { + if (googleDwdConfigBuilder_ == null) { + if (settingsCase_ == 28) { + settingsCase_ = 0; + settings_ = null; + onChanged(); + } + } else { + if (settingsCase_ == 28) { + settingsCase_ = 0; + settings_ = null; + } + googleDwdConfigBuilder_.clear(); + } + return this; + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.Builder getGoogleDwdConfigBuilder() { + return getGoogleDwdConfigFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder getGoogleDwdConfigOrBuilder() { + if ((settingsCase_ == 28) && (googleDwdConfigBuilder_ != null)) { + return googleDwdConfigBuilder_.getMessageOrBuilder(); + } else { + if (settingsCase_ == 28) { + return (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_; + } + return com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.Builder, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder> + getGoogleDwdConfigFieldBuilder() { + if (googleDwdConfigBuilder_ == null) { + if (!(settingsCase_ == 28)) { + settings_ = com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } + googleDwdConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.Builder, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder>( + (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_, + getParentForChildren(), + isClean()); + settings_ = null; + } + settingsCase_ = 28; + onChanged(); + return googleDwdConfigBuilder_; + } + private java.lang.Object keyId_ = ""; /** * optional string key_id = 25 [json_name = "keyId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return Whether the keyId field is set. */ public boolean hasKeyId() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** * optional string key_id = 25 [json_name = "keyId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -3703,7 +3911,7 @@ public Builder setKeyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } keyId_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -3713,7 +3921,7 @@ public Builder setKeyId( */ public Builder clearKeyId() { keyId_ = getDefaultInstance().getKeyId(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); return this; } @@ -3727,7 +3935,7 @@ public Builder setKeyIdBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keyId_ = value; - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -3775,7 +3983,7 @@ public Builder setProviderKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } providerKey_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -3785,7 +3993,7 @@ public Builder setProviderKey( */ public Builder clearProviderKey() { providerKey_ = getDefaultInstance().getProviderKey(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -3799,7 +4007,7 @@ public Builder setProviderKeyBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); providerKey_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -3807,9 +4015,9 @@ public Builder setProviderKeyBytes( private java.util.List domains_ = java.util.Collections.emptyList(); private void ensureDomainsIsMutable() { - if (!((bitField0_ & 0x00200000) != 0)) { + if (!((bitField0_ & 0x00400000) != 0)) { domains_ = new java.util.ArrayList(domains_); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; } } @@ -3959,7 +4167,7 @@ public Builder addAllDomains( public Builder clearDomains() { if (domainsBuilder_ == null) { domains_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); } else { domainsBuilder_.clear(); @@ -4036,7 +4244,7 @@ public com.scalekit.grpc.scalekit.v1.domains.Domain.Builder addDomainsBuilder( domainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< com.scalekit.grpc.scalekit.v1.domains.Domain, com.scalekit.grpc.scalekit.v1.domains.Domain.Builder, com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder>( domains_, - ((bitField0_ & 0x00200000) != 0), + ((bitField0_ & 0x00400000) != 0), getParentForChildren(), isClean()); domains_ = null; diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionOrBuilder.java index daae7c79..77de8515 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionOrBuilder.java @@ -271,6 +271,21 @@ java.lang.String getAttributeMappingOrThrow( */ com.scalekit.grpc.scalekit.v1.connections.WebAuthConfigurationOrBuilder getWebauthnConfigOrBuilder(); + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the googleDwdConfig field is set. + */ + boolean hasGoogleDwdConfig(); + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The googleDwdConfig. + */ + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig getGoogleDwdConfig(); + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 28 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder getGoogleDwdConfigOrBuilder(); + /** * optional string key_id = 25 [json_name = "keyId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return Whether the keyId field is set. diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionServiceGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionServiceGrpc.java index c99eb33f..6f055061 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionServiceGrpc.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionServiceGrpc.java @@ -573,6 +573,68 @@ com.scalekit.grpc.scalekit.v1.connections.ListAppConnectionsResponse> getListApp return getListAppConnectionsMethod; } + private static volatile io.grpc.MethodDescriptor getGetConnectionContextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConnectionContext", + requestType = com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetConnectionContextMethod() { + io.grpc.MethodDescriptor getGetConnectionContextMethod; + if ((getGetConnectionContextMethod = ConnectionServiceGrpc.getGetConnectionContextMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getGetConnectionContextMethod = ConnectionServiceGrpc.getGetConnectionContextMethod) == null) { + ConnectionServiceGrpc.getGetConnectionContextMethod = getGetConnectionContextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConnectionContext")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("GetConnectionContext")) + .build(); + } + } + } + return getGetConnectionContextMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateConnectionContextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateConnectionContext", + requestType = com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateConnectionContextMethod() { + io.grpc.MethodDescriptor getUpdateConnectionContextMethod; + if ((getUpdateConnectionContextMethod = ConnectionServiceGrpc.getUpdateConnectionContextMethod) == null) { + synchronized (ConnectionServiceGrpc.class) { + if ((getUpdateConnectionContextMethod = ConnectionServiceGrpc.getUpdateConnectionContextMethod) == null) { + ConnectionServiceGrpc.getUpdateConnectionContextMethod = getUpdateConnectionContextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConnectionContext")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new ConnectionServiceMethodDescriptorSupplier("UpdateConnectionContext")) + .build(); + } + } + } + return getUpdateConnectionContextMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -746,6 +808,20 @@ default void listAppConnections(com.scalekit.grpc.scalekit.v1.connections.ListAp io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAppConnectionsMethod(), responseObserver); } + + /** + */ + default void getConnectionContext(com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConnectionContextMethod(), responseObserver); + } + + /** + */ + default void updateConnectionContext(com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConnectionContextMethod(), responseObserver); + } } /** @@ -918,6 +994,22 @@ public void listAppConnections(com.scalekit.grpc.scalekit.v1.connections.ListApp io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAppConnectionsMethod(), getCallOptions()), request, responseObserver); } + + /** + */ + public void getConnectionContext(com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConnectionContextMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void updateConnectionContext(com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateConnectionContextMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -1061,6 +1153,20 @@ public com.scalekit.grpc.scalekit.v1.connections.ListAppConnectionsResponse list return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAppConnectionsMethod(), getCallOptions(), request); } + + /** + */ + public com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse getConnectionContext(com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConnectionContextMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty updateConnectionContext(com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateConnectionContextMethod(), getCallOptions(), request); + } } /** @@ -1222,6 +1328,22 @@ public com.google.common.util.concurrent.ListenableFuture getConnectionContext( + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetConnectionContextMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture updateConnectionContext( + com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateConnectionContextMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_ENVIRONMENT_CONNECTION = 0; @@ -1242,6 +1364,8 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1332,6 +1456,14 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.listAppConnections((com.scalekit.grpc.scalekit.v1.connections.ListAppConnectionsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_CONNECTION_CONTEXT: + serviceImpl.getConnectionContext((com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_CONNECTION_CONTEXT: + serviceImpl.updateConnectionContext((com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1476,6 +1608,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.connections.ListAppConnectionsRequest, com.scalekit.grpc.scalekit.v1.connections.ListAppConnectionsResponse>( service, METHODID_LIST_APP_CONNECTIONS))) + .addMethod( + getGetConnectionContextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest, + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse>( + service, METHODID_GET_CONNECTION_CONTEXT))) + .addMethod( + getUpdateConnectionContextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest, + com.google.protobuf.Empty>( + service, METHODID_UPDATE_CONNECTION_CONTEXT))) .build(); } @@ -1542,6 +1688,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDisableConnectionMethod()) .addMethod(getGetConnectionTestResultMethod()) .addMethod(getListAppConnectionsMethod()) + .addMethod(getGetConnectionContextMethod()) + .addMethod(getUpdateConnectionContextMethod()) .build(); } } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionType.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionType.java index d824dced..30e4104f 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionType.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionType.java @@ -49,6 +49,18 @@ public enum ConnectionType * WEBAUTHN = 9; */ WEBAUTHN(9), + /** + * OAUTH_M2M = 10; + */ + OAUTH_M2M(10), + /** + * TRELLO_OAUTH1 = 11; + */ + TRELLO_OAUTH1(11), + /** + * GOOGLE_DWD = 12; + */ + GOOGLE_DWD(12), UNRECOGNIZED(-1), ; @@ -92,6 +104,18 @@ public enum ConnectionType * WEBAUTHN = 9; */ public static final int WEBAUTHN_VALUE = 9; + /** + * OAUTH_M2M = 10; + */ + public static final int OAUTH_M2M_VALUE = 10; + /** + * TRELLO_OAUTH1 = 11; + */ + public static final int TRELLO_OAUTH1_VALUE = 11; + /** + * GOOGLE_DWD = 12; + */ + public static final int GOOGLE_DWD_VALUE = 12; public final int getNumber() { @@ -128,6 +152,9 @@ public static ConnectionType forNumber(int value) { case 7: return BEARER; case 8: return API_KEY; case 9: return WEBAUTHN; + case 10: return OAUTH_M2M; + case 11: return TRELLO_OAUTH1; + case 12: return GOOGLE_DWD; default: return null; } } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionsProto.java index 9a2f47ad..205c9ec0 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/ConnectionsProto.java @@ -180,6 +180,16 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_connections_OAuthConnectionConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_connections_OptionalScopes_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_connections_OptionalScopes_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_connections_GoogleDWDConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_connections_GoogleDWDConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_scalekit_v1_connections_PasswordLessConfig_descriptor; static final @@ -310,6 +320,21 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_connections_ListAppConnectionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_connections_GetConnectionContextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_connections_GetConnectionContextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_connections_GetConnectionContextResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_connections_GetConnectionContextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_connections_UpdateConnectionContextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_connections_UpdateConnectionContextRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -394,7 +419,7 @@ public static void registerAllExtensions( "ovider_key in [\'SCALEKIT\'] : true\032M\022\030inv" + "alid value for key_id\0321this.type == 9 ? " + "this.key_id == \'WEBAUTHN\' : trueB\t\n\007_key" + - "_id\"\313 \n\nConnection\022\215\001\n\002id\030\001 \001(\tB}\222Az2_Un" + + "_id\"\211\"\n\nConnection\022\215\001\n\002id\030\001 \001(\tB}\222Az2_Un" + "ique identifier for this connection. Use" + "d in API calls to reference this specifi" + "c connection.J\027\"conn_2123312131125533\"R\002" + @@ -485,949 +510,1045 @@ public static void registerAllExtensions( "ConfigurationBW\222AT2RConfiguration detail" + "s for WebAuthn (passkeys). Present only " + "when type is WEBAUTHN.H\000R\016webauthnConfig" + - "\022}\n\006key_id\030\031 \001(\tBa\222A^2\\Alternative ident" + - "ifier for this connection, typically use" + - "d in frontend applications or URLs.H\002R\005k" + - "eyId\210\001\001\022u\n\014provider_key\030\027 \001(\tBR\222AO2CKey " + - "ID of the identity provider service that" + - " handles authenticationJ\010\"google\"R\013provi" + - "derKey\022\252\001\n\007domains\030\030 \003(\0132\033.scalekit.v1.d" + - "omains.DomainBs\222Ap2SDomain associated wi" + - "th this connection, used for domain-base" + - "d authentication flows.J\031[{\"name\": \"exam" + - "ple.com\"}]R\007domains\032C\n\025AttributeMappingE" + - "ntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005v" + - "alue:\0028\001B\n\n\010settingsB\022\n\020_organization_id" + - "B\t\n\007_key_idJ\004\010\r\020\017\"w\n\030CreateConnectionRes" + - "ponse\022[\n\nconnection\030\001 \001(\0132#.scalekit.v1." + - "connections.ConnectionB\026\222A\0232\021Connection " + - "DetailR\nconnection\"\250\002\n\"UpdateEnvironment" + - "ConnectionRequest\022~\n\rconnection_id\030\001 \001(\t" + - "BY\222AM2+Connection ID. Unique ID for the " + - "connectionJ\026\"conn_121312434123312\"\312>\005\372\002\002" + - "id\272H\006r\004\020\001\030 R\014connectionId\022\201\001\n\nconnection" + - "\030\003 \001(\0132).scalekit.v1.connections.UpdateC" + - "onnectionB6\222A-2#Connection properties to" + - " be updated\312>\005\372\002\002id\272H\003\310\001\001R\nconnection\"\316\003" + - "\n\027UpdateConnectionRequest\022q\n\017organizatio" + - "n_id\030\001 \001(\tBH\222A<2#Organization ID for the" + - " Connection.J\025\"org_121312434123312\"\272H\006r\004" + - "\020\001\030 R\016organizationId\022a\n\002id\030\003 \001(\tBQ\222AE2+C" + - "onnection ID. Unique ID for the connecti" + - "onJ\026\"conn_121312434123312\"\272H\006r\004\020\001\030 R\002id\022" + - "\326\001\n\nconnection\030\004 \001(\0132).scalekit.v1.conne" + - "ctions.UpdateConnectionB\212\001\222A-2#Connectio" + - "n properties to be updated\312>\005\372\002\002id\272HW\272\001Q" + - "\0226OAUTH, PASSWORDLESS and WEBAUTHN are n" + - "ot supported yet\032\027!(this.type in [4,5,9]" + - ")\310\001\001R\nconnectionJ\004\010\002\020\003\"\312\021\n\020UpdateConnect" + - "ion\022w\n\010provider\030\002 \001(\0162+.scalekit.v1.conn" + - "ections.ConnectionProviderB.\222A#2\027SSO Con" + - "nection ProviderJ\010\"CUSTOM\"\272H\005\202\001\002\020\001R\010prov" + - "ider\022r\n\004type\030\003 \001(\0162\'.scalekit.v1.connect" + - "ions.ConnectionTypeB5\222A*2 Connection Pro" + - "tocol OIDC / SAML J\006\"OIDC\"\272H\005\202\001\002\020\001R\004type" + - "\022\256\001\n\rdebug_enabled\030\006 \001(\0132\032.google.protob" + - "uf.BoolValueBm\222Aj2bDebug mode for the co" + - "nnection. Debug would allow non HTTPS en" + - "dpoint to be used with the connectionJ\004t" + - "rueR\014debugEnabled\022\215\001\n\017ui_button_title\030\010 " + - "\001(\0132\034.google.protobuf.StringValueBG\222A52!" + - "Display name for the Login ButtonJ\020\"Logi" + - "n with SSO\"\372\322\344\223\002\t\022\007PREVIEWR\ruiButtonTitl" + - "e\022~\n\022configuration_type\030\013 \001(\0162*.scalekit" + - ".v1.connections.ConfigurationTypeB#\222A 2\024" + - "Configuration Type. J\010\"MANUAL\"R\021configur" + - "ationType\022\235\001\n\021attribute_mapping\030\017 \003(\0132?." + - "scalekit.v1.connections.UpdateConnection" + - ".AttributeMappingEntryB/\222A\0232\021Attribute M" + - "apping\272H\026\232\001\023\020\036\"\006r\004\020\001\030d*\007r\005\020\001\030\200\002R\020attribu" + - "teMapping\022\203\001\n\013oidc_config\030\020 \001(\0132-.scalek" + - "it.v1.connections.OIDCConnectionConfigB1" + - "\222A.2,OIDC Configuration if ConnectionTyp" + - "e == OIDCH\000R\noidcConfig\022\212\001\n\013saml_config\030" + - "\021 \001(\01324.scalekit.v1.connections.SAMLConn" + - "ectionConfigRequestB1\222A.2,SAML Configura" + - "tion if ConnectionType == SAMLH\000R\nsamlCo" + - "nfig\022\210\001\n\014oauth_config\030\022 \001(\0132..scalekit.v" + - "1.connections.OAuthConnectionConfigB3\222A0" + - "2.OAuth Configuration if ConnectionType " + - "== OAUTHH\000R\013oauthConfig\022\235\001\n\023passwordless" + - "_config\030\024 \001(\0132+.scalekit.v1.connections." + - "PasswordLessConfigB=\222A:28Magic Link Conf" + - "iguration if ConnectionType == MAGIC_LIN" + - "KH\000R\022passwordlessConfig\022P\n\rstatic_config" + - "\030\027 \001(\0132).scalekit.v1.connections.StaticA" + - "uthConfigH\000R\014staticConfig\022\261\001\n\017webauthn_c" + - "onfig\030\030 \001(\0132-.scalekit.v1.connections.We" + - "bAuthConfigurationBW\222AT2RConfiguration d" + - "etails for WebAuthn (passkeys). Present " + - "only when type is WEBAUTHN.H\000R\016webauthnC" + - "onfig\022%\n\006key_id\030\026 \001(\tB\t\272H\006r\004\020\001\030 H\001R\005keyI" + - "d\210\001\001\022u\n\014provider_key\030\025 \001(\tBR\222AO2CKey ID " + - "of the identity provider service that ha" + - "ndles authenticationJ\010\"google\"R\013provider" + - "Key\032C\n\025AttributeMappingEntry\022\020\n\003key\030\001 \001(" + - "\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001:\213\002\272H\207\002\032" + - "T\022$provider or provider_key is required\032" + - ",has(this.provider_key) || this.provider" + - " != 0\032`\022\036invalid value for provider_key\032" + - ">this.provider == 15 ? this.provider_key" + - " in [\'SCALEKIT\'] : true\032M\022\030invalid value" + - " for key_id\0321this.type == 9 ? this.key_i" + - "d == \'WEBAUTHN\' : trueB\n\n\010settingsB\t\n\007_k" + - "ey_idJ\004\010\001\020\002J\004\010\004\020\005J\004\010\005\020\006J\004\010\t\020\013J\004\010\014\020\017\"\200\001\n\030" + - "UpdateConnectionResponse\022d\n\nconnection\030\001" + - " \001(\0132#.scalekit.v1.connections.Connectio" + - "nB\037\222A\0342\032Updated Connection detailsR\nconn" + - "ection\"\234\001\n\"DeleteEnvironmentConnectionRe" + - "quest\022v\n\rconnection_id\030\003 \001(\tBQ\222AE2+Conne" + - "ction ID. Unique ID for the connectionJ\026" + - "\"conn_121312434123312\"\272H\006r\004\020\001\030 R\014connect" + - "ionId\"\365\001\n\027DeleteConnectionRequest\022q\n\017org" + - "anization_id\030\001 \001(\tBH\222A<2#Organization ID" + - " for the Connection.J\025\"org_1213124341233" + - "12\"\272H\006r\004\020\001\030 R\016organizationId\022a\n\002id\030\003 \001(\t" + - "BQ\222AE2+Connection ID. Unique ID for the " + - "connectionJ\026\"conn_121312434123312\"\272H\006r\004\020" + - "\001\030 R\002idJ\004\010\002\020\003\"\222\001\n\037GetEnvironmentConnecti" + - "onRequest\022o\n\rconnection_id\030\001 \001(\tBJ\222A>2$U" + - "nique identifier for the ConnectionJ\026\"co" + - "nn_121312434123312\"\272H\006r\004\020\001\030 R\014connection" + - "Id\"\374\002\n\024GetConnectionRequest\022\272\001\n\017organiza" + - "tion_id\030\001 \001(\tB\220\001\222A\203\0012jOrganization ident" + - "ifier (required). Specifies which organi" + - "zation owns the connection you want to r" + - "etrieve.J\025\"org_121312434123312\"\272H\006r\004\020\001\030 " + - "R\016organizationId\022\240\001\n\002id\030\003 \001(\tB\217\001\222A\202\0012hCo" + - "nnection identifier (required). Specifie" + - "s which specific connection to retrieve " + - "from the organization.J\026\"conn_1213124341" + - "23312\"\272H\006r\004\020\001\030 R\002idJ\004\010\002\020\003\"\232\002\n\025GetConnect" + - "ionResponse\022\200\002\n\nconnection\030\001 \001(\0132#.scale" + - "kit.v1.connections.ConnectionB\272\001\222A\266\0012\263\001C" + - "omplete connection details including pro" + - "vider configuration, protocol settings, " + - "status, and all metadata. Contains every" + - "thing needed to understand the connectio" + - "n\'s current state.R\nconnection\"\226\004\n\026ListC" + - "onnectionsRequest\022\200\001\n\017organization_id\030\001 " + - "\001(\tBR\222AF2-Filter connections by organiza" + - "tion identifierJ\025\"org_121312434123312\"\272H" + - "\006r\004\020\001\030 H\000R\016organizationId\210\001\001\022\177\n\006domain\030\003" + - " \001(\tBb\222AV2CFilter connections by email d" + - "omain associated with the organizationJ\017" + - "\"hero-saas.app\"\272H\006r\004\020\001\030 H\001R\006domain\210\001\001\022\306\001" + - "\n\007include\030\004 \001(\tB\246\001\222A\242\0012\237\001Filter connecti" + - "ons by status. Use \'all\' to include all " + - "connections regardless of status. Defaul" + - "t behavior shows only active (completed " + - "and enabled) connectionsH\002R\007include\210\001\001B\022" + - "\n\020_organization_idB\t\n\007_domainB\n\n\010_includ" + - "eJ\004\010\002\020\003\"\235\001\n\027ListConnectionsResponse\022\201\001\n\013" + - "connections\030\001 \003(\0132\'.scalekit.v1.connecti" + - "ons.ListConnectionB6\222A321List of connect" + - "ions matching the request criteriaR\013conn" + - "ections\"\372\013\n\016ListConnection\022Q\n\002id\030\001 \001(\tBA" + - "\222A>2#Unique identifier of the connection" + - "J\027\"conn_2123312131125533\"R\002id\022\215\001\n\010provid" + - "er\030\002 \001(\0162+.scalekit.v1.connections.Conne" + - "ctionProviderBD\222AA25Identity provider ty" + - "pe (e.g., OKTA, Google, Azure AD)J\010\"CUST" + - "OM\"R\010provider\022x\n\004type\030\003 \001(\0162\'.scalekit.v" + - "1.connections.ConnectionTypeB;\222A82.Authe" + - "ntication protocol used by the connectio" + - "nJ\006\"OIDC\"R\004type\022\210\001\n\006status\030\004 \001(\0162).scale" + - "kit.v1.connections.ConnectionStatusBE\222A?" + - "2.Current configuration status of the co" + - "nnectionJ\r\"IN_PROGRESS\"\340A\003R\006status\022g\n\007en" + - "abled\030\005 \001(\010BM\222AJ2AWhether the connection" + - " is currently active for organization us" + - "ersJ\005falseR\007enabled\022\205\001\n\017organization_id\030" + - "\006 \001(\tB\\\222AY2?Unique identifier of the org" + - "anization that owns this connectionJ\026\"or" + - "g_2123312131125533\"R\016organizationId\022\210\001\n\017" + - "ui_button_title\030\007 \001(\tB`\222AN2:Text display" + - "ed on the SSO login button for this conn" + - "ectionJ\020\"Login with SSO\"\372\322\344\223\002\t\022\007PREVIEWR" + - "\ruiButtonTitle\022t\n\007domains\030\010 \003(\tBZ\222AW2/Li" + - "st of domains configured with this conne" + - "ctionJ$[\"yourapp.com\", \"yourworkspace.co" + - "m\"]R\007domains\022q\n\021organization_name\030\t \001(\tB" + - "D\222AA2*Name of the organization of the co" + - "nnectionJ\023\"Your Organization\"R\020organizat" + - "ionName\022u\n\014provider_key\030\n \001(\tBR\222AO2CKey " + - "ID of the identity provider service that" + - " handles authenticationJ\010\"google\"R\013provi" + - "derKey\022\220\001\n\006key_id\030\013 \001(\tBy\222Av2[Alternativ" + - "e identifier for this connection, typica" + - "lly used in frontend applications or URL" + - "sJ\027\"conn_2123312131125533\"R\005keyId\022\220\001\n\ncr" + - "eated_at\030\014 \001(\0132\032.google.protobuf.Timesta" + - "mpBU\222A@2&When this connection was first " + - "createdJ\026\"2023-01-15T14:30:00Z\"\340A\003\372\322\344\223\002\t" + - "\022\007PREVIEWR\tcreatedAt\"\317\002\n\"ListOrganizatio" + - "nConnectionsRequest\022\200\001\n\tpage_size\030\001 \001(\rB" + - "c\222AY2SMaximum number of organizations to" + - " return per page. Value must be between " + - "1 and 30.J\00230\272H\004*\002\030\036R\010pageSize\022\245\001\n\npage_" + - "token\030\002 \001(\tB\205\001\222A\201\0012aToken from a previou" + - "s response for pagination. Provide this " + - "to retrieve the next page of results.J\034e" + - "yJwYWdlIjoyLCJsaW1pdCI6MzB9R\tpageToken\"\227" + - "\002\n#ListOrganizationConnectionsResponse\022&" + - "\n\017next_page_token\030\001 \001(\tR\rnextPageToken\022\035" + - "\n\ntotal_size\030\002 \001(\rR\ttotalSize\022&\n\017prev_pa" + - "ge_token\030\003 \001(\tR\rprevPageToken\022\200\001\n\013connec" + - "tions\030\004 \003(\0132\'.scalekit.v1.connections.Li" + - "stConnectionB5\222A220List of connections m" + - "atching the filter criteriaR\013connections" + - "\"\242\007\n$SearchOrganizationConnectionsReques" + - "t\022l\n\005query\030\001 \001(\tBQ\222AG2-Search query Conn" + - "ection ID or Organization IDJ\026\"conn_1213" + - "12434123312\"\272H\004r\002\030dH\000R\005query\210\001\001\022@\n\010provi" + - "der\030\002 \001(\tB\037\222A\0342\022Filter by providerJ\006\"OKT" + - "A\"H\001R\010provider\210\001\001\022}\n\006status\030\003 \001(\0162).scal" + - "ekit.v1.connections.ConnectionStatusB5\222A" + - "*2\033Filter by connection statusJ\013\"COMPLET" + - "ED\"\272H\005\202\001\002\020\001H\002R\006status\210\001\001\022\214\001\n\017connection_" + - "type\030\004 \001(\0162\'.scalekit.v1.connections.Con" + - "nectionTypeB5\222A*2\033Filter by connection s" + - "tatusJ\013\"COMPLETED\"\272H\005\202\001\002\020\001H\003R\016connection" + - "Type\210\001\001\022O\n\007enabled\030\007 \001(\010B0\222A-2#Filter by" + - " connection enabled statusJ\006\"true\"H\004R\007en" + - "abled\210\001\001\022\200\001\n\tpage_size\030\005 \001(\rBc\222AY2SMaxim" + - "um number of organizations to return per" + - " page. Value must be between 1 and 30.J\002" + - "30\272H\004*\002\030\036R\010pageSize\022\245\001\n\npage_token\030\006 \001(\t" + - "B\205\001\222A\201\0012aToken from a previous response " + - "for pagination. Provide this to retrieve" + - " the next page of results.J\034eyJwYWdlIjoy" + - "LCJsaW1pdCI6MzB9R\tpageTokenB\010\n\006_queryB\013\n" + - "\t_providerB\t\n\007_statusB\022\n\020_connection_typ" + - "eB\n\n\010_enabled\"\231\002\n%SearchOrganizationConn" + - "ectionsResponse\022&\n\017next_page_token\030\001 \001(\t" + - "R\rnextPageToken\022\035\n\ntotal_size\030\002 \001(\rR\ttot" + - "alSize\022&\n\017prev_page_token\030\003 \001(\tR\rprevPag" + - "eToken\022\200\001\n\013connections\030\004 \003(\0132\'.scalekit." + - "v1.connections.ListConnectionB5\222A220List" + - " of connections matching the filter crit" + - "eriaR\013connections\"\234\001\n\"ToggleEnvironmentC" + - "onnectionRequest\022v\n\rconnection_id\030\002 \001(\tB" + - "Q\222AE2+Connection ID. Unique ID for the c" + - "onnectionJ\026\"conn_121312434123312\"\272H\006r\004\020\001" + - "\030 R\014connectionId\"\236\002\n\027ToggleConnectionReq" + - "uest\022\222\001\n\017organization_id\030\001 \001(\tBi\222A]2DUni" + - "que identifier of the organization assoc", - "iated with the connectionJ\025\"org_12131243" + - "4123312\"\272H\006r\004\020\001\030 R\016organizationId\022h\n\002id\030" + - "\003 \001(\tBX\222AL22Unique identifier for the co" + - "nnection to be toggledJ\026\"conn_1213124341" + - "23312\"\272H\006r\004\020\001\030 R\002idJ\004\010\002\020\003\"\274\002\n\030ToggleConn" + - "ectionResponse\022\251\001\n\007enabled\030\001 \001(\010B\216\001\222A\212\0012" + - "\201\001Current state of the connection after " + - "the operation. True means the connection" + - " is now enabled and can be used for auth" + - "entication.J\004trueR\007enabled\022b\n\rerror_mess" + - "age\030\002 \001(\tB8\222A52$Error message if the ope" + - "ration failsJ\r\"placeholder\"H\000R\014errorMess" + - "age\210\001\001B\020\n\016_error_message\"\240\022\n\024OIDCConnect" + - "ionConfig\022j\n\006issuer\030\001 \001(\0132\034.google.proto" + - "buf.StringValueB4\222A12\nIssuer URLJ#\"https" + - "://youridp.com/service/oauth\"R\006issuer\022\252\001" + - "\n\022discovery_endpoint\030\002 \001(\0132\034.google.prot" + - "obuf.StringValueB]\222AZ2\022Discovery Endpoin" + - "tJD\"https://youridp.com/service/oauth/.w" + - "ell-known/openid-configuration\"R\021discove" + - "ryEndpoint\022\204\001\n\rauthorize_uri\030\003 \001(\0132\034.goo" + - "gle.protobuf.StringValueBA\222A>2\rAuthorize" + - " URIJ-\"https://youridp.com/service/oauth" + - "/authorize\"R\014authorizeUri\022t\n\ttoken_uri\030\004" + - " \001(\0132\034.google.protobuf.StringValueB9\222A62" + - "\tToken URIJ)\"https://youridp.com/service" + - "/oauth/token\"R\010tokenUri\022\202\001\n\ruser_info_ur" + - "i\030\005 \001(\0132\034.google.protobuf.StringValueB@\222" + - "A=2\rUser Info URIJ,\"https://youridp.com/" + - "service/oauth/userinfo\"R\013userInfoUri\022p\n\010" + - "jwks_uri\030\006 \001(\0132\034.google.protobuf.StringV" + - "alueB7\222A42\010JWKS URIJ(\"https://youridp.co" + - "m/service/oauth/jwks\"R\007jwksUri\022\\\n\tclient" + - "_id\030\010 \001(\0132\034.google.protobuf.StringValueB" + - "!\222A\0362\tClient IDJ\021\"oauth_client_id\"R\010clie" + - "ntId\022l\n\rclient_secret\030\t \001(\0132\034.google.pro" + - "tobuf.StringValueB)\222A&2\rClient SecretJ\025\"" + - "oauth_client_secret\"R\014clientSecret\022c\n\006sc" + - "opes\030\n \003(\0162\".scalekit.v1.connections.OID" + - "CScopeB\'\222A$2\013OIDC ScopesJ\025[\"openid\", \"pr" + - "ofile\"]R\006scopes\022r\n\017token_auth_type\030\013 \001(\016" + - "2&.scalekit.v1.connections.TokenAuthType" + - "B\"\222A\0372\017Token Auth TypeJ\014\"URL_PARAMS\"R\rto" + - "kenAuthType\022j\n\014redirect_uri\030\014 \001(\tBG\222AD2\014" + - "Redirect URIJ4\"https://yourapp.com/sso/v" + - "1/oidc/conn_1234/callback\"R\013redirectUri\022" + - "V\n\014pkce_enabled\030\r \001(\0132\032.google.protobuf." + - "BoolValueB\027\222A\0242\014PKCE EnabledJ\004trueR\013pkce" + - "Enabled\022h\n\023idp_logout_required\030\016 \001(\0132\032.g" + + "\022\273\001\n\021google_dwd_config\030\034 \001(\0132(.scalekit." + + "v1.connections.GoogleDWDConfigBc\222A`2^Con" + + "figuration details for Google Domain-Wid" + + "e Delegation. Present only when type is " + + "GOOGLE_DWD.H\000R\017googleDwdConfig\022}\n\006key_id" + + "\030\031 \001(\tBa\222A^2\\Alternative identifier for " + + "this connection, typically used in front" + + "end applications or URLs.H\002R\005keyId\210\001\001\022u\n" + + "\014provider_key\030\027 \001(\tBR\222AO2CKey ID of the " + + "identity provider service that handles a" + + "uthenticationJ\010\"google\"R\013providerKey\022\252\001\n" + + "\007domains\030\030 \003(\0132\033.scalekit.v1.domains.Dom" + + "ainBs\222Ap2SDomain associated with this co" + + "nnection, used for domain-based authenti" + + "cation flows.J\031[{\"name\": \"example.com\"}]" + + "R\007domains\032C\n\025AttributeMappingEntry\022\020\n\003ke" + + "y\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001B\n" + + "\n\010settingsB\022\n\020_organization_idB\t\n\007_key_i" + + "dJ\004\010\r\020\017\"w\n\030CreateConnectionResponse\022[\n\nc" + + "onnection\030\001 \001(\0132#.scalekit.v1.connection" + + "s.ConnectionB\026\222A\0232\021Connection DetailR\nco" + + "nnection\"\250\002\n\"UpdateEnvironmentConnection" + + "Request\022~\n\rconnection_id\030\001 \001(\tBY\222AM2+Con" + + "nection ID. Unique ID for the connection" + + "J\026\"conn_121312434123312\"\312>\005\372\002\002id\272H\006r\004\020\001\030" + + " R\014connectionId\022\201\001\n\nconnection\030\003 \001(\0132).s" + + "calekit.v1.connections.UpdateConnectionB" + + "6\222A-2#Connection properties to be update" + + "d\312>\005\372\002\002id\272H\003\310\001\001R\nconnection\"\316\003\n\027UpdateCo" + + "nnectionRequest\022q\n\017organization_id\030\001 \001(\t" + + "BH\222A<2#Organization ID for the Connectio" + + "n.J\025\"org_121312434123312\"\272H\006r\004\020\001\030 R\016orga" + + "nizationId\022a\n\002id\030\003 \001(\tBQ\222AE2+Connection " + + "ID. Unique ID for the connectionJ\026\"conn_" + + "121312434123312\"\272H\006r\004\020\001\030 R\002id\022\326\001\n\nconnec" + + "tion\030\004 \001(\0132).scalekit.v1.connections.Upd" + + "ateConnectionB\212\001\222A-2#Connection properti" + + "es to be updated\312>\005\372\002\002id\272HW\272\001Q\0226OAUTH, P" + + "ASSWORDLESS and WEBAUTHN are not support" + + "ed yet\032\027!(this.type in [4,5,9])\310\001\001R\nconn" + + "ectionJ\004\010\002\020\003\"\375\022\n\020UpdateConnection\022w\n\010pro" + + "vider\030\002 \001(\0162+.scalekit.v1.connections.Co" + + "nnectionProviderB.\222A#2\027SSO Connection Pr" + + "oviderJ\010\"CUSTOM\"\272H\005\202\001\002\020\001R\010provider\022r\n\004ty" + + "pe\030\003 \001(\0162\'.scalekit.v1.connections.Conne" + + "ctionTypeB5\222A*2 Connection Protocol OIDC" + + " / SAML J\006\"OIDC\"\272H\005\202\001\002\020\001R\004type\022\256\001\n\rdebug" + + "_enabled\030\006 \001(\0132\032.google.protobuf.BoolVal" + + "ueBm\222Aj2bDebug mode for the connection. " + + "Debug would allow non HTTPS endpoint to " + + "be used with the connectionJ\004trueR\014debug" + + "Enabled\022\215\001\n\017ui_button_title\030\010 \001(\0132\034.goog" + + "le.protobuf.StringValueBG\222A52!Display na" + + "me for the Login ButtonJ\020\"Login with SSO" + + "\"\372\322\344\223\002\t\022\007PREVIEWR\ruiButtonTitle\022~\n\022confi" + + "guration_type\030\013 \001(\0162*.scalekit.v1.connec" + + "tions.ConfigurationTypeB#\222A 2\024Configurat" + + "ion Type. J\010\"MANUAL\"R\021configurationType\022" + + "\235\001\n\021attribute_mapping\030\017 \003(\0132?.scalekit.v" + + "1.connections.UpdateConnection.Attribute" + + "MappingEntryB/\222A\0232\021Attribute Mapping\272H\026\232" + + "\001\023\020\036\"\006r\004\020\001\030d*\007r\005\020\001\030\200\002R\020attributeMapping\022" + + "\203\001\n\013oidc_config\030\020 \001(\0132-.scalekit.v1.conn" + + "ections.OIDCConnectionConfigB1\222A.2,OIDC " + + "Configuration if ConnectionType == OIDCH" + + "\000R\noidcConfig\022\212\001\n\013saml_config\030\021 \001(\01324.sc" + + "alekit.v1.connections.SAMLConnectionConf" + + "igRequestB1\222A.2,SAML Configuration if Co" + + "nnectionType == SAMLH\000R\nsamlConfig\022\210\001\n\014o" + + "auth_config\030\022 \001(\0132..scalekit.v1.connecti" + + "ons.OAuthConnectionConfigB3\222A02.OAuth Co" + + "nfiguration if ConnectionType == OAUTHH\000" + + "R\013oauthConfig\022\235\001\n\023passwordless_config\030\024 " + + "\001(\0132+.scalekit.v1.connections.PasswordLe" + + "ssConfigB=\222A:28Magic Link Configuration " + + "if ConnectionType == MAGIC_LINKH\000R\022passw" + + "ordlessConfig\022P\n\rstatic_config\030\027 \001(\0132).s" + + "calekit.v1.connections.StaticAuthConfigH" + + "\000R\014staticConfig\022\261\001\n\017webauthn_config\030\030 \001(" + + "\0132-.scalekit.v1.connections.WebAuthConfi" + + "gurationBW\222AT2RConfiguration details for" + + " WebAuthn (passkeys). Present only when " + + "type is WEBAUTHN.H\000R\016webauthnConfig\022\257\001\n\021" + + "google_dwd_config\030\031 \001(\0132(.scalekit.v1.co" + + "nnections.GoogleDWDConfigBW\222AT2RGoogle D" + + "omain-Wide Delegation configuration. Pre" + + "sent only when type is GOOGLE_DWD.H\000R\017go" + + "ogleDwdConfig\022&\n\006key_id\030\026 \001(\tB\n\272H\007r\005\020\001\030\254" + + "\002H\001R\005keyId\210\001\001\022u\n\014provider_key\030\025 \001(\tBR\222AO" + + "2CKey ID of the identity provider servic" + + "e that handles authenticationJ\010\"google\"R" + + "\013providerKey\032C\n\025AttributeMappingEntry\022\020\n" + + "\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028" + + "\001:\213\002\272H\207\002\032T\022$provider or provider_key is " + + "required\032,has(this.provider_key) || this" + + ".provider != 0\032`\022\036invalid value for prov" + + "ider_key\032>this.provider == 15 ? this.pro" + + "vider_key in [\'SCALEKIT\'] : true\032M\022\030inva" + + "lid value for key_id\0321this.type == 9 ? t" + + "his.key_id == \'WEBAUTHN\' : trueB\n\n\010setti" + + "ngsB\t\n\007_key_idJ\004\010\001\020\002J\004\010\004\020\005J\004\010\005\020\006J\004\010\t\020\013J\004" + + "\010\014\020\017\"\200\001\n\030UpdateConnectionResponse\022d\n\ncon" + + "nection\030\001 \001(\0132#.scalekit.v1.connections." + + "ConnectionB\037\222A\0342\032Updated Connection deta" + + "ilsR\nconnection\"\234\001\n\"DeleteEnvironmentCon" + + "nectionRequest\022v\n\rconnection_id\030\003 \001(\tBQ\222" + + "AE2+Connection ID. Unique ID for the con" + + "nectionJ\026\"conn_121312434123312\"\272H\006r\004\020\001\030 " + + "R\014connectionId\"\365\001\n\027DeleteConnectionReque" + + "st\022q\n\017organization_id\030\001 \001(\tBH\222A<2#Organi" + + "zation ID for the Connection.J\025\"org_1213" + + "12434123312\"\272H\006r\004\020\001\030 R\016organizationId\022a\n" + + "\002id\030\003 \001(\tBQ\222AE2+Connection ID. Unique ID" + + " for the connectionJ\026\"conn_1213124341233" + + "12\"\272H\006r\004\020\001\030 R\002idJ\004\010\002\020\003\"\222\001\n\037GetEnvironmen" + + "tConnectionRequest\022o\n\rconnection_id\030\001 \001(" + + "\tBJ\222A>2$Unique identifier for the Connec" + + "tionJ\026\"conn_121312434123312\"\272H\006r\004\020\001\030 R\014c" + + "onnectionId\"\374\002\n\024GetConnectionRequest\022\272\001\n" + + "\017organization_id\030\001 \001(\tB\220\001\222A\203\0012jOrganizat" + + "ion identifier (required). Specifies whi" + + "ch organization owns the connection you " + + "want to retrieve.J\025\"org_121312434123312\"" + + "\272H\006r\004\020\001\030 R\016organizationId\022\240\001\n\002id\030\003 \001(\tB\217" + + "\001\222A\202\0012hConnection identifier (required)." + + " Specifies which specific connection to " + + "retrieve from the organization.J\026\"conn_1" + + "21312434123312\"\272H\006r\004\020\001\030 R\002idJ\004\010\002\020\003\"\232\002\n\025G" + + "etConnectionResponse\022\200\002\n\nconnection\030\001 \001(" + + "\0132#.scalekit.v1.connections.ConnectionB\272" + + "\001\222A\266\0012\263\001Complete connection details incl" + + "uding provider configuration, protocol s" + + "ettings, status, and all metadata. Conta" + + "ins everything needed to understand the " + + "connection\'s current state.R\nconnection\"" + + "\226\004\n\026ListConnectionsRequest\022\200\001\n\017organizat" + + "ion_id\030\001 \001(\tBR\222AF2-Filter connections by" + + " organization identifierJ\025\"org_121312434" + + "123312\"\272H\006r\004\020\001\030 H\000R\016organizationId\210\001\001\022\177\n" + + "\006domain\030\003 \001(\tBb\222AV2CFilter connections b" + + "y email domain associated with the organ" + + "izationJ\017\"hero-saas.app\"\272H\006r\004\020\001\030 H\001R\006dom" + + "ain\210\001\001\022\306\001\n\007include\030\004 \001(\tB\246\001\222A\242\0012\237\001Filter" + + " connections by status. Use \'all\' to inc" + + "lude all connections regardless of statu" + + "s. Default behavior shows only active (c" + + "ompleted and enabled) connectionsH\002R\007inc" + + "lude\210\001\001B\022\n\020_organization_idB\t\n\007_domainB\n" + + "\n\010_includeJ\004\010\002\020\003\"\235\001\n\027ListConnectionsResp" + + "onse\022\201\001\n\013connections\030\001 \003(\0132\'.scalekit.v1" + + ".connections.ListConnectionB6\222A321List o" + + "f connections matching the request crite" + + "riaR\013connections\"\372\013\n\016ListConnection\022Q\n\002i" + + "d\030\001 \001(\tBA\222A>2#Unique identifier of the c" + + "onnectionJ\027\"conn_2123312131125533\"R\002id\022\215" + + "\001\n\010provider\030\002 \001(\0162+.scalekit.v1.connecti" + + "ons.ConnectionProviderBD\222AA25Identity pr" + + "ovider type (e.g., OKTA, Google, Azure A" + + "D)J\010\"CUSTOM\"R\010provider\022x\n\004type\030\003 \001(\0162\'.s" + + "calekit.v1.connections.ConnectionTypeB;\222" + + "A82.Authentication protocol used by the " + + "connectionJ\006\"OIDC\"R\004type\022\210\001\n\006status\030\004 \001(" + + "\0162).scalekit.v1.connections.ConnectionSt" + + "atusBE\222A?2.Current configuration status " + + "of the connectionJ\r\"IN_PROGRESS\"\340A\003R\006sta" + + "tus\022g\n\007enabled\030\005 \001(\010BM\222AJ2AWhether the c" + + "onnection is currently active for organi" + + "zation usersJ\005falseR\007enabled\022\205\001\n\017organiz" + + "ation_id\030\006 \001(\tB\\\222AY2?Unique identifier o" + + "f the organization that owns this connec" + + "tionJ\026\"org_2123312131125533\"R\016organizati" + + "onId\022\210\001\n\017ui_button_title\030\007 \001(\tB`\222AN2:Tex" + + "t displayed on the SSO login button for " + + "this connectionJ\020\"Login with SSO\"\372\322\344\223\002\t\022" + + "\007PREVIEWR\ruiButtonTitle\022t\n\007domains\030\010 \003(\t" + + "BZ\222AW2/List of domains configured with t" + + "his connectionJ$[\"yourapp.com\", \"yourwor" + + "kspace.com\"]R\007domains\022q\n\021organization_na" + + "me\030\t \001(\tBD\222AA2*Name of the organization " + + "of the connectionJ\023\"Your Organization\"R\020" + + "organizationName\022u\n\014provider_key\030\n \001(\tBR" + + "\222AO2CKey ID of the identity provider ser" + + "vice that handles authenticationJ\010\"googl" + + "e\"R\013providerKey\022\220\001\n\006key_id\030\013 \001(\tBy\222Av2[A" + + "lternative identifier for this connectio" + + "n, typically used in frontend applicatio" + + "ns or URLsJ\027\"conn_2123312131125533\"R\005key" + + "Id\022\220\001\n\ncreated_at\030\014 \001(\0132\032.google.protobu" + + "f.TimestampBU\222A@2&When this connection w" + + "as first createdJ\026\"2023-01-15T14:30:00Z\"" + + "\340A\003\372\322\344\223\002\t\022\007PREVIEWR\tcreatedAt\"\317\002\n\"ListOr" + + "ganizationConnectionsRequest\022\200\001\n\tpage_si" + + "ze\030\001 \001(\rBc\222AY2SMaximum number of organiz" + + "ations to return per page. Value must be" + + " between 1 and 30.J\00230\272H\004*\002\030\036R\010pageSize\022" + + "\245\001\n\npage_token\030\002 \001(\tB\205\001\222A\201\0012aToken from " + + "a previous response for pagination. Prov" + + "ide this to retrieve the next page of re" + + "sults.J\034eyJwYWdlIjoyLCJsaW1pdCI6MzB9R\tpa" + + "geToken\"\227\002\n#ListOrganizationConnectionsR" + + "esponse\022&\n\017next_page_token\030\001 \001(\tR\rnextPa" + + "geToken\022\035\n\ntotal_size\030\002 \001(\rR\ttotalSize\022&" + + "\n\017prev_page_token\030\003 \001(\tR\rprevPageToken\022\200" + + "\001\n\013connections\030\004 \003(\0132\'.scalekit.v1.conne" + + "ctions.ListConnectionB5\222A220List of conn" + + "ections matching the filter criteriaR\013co" + + "nnections\"\242\007\n$SearchOrganizationConnecti" + + "onsRequest\022l\n\005query\030\001 \001(\tBQ\222AG2-Search q" + + "uery Connection ID or Organization IDJ\026\"" + + "conn_121312434123312\"\272H\004r\002\030dH\000R\005query\210\001\001" + + "\022@\n\010provider\030\002 \001(\tB\037\222A\0342\022Filter by provi" + + "derJ\006\"OKTA\"H\001R\010provider\210\001\001\022}\n\006status\030\003 \001" + + "(\0162).scalekit.v1.connections.ConnectionS" + + "tatusB5\222A*2\033Filter by connection statusJ" + + "\013\"COMPLETED\"\272H\005\202\001\002\020\001H\002R\006status\210\001\001\022\214\001\n\017co" + + "nnection_type\030\004 \001(\0162\'.scalekit.v1.connec" + + "tions.ConnectionTypeB5\222A*2\033Filter by con" + + "nection statusJ\013\"COMPLETED\"\272H\005\202\001\002\020\001H\003R\016c" + + "onnectionType\210\001\001\022O\n\007enabled\030\007 \001(\010B0\222A-2#" + + "Filter by connection enabled statusJ\006\"tr" + + "ue\"H\004R\007enabled\210\001\001\022\200\001\n\tpage_size\030\005 \001(\rBc\222" + + "AY2SMaximum number of organizations to r" + + "eturn per page. Value must be between 1 " + + "and 30.J\00230\272H\004*\002\030\036R\010pageSize\022\245\001\n\npage_to" + + "ken\030\006 \001(\tB\205\001\222A\201\0012aToken from a previous " + + "response for pagination. Provide this to" + + " retrieve the next page of results.J\034eyJ" + + "wYWdlIjoyLCJsaW1pdCI6MzB9R\tpageTokenB\010\n\006" + + "_queryB\013\n\t_providerB\t\n\007_statusB\022\n\020_conne" + + "ction_typeB\n\n\010_enabled\"\231\002\n%SearchOrganiz" + + "ationConnectionsResponse\022&\n\017next_page_to" + + "ken\030\001 \001(\tR\rnextPageToken\022\035\n\ntotal_size\030\002" + + " \001(\rR\ttotalSize\022&\n\017prev_page_token\030\003 \001(\t" + + "R\rprevPageToken\022\200\001\n\013connections\030\004 \003(\0132\'.", + "scalekit.v1.connections.ListConnectionB5" + + "\222A220List of connections matching the fi" + + "lter criteriaR\013connections\"\234\001\n\"ToggleEnv" + + "ironmentConnectionRequest\022v\n\rconnection_" + + "id\030\002 \001(\tBQ\222AE2+Connection ID. Unique ID " + + "for the connectionJ\026\"conn_12131243412331" + + "2\"\272H\006r\004\020\001\030 R\014connectionId\"\236\002\n\027ToggleConn" + + "ectionRequest\022\222\001\n\017organization_id\030\001 \001(\tB" + + "i\222A]2DUnique identifier of the organizat" + + "ion associated with the connectionJ\025\"org" + + "_121312434123312\"\272H\006r\004\020\001\030 R\016organization" + + "Id\022h\n\002id\030\003 \001(\tBX\222AL22Unique identifier f" + + "or the connection to be toggledJ\026\"conn_1" + + "21312434123312\"\272H\006r\004\020\001\030 R\002idJ\004\010\002\020\003\"\274\002\n\030T" + + "oggleConnectionResponse\022\251\001\n\007enabled\030\001 \001(" + + "\010B\216\001\222A\212\0012\201\001Current state of the connecti" + + "on after the operation. True means the c" + + "onnection is now enabled and can be used" + + " for authentication.J\004trueR\007enabled\022b\n\re" + + "rror_message\030\002 \001(\tB8\222A52$Error message i" + + "f the operation failsJ\r\"placeholder\"H\000R\014" + + "errorMessage\210\001\001B\020\n\016_error_message\"\240\022\n\024OI" + + "DCConnectionConfig\022j\n\006issuer\030\001 \001(\0132\034.goo" + + "gle.protobuf.StringValueB4\222A12\nIssuer UR" + + "LJ#\"https://youridp.com/service/oauth\"R\006" + + "issuer\022\252\001\n\022discovery_endpoint\030\002 \001(\0132\034.go" + + "ogle.protobuf.StringValueB]\222AZ2\022Discover" + + "y EndpointJD\"https://youridp.com/service" + + "/oauth/.well-known/openid-configuration\"" + + "R\021discoveryEndpoint\022\204\001\n\rauthorize_uri\030\003 " + + "\001(\0132\034.google.protobuf.StringValueBA\222A>2\r" + + "Authorize URIJ-\"https://youridp.com/serv" + + "ice/oauth/authorize\"R\014authorizeUri\022t\n\tto" + + "ken_uri\030\004 \001(\0132\034.google.protobuf.StringVa" + + "lueB9\222A62\tToken URIJ)\"https://youridp.co" + + "m/service/oauth/token\"R\010tokenUri\022\202\001\n\ruse" + + "r_info_uri\030\005 \001(\0132\034.google.protobuf.Strin" + + "gValueB@\222A=2\rUser Info URIJ,\"https://you" + + "ridp.com/service/oauth/userinfo\"R\013userIn" + + "foUri\022p\n\010jwks_uri\030\006 \001(\0132\034.google.protobu" + + "f.StringValueB7\222A42\010JWKS URIJ(\"https://y" + + "ouridp.com/service/oauth/jwks\"R\007jwksUri\022" + + "\\\n\tclient_id\030\010 \001(\0132\034.google.protobuf.Str" + + "ingValueB!\222A\0362\tClient IDJ\021\"oauth_client_" + + "id\"R\010clientId\022l\n\rclient_secret\030\t \001(\0132\034.g" + + "oogle.protobuf.StringValueB)\222A&2\rClient " + + "SecretJ\025\"oauth_client_secret\"R\014clientSec" + + "ret\022c\n\006scopes\030\n \003(\0162\".scalekit.v1.connec" + + "tions.OIDCScopeB\'\222A$2\013OIDC ScopesJ\025[\"ope" + + "nid\", \"profile\"]R\006scopes\022r\n\017token_auth_t" + + "ype\030\013 \001(\0162&.scalekit.v1.connections.Toke" + + "nAuthTypeB\"\222A\0372\017Token Auth TypeJ\014\"URL_PA" + + "RAMS\"R\rtokenAuthType\022j\n\014redirect_uri\030\014 \001" + + "(\tBG\222AD2\014Redirect URIJ4\"https://yourapp." + + "com/sso/v1/oidc/conn_1234/callback\"R\013red" + + "irectUri\022V\n\014pkce_enabled\030\r \001(\0132\032.google." + + "protobuf.BoolValueB\027\222A\0242\014PKCE EnabledJ\004t" + + "rueR\013pkceEnabled\022h\n\023idp_logout_required\030" + + "\016 \001(\0132\032.google.protobuf.BoolValueB\034\222A\0312\021" + + "Enable IDP logoutJ\004trueR\021idpLogoutRequir" + + "ed\022\264\001\n\030post_logout_redirect_uri\030\017 \001(\0132\034." + + "google.protobuf.StringValueB]\222AW2\030post l" + + "ogout redirect uriJ;\"https://yourapp.com" + + "/sso/v1/oidc/conn_1234/logout/callback\"\340" + + "A\003R\025postLogoutRedirectUri\022\352\001\n\037backchanne" + + "l_logout_redirect_uri\030\020 \001(\0132\034.google.pro" + + "tobuf.StringValueB\204\001\222A~2\"https://yourapp.com/sso/v1/oidc/" + + "conn_1234/backchannel-logout\"\340A\003R\034backch" + + "annelLogoutRedirectUri\022\306\001\n\032sync_user_pro" + + "file_on_login\030\021 \001(\0132\032.google.protobuf.Bo" + + "olValueBn\222Ak2cIndicates whether user pro" + + "files should be synchronized with the id" + + "entity provider upon each log-in.J\004trueR" + + "\026syncUserProfileOnLogin\022\272\001\n!jit_provisio" + + "ning_with_sso_enabled\030\022 \001(\0132\032.google.pro" + + "tobuf.BoolValueBT\222AQ2IIndicates if Just " + + "In Time user provisioning is enabled for" + + " the connectionJ\004trueR\035jitProvisioningWi" + + "thSsoEnabled\"\316\023\n\025OAuthConnectionConfig\022\204" + + "\001\n\rauthorize_uri\030\003 \001(\0132\034.google.protobuf" + + ".StringValueBA\222A>2\rAuthorize URIJ-\"https" + + "://youridp.com/service/oauth/authorize\"R" + + "\014authorizeUri\022t\n\ttoken_uri\030\004 \001(\0132\034.googl" + + "e.protobuf.StringValueB9\222A62\tToken URIJ)" + + "\"https://youridp.com/service/oauth/token" + + "\"R\010tokenUri\022\202\001\n\ruser_info_uri\030\005 \001(\0132\034.go" + + "ogle.protobuf.StringValueB@\222A=2\rUser Inf" + + "o URIJ,\"https://youridp.com/service/oaut" + + "h/userinfo\"R\013userInfoUri\022\\\n\tclient_id\030\010 " + + "\001(\0132\034.google.protobuf.StringValueB!\222A\0362\t" + + "Client IDJ\021\"oauth_client_id\"R\010clientId\022l" + + "\n\rclient_secret\030\t \001(\0132\034.google.protobuf." + + "StringValueB)\222A&2\rClient SecretJ\025\"oauth_" + + "client_secret\"R\014clientSecret\022?\n\006scopes\030\n" + + " \003(\tB\'\222A$2\013OIDC ScopesJ\025[\"openid\", \"prof" + + "ile\"]R\006scopes\022b\n\014redirect_uri\030\014 \001(\tB?\222A<" + + "2\014Redirect URIJ,\"https://yourapp.com/ser" + + "vice/oauth/redirect\"R\013redirectUri\022V\n\014pkc" + + "e_enabled\030\r \001(\0132\032.google.protobuf.BoolVa" + + "lueB\027\222A\0242\014PKCE EnabledJ\004trueR\013pkceEnable" + + "d\022V\n\006prompt\030\016 \001(\0132\034.google.protobuf.Stri" + + "ngValueB \222A\0352\023Prompt for the userJ\006\"none" + + "\"R\006prompt\022m\n\022use_platform_creds\030\017 \001(\0132\032." + + "google.protobuf.BoolValueB#\222A 2\030Use Scal" + + "ekit credentialsJ\004trueR\020usePlatformCreds" + + "\022Z\n\013access_type\030\020 \001(\0132\034.google.protobuf." + + "StringValueB\033\222A\0302\013Access TypeJ\t\"offline\"" + + "R\naccessType\022n\n\021custom_scope_name\030\021 \001(\0132" + + "\034.google.protobuf.StringValueB$\222A!2\021Cust" + + "om Scope NameJ\014\"user_scope\"R\017customScope" + + "Name\022\306\001\n\032sync_user_profile_on_login\030\022 \001(" + + "\0132\032.google.protobuf.BoolValueBn\222Ak2cIndi" + + "cates whether user profiles should be sy" + + "nchronized with the identity provider up" + + "on each log-in.J\004trueR\026syncUserProfileOn" + + "Login\022k\n\021token_access_type\030\023 \001(\0132\034.googl" + + "e.protobuf.StringValueB!\222A\0362\021Token Acces" + + "s TypeJ\t\"offline\"R\017tokenAccessType\022\204\002\n\tt" + + "enant_id\030\024 \001(\0132\034.google.protobuf.StringV" + + "alueB\310\001\222A\304\0012\231\001Microsoft Entra tenant ID." + + " Required when using a single-tenant or " + + "multi-tenant app registered in Microsoft" + + " Entra. Leave empty to use the common en" + + "dpoint.J&\"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxx" + + "xxxxxx\"R\010tenantId\022\307\001\n\007is_cimd\030\025 \001(\0132\032.go" + + "ogle.protobuf.BoolValueB\221\001\222A\212\0012\201\001Indicat" + + "es whether this connection was registere" + + "d using Client ID Metadata Document (CIM" + + "D) instead of Dynamic Client Registratio" + + "n.J\004true\340A\003R\006isCimd\022\276\001\n\010app_name\030\026 \001(\0132\034" + + ".google.protobuf.StringValueB\204\001\222A\200\0012mApp" + + "lication name used by providers that req" + + "uire it as an authorize query parameter " + + "(e.g., Trello\'s app_name).J\017\"My Trello A" + + "pp\"R\007appName\022\372\001\n\017optional_scopes\030\027 \001(\0132\'" + + ".scalekit.v1.connections.OptionalScopesB" + + "\242\001\222A\236\0012\233\001Optional scopes configuration f" + + "or identity providers that support or re" + + "quire additional scopes to be sent in a " + + "custom field during authentication reque" + + "sts.H\000R\016optionalScopes\210\001\001B\022\n\020_optional_s" + + "copes\"\246\003\n\016OptionalScopes\022v\n\006scopes\030\001 \003(\t" + + "B^\222A[2CList of optional scopes that can " + + "be requested during authenticationJ\024[\"sc" + + "ope1\", \"scope2\"]R\006scopes\022\233\002\n\nfield_name\030" + + "\002 \001(\tB\373\001\222A\367\0012\325\001Name of the field in whic" + + "h scope should be sent in the authentica" + + "tion request. This is required by some i" + + "dentity providers that expect scopes to " + + "be sent in a custom field instead of the" + + " standard \'scope\' parameter.J\035\"optional_" + + "scope or bot_scope\"R\tfieldName\"\200\003\n\017Googl" + + "eDWDConfig\022\247\001\n\024service_account_json\030\001 \001(" + + "\0132\034.google.protobuf.StringValueBW\222AQ2OGo" + + "ogle Cloud service account JSON key. Wri" + + "te-only: reads return a masked value.\340A\004" + + "R\022serviceAccountJson\0229\n\006scopes\030\002 \003(\tB!\222A" + + "\0362\034OAuth 2.0 scopes to request.R\006scopes\022" + + "\207\001\n\ttoken_uri\030\003 \001(\0132\034.google.protobuf.St" + + "ringValueBL\222AI2GGoogle token endpoint. D" + + "efaults to https://oauth2.googleapis.com" + + "/token.R\010tokenUri\"\364\007\n\022PasswordLessConfig" + + "\022]\n\004type\030\001 \001(\0162).scalekit.v1.connections" + + ".PasswordlessTypeB\036\222A\0332\021Passwordless Typ" + + "eJ\006\"LINK\"R\004type\022W\n\tfrequency\030\002 \001(\0132\034.goo" + + "gle.protobuf.UInt32ValueB\026\222A\0232\016Link Freq" + + "uencyJ\0011H\000R\tfrequency\210\001\001\022a\n\010validity\030\003 \001" + + "(\0132\034.google.protobuf.UInt32ValueB\"\222A\0372\030L" + + "ink Validity in SecondsJ\003600H\001R\010validity" + + "\210\001\001\022\206\001\n\033enforce_same_browser_origin\030\004 \001(" + + "\0132\032.google.protobuf.BoolValueB&\222A#2\033Enfo" + + "rce Same Browser OriginJ\004trueH\002R\030enforce" + + "SameBrowserOrigin\210\001\001\022t\n\025code_challenge_l" + + "ength\030\005 \001(\0132\034.google.protobuf.UInt32Valu" + + "eB\035\222A\0322\025Code Challenge LengthJ\0016H\003R\023code" + + "ChallengeLength\210\001\001\022\204\001\n\023code_challenge_ty" + + "pe\030\006 \001(\0162*.scalekit.v1.connections.CodeC" + + "hallengeTypeB#\222A 2\023Code Challenge TypeJ\t" + + "\"NUMERIC\"H\004R\021codeChallengeType\210\001\001\022\235\001\n-re" + + "generate_passwordless_credentials_on_res" + + "end\030\007 \001(\0132\032.google.protobuf.BoolValueB\032\222" + + "A\0272\017Regenerate the J\004trueH\005R)regenerateP" + + "asswordlessCredentialsOnResend\210\001\001B\014\n\n_fr" + + "equencyB\013\n\t_validityB\036\n\034_enforce_same_br" + + "owser_originB\030\n\026_code_challenge_lengthB\026" + + "\n\024_code_challenge_typeB0\n._regenerate_pa" + + "sswordless_credentials_on_resend\"P\n\020Stat" + + "icAuthConfig\022<\n\rstatic_config\030\001 \001(\0132\027.go" + + "ogle.protobuf.StructR\014staticConfig\"\304\"\n\024W" + + "ebAuthConfiguration\022@\n\002rp\030\001 \001(\01320.scalek" + + "it.v1.connections.WebAuthConfiguration.R" + + "pR\002rp\022[\n\013attestation\030\002 \001(\01329.scalekit.v1" + + ".connections.WebAuthConfiguration.Attest" + + "ationR\013attestation\022d\n\016authenticators\030\003 \001" + + "(\0132<.scalekit.v1.connections.WebAuthConf" + + "iguration.AuthenticatorsR\016authenticators" + + "\022}\n\027authenticator_selection\030\004 \001(\0132D.scal" + + "ekit.v1.connections.WebAuthConfiguration" + + ".AuthenticatorSelectionR\026authenticatorSe" + + "lection\022O\n\007timeout\030\005 \001(\01325.scalekit.v1.c" + + "onnections.WebAuthConfiguration.TimeoutR" + + "\007timeout\022d\n\030enable_auto_registration\030\006 \001" + + "(\010B*\222A\'2%Enable auto registration for We" + + "bAuthnR\026enableAutoRegistration\022X\n\023show_p" + + "asskey_button\030\007 \001(\010B(\222A%2#Show passkey b" + + "utton on login screenR\021showPasskeyButton" + + "\022g\n\030enable_conditional_login\030\010 \001(\010B-\222A*2" + + "(Allow autofill of passkeys in login pag" + + "eR\026enableConditionalLogin\032H\n\002Rp\022\034\n\003ids\030\001" + + " \003(\tB\n\272H\007\222\001\004\010\001\020\nR\003ids\022$\n\007origins\030\002 \003(\tB\n" + + "\272H\007\222\001\004\010\001\020\nR\007origins\032\301\001\n\013Attestation\022p\n\025c" + + "onveyance_preference\030\001 \001(\0132\034.google.prot" + + "obuf.StringValueB\035\272H\032r\030R\004noneR\010indirectR" + + "\006directR\024conveyancePreference\022@\n\027enterpr" + + "ise_approved_ids\030\002 \003(\tB\010\272H\005\222\001\002\0202R\025enterp" + + "riseApprovedIds\032\360\023\n\016Authenticators\022\333\002\n\016v" + + "alidate_entry\030\001 \001(\0132\032.google.protobuf.Bo" + + "olValueB\227\002\222A\223\002\032\032.google.protobuf.BoolVal" + + "ue2\364\001requires that the provided metadata" + + " has an entry for the given authenticato" + + "r to be considered valid. By default an " + + "AAGUID which has a zero value should fai" + + "l validation if validate_entry_permit_ze" + + "ro_aaguid is not provided with the value" + + " of true.R\rvalidateEntry\022\217\002\n!validate_en" + + "try_permit_zero_aaguid\030\002 \001(\0132\032.google.pr" + + "otobuf.BoolValueB\250\001\222A\244\0012\241\001is an option t" + + "hat permits a zero\'d AAGUID from an atte" + + "station statement to automatically pass " + + "metadata validations. Generally helpful " + + "to use with validate_entry.R\035validateEnt" + + "ryPermitZeroAaguid\022\306\001\n\020validate_anchors\030" + + "\003 \001(\0132\032.google.protobuf.BoolValueB\177\222A|2z" + + "when set to true enables the validation " + + "of the attestation statement against the" + + " trust anchor from the metadata statemen" + + "t.R\017validateAnchors\022\276\001\n\017validate_status\030" + + "\004 \001(\0132\032.google.protobuf.BoolValueBy\222Av2t" + + "when set to true enables the validation " + + "of the attestation statements AAGUID aga" + + "inst the desired and undesired listsR\016va" + + "lidateStatus\022\341\001\n\031validate_attestation_ty" + + "pe\030\005 \001(\0132\032.google.protobuf.BoolValueB\210\001\222" + + "A\204\0012\201\001when set to true enables the valid" + + "ation of the attestation statements type" + + " against the known types the authenticat" + + "or can produce.R\027validateAttestationType" + + "\022\273\004\n\034desired_authenticator_status\030\006 \003(\tB" + + "\370\003\222A\235\0012\226\001provides the list of statuses w" + + "hich are considered undesirable for stat" + + "us report validation purposes. Should be" + + " used with validate_status set to true.:" + + "\002[]\272H\323\002\222\001\317\002\020\n\"\312\002r\307\002R\022NOT_FIDO_CERTIFIEDR" + + "\016FIDO_CERTIFIEDR\030USER_VERIFICATION_BYPAS" + + "SR\032ATTESTATION_KEY_COMPROMISER\032USER_KEY_" + + "REMOTE_COMPROMISER\034USER_KEY_PHYSICAL_COM" + + "PROMISER\020UPDATE_AVAILABLER\007REVOKEDR\030SELF" + + "_ASSERTION_SUBMITTEDR\021FIDO_CERTIFIED_L1R" + + "\025FIDO_CERTIFIED_L1plusR\021FIDO_CERTIFIED_L" + + "2R\025FIDO_CERTIFIED_L2plusR\021FIDO_CERTIFIED" + + "_L3R\025FIDO_CERTIFIED_L3plusR\032desiredAuthe" + + "nticatorStatus\022\301\005\n\036undesired_authenticat" + + "or_status\030\007 \003(\tB\372\004\222A\237\0022\226\001provides the li" + + "st of statuses which are considered unde" + + "sirable for status report validation pur" + + "poses. Should be used with validate_stat" + + "us set to true.:\203\001[\'ATTESTATION_KEY_COMP" + + "ROMISE\', \'USER_VERIFICATION_BYPASS\', \'US" + + "ER_KEY_REMOTE_COMPROMISE\', \'USER_KEY_PHY" + + "SICAL_COMPROMISE\', \'REVOKED\']\272H\323\002\222\001\317\002\020\n\"" + + "\312\002r\307\002R\022NOT_FIDO_CERTIFIEDR\016FIDO_CERTIFIE" + + "DR\030USER_VERIFICATION_BYPASSR\032ATTESTATION" + + "_KEY_COMPROMISER\032USER_KEY_REMOTE_COMPROM" + + "ISER\034USER_KEY_PHYSICAL_COMPROMISER\020UPDAT" + + "E_AVAILABLER\007REVOKEDR\030SELF_ASSERTION_SUB" + + "MITTEDR\021FIDO_CERTIFIED_L1R\025FIDO_CERTIFIE" + + "D_L1plusR\021FIDO_CERTIFIED_L2R\025FIDO_CERTIF" + + "IED_L2plusR\021FIDO_CERTIFIED_L3R\025FIDO_CERT" + + "IFIED_L3plusR\034undesiredAuthenticatorStat" + + "us\032\206\002\n\026AuthenticatorSelection\022r\n\021user_ve" + + "rification\030\001 \001(\0132\034.google.protobuf.Strin" + + "gValueB\'\272H$r\"R\010requiredR\tpreferredR\013disc" + + "ouragedR\020userVerification\022x\n\030authenticat" + + "or_attachment\030\002 \001(\0132\034.google.protobuf.St" + + "ringValueB\037\272H\034r\032R\010platformR\016cross-platfo" + + "rmR\027authenticatorAttachment\032\243\004\n\007Timeout\022" + + "x\n\014registration\030\001 \001(\0132\031.google.protobuf." + + "DurationB9\222A\'2\035Registration timeout dura" + + "tion:\006\"300s\"\272H\014\252\001\t\"\003\010\210\0162\002\010xR\014registratio" + + "n\022\245\001\n\020registration_uvd\030\002 \001(\0132\031.google.pr" + + "otobuf.DurationB_\222AM2CRegistration timeo" + + "ut duration when user verification is di" + + "scouraged:\006\"300s\"\272H\014\252\001\t\"\003\010\210\0162\002\010xR\017regist" + + "rationUvd\022c\n\005login\030\003 \001(\0132\031.google.protob" + + "uf.DurationB2\222A 2\026Login timeout duration" + + ":\006\"300s\"\272H\014\252\001\t\"\003\010\210\0162\002\010xR\005login\022\220\001\n\tlogin" + + "_uvd\030\004 \001(\0132\031.google.protobuf.DurationBX\222" + + "AF22\017SP Metadata URLJ+\"https://yo" + + "uridp.com/service/saml/metadata\"R\rspMeta" + + "dataUrl\022\212\001\n\020idp_metadata_url\030\004 \001(\0132\034.goo" + + "gle.protobuf.StringValueBB\222A?2\020IDP Metad" + + "ata URLJ+\"https://youridp.com/service/sa" + + "ml/metadata\"R\016idpMetadataUrl\022x\n\ridp_enti" + + "ty_id\030\005 \001(\0132\034.google.protobuf.StringValu" + + "eB6\222A32\rIDP Entity IDJ\"\"https://youridp." + + "com/service/saml\"R\013idpEntityId\022v\n\013idp_ss" + + "o_url\030\006 \001(\0132\034.google.protobuf.StringValu" + + "eB8\222A52\013IDP SSO URLJ&\"https://youridp.co" + + "m/service/saml/sso\"R\tidpSsoUrl\022i\n\020idp_ce" + + "rtificates\030\007 \003(\0132\'.scalekit.v1.connectio" + + "ns.IDPCertificateB\025\222A\0222\020IDP Certificates" + + "R\017idpCertificates\022v\n\013idp_slo_url\030\010 \001(\0132\034" + + ".google.protobuf.StringValueB8\222A52\013IDP S" + + "LO URLJ&\"https://youridp.com/service/sam" + + "l/slo\"R\tidpSloUrl\022l\n\017ui_button_title\030\t \001" + + "(\0132\034.google.protobuf.StringValueB&\222A#2\017U" + + "I Button TitleJ\020\"Login with SSO\"R\ruiButt" + + "onTitle\022t\n\022idp_name_id_format\030\n \001(\0162%.sc" + + "alekit.v1.connections.NameIdFormatB \222A\0352", + "\022IDP Name ID FormatJ\007\"EMAIL\"R\017idpNameIdF" + + "ormat\022\211\001\n\027idp_sso_request_binding\030\013 \001(\0162" + + "\'.scalekit.v1.connections.RequestBinding" + + "B)\222A&2\027IDP SSO Request BindingJ\013\"HTTP_PO" + + "ST\"R\024idpSsoRequestBinding\022\211\001\n\027idp_slo_re" + + "quest_binding\030\014 \001(\0162\'.scalekit.v1.connec" + + "tions.RequestBindingB)\222A&2\027IDP SLO Reque" + + "st BindingJ\013\"HTTP_POST\"R\024idpSloRequestBi" + + "nding\022\223\001\n\023saml_signing_option\030\r \001(\0162+.sc" + + "alekit.v1.connections.SAMLSigningOptions" + + "B6\222A32\023SAML Signing OptionJ\034\"SAML_ONLY_R" + + "ESPONSE_SIGNING\"R\021samlSigningOption\022{\n\031a" + + "llow_idp_initiated_login\030\016 \001(\0132\032.google." + + "protobuf.BoolValueB$\222A!2\031Allow IDP Initi" + + "ated LoginJ\004trueR\026allowIdpInitiatedLogin" + + "\022S\n\013force_authn\030\017 \001(\0132\032.google.protobuf." + + "BoolValueB\026\222A\0232\013Force AuthnJ\004trueR\nforce" + + "Authn\022\226\001\n\024default_redirect_uri\030\020 \001(\0132\034.g" + + "oogle.protobuf.StringValueBF\222AC2\024Default" + + " Redirect URIJ+\"https://yourapp.com/serv" + + "ice/saml/redirect\"R\022defaultRedirectUri\022k" + + "\n\023assertion_encrypted\030\021 \001(\0132\032.google.pro" + + "tobuf.BoolValueB\036\222A\0332\023Assertion Encrypte" + + "dJ\004trueR\022assertionEncrypted\022j\n\023want_requ" + + "est_signed\030\022 \001(\0132\032.google.protobuf.BoolV" + + "alueB\036\222A\0332\023Want Request SignedJ\004trueR\021wa" + + "ntRequestSigned\022q\n\016certificate_id\030\023 \001(\0132" + + "\034.google.protobuf.StringValueB,\222A)2\016Cert" + + "ificate IDJ\027\"cer_35585423166144613\"R\rcer" + + "tificateId\022b\n\020idp_slo_required\030\024 \001(\0132\032.g" + "oogle.protobuf.BoolValueB\034\222A\0312\021Enable ID" + - "P logoutJ\004trueR\021idpLogoutRequired\022\264\001\n\030po" + - "st_logout_redirect_uri\030\017 \001(\0132\034.google.pr" + - "otobuf.StringValueB]\222AW2\030post logout red" + - "irect uriJ;\"https://yourapp.com/sso/v1/o" + - "idc/conn_1234/logout/callback\"\340A\003R\025postL" + - "ogoutRedirectUri\022\352\001\n\037backchannel_logout_" + - "redirect_uri\030\020 \001(\0132\034.google.protobuf.Str" + - "ingValueB\204\001\222A~2\"h" + - "ttps://yourapp.com/sso/v1/oidc/conn_1234" + - "/backchannel-logout\"\340A\003R\034backchannelLogo" + - "utRedirectUri\022\306\001\n\032sync_user_profile_on_l" + - "ogin\030\021 \001(\0132\032.google.protobuf.BoolValueBn" + - "\222Ak2cIndicates whether user profiles sho" + - "uld be synchronized with the identity pr" + - "ovider upon each log-in.J\004trueR\026syncUser" + - "ProfileOnLogin\022\272\001\n!jit_provisioning_with" + - "_sso_enabled\030\022 \001(\0132\032.google.protobuf.Boo" + - "lValueBT\222AQ2IIndicates if Just In Time u" + - "ser provisioning is enabled for the conn" + - "ectionJ\004trueR\035jitProvisioningWithSsoEnab" + - "led\"\276\013\n\025OAuthConnectionConfig\022\204\001\n\rauthor" + - "ize_uri\030\003 \001(\0132\034.google.protobuf.StringVa" + - "lueBA\222A>2\rAuthorize URIJ-\"https://yourid" + - "p.com/service/oauth/authorize\"R\014authoriz" + - "eUri\022t\n\ttoken_uri\030\004 \001(\0132\034.google.protobu" + - "f.StringValueB9\222A62\tToken URIJ)\"https://" + - "youridp.com/service/oauth/token\"R\010tokenU" + - "ri\022\202\001\n\ruser_info_uri\030\005 \001(\0132\034.google.prot" + - "obuf.StringValueB@\222A=2\rUser Info URIJ,\"h" + - "ttps://youridp.com/service/oauth/userinf" + - "o\"R\013userInfoUri\022\\\n\tclient_id\030\010 \001(\0132\034.goo" + - "gle.protobuf.StringValueB!\222A\0362\tClient ID" + - "J\021\"oauth_client_id\"R\010clientId\022l\n\rclient_" + - "secret\030\t \001(\0132\034.google.protobuf.StringVal" + - "ueB)\222A&2\rClient SecretJ\025\"oauth_client_se" + - "cret\"R\014clientSecret\022?\n\006scopes\030\n \003(\tB\'\222A$" + - "2\013OIDC ScopesJ\025[\"openid\", \"profile\"]R\006sc" + - "opes\022b\n\014redirect_uri\030\014 \001(\tB?\222A<2\014Redirec" + - "t URIJ,\"https://yourapp.com/service/oaut" + - "h/redirect\"R\013redirectUri\022V\n\014pkce_enabled" + - "\030\r \001(\0132\032.google.protobuf.BoolValueB\027\222A\0242" + - "\014PKCE EnabledJ\004trueR\013pkceEnabled\022V\n\006prom" + - "pt\030\016 \001(\0132\034.google.protobuf.StringValueB " + - "\222A\0352\023Prompt for the userJ\006\"none\"R\006prompt" + - "\022m\n\022use_platform_creds\030\017 \001(\0132\032.google.pr" + - "otobuf.BoolValueB#\222A 2\030Use Scalekit cred" + - "entialsJ\004trueR\020usePlatformCreds\022Z\n\013acces" + - "s_type\030\020 \001(\0132\034.google.protobuf.StringVal" + - "ueB\033\222A\0302\013Access TypeJ\t\"offline\"R\naccessT" + - "ype\022n\n\021custom_scope_name\030\021 \001(\0132\034.google." + - "protobuf.StringValueB$\222A!2\021Custom Scope " + - "NameJ\014\"user_scope\"R\017customScopeName\022\306\001\n\032" + - "sync_user_profile_on_login\030\022 \001(\0132\032.googl" + - "e.protobuf.BoolValueBn\222Ak2cIndicates whe" + - "ther user profiles should be synchronize" + - "d with the identity provider upon each l" + - "og-in.J\004trueR\026syncUserProfileOnLogin\"\364\007\n" + - "\022PasswordLessConfig\022]\n\004type\030\001 \001(\0162).scal" + - "ekit.v1.connections.PasswordlessTypeB\036\222A" + - "\0332\021Passwordless TypeJ\006\"LINK\"R\004type\022W\n\tfr" + - "equency\030\002 \001(\0132\034.google.protobuf.UInt32Va" + - "lueB\026\222A\0232\016Link FrequencyJ\0011H\000R\tfrequency" + - "\210\001\001\022a\n\010validity\030\003 \001(\0132\034.google.protobuf." + - "UInt32ValueB\"\222A\0372\030Link Validity in Secon" + - "dsJ\003600H\001R\010validity\210\001\001\022\206\001\n\033enforce_same_" + - "browser_origin\030\004 \001(\0132\032.google.protobuf.B" + - "oolValueB&\222A#2\033Enforce Same Browser Orig" + - "inJ\004trueH\002R\030enforceSameBrowserOrigin\210\001\001\022" + - "t\n\025code_challenge_length\030\005 \001(\0132\034.google." + - "protobuf.UInt32ValueB\035\222A\0322\025Code Challeng" + - "e LengthJ\0016H\003R\023codeChallengeLength\210\001\001\022\204\001" + - "\n\023code_challenge_type\030\006 \001(\0162*.scalekit.v" + - "1.connections.CodeChallengeTypeB#\222A 2\023Co" + - "de Challenge TypeJ\t\"NUMERIC\"H\004R\021codeChal" + - "lengeType\210\001\001\022\235\001\n-regenerate_passwordless" + - "_credentials_on_resend\030\007 \001(\0132\032.google.pr" + - "otobuf.BoolValueB\032\222A\0272\017Regenerate the J\004" + - "trueH\005R)regeneratePasswordlessCredential" + - "sOnResend\210\001\001B\014\n\n_frequencyB\013\n\t_validityB" + - "\036\n\034_enforce_same_browser_originB\030\n\026_code" + - "_challenge_lengthB\026\n\024_code_challenge_typ" + - "eB0\n._regenerate_passwordless_credential" + - "s_on_resend\"P\n\020StaticAuthConfig\022<\n\rstati" + - "c_config\030\001 \001(\0132\027.google.protobuf.StructR" + - "\014staticConfig\"\304\"\n\024WebAuthConfiguration\022@" + - "\n\002rp\030\001 \001(\01320.scalekit.v1.connections.Web" + - "AuthConfiguration.RpR\002rp\022[\n\013attestation\030" + - "\002 \001(\01329.scalekit.v1.connections.WebAuthC" + - "onfiguration.AttestationR\013attestation\022d\n" + - "\016authenticators\030\003 \001(\0132<.scalekit.v1.conn" + - "ections.WebAuthConfiguration.Authenticat" + - "orsR\016authenticators\022}\n\027authenticator_sel" + - "ection\030\004 \001(\0132D.scalekit.v1.connections.W" + - "ebAuthConfiguration.AuthenticatorSelecti" + - "onR\026authenticatorSelection\022O\n\007timeout\030\005 " + - "\001(\01325.scalekit.v1.connections.WebAuthCon" + - "figuration.TimeoutR\007timeout\022d\n\030enable_au" + - "to_registration\030\006 \001(\010B*\222A\'2%Enable auto " + - "registration for WebAuthnR\026enableAutoReg" + - "istration\022X\n\023show_passkey_button\030\007 \001(\010B(" + - "\222A%2#Show passkey button on login screen" + - "R\021showPasskeyButton\022g\n\030enable_conditiona" + - "l_login\030\010 \001(\010B-\222A*2(Allow autofill of pa" + - "sskeys in login pageR\026enableConditionalL" + - "ogin\032H\n\002Rp\022\034\n\003ids\030\001 \003(\tB\n\272H\007\222\001\004\010\001\020\nR\003ids" + - "\022$\n\007origins\030\002 \003(\tB\n\272H\007\222\001\004\010\001\020\nR\007origins\032\301" + - "\001\n\013Attestation\022p\n\025conveyance_preference\030" + - "\001 \001(\0132\034.google.protobuf.StringValueB\035\272H\032" + - "r\030R\004noneR\010indirectR\006directR\024conveyancePr" + - "eference\022@\n\027enterprise_approved_ids\030\002 \003(" + - "\tB\010\272H\005\222\001\002\0202R\025enterpriseApprovedIds\032\360\023\n\016A" + - "uthenticators\022\333\002\n\016validate_entry\030\001 \001(\0132\032" + - ".google.protobuf.BoolValueB\227\002\222A\223\002\032\032.goog" + - "le.protobuf.BoolValue2\364\001requires that th" + - "e provided metadata has an entry for the" + - " given authenticator to be considered va" + - "lid. By default an AAGUID which has a ze" + - "ro value should fail validation if valid" + - "ate_entry_permit_zero_aaguid is not prov" + - "ided with the value of true.R\rvalidateEn" + - "try\022\217\002\n!validate_entry_permit_zero_aagui" + - "d\030\002 \001(\0132\032.google.protobuf.BoolValueB\250\001\222A" + - "\244\0012\241\001is an option that permits a zero\'d " + - "AAGUID from an attestation statement to " + - "automatically pass metadata validations." + - " Generally helpful to use with validate_" + - "entry.R\035validateEntryPermitZeroAaguid\022\306\001" + - "\n\020validate_anchors\030\003 \001(\0132\032.google.protob" + - "uf.BoolValueB\177\222A|2zwhen set to true enab" + - "les the validation of the attestation st" + - "atement against the trust anchor from th" + - "e metadata statement.R\017validateAnchors\022\276" + - "\001\n\017validate_status\030\004 \001(\0132\032.google.protob" + - "uf.BoolValueBy\222Av2twhen set to true enab" + - "les the validation of the attestation st" + - "atements AAGUID against the desired and " + - "undesired listsR\016validateStatus\022\341\001\n\031vali" + - "date_attestation_type\030\005 \001(\0132\032.google.pro" + - "tobuf.BoolValueB\210\001\222A\204\0012\201\001when set to tru" + - "e enables the validation of the attestat" + - "ion statements type against the known ty" + - "pes the authenticator can produce.R\027vali" + - "dateAttestationType\022\273\004\n\034desired_authenti" + - "cator_status\030\006 \003(\tB\370\003\222A\235\0012\226\001provides the" + - " list of statuses which are considered u" + - "ndesirable for status report validation " + - "purposes. Should be used with validate_s" + - "tatus set to true.:\002[]\272H\323\002\222\001\317\002\020\n\"\312\002r\307\002R\022" + - "NOT_FIDO_CERTIFIEDR\016FIDO_CERTIFIEDR\030USER" + - "_VERIFICATION_BYPASSR\032ATTESTATION_KEY_CO" + - "MPROMISER\032USER_KEY_REMOTE_COMPROMISER\034US" + - "ER_KEY_PHYSICAL_COMPROMISER\020UPDATE_AVAIL" + - "ABLER\007REVOKEDR\030SELF_ASSERTION_SUBMITTEDR" + - "\021FIDO_CERTIFIED_L1R\025FIDO_CERTIFIED_L1plu" + - "sR\021FIDO_CERTIFIED_L2R\025FIDO_CERTIFIED_L2p" + - "lusR\021FIDO_CERTIFIED_L3R\025FIDO_CERTIFIED_L" + - "3plusR\032desiredAuthenticatorStatus\022\301\005\n\036un" + - "desired_authenticator_status\030\007 \003(\tB\372\004\222A\237" + - "\0022\226\001provides the list of statuses which " + - "are considered undesirable for status re" + - "port validation purposes. Should be used" + - " with validate_status set to true.:\203\001[\'A" + - "TTESTATION_KEY_COMPROMISE\', \'USER_VERIFI" + - "CATION_BYPASS\', \'USER_KEY_REMOTE_COMPROM" + - "ISE\', \'USER_KEY_PHYSICAL_COMPROMISE\', \'R" + - "EVOKED\']\272H\323\002\222\001\317\002\020\n\"\312\002r\307\002R\022NOT_FIDO_CERTI" + - "FIEDR\016FIDO_CERTIFIEDR\030USER_VERIFICATION_" + - "BYPASSR\032ATTESTATION_KEY_COMPROMISER\032USER" + - "_KEY_REMOTE_COMPROMISER\034USER_KEY_PHYSICA" + - "L_COMPROMISER\020UPDATE_AVAILABLER\007REVOKEDR" + - "\030SELF_ASSERTION_SUBMITTEDR\021FIDO_CERTIFIE" + - "D_L1R\025FIDO_CERTIFIED_L1plusR\021FIDO_CERTIF" + - "IED_L2R\025FIDO_CERTIFIED_L2plusR\021FIDO_CERT" + - "IFIED_L3R\025FIDO_CERTIFIED_L3plusR\034undesir" + - "edAuthenticatorStatus\032\206\002\n\026AuthenticatorS" + - "election\022r\n\021user_verification\030\001 \001(\0132\034.go" + - "ogle.protobuf.StringValueB\'\272H$r\"R\010requir" + - "edR\tpreferredR\013discouragedR\020userVerifica" + - "tion\022x\n\030authenticator_attachment\030\002 \001(\0132\034" + - ".google.protobuf.StringValueB\037\272H\034r\032R\010pla" + - "tformR\016cross-platformR\027authenticatorAtta" + - "chment\032\243\004\n\007Timeout\022x\n\014registration\030\001 \001(\013" + - "2\031.google.protobuf.DurationB9\222A\'2\035Regist" + - "ration timeout duration:\006\"300s\"\272H\014\252\001\t\"\003\010" + - "\210\0162\002\010xR\014registration\022\245\001\n\020registration_uv" + - "d\030\002 \001(\0132\031.google.protobuf.DurationB_\222AM2" + - "CRegistration timeout duration when user" + - " verification is discouraged:\006\"300s\"\272H\014\252" + - "\001\t\"\003\010\210\0162\002\010xR\017registrationUvd\022c\n\005login\030\003 " + - "\001(\0132\031.google.protobuf.DurationB2\222A 2\026Log" + - "in timeout duration:\006\"300s\"\272H\014\252\001\t\"\003\010\210\0162\002" + - "\010xR\005login\022\220\001\n\tlogin_uvd\030\004 \001(\0132\031.google.p" + - "rotobuf.DurationBX\222AF22\017SP Metada" + - "ta URLJ+\"https://youridp.com/service/sam" + - "l/metadata\"R\rspMetadataUrl\022\212\001\n\020idp_metad" + - "ata_url\030\004 \001(\0132\034.google.protobuf.StringVa" + - "lueBB\222A?2\020IDP Metadata URLJ+\"https://you" + - "ridp.com/service/saml/metadata\"R\016idpMeta" + - "dataUrl\022x\n\ridp_entity_id\030\005 \001(\0132\034.google." + - "protobuf.StringValueB6\222A32\rIDP Entity ID" + - "J\"\"https://youridp.com/service/saml\"R\013id" + - "pEntityId\022v\n\013idp_sso_url\030\006 \001(\0132\034.google." + - "protobuf.StringValueB8\222A52\013IDP SSO URLJ&" + - "\"https://youridp.com/service/saml/sso\"R\t" + - "idpSsoUrl\022i\n\020idp_certificates\030\007 \003(\0132\'.sc" + - "alekit.v1.connections.IDPCertificateB\025\222A" + - "\0222\020IDP CertificatesR\017idpCertificates\022v\n\013" + - "idp_slo_url\030\010 \001(\0132\034.google.protobuf.Stri" + - "ngValueB8\222A52\013IDP SLO URLJ&\"https://your" + - "idp.com/service/saml/slo\"R\tidpSloUrl\022l\n\017" + - "ui_button_title\030\t \001(\0132\034.google.protobuf." + - "StringValueB&\222A#2\017UI Button TitleJ\020\"Logi" + - "n with SSO\"R\ruiButtonTitle\022t\n\022idp_name_i" + - "d_format\030\n \001(\0162%.scalekit.v1.connections" + - ".NameIdFormatB \222A\0352\022IDP Name ID FormatJ\007" + - "\"EMAIL\"R\017idpNameIdFormat\022\211\001\n\027idp_sso_req" + - "uest_binding\030\013 \001(\0162\'.scalekit.v1.connect" + - "ions.RequestBindingB)\222A&2\027IDP SSO Reques" + - "t BindingJ\013\"HTTP_POST\"R\024idpSsoRequestBin" + - "ding\022\211\001\n\027idp_slo_request_binding\030\014 \001(\0162\'" + - ".scalekit.v1.connections.RequestBindingB" + - ")\222A&2\027IDP SLO Request BindingJ\013\"HTTP_POS" + - "T\"R\024idpSloRequestBinding\022\223\001\n\023saml_signin" + - "g_option\030\r \001(\0162+.scalekit.v1.connections" + - ".SAMLSigningOptionsB6\222A32\023SAML Signing O" + - "ptionJ\034\"SAML_ONLY_RESPONSE_SIGNING\"R\021sam" + - "lSigningOption\022{\n\031allow_idp_initiated_lo" + - "gin\030\016 \001(\0132\032.google.protobuf.BoolValueB$\222" + - "A!2\031Allow IDP Initiated LoginJ\004trueR\026all" + - "owIdpInitiatedLogin\022S\n\013force_authn\030\017 \001(\013" + - "2\032.google.protobuf.BoolValueB\026\222A\0232\013Force" + - " AuthnJ\004trueR\nforceAuthn\022\226\001\n\024default_red" + - "irect_uri\030\020 \001(\0132\034.google.protobuf.String" + - "ValueBF\222AC2\024Default Redirect URIJ+\"https" + - "://yourapp.com/service/saml/redirect\"R\022d" + - "efaultRedirectUri\022k\n\023assertion_encrypted" + - "\030\021 \001(\0132\032.google.protobuf.BoolValueB\036\222A\0332" + - "\023Assertion EncryptedJ\004trueR\022assertionEnc" + - "rypted\022j\n\023want_request_signed\030\022 \001(\0132\032.go" + - "ogle.protobuf.BoolValueB\036\222A\0332\023Want Reque" + - "st SignedJ\004trueR\021wantRequestSigned\022q\n\016ce" + - "rtificate_id\030\023 \001(\0132\034.google.protobuf.Str" + - "ingValueB,\222A)2\016Certificate IDJ\027\"cer_3558" + - "5423166144613\"R\rcertificateId\022b\n\020idp_slo" + - "_required\030\024 \001(\0132\032.google.protobuf.BoolVa" + - "lueB\034\222A\0312\021Enable IDP logoutJ\004trueR\016idpSl" + - "oRequired\022\226\001\n\nsp_slo_url\030\025 \001(\0132\034.google." + - "protobuf.StringValueBZ\222AT2\030Service Provi" + - "der SLO urlJ8\"https://yourapp.com/sso/v1" + - "/saml/conn_1234/slo/callback\"\340A\003R\010spSloU" + - "rl\022\306\001\n\032sync_user_profile_on_login\030\026 \001(\0132" + - "\032.google.protobuf.BoolValueBn\222Ak2cIndica" + - "tes whether user profiles should be sync" + - "hronized with the identity provider upon" + - " each log-in.J\004trueR\026syncUserProfileOnLo" + - "gin\022\272\001\n!jit_provisioning_with_sso_enable" + - "d\030\027 \001(\0132\032.google.protobuf.BoolValueBT\222AQ" + - "2IIndicates if Just In Time user provisi" + - "oning is enabled for the connectionJ\004tru" + - "eR\035jitProvisioningWithSsoEnabled\"\277\003\n\016IDP" + - "Certificate\0226\n\013certificate\030\001 \001(\tB\024\222A\0212\017I" + - "DP CertificateR\013certificate\022s\n\013create_ti" + - "me\030\002 \001(\0132\032.google.protobuf.TimestampB6\222A" + - "32\031Certificate Creation TimeJ\026\"2021-09-0" + - "1T00:00:00Z\"R\ncreateTime\022q\n\013expiry_time\030" + - "\003 \001(\0132\032.google.protobuf.TimestampB4\222A12\027" + - "Certificate Expiry TimeJ\026\"2021-09-01T00:" + - "00:00Z\"R\nexpiryTime\0228\n\002id\030\004 \001(\tB(\222A%2\016Ce" + - "rtificate IDJ\023\"cert_123123123123\"R\002id\022S\n" + - "\006issuer\030\005 \001(\tB;\222A82\022Certificate IssuerJ\"", - "\"https://youridp.com/service/saml\"R\006issu" + - "er\"b\n\026GetOIDCMetadataRequest\022H\n\010metadata" + - "\030\001 \001(\0132,.scalekit.v1.connections.OIDCMet" + - "adataRequestR\010metadata\"9\n\023OIDCMetadataRe" + - "quest\022\"\n\006issuer\030\001 \001(\tB\n\272H\007r\005\020\001\030\310\001R\006issue" + - "r\"\327\001\n\027GetOIDCMetadataResponse\022\026\n\006issuer\030" + - "\001 \001(\tR\006issuer\0225\n\026authorization_endpoint\030" + - "\002 \001(\tR\025authorizationEndpoint\022%\n\016token_en" + - "dpoint\030\003 \001(\tR\rtokenEndpoint\022+\n\021userinfo_" + - "endpoint\030\004 \001(\tR\020userinfoEndpoint\022\031\n\010jwks" + - "_uri\030\005 \001(\tR\007jwksUri\"b\n\026GetSAMLMetadataRe" + - "quest\022H\n\010metadata\030\001 \001(\0132,.scalekit.v1.co" + - "nnections.SAMLMetadataRequestR\010metadata\"" + - "D\n\023SAMLMetadataRequest\022-\n\014metadata_url\030\001" + - " \001(\tB\n\272H\007r\005\020\001\030\310\001R\013metadataUrl\"\264\002\n\027GetSAM" + - "LMetadataResponse\022\"\n\ridp_entity_id\030\001 \001(\t" + - "R\013idpEntityId\022\036\n\013idp_sso_url\030\002 \001(\tR\tidpS" + - "soUrl\022\036\n\013idp_slo_url\030\003 \001(\tR\tidpSloUrl\022)\n" + - "\020idp_certificates\030\004 \003(\tR\017idpCertificates" + - "\022+\n\022idp_name_id_format\030\005 \001(\tR\017idpNameIdF" + - "ormat\022\'\n\017request_binding\030\006 \001(\tR\016requestB" + - "inding\0224\n\026want_assertions_signed\030\007 \001(\010R\024" + - "wantAssertionsSigned\"u\n GetSAMLCertifica" + - "teDetailsRequest\022Q\n\013certificate\030\001 \001(\0132/." + - "scalekit.v1.connections.SAMLCertificateR" + - "equestR\013certificate\"5\n\026SAMLCertificateRe" + - "quest\022\033\n\004text\030\001 \001(\tB\007\272H\004r\002\020\001R\004text\"\245\001\n!G" + - "etSAMLCertificateDetailsResponse\022\022\n\004text" + - "\030\001 \001(\tR\004text\022\033\n\tnot_after\030\002 \001(\003R\010notAfte" + - "r\022\035\n\nnot_before\030\003 \001(\003R\tnotBefore\022\030\n\007subj" + - "ect\030\004 \001(\tR\007subject\022\026\n\006issuer\030\005 \001(\tR\006issu" + - "er\"\206\001\n\036GetConnectionTestResultRequest\022,\n" + - "\rconnection_id\030\001 \001(\tB\007\272H\004r\002\020\001R\014connectio" + - "nId\0226\n\017test_request_id\030\002 \001(\tB\016\272H\013r\t\020\001:\005t" + - "est_R\rtestRequestId\"\275\002\n\037GetConnectionTes" + - "tResultResponse\022A\n\006status\030\001 \001(\0162).scalek" + - "it.v1.connections.TestResultStatusR\006stat" + - "us\022 \n\tuser_info\030\002 \001(\tH\000R\010userInfo\210\001\001\022\031\n\005" + - "error\030\003 \001(\tH\001R\005error\210\001\001\0220\n\021error_descrip" + - "tion\030\004 \001(\tH\002R\020errorDescription\210\001\001\022(\n\rerr" + - "or_details\030\005 \001(\tH\003R\014errorDetails\210\001\001B\014\n\n_" + - "user_infoB\010\n\006_errorB\024\n\022_error_descriptio" + - "nB\020\n\016_error_details\"\032\n\030PasswordConnectio" + - "nConfig\"9\n\005Flags\022\031\n\010is_login\030\001 \001(\010R\007isLo" + - "gin\022\025\n\006is_app\030\002 \001(\010R\005isApp\"\252\003\n\031ListAppCo" + - "nnectionsRequest\022\200\001\n\tpage_size\030\001 \001(\rBc\222A" + - "Y2SMaximum number of organizations to re" + - "turn per page. Value must be between 1 a" + - "nd 30.J\00230\272H\004*\002\030\036R\010pageSize\022\245\001\n\npage_tok" + - "en\030\002 \001(\tB\205\001\222A\201\0012aToken from a previous r" + - "esponse for pagination. Provide this to " + - "retrieve the next page of results.J\034eyJw" + - "YWdlIjoyLCJsaW1pdCI6MzB9R\tpageToken\022U\n\010p" + - "rovider\030\003 \001(\tB4\222A(2\036Filter connections b" + - "y providerJ\006\"OKTA\"\272H\006r\004\020\001\0302H\000R\010provider\210" + - "\001\001B\013\n\t_provider\"\352\003\n\032ListAppConnectionsRe" + - "sponse\022\201\001\n\013connections\030\001 \003(\0132\'.scalekit." + - "v1.connections.ListConnectionB6\222A321List" + - " of connections matching the request cri" + - "teriaR\013connections\022o\n\017next_page_token\030\002 " + - "\001(\tBG\222AD2\"Token for the next page of res" + - "ultsJ\036\"eyJwYWdlIjoyLCJsaW1pdCI6MzB9\"R\rne" + - "xtPageToken\022s\n\017prev_page_token\030\003 \001(\tBK\222A" + - "H2&Token for the previous page of result" + - "sJ\036\"eyJwYWdlIjoyLCJsaW1pdCI6MzB9\"R\rprevP" + - "ageToken\022b\n\ntotal_size\030\004 \001(\rBC\222A@29Total" + - " number of connections matching the requ" + - "est criteriaJ\003100R\ttotalSize*W\n\021CodeChal" + - "lengeType\022#\n\037CODE_CHALLENGE_TYPE_UNSPECI" + - "FIED\020\000\022\013\n\007NUMERIC\020\001\022\020\n\014ALPHANUMERIC\020\002*R\n" + - "\021ConfigurationType\022\"\n\036CONFIGURATION_TYPE" + - "_UNSPECIFIED\020\000\022\r\n\tDISCOVERY\020\001\022\n\n\006MANUAL\020" + - "\002*a\n\014NameIdFormat\022\026\n\022NAME_ID_FORMAT_NIL\020" + - "\000\022\017\n\013UNSPECIFIED\020\001\022\t\n\005EMAIL\020\002\022\r\n\tTRANSIE" + - "NT\020\003\022\016\n\nPERSISTENT\020\004*U\n\020PasswordlessType" + - "\022 \n\034PasswordlessType_UNSPECIFIED\020\000\022\010\n\004LI" + - "NK\020\001\022\007\n\003OTP\020\002\022\014\n\010LINK_OTP\020\003*9\n\020TestResul" + - "tStatus\022\013\n\007PENDING\020\000\022\013\n\007SUCCESS\020\001\022\013\n\007FAI" + - "LURE\020\002*\330\001\n\022SAMLSigningOptions\022$\n SAML_SI" + - "GNING_OPTIONS_UNSPECIFIED\020\000\022\016\n\nNO_SIGNIN" + - "G\020\001\022\036\n\032SAML_ONLY_RESPONSE_SIGNING\020\002\022\037\n\033S" + - "AML_ONLY_ASSERTION_SIGNING\020\003\022#\n\037SAML_RES" + - "PONSE_ASSERTION_SIGNING\020\004\022&\n\"SAML_RESPON" + - "SE_OR_ASSERTION_SIGNING\020\005*S\n\016RequestBind" + - "ing\022\037\n\033REQUEST_BINDING_UNSPECIFIED\020\000\022\r\n\t" + - "HTTP_POST\020\001\022\021\n\rHTTP_REDIRECT\020\002*P\n\rTokenA" + - "uthType\022\037\n\033TOKEN_AUTH_TYPE_UNSPECIFIED\020\000" + - "\022\016\n\nURL_PARAMS\020\001\022\016\n\nBASIC_AUTH\020\002*c\n\tOIDC" + - "Scope\022\032\n\026OIDC_SCOPE_UNSPECIFIED\020\000\022\n\n\006ope" + - "nid\020\001\022\013\n\007profile\020\002\022\t\n\005email\020\003\022\013\n\007address" + - "\020\004\022\t\n\005phone\020\005*\216\001\n\016ConnectionType\022\013\n\007INVA" + - "LID\020\000\022\010\n\004OIDC\020\001\022\010\n\004SAML\020\002\022\014\n\010PASSWORD\020\003\022" + - "\t\n\005OAUTH\020\004\022\020\n\014PASSWORDLESS\020\005\022\t\n\005BASIC\020\006\022" + - "\n\n\006BEARER\020\007\022\013\n\007API_KEY\020\010\022\014\n\010WEBAUTHN\020\t*`" + - "\n\020ConnectionStatus\022!\n\035CONNECTION_STATUS_" + - "UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\017\n\013IN_PROGRESS\020" + - "\002\022\r\n\tCOMPLETED\020\003*\230\002\n\022ConnectionProvider\022" + - "#\n\037CONNECTION_PROVIDER_UNSPECIFIED\020\000\022\010\n\004" + - "OKTA\020\001\022\n\n\006GOOGLE\020\002\022\020\n\014MICROSOFT_AD\020\003\022\t\n\005" + - "AUTH0\020\004\022\014\n\010ONELOGIN\020\005\022\021\n\rPING_IDENTITY\020\006" + - "\022\r\n\tJUMPCLOUD\020\007\022\n\n\006CUSTOM\020\010\022\n\n\006GITHUB\020\t\022" + - "\n\n\006GITLAB\020\n\022\014\n\010LINKEDIN\020\013\022\016\n\nSALESFORCE\020" + - "\014\022\r\n\tMICROSOFT\020\r\022\021\n\rIDP_SIMULATOR\020\016\022\014\n\010S" + - "CALEKIT\020\017\022\010\n\004ADFS\020\0202\222>\n\021ConnectionServic" + - "e\022\221\003\n\033CreateEnvironmentConnection\022;.scal" + - "ekit.v1.connections.CreateEnvironmentCon" + - "nectionRequest\0321.scalekit.v1.connections" + - ".CreateConnectionResponse\"\201\002\222A\301\001\n\013Connec" + - "tions\022\027Create a new connection\0328Establis" + - "h a new connection for the specified env" + - "ironmentJ_\n\003201\022X\n\037Connection created su" + - "ccessfully\0225\n3\0321.scalekit.v1.connections" + - ".CreateConnectionResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007P" + - "REVIEW\202\323\344\223\002!\"\023/api/v1/connections:\nconne" + - "ction\022\263\003\n\020CreateConnection\0220.scalekit.v1" + - ".connections.CreateConnectionRequest\0321.s" + - "calekit.v1.connections.CreateConnectionR" + - "esponse\"\271\002\222A\306\001\n\013Connections\022\027Create a ne" + - "w connection\032=Establish a new SSO connec" + - "tion for the specified organizationJ_\n\0032" + - "01\022X\n\037Connection created successfully\0225\n" + - "3\0321.scalekit.v1.connections.CreateConnec" + - "tionResponse\202\265\030\025\n\021connections_write\030t\372\322\344" + - "\223\002\t\022\007PREVIEW\202\323\344\223\002A\"3/api/v1/organization" + - "s/{organization_id}/connections:\nconnect" + - "ion\022\315\004\n\031AssignDomainsToConnection\0229.scal" + - "ekit.v1.connections.AssignDomainsToConne" + - "ctionRequest\032:.scalekit.v1.connections.A" + - "ssignDomainsToConnectionResponse\"\270\003\222A\266\002\n" + - "\013Connections\022\036Assign domains to a connec" + - "tion\032\236\001Assigns one or more domains to a " + - "specific connection within an organizati" + - "on. This allows the connection to be use" + - "d for authentication on the specified do" + - "mainsJf\n\003200\022_\n\035Domains assigned success" + - "fully\022>\n<\032:.scalekit.v1.connections.Assi" + - "gnDomainsToConnectionResponse\202\265\030\025\n\021conne" + - "ctions_write\030t\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002P\032K/ap" + - "i/v1/organizations/{organization_id}/con" + - "nections/{connection_id}/domains:\001*\022\262\003\n\030" + - "GetEnvironmentConnection\0228.scalekit.v1.c" + - "onnections.GetEnvironmentConnectionReque" + - "st\032..scalekit.v1.connections.GetConnecti" + - "onResponse\"\253\002\222A\347\001\n\013Connections\022\033Retrieve" + - " connection details\032SObtain detailed inf" + - "ormation about a specific connection usi" + - "ng its unique identifierJf\n\003200\022_\n)Succe" + - "ssfully retrieved connection details\0222\n0" + - "\032..scalekit.v1.connections.GetConnection" + - "Response\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002%\022#/ap" + - "i/v1/connections/{connection_id}\022\316\004\n\rGet" + - "Connection\022-.scalekit.v1.connections.Get" + - "ConnectionRequest\032..scalekit.v1.connecti" + - "ons.GetConnectionResponse\"\335\003\222A\201\003\n\013Connec" + - "tions\022\026Get connection details\032\321\001Retrieve" + - "s the complete configuration and status " + - "details for a specific connection by its" + - " ID within an organization. Returns all " + - "connection properties including provider" + - " settings, protocols, and current status" + - ".J\205\001\n\003200\022~\nHSuccessfully retrieved conn" + - "ection details for the specified organiz" + - "ation\0222\n0\032..scalekit.v1.connections.GetC" + - "onnectionResponse\202\265\030\024\n\020connections_read\030" + - "t\202\323\344\223\002:\0228/api/v1/organizations/{organiza" + - "tion_id}/connections/{id}\022\344\002\n\017ListConnec" + - "tions\022/.scalekit.v1.connections.ListConn" + - "ectionsRequest\0320.scalekit.v1.connections" + - ".ListConnectionsResponse\"\355\001\222A\266\001\n\013Connect" + - "ions\022\020List connections\0322Retrieves a list" + - " of connections in the environmentJa\n\00320" + - "0\022Z\n\"Successfully retrieved connections\022" + - "4\n2\0320.scalekit.v1.connections.ListConnec" + - "tionsResponse\202\265\030\024\n\020connections_read\030t\202\323\344" + - "\223\002\025\022\023/api/v1/connections\022\265\003\n\033ListOrganiz" + - "ationConnections\022;.scalekit.v1.connectio" + - "ns.ListOrganizationConnectionsRequest\032<." + - "scalekit.v1.connections.ListOrganization" + - "ConnectionsResponse\"\232\002\222A\326\001\n\013Connections\022" + - "\035List organization connections\0329Retrieve" + - "s a list of connections for all the orga" + - "nizationsJm\n\003200\022f\n\"Successfully retriev" + - "ed connections\022@\n>\032<.scalekit.v1.connect" + - "ions.ListOrganizationConnectionsResponse" + - "\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002%\022#/api/v1/org" + - "anizations/-/connections\022\315\003\n\035SearchOrgan" + - "izationConnections\022=.scalekit.v1.connect" + - "ions.SearchOrganizationConnectionsReques" + - "t\032>.scalekit.v1.connections.SearchOrgani" + - "zationConnectionsResponse\"\254\002\222A\341\001\n\013Connec" + - "tions\022\037Search organization connections\032D" + - "Search with query or filters provided an" + - "d return list of connectionsJk\n\003200\022d\n\036S" + - "uccessfully found connections\022B\n@\032>.scal" + - "ekit.v1.connections.SearchOrganizationCo" + - "nnectionsResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323" + - "\344\223\002,\022*/api/v1/organizations/-/connection" + - "s:search\022\361\002\n\033UpdateEnvironmentConnection" + - "\022;.scalekit.v1.connections.UpdateEnviron" + - "mentConnectionRequest\0321.scalekit.v1.conn" + - "ections.UpdateConnectionResponse\"\341\001\222A\221\001\n" + - "\013Connections\022\023Update a connection\032\027Updat" + - "e a SSO ConnectionJT\n\003200\022M\n\024Updated Suc" + + "P logoutJ\004trueR\016idpSloRequired\022\226\001\n\nsp_sl" + + "o_url\030\025 \001(\0132\034.google.protobuf.StringValu" + + "eBZ\222AT2\030Service Provider SLO urlJ8\"https" + + "://yourapp.com/sso/v1/saml/conn_1234/slo" + + "/callback\"\340A\003R\010spSloUrl\022\306\001\n\032sync_user_pr" + + "ofile_on_login\030\026 \001(\0132\032.google.protobuf.B" + + "oolValueBn\222Ak2cIndicates whether user pr" + + "ofiles should be synchronized with the i" + + "dentity provider upon each log-in.J\004true" + + "R\026syncUserProfileOnLogin\022\272\001\n!jit_provisi" + + "oning_with_sso_enabled\030\027 \001(\0132\032.google.pr" + + "otobuf.BoolValueBT\222AQ2IIndicates if Just" + + " In Time user provisioning is enabled fo" + + "r the connectionJ\004trueR\035jitProvisioningW" + + "ithSsoEnabled\"\277\003\n\016IDPCertificate\0226\n\013cert" + + "ificate\030\001 \001(\tB\024\222A\0212\017IDP CertificateR\013cer" + + "tificate\022s\n\013create_time\030\002 \001(\0132\032.google.p" + + "rotobuf.TimestampB6\222A32\031Certificate Crea" + + "tion TimeJ\026\"2021-09-01T00:00:00Z\"R\ncreat" + + "eTime\022q\n\013expiry_time\030\003 \001(\0132\032.google.prot" + + "obuf.TimestampB4\222A12\027Certificate Expiry " + + "TimeJ\026\"2021-09-01T00:00:00Z\"R\nexpiryTime" + + "\0228\n\002id\030\004 \001(\tB(\222A%2\016Certificate IDJ\023\"cert" + + "_123123123123\"R\002id\022S\n\006issuer\030\005 \001(\tB;\222A82" + + "\022Certificate IssuerJ\"\"https://youridp.co" + + "m/service/saml\"R\006issuer\"b\n\026GetOIDCMetada" + + "taRequest\022H\n\010metadata\030\001 \001(\0132,.scalekit.v" + + "1.connections.OIDCMetadataRequestR\010metad" + + "ata\"9\n\023OIDCMetadataRequest\022\"\n\006issuer\030\001 \001" + + "(\tB\n\272H\007r\005\020\001\030\310\001R\006issuer\"\327\001\n\027GetOIDCMetada" + + "taResponse\022\026\n\006issuer\030\001 \001(\tR\006issuer\0225\n\026au" + + "thorization_endpoint\030\002 \001(\tR\025authorizatio" + + "nEndpoint\022%\n\016token_endpoint\030\003 \001(\tR\rtoken" + + "Endpoint\022+\n\021userinfo_endpoint\030\004 \001(\tR\020use" + + "rinfoEndpoint\022\031\n\010jwks_uri\030\005 \001(\tR\007jwksUri" + + "\"b\n\026GetSAMLMetadataRequest\022H\n\010metadata\030\001" + + " \001(\0132,.scalekit.v1.connections.SAMLMetad" + + "ataRequestR\010metadata\"D\n\023SAMLMetadataRequ" + + "est\022-\n\014metadata_url\030\001 \001(\tB\n\272H\007r\005\020\001\030\310\001R\013m" + + "etadataUrl\"\264\002\n\027GetSAMLMetadataResponse\022\"" + + "\n\ridp_entity_id\030\001 \001(\tR\013idpEntityId\022\036\n\013id" + + "p_sso_url\030\002 \001(\tR\tidpSsoUrl\022\036\n\013idp_slo_ur" + + "l\030\003 \001(\tR\tidpSloUrl\022)\n\020idp_certificates\030\004" + + " \003(\tR\017idpCertificates\022+\n\022idp_name_id_for" + + "mat\030\005 \001(\tR\017idpNameIdFormat\022\'\n\017request_bi" + + "nding\030\006 \001(\tR\016requestBinding\0224\n\026want_asse" + + "rtions_signed\030\007 \001(\010R\024wantAssertionsSigne" + + "d\"u\n GetSAMLCertificateDetailsRequest\022Q\n" + + "\013certificate\030\001 \001(\0132/.scalekit.v1.connect" + + "ions.SAMLCertificateRequestR\013certificate" + + "\"5\n\026SAMLCertificateRequest\022\033\n\004text\030\001 \001(\t" + + "B\007\272H\004r\002\020\001R\004text\"\245\001\n!GetSAMLCertificateDe" + + "tailsResponse\022\022\n\004text\030\001 \001(\tR\004text\022\033\n\tnot" + + "_after\030\002 \001(\003R\010notAfter\022\035\n\nnot_before\030\003 \001" + + "(\003R\tnotBefore\022\030\n\007subject\030\004 \001(\tR\007subject\022" + + "\026\n\006issuer\030\005 \001(\tR\006issuer\"\206\001\n\036GetConnectio" + + "nTestResultRequest\022,\n\rconnection_id\030\001 \001(" + + "\tB\007\272H\004r\002\020\001R\014connectionId\0226\n\017test_request" + + "_id\030\002 \001(\tB\016\272H\013r\t\020\001:\005test_R\rtestRequestId" + + "\"\275\002\n\037GetConnectionTestResultResponse\022A\n\006" + + "status\030\001 \001(\0162).scalekit.v1.connections.T" + + "estResultStatusR\006status\022 \n\tuser_info\030\002 \001" + + "(\tH\000R\010userInfo\210\001\001\022\031\n\005error\030\003 \001(\tH\001R\005erro" + + "r\210\001\001\0220\n\021error_description\030\004 \001(\tH\002R\020error" + + "Description\210\001\001\022(\n\rerror_details\030\005 \001(\tH\003R" + + "\014errorDetails\210\001\001B\014\n\n_user_infoB\010\n\006_error" + + "B\024\n\022_error_descriptionB\020\n\016_error_details" + + "\"\032\n\030PasswordConnectionConfig\"9\n\005Flags\022\031\n" + + "\010is_login\030\001 \001(\010R\007isLogin\022\025\n\006is_app\030\002 \001(\010" + + "R\005isApp\"\252\003\n\031ListAppConnectionsRequest\022\200\001" + + "\n\tpage_size\030\001 \001(\rBc\222AY2SMaximum number o" + + "f organizations to return per page. Valu" + + "e must be between 1 and 30.J\00230\272H\004*\002\030\036R\010" + + "pageSize\022\245\001\n\npage_token\030\002 \001(\tB\205\001\222A\201\0012aTo" + + "ken from a previous response for paginat" + + "ion. Provide this to retrieve the next p" + + "age of results.J\034eyJwYWdlIjoyLCJsaW1pdCI" + + "6MzB9R\tpageToken\022U\n\010provider\030\003 \001(\tB4\222A(2" + + "\036Filter connections by providerJ\006\"OKTA\"\272" + + "H\006r\004\020\001\0302H\000R\010provider\210\001\001B\013\n\t_provider\"\352\003\n" + + "\032ListAppConnectionsResponse\022\201\001\n\013connecti" + + "ons\030\001 \003(\0132\'.scalekit.v1.connections.List" + + "ConnectionB6\222A321List of connections mat" + + "ching the request criteriaR\013connections\022" + + "o\n\017next_page_token\030\002 \001(\tBG\222AD2\"Token for" + + " the next page of resultsJ\036\"eyJwYWdlIjoy" + + "LCJsaW1pdCI6MzB9\"R\rnextPageToken\022s\n\017prev" + + "_page_token\030\003 \001(\tBK\222AH2&Token for the pr" + + "evious page of resultsJ\036\"eyJwYWdlIjoyLCJ" + + "saW1pdCI6MzB9\"R\rprevPageToken\022b\n\ntotal_s" + + "ize\030\004 \001(\rBC\222A@29Total number of connecti" + + "ons matching the request criteriaJ\003100R\t" + + "totalSize\"\213\001\n\033GetConnectionContextReques" + + "t\0228\n\rconnection_id\030\001 \001(\tB\023\272H\020r\013\020\001\030 :\005con" + + "n_\310\001\001R\014connectionId\0222\n\017organization_id\030\002" + + " \001(\tB\t\272H\006r\004\020\000\030 R\016organizationId\"Q\n\034GetCo" + + "nnectionContextResponse\0221\n\007context\030\001 \001(\013" + + "2\027.google.protobuf.StructR\007context\"\301\001\n\036U" + + "pdateConnectionContextRequest\0228\n\rconnect" + + "ion_id\030\001 \001(\tB\023\272H\020r\013\020\001\030 :\005conn_\310\001\001R\014conne" + + "ctionId\0222\n\017organization_id\030\002 \001(\tB\t\272H\006r\004\020" + + "\000\030 R\016organizationId\0221\n\007context\030\003 \001(\0132\027.g" + + "oogle.protobuf.StructR\007context*W\n\021CodeCh" + + "allengeType\022#\n\037CODE_CHALLENGE_TYPE_UNSPE" + + "CIFIED\020\000\022\013\n\007NUMERIC\020\001\022\020\n\014ALPHANUMERIC\020\002*" + + "R\n\021ConfigurationType\022\"\n\036CONFIGURATION_TY" + + "PE_UNSPECIFIED\020\000\022\r\n\tDISCOVERY\020\001\022\n\n\006MANUA" + + "L\020\002*a\n\014NameIdFormat\022\026\n\022NAME_ID_FORMAT_NI" + + "L\020\000\022\017\n\013UNSPECIFIED\020\001\022\t\n\005EMAIL\020\002\022\r\n\tTRANS" + + "IENT\020\003\022\016\n\nPERSISTENT\020\004*U\n\020PasswordlessTy" + + "pe\022 \n\034PasswordlessType_UNSPECIFIED\020\000\022\010\n\004" + + "LINK\020\001\022\007\n\003OTP\020\002\022\014\n\010LINK_OTP\020\003*9\n\020TestRes" + + "ultStatus\022\013\n\007PENDING\020\000\022\013\n\007SUCCESS\020\001\022\013\n\007F" + + "AILURE\020\002*\330\001\n\022SAMLSigningOptions\022$\n SAML_" + + "SIGNING_OPTIONS_UNSPECIFIED\020\000\022\016\n\nNO_SIGN" + + "ING\020\001\022\036\n\032SAML_ONLY_RESPONSE_SIGNING\020\002\022\037\n" + + "\033SAML_ONLY_ASSERTION_SIGNING\020\003\022#\n\037SAML_R" + + "ESPONSE_ASSERTION_SIGNING\020\004\022&\n\"SAML_RESP" + + "ONSE_OR_ASSERTION_SIGNING\020\005*S\n\016RequestBi" + + "nding\022\037\n\033REQUEST_BINDING_UNSPECIFIED\020\000\022\r" + + "\n\tHTTP_POST\020\001\022\021\n\rHTTP_REDIRECT\020\002*P\n\rToke" + + "nAuthType\022\037\n\033TOKEN_AUTH_TYPE_UNSPECIFIED" + + "\020\000\022\016\n\nURL_PARAMS\020\001\022\016\n\nBASIC_AUTH\020\002*c\n\tOI" + + "DCScope\022\032\n\026OIDC_SCOPE_UNSPECIFIED\020\000\022\n\n\006o" + + "penid\020\001\022\013\n\007profile\020\002\022\t\n\005email\020\003\022\013\n\007addre" + + "ss\020\004\022\t\n\005phone\020\005*\300\001\n\016ConnectionType\022\013\n\007IN" + + "VALID\020\000\022\010\n\004OIDC\020\001\022\010\n\004SAML\020\002\022\014\n\010PASSWORD\020" + + "\003\022\t\n\005OAUTH\020\004\022\020\n\014PASSWORDLESS\020\005\022\t\n\005BASIC\020" + + "\006\022\n\n\006BEARER\020\007\022\013\n\007API_KEY\020\010\022\014\n\010WEBAUTHN\020\t" + + "\022\r\n\tOAUTH_M2M\020\n\022\021\n\rTRELLO_OAUTH1\020\013\022\016\n\nGO" + + "OGLE_DWD\020\014*`\n\020ConnectionStatus\022!\n\035CONNEC" + + "TION_STATUS_UNSPECIFIED\020\000\022\t\n\005DRAFT\020\001\022\017\n\013" + + "IN_PROGRESS\020\002\022\r\n\tCOMPLETED\020\003*\230\002\n\022Connect" + + "ionProvider\022#\n\037CONNECTION_PROVIDER_UNSPE" + + "CIFIED\020\000\022\010\n\004OKTA\020\001\022\n\n\006GOOGLE\020\002\022\020\n\014MICROS" + + "OFT_AD\020\003\022\t\n\005AUTH0\020\004\022\014\n\010ONELOGIN\020\005\022\021\n\rPIN" + + "G_IDENTITY\020\006\022\r\n\tJUMPCLOUD\020\007\022\n\n\006CUSTOM\020\010\022" + + "\n\n\006GITHUB\020\t\022\n\n\006GITLAB\020\n\022\014\n\010LINKEDIN\020\013\022\016\n" + + "\nSALESFORCE\020\014\022\r\n\tMICROSOFT\020\r\022\021\n\rIDP_SIMU" + + "LATOR\020\016\022\014\n\010SCALEKIT\020\017\022\010\n\004ADFS\020\0202\222G\n\021Conn" + + "ectionService\022\221\003\n\033CreateEnvironmentConne" + + "ction\022;.scalekit.v1.connections.CreateEn" + + "vironmentConnectionRequest\0321.scalekit.v1" + + ".connections.CreateConnectionResponse\"\201\002" + + "\222A\301\001\n\013Connections\022\027Create a new connecti" + + "on\0328Establish a new connection for the s" + + "pecified environmentJ_\n\003201\022X\n\037Connectio" + + "n created successfully\0225\n3\0321.scalekit.v1" + + ".connections.CreateConnectionResponse\202\265\030" + + "\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002!\"\023/api/v1/connec" + + "tions:\nconnection\022\263\003\n\020CreateConnection\0220" + + ".scalekit.v1.connections.CreateConnectio" + + "nRequest\0321.scalekit.v1.connections.Creat" + + "eConnectionResponse\"\271\002\222A\306\001\n\013Connections\022" + + "\027Create a new connection\032=Establish a ne" + + "w SSO connection for the specified organ" + + "izationJ_\n\003201\022X\n\037Connection created suc" + "cessfully\0225\n3\0321.scalekit.v1.connections." + - "UpdateConnectionResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PR" + - "EVIEW\202\323\344\223\00212#/api/v1/connections/{connec" + - "tion_id}:\nconnection\022\224\003\n\020UpdateConnectio" + - "n\0220.scalekit.v1.connections.UpdateConnec" + - "tionRequest\0321.scalekit.v1.connections.Up" + - "dateConnectionResponse\"\232\002\222A\242\001\n\013Connectio" + - "ns\022$Update a connection for organization" + - "\032\027Update a SSO ConnectionJT\n\003200\022M\n\024Upda" + - "ted Successfully\0225\n3\0321.scalekit.v1.conne" + - "ctions.UpdateConnectionResponse\202\265\030\025\n\021con" + - "nections_write\030t\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002F28/" + - "api/v1/organizations/{organization_id}/c" + - "onnections/{id}:\nconnection\022\222\002\n\033DeleteEn" + - "vironmentConnection\022;.scalekit.v1.connec" + - "tions.DeleteEnvironmentConnectionRequest" + - "\032\026.google.protobuf.Empty\"\235\001\222AZ\n\013Connecti" + - "ons\022\023Delete a connection\032\027Delete a SSO C" + - "onnectionJ\035\n\003200\022\026\n\024Deleted Successfully" + - "\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002%*#/api/v1/con" + - "nections/{connection_id}\022\242\002\n\020DeleteConne" + - "ction\0220.scalekit.v1.connections.DeleteCo" + - "nnectionRequest\032\026.google.protobuf.Empty\"" + - "\303\001\222Ak\n\013Connections\022$Delete a connection " + - "for organization\032\027Delete a SSO Connectio" + - "nJ\035\n\003200\022\026\n\024Deleted Successfully\202\265\030\002\030d\372\322" + - "\344\223\002\t\022\007PREVIEW\202\323\344\223\002:*8/api/v1/organizatio" + - "ns/{organization_id}/connections/{id}\022\337\002" + - "\n\033EnableEnvironmentConnection\022;.scalekit" + - ".v1.connections.ToggleEnvironmentConnect" + - "ionRequest\0321.scalekit.v1.connections.Tog" + - "gleConnectionResponse\"\317\001\222A\204\001\n\013Connection" + - "s\022\023Enable a connection\032\027Enable a SSO Con" + - "nectionJG\n\003200\022@\n\007Success\0225\n3\0321.scalekit" + - ".v1.connections.ToggleConnectionResponse" + - "\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002,2*/api/v1/con" + - "nections/{connection_id}:enable\022\335\004\n\020Enab" + - "leConnection\0220.scalekit.v1.connections.T" + - "oggleConnectionRequest\0321.scalekit.v1.con" + - "nections.ToggleConnectionResponse\"\343\003\222A\377\002" + - "\n\013Connections\022\036Enable organization conne" + - "ction\032\356\001Activate an existing connection " + - "for the specified organization. When ena" + - "bled, users can authenticate using this " + - "connection. This endpoint changes the co" + - "nnection state from disabled to enabled " + - "without modifying other configuration se" + - "ttingsJ_\n\003200\022X\n\037Connection enabled succ" + - "essfully\0225\n3\0321.scalekit.v1.connections.T" + - "oggleConnectionResponse\202\265\030\025\n\021connections" + - "_write\030t\202\323\344\223\002A2?/api/v1/organizations/{o" + - "rganization_id}/connections/{id}:enable\022" + - "\343\002\n\034DisableEnvironmentConnection\022;.scale" + - "kit.v1.connections.ToggleEnvironmentConn" + - "ectionRequest\0321.scalekit.v1.connections." + - "ToggleConnectionResponse\"\322\001\222A\206\001\n\013Connect" + - "ions\022\024Disable a connection\032\030Disable a SS" + - "O ConnectionJG\n\003200\022@\n\007Success\0225\n3\0321.sca" + - "lekit.v1.connections.ToggleConnectionRes" + - "ponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002-2+/api/v" + - "1/connections/{connection_id}:disable\022\347\004" + - "\n\021DisableConnection\0220.scalekit.v1.connec" + - "tions.ToggleConnectionRequest\0321.scalekit" + - ".v1.connections.ToggleConnectionResponse" + - "\"\354\003\222A\207\003\n\013Connections\022\037Disable organizati" + - "on connection\032\364\001Deactivate an existing c" + - "onnection for the specified organization" + - ". When disabled, users cannot authentica" + - "te using this connection. This endpoint " + - "changes the connection state from enable" + - "d to disabled without modifying other co" + - "nfiguration settingsJ`\n\003200\022Y\n Connectio" + - "n disabled successfully\0225\n3\0321.scalekit.v" + - "1.connections.ToggleConnectionResponse\202\265" + - "\030\025\n\021connections_write\030t\202\323\344\223\002B2@/api/v1/o" + - "rganizations/{organization_id}/connectio" + - "ns/{id}:disable\022\200\003\n\027GetConnectionTestRes" + - "ult\0227.scalekit.v1.connections.GetConnect" + - "ionTestResultRequest\0328.scalekit.v1.conne" + - "ctions.GetConnectionTestResultResponse\"\361" + - "\001\222A\215\001\n\013Connections\022\026Test connection resu" + - "lt\032\026Connection test resultJN\n\003200\022G\n\007Suc" + - "cess\022<\n:\0328.scalekit.v1.connections.GetCo" + - "nnectionTestResultResponse\202\265\030\002\030t\372\322\344\223\002\t\022\007" + - "PREVIEW\202\323\344\223\002E\022C/api/v1/connections/{conn" + - "ection_id}/test-requests/{test_request_i" + - "d}\022\366\002\n\022ListAppConnections\0222.scalekit.v1." + - "connections.ListAppConnectionsRequest\0323." + - "scalekit.v1.connections.ListAppConnectio" + - "nsResponse\"\366\001\222A\276\001\n\013Connections\022\024List App" + - " connections\0326Retrieves a list of app co" + - "nnections in the environmentJa\n\003200\022Z\n\"S" + - "uccessfully retrieved connections\0224\n2\0320." + - "scalekit.v1.connections.ListConnectionsR" + - "esponse\202\265\030\002\030d\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\031\022\027/api" + - "/v1/connections/app\032\232\001\222A\226\001\n\013Connections\022" + - "\206\001Manage enterprise connections for your" + - " Scalekit environment. This service prov" + - "ides endpoints for retrieving, and updat" + - "ing connections.B\362\001\n)com.scalekit.grpc.s" + - "calekit.v1.connectionsB\020ConnectionsProto" + - "P\001Z5github.com/scalekit-inc/scalekit/pkg" + - "/grpc/connections\242\002\003SVC\252\002\027Scalekit.V1.Co" + - "nnections\312\002\027Scalekit\\V1\\Connections\342\002#Sc" + - "alekit\\V1\\Connections\\GPBMetadata\352\002\031Scal" + - "ekit::V1::Connectionsb\006proto3" + "CreateConnectionResponse\202\265\030\025\n\021connection" + + "s_write\030t\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002A\"3/api/v1/" + + "organizations/{organization_id}/connecti" + + "ons:\nconnection\022\315\004\n\031AssignDomainsToConne" + + "ction\0229.scalekit.v1.connections.AssignDo" + + "mainsToConnectionRequest\032:.scalekit.v1.c" + + "onnections.AssignDomainsToConnectionResp" + + "onse\"\270\003\222A\266\002\n\013Connections\022\036Assign domains" + + " to a connection\032\236\001Assigns one or more d" + + "omains to a specific connection within a" + + "n organization. This allows the connecti" + + "on to be used for authentication on the " + + "specified domainsJf\n\003200\022_\n\035Domains assi" + + "gned successfully\022>\n<\032:.scalekit.v1.conn" + + "ections.AssignDomainsToConnectionRespons" + + "e\202\265\030\025\n\021connections_write\030t\372\322\344\223\002\t\022\007PREVIE" + + "W\202\323\344\223\002P\032K/api/v1/organizations/{organiza" + + "tion_id}/connections/{connection_id}/dom" + + "ains:\001*\022\263\003\n\030GetEnvironmentConnection\0228.s" + + "calekit.v1.connections.GetEnvironmentCon" + + "nectionRequest\032..scalekit.v1.connections" + + ".GetConnectionResponse\"\254\002\222A\347\001\n\013Connectio" + + "ns\022\033Retrieve connection details\032SObtain " + + "detailed information about a specific co" + + "nnection using its unique identifierJf\n\003" + + "200\022_\n)Successfully retrieved connection" + + " details\0222\n0\032..scalekit.v1.connections.G" + + "etConnectionResponse\202\265\030\003\030\304\001\372\322\344\223\002\t\022\007PREVI" + + "EW\202\323\344\223\002%\022#/api/v1/connections/{connectio" + + "n_id}\022\317\004\n\rGetConnection\022-.scalekit.v1.co" + + "nnections.GetConnectionRequest\032..scaleki" + + "t.v1.connections.GetConnectionResponse\"\336" + + "\003\222A\201\003\n\013Connections\022\026Get connection detai" + + "ls\032\321\001Retrieves the complete configuratio" + + "n and status details for a specific conn" + + "ection by its ID within an organization." + + " Returns all connection properties inclu" + + "ding provider settings, protocols, and c" + + "urrent status.J\205\001\n\003200\022~\nHSuccessfully r" + + "etrieved connection details for the spec" + + "ified organization\0222\n0\032..scalekit.v1.con" + + "nections.GetConnectionResponse\202\265\030\025\n\020conn" + + "ections_read\030\364\001\202\323\344\223\002:\0228/api/v1/organizat" + + "ions/{organization_id}/connections/{id}\022" + + "\344\002\n\017ListConnections\022/.scalekit.v1.connec" + + "tions.ListConnectionsRequest\0320.scalekit." + + "v1.connections.ListConnectionsResponse\"\355" + + "\001\222A\266\001\n\013Connections\022\020List connections\0322Re" + + "trieves a list of connections in the env" + + "ironmentJa\n\003200\022Z\n\"Successfully retrieve" + + "d connections\0224\n2\0320.scalekit.v1.connecti" + + "ons.ListConnectionsResponse\202\265\030\024\n\020connect" + + "ions_read\030t\202\323\344\223\002\025\022\023/api/v1/connections\022\265" + + "\003\n\033ListOrganizationConnections\022;.scaleki" + + "t.v1.connections.ListOrganizationConnect" + + "ionsRequest\032<.scalekit.v1.connections.Li" + + "stOrganizationConnectionsResponse\"\232\002\222A\326\001" + + "\n\013Connections\022\035List organization connect" + + "ions\0329Retrieves a list of connections fo" + + "r all the organizationsJm\n\003200\022f\n\"Succes" + + "sfully retrieved connections\022@\n>\032<.scale" + + "kit.v1.connections.ListOrganizationConne" + + "ctionsResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002" + + "%\022#/api/v1/organizations/-/connections\022\315" + + "\003\n\035SearchOrganizationConnections\022=.scale" + + "kit.v1.connections.SearchOrganizationCon" + + "nectionsRequest\032>.scalekit.v1.connection" + + "s.SearchOrganizationConnectionsResponse\"" + + "\254\002\222A\341\001\n\013Connections\022\037Search organization" + + " connections\032DSearch with query or filte" + + "rs provided and return list of connectio" + + "nsJk\n\003200\022d\n\036Successfully found connecti" + + "ons\022B\n@\032>.scalekit.v1.connections.Search" + + "OrganizationConnectionsResponse\202\265\030\002\030D\372\322\344" + + "\223\002\t\022\007PREVIEW\202\323\344\223\002,\022*/api/v1/organization" + + "s/-/connections:search\022\361\002\n\033UpdateEnviron" + + "mentConnection\022;.scalekit.v1.connections" + + ".UpdateEnvironmentConnectionRequest\0321.sc" + + "alekit.v1.connections.UpdateConnectionRe" + + "sponse\"\341\001\222A\221\001\n\013Connections\022\023Update a con" + + "nection\032\027Update a SSO ConnectionJT\n\003200\022" + + "M\n\024Updated Successfully\0225\n3\0321.scalekit.v" + + "1.connections.UpdateConnectionResponse\202\265" + + "\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\00212#/api/v1/conne" + + "ctions/{connection_id}:\nconnection\022\224\003\n\020U" + + "pdateConnection\0220.scalekit.v1.connection" + + "s.UpdateConnectionRequest\0321.scalekit.v1." + + "connections.UpdateConnectionResponse\"\232\002\222" + + "A\242\001\n\013Connections\022$Update a connection fo" + + "r organization\032\027Update a SSO ConnectionJ" + + "T\n\003200\022M\n\024Updated Successfully\0225\n3\0321.sca" + + "lekit.v1.connections.UpdateConnectionRes" + + "ponse\202\265\030\025\n\021connections_write\030t\372\322\344\223\002\t\022\007PR" + + "EVIEW\202\323\344\223\002F28/api/v1/organizations/{orga" + + "nization_id}/connections/{id}:\nconnectio" + + "n\022\222\002\n\033DeleteEnvironmentConnection\022;.scal" + + "ekit.v1.connections.DeleteEnvironmentCon" + + "nectionRequest\032\026.google.protobuf.Empty\"\235" + + "\001\222AZ\n\013Connections\022\023Delete a connection\032\027" + + "Delete a SSO ConnectionJ\035\n\003200\022\026\n\024Delete" + + "d Successfully\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002" + + "%*#/api/v1/connections/{connection_id}\022\367" + + "\003\n\020DeleteConnection\0220.scalekit.v1.connec" + + "tions.DeleteConnectionRequest\032\026.google.p" + + "rotobuf.Empty\"\230\003\222A\316\002\n\013Connections\022\025Delet" + + "e SSO connection\032\371\001Deletes an SSO connec" + + "tion from the specified organization by " + + "connection ID. Use this endpoint when an" + + " identity provider integration is no lon" + + "ger needed for the organization. Returns" + + " an empty response after the SSO connect" + + "ion is deleted successfully.J,\n\003200\022%\n#S" + + "SO connection deleted successfully\202\265\030\002\030d" + + "\202\323\344\223\002:*8/api/v1/organizations/{organizat" + + "ion_id}/connections/{id}\022\337\002\n\033EnableEnvir" + + "onmentConnection\022;.scalekit.v1.connectio" + + "ns.ToggleEnvironmentConnectionRequest\0321." + + "scalekit.v1.connections.ToggleConnection" + + "Response\"\317\001\222A\204\001\n\013Connections\022\023Enable a c" + + "onnection\032\027Enable a SSO ConnectionJG\n\00320" + + "0\022@\n\007Success\0225\n3\0321.scalekit.v1.connectio" + + "ns.ToggleConnectionResponse\202\265\030\002\030D\372\322\344\223\002\t\022" + + "\007PREVIEW\202\323\344\223\002,2*/api/v1/connections/{con" + + "nection_id}:enable\022\324\004\n\020EnableConnection\022" + + "0.scalekit.v1.connections.ToggleConnecti" + + "onRequest\0321.scalekit.v1.connections.Togg" + + "leConnectionResponse\"\332\003\222A\366\002\n\013Connections" + + "\022\025Enable SSO connection\032\356\001Activate an ex" + + "isting connection for the specified orga" + + "nization. When enabled, users can authen" + + "ticate using this connection. This endpo" + + "int changes the connection state from di" + + "sabled to enabled without modifying othe" + + "r configuration settingsJ_\n\003200\022X\n\037Conne" + + "ction enabled successfully\0225\n3\0321.scaleki" + + "t.v1.connections.ToggleConnectionRespons" + + "e\202\265\030\025\n\021connections_write\030t\202\323\344\223\002A2?/api/v" + + "1/organizations/{organization_id}/connec" + + "tions/{id}:enable\022\343\002\n\034DisableEnvironment" + + "Connection\022;.scalekit.v1.connections.Tog" + + "gleEnvironmentConnectionRequest\0321.scalek" + + "it.v1.connections.ToggleConnectionRespon" + + "se\"\322\001\222A\206\001\n\013Connections\022\024Disable a connec" + + "tion\032\030Disable a SSO ConnectionJG\n\003200\022@\n" + + "\007Success\0225\n3\0321.scalekit.v1.connections.T" + + "oggleConnectionResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PRE" + + "VIEW\202\323\344\223\002-2+/api/v1/connections/{connect" + + "ion_id}:disable\022\336\004\n\021DisableConnection\0220." + + "scalekit.v1.connections.ToggleConnection" + + "Request\0321.scalekit.v1.connections.Toggle" + + "ConnectionResponse\"\343\003\222A\376\002\n\013Connections\022\026" + + "Disable SSO connection\032\364\001Deactivate an e" + + "xisting connection for the specified org" + + "anization. When disabled, users cannot a" + + "uthenticate using this connection. This " + + "endpoint changes the connection state fr" + + "om enabled to disabled without modifying" + + " other configuration settingsJ`\n\003200\022Y\n " + + "Connection disabled successfully\0225\n3\0321.s" + + "calekit.v1.connections.ToggleConnectionR" + + "esponse\202\265\030\025\n\021connections_write\030t\202\323\344\223\002B2@" + + "/api/v1/organizations/{organization_id}/" + + "connections/{id}:disable\022\200\003\n\027GetConnecti" + + "onTestResult\0227.scalekit.v1.connections.G" + + "etConnectionTestResultRequest\0328.scalekit" + + ".v1.connections.GetConnectionTestResultR" + + "esponse\"\361\001\222A\215\001\n\013Connections\022\026Test connec" + + "tion result\032\026Connection test resultJN\n\0032" + + "00\022G\n\007Success\022<\n:\0328.scalekit.v1.connecti" + + "ons.GetConnectionTestResultResponse\202\265\030\002\030" + + "t\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002E\022C/api/v1/connecti" + + "ons/{connection_id}/test-requests/{test_" + + "request_id}\022\366\002\n\022ListAppConnections\0222.sca" + + "lekit.v1.connections.ListAppConnectionsR" + + "equest\0323.scalekit.v1.connections.ListApp" + + "ConnectionsResponse\"\366\001\222A\276\001\n\013Connections\022" + + "\024List App connections\0326Retrieves a list " + + "of app connections in the environmentJa\n" + + "\003200\022Z\n\"Successfully retrieved connectio" + + "ns\0224\n2\0320.scalekit.v1.connections.ListCon" + + "nectionsResponse\202\265\030\002\030d\372\322\344\223\002\t\022\007PREVIEW\202\323\344" + + "\223\002\031\022\027/api/v1/connections/app\022\321\003\n\024GetConn" + + "ectionContext\0224.scalekit.v1.connections." + + "GetConnectionContextRequest\0325.scalekit.v" + + "1.connections.GetConnectionContextRespon" + + "se\"\313\002\222A\255\001\n\013Connections\022\026Get connection c" + + "ontext\032 builder) { + // Use GetConnectionContextRequest.newBuilder() to construct. + private GetConnectionContextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateOrganizationSessionSettingsRequest() { - id_ = ""; - environmentId_ = ""; + private GetConnectionContextRequest() { + connectionId_ = ""; + organizationId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new CreateOrganizationSessionSettingsRequest(); + return new GetConnectionContextRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsRequest_descriptor; + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GetConnectionContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsRequest_fieldAccessorTable + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GetConnectionContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest.class, com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest.Builder.class); + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest.class, com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest.Builder.class); } - public static final int ID_FIELD_NUMBER = 1; + public static final int CONNECTION_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; + private volatile java.lang.Object connectionId_ = ""; /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The id. + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @return The connectionId. */ @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getConnectionId() { + java.lang.Object ref = connectionId_; 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(); - id_ = s; + connectionId_ = s; return s; } } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for id. + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @return The bytes for connectionId. */ @java.lang.Override public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; + getConnectionIdBytes() { + java.lang.Object ref = connectionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - id_ = b; + connectionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int ENVIRONMENT_ID_FIELD_NUMBER = 2; + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object environmentId_ = ""; + private volatile java.lang.Object organizationId_ = ""; /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The organizationId. */ @java.lang.Override - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; 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(); - environmentId_ = s; + organizationId_ = s; return s; } } /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The bytes for organizationId. */ @java.lang.Override public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - environmentId_ = b; + organizationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -133,11 +133,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environmentId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, organizationId_); } getUnknownFields().writeTo(output); } @@ -148,11 +148,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, organizationId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -164,15 +164,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest)) { + if (!(obj instanceof com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest)) { return super.equals(obj); } - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest other = (com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest) obj; + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest other = (com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getEnvironmentId() - .equals(other.getEnvironmentId())) return false; + if (!getConnectionId() + .equals(other.getConnectionId())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,53 +184,53 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getEnvironmentId().hashCode(); + hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectionId().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest parseFrom(byte[] data) + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest parseFrom(java.io.InputStream input) + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -238,26 +238,26 @@ public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSess .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest parseDelimitedFrom(java.io.InputStream input) + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest parseDelimitedFrom( + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -270,7 +270,7 @@ public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSess public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest prototype) { + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -286,26 +286,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest} + * Protobuf type {@code scalekit.v1.connections.GetConnectionContextRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest) - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:scalekit.v1.connections.GetConnectionContextRequest) + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsRequest_descriptor; + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GetConnectionContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsRequest_fieldAccessorTable + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GetConnectionContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest.class, com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest.Builder.class); + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest.class, com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest.Builder.class); } - // Construct using com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest.newBuilder() + // Construct using com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest.newBuilder() private Builder() { } @@ -319,25 +319,25 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - id_ = ""; - environmentId_ = ""; + connectionId_ = ""; + organizationId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsRequest_descriptor; + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GetConnectionContextRequest_descriptor; } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest getDefaultInstanceForType() { - return com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest.getDefaultInstance(); + public com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest.getDefaultInstance(); } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest build() { - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest result = buildPartial(); + public com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest build() { + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -345,20 +345,20 @@ public com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSett } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest buildPartial() { - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest result = new com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest(this); + public com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest result = new com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest result) { + private void buildPartial0(com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; + result.connectionId_ = connectionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.environmentId_ = environmentId_; + result.organizationId_ = organizationId_; } } @@ -396,23 +396,23 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest) { - return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest)other); + if (other instanceof com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest other) { - if (other == com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest.getDefaultInstance()) return this; + if (!other.getConnectionId().isEmpty()) { + connectionId_ = other.connectionId_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getEnvironmentId().isEmpty()) { - environmentId_ = other.environmentId_; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; bitField0_ |= 0x00000002; onChanged(); } @@ -443,12 +443,12 @@ public Builder mergeFrom( done = true; break; case 10: { - id_ = input.readStringRequireUtf8(); + connectionId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - environmentId_ = input.readStringRequireUtf8(); + organizationId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 @@ -469,145 +469,145 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object id_ = ""; + private java.lang.Object connectionId_ = ""; /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The id. + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @return The connectionId. */ - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getConnectionId() { + java.lang.Object ref = connectionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - id_ = s; + connectionId_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for id. + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @return The bytes for connectionId. */ public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; + getConnectionIdBytes() { + java.lang.Object ref = connectionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - id_ = b; + connectionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The id to set. + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @param value The connectionId to set. * @return This builder for chaining. */ - public Builder setId( + public Builder setConnectionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + connectionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } * @return This builder for chaining. */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); + public Builder clearConnectionId() { + connectionId_ = getDefaultInstance().getConnectionId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for id to set. + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @param value The bytes for connectionId to set. * @return This builder for chaining. */ - public Builder setIdBytes( + public Builder setConnectionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + connectionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object environmentId_ = ""; + private java.lang.Object organizationId_ = ""; /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The organizationId. */ - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - environmentId_ = s; + organizationId_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The bytes for organizationId. */ public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - environmentId_ = b; + organizationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The environmentId to set. + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @param value The organizationId to set. * @return This builder for chaining. */ - public Builder setEnvironmentId( + public Builder setOrganizationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environmentId_ = value; + organizationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @return This builder for chaining. */ - public Builder clearEnvironmentId() { - environmentId_ = getDefaultInstance().getEnvironmentId(); + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for environmentId to set. + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @param value The bytes for organizationId to set. * @return This builder for chaining. */ - public Builder setEnvironmentIdBytes( + public Builder setOrganizationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environmentId_ = value; + organizationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -625,23 +625,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest) + // @@protoc_insertion_point(builder_scope:scalekit.v1.connections.GetConnectionContextRequest) } - // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest) - private static final com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:scalekit.v1.connections.GetConnectionContextRequest) + private static final com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest(); + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest(); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest getDefaultInstance() { + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public CreateOrganizationSessionSettingsRequest parsePartialFrom( + public GetConnectionContextRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -660,17 +660,17 @@ public CreateOrganizationSessionSettingsRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest getDefaultInstanceForType() { + public com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GetConnectionContextRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GetConnectionContextRequestOrBuilder.java new file mode 100644 index 00000000..c7d6bc4f --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GetConnectionContextRequestOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connections/connections.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connections; + +public interface GetConnectionContextRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.connections.GetConnectionContextRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @return The connectionId. + */ + java.lang.String getConnectionId(); + /** + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @return The bytes for connectionId. + */ + com.google.protobuf.ByteString + getConnectionIdBytes(); + + /** + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GetConnectionContextResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GetConnectionContextResponse.java new file mode 100644 index 00000000..45668259 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GetConnectionContextResponse.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connections/connections.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connections; + +/** + * Protobuf type {@code scalekit.v1.connections.GetConnectionContextResponse} + */ +public final class GetConnectionContextResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.connections.GetConnectionContextResponse) + GetConnectionContextResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetConnectionContextResponse.newBuilder() to construct. + private GetConnectionContextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetConnectionContextResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetConnectionContextResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GetConnectionContextResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GetConnectionContextResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse.class, com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse.Builder.class); + } + + private int bitField0_; + public static final int CONTEXT_FIELD_NUMBER = 1; + private com.google.protobuf.Struct context_; + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + * @return The context. + */ + @java.lang.Override + public com.google.protobuf.Struct getContext() { + return context_ == null ? com.google.protobuf.Struct.getDefaultInstance() : context_; + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getContextOrBuilder() { + return context_ == null ? com.google.protobuf.Struct.getDefaultInstance() : context_; + } + + 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, getContext()); + } + 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, getContext()); + } + 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.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse other = (com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse) obj; + + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext() + .equals(other.getContext())) 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 (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.connections.GetConnectionContextResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.connections.GetConnectionContextResponse) + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GetConnectionContextResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GetConnectionContextResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse.class, com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getContextFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GetConnectionContextResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse build() { + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse result = new com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = contextBuilder_ == null + ? context_ + : contextBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse.getDefaultInstance()) return this; + if (other.hasContext()) { + mergeContext(other.getContext()); + } + 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( + getContextFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.google.protobuf.Struct context_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> contextBuilder_; + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + * @return Whether the context field is set. + */ + public boolean hasContext() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + * @return The context. + */ + public com.google.protobuf.Struct getContext() { + if (contextBuilder_ == null) { + return context_ == null ? com.google.protobuf.Struct.getDefaultInstance() : context_; + } else { + return contextBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + public Builder setContext(com.google.protobuf.Struct value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + } else { + contextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + public Builder setContext( + com.google.protobuf.Struct.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + public Builder mergeContext(com.google.protobuf.Struct value) { + if (contextBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + context_ != null && + context_ != com.google.protobuf.Struct.getDefaultInstance()) { + getContextBuilder().mergeFrom(value); + } else { + context_ = value; + } + } else { + contextBuilder_.mergeFrom(value); + } + if (context_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + public Builder clearContext() { + bitField0_ = (bitField0_ & ~0x00000001); + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + public com.google.protobuf.Struct.Builder getContextBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getContextFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + public com.google.protobuf.StructOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); + } else { + return context_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : context_; + } + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getContext(), + getParentForChildren(), + isClean()); + context_ = null; + } + return contextBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.connections.GetConnectionContextResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.connections.GetConnectionContextResponse) + private static final com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConnectionContextResponse 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.scalekit.grpc.scalekit.v1.connections.GetConnectionContextResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GetConnectionContextResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GetConnectionContextResponseOrBuilder.java new file mode 100644 index 00000000..6a75d02e --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GetConnectionContextResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connections/connections.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connections; + +public interface GetConnectionContextResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.connections.GetConnectionContextResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + * @return The context. + */ + com.google.protobuf.Struct getContext(); + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + com.google.protobuf.StructOrBuilder getContextOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GoogleDWDConfig.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GoogleDWDConfig.java new file mode 100644 index 00000000..d53893d6 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GoogleDWDConfig.java @@ -0,0 +1,973 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connections/connections.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connections; + +/** + * Protobuf type {@code scalekit.v1.connections.GoogleDWDConfig} + */ +public final class GoogleDWDConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.connections.GoogleDWDConfig) + GoogleDWDConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use GoogleDWDConfig.newBuilder() to construct. + private GoogleDWDConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GoogleDWDConfig() { + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GoogleDWDConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GoogleDWDConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GoogleDWDConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.class, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.Builder.class); + } + + private int bitField0_; + public static final int SERVICE_ACCOUNT_JSON_FIELD_NUMBER = 1; + private com.google.protobuf.StringValue serviceAccountJson_; + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the serviceAccountJson field is set. + */ + @java.lang.Override + public boolean hasServiceAccountJson() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The serviceAccountJson. + */ + @java.lang.Override + public com.google.protobuf.StringValue getServiceAccountJson() { + return serviceAccountJson_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : serviceAccountJson_; + } + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.StringValueOrBuilder getServiceAccountJsonOrBuilder() { + return serviceAccountJson_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : serviceAccountJson_; + } + + public static final int SCOPES_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + return scopes_; + } + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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); + } + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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 TOKEN_URI_FIELD_NUMBER = 3; + private com.google.protobuf.StringValue tokenUri_; + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the tokenUri field is set. + */ + @java.lang.Override + public boolean hasTokenUri() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The tokenUri. + */ + @java.lang.Override + public com.google.protobuf.StringValue getTokenUri() { + return tokenUri_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : tokenUri_; + } + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.StringValueOrBuilder getTokenUriOrBuilder() { + return tokenUri_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : tokenUri_; + } + + 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, getServiceAccountJson()); + } + for (int i = 0; i < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, scopes_.getRaw(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getTokenUri()); + } + 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, getServiceAccountJson()); + } + { + int dataSize = 0; + for (int i = 0; i < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getTokenUri()); + } + 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.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig other = (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) obj; + + if (hasServiceAccountJson() != other.hasServiceAccountJson()) return false; + if (hasServiceAccountJson()) { + if (!getServiceAccountJson() + .equals(other.getServiceAccountJson())) return false; + } + if (!getScopesList() + .equals(other.getScopesList())) return false; + if (hasTokenUri() != other.hasTokenUri()) return false; + if (hasTokenUri()) { + if (!getTokenUri() + .equals(other.getTokenUri())) 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 (hasServiceAccountJson()) { + hash = (37 * hash) + SERVICE_ACCOUNT_JSON_FIELD_NUMBER; + hash = (53 * hash) + getServiceAccountJson().hashCode(); + } + if (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + if (hasTokenUri()) { + hash = (37 * hash) + TOKEN_URI_FIELD_NUMBER; + hash = (53 * hash) + getTokenUri().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.connections.GoogleDWDConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.connections.GoogleDWDConfig) + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GoogleDWDConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GoogleDWDConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.class, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getServiceAccountJsonFieldBuilder(); + getTokenUriFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + serviceAccountJson_ = null; + if (serviceAccountJsonBuilder_ != null) { + serviceAccountJsonBuilder_.dispose(); + serviceAccountJsonBuilder_ = null; + } + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + tokenUri_ = null; + if (tokenUriBuilder_ != null) { + tokenUriBuilder_.dispose(); + tokenUriBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_GoogleDWDConfig_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig build() { + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig buildPartial() { + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig result = new com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.serviceAccountJson_ = serviceAccountJsonBuilder_ == null + ? serviceAccountJson_ + : serviceAccountJsonBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tokenUri_ = tokenUriBuilder_ == null + ? tokenUri_ + : tokenUriBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig other) { + if (other == com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance()) return this; + if (other.hasServiceAccountJson()) { + mergeServiceAccountJson(other.getServiceAccountJson()); + } + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000002; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (other.hasTokenUri()) { + mergeTokenUri(other.getTokenUri()); + } + 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( + getServiceAccountJsonFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + java.lang.String s = input.readStringRequireUtf8(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 18 + case 26: { + input.readMessage( + getTokenUriFieldBuilder().getBuilder(), + extensionRegistry); + 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.StringValue serviceAccountJson_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> serviceAccountJsonBuilder_; + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the serviceAccountJson field is set. + */ + public boolean hasServiceAccountJson() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The serviceAccountJson. + */ + public com.google.protobuf.StringValue getServiceAccountJson() { + if (serviceAccountJsonBuilder_ == null) { + return serviceAccountJson_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : serviceAccountJson_; + } else { + return serviceAccountJsonBuilder_.getMessage(); + } + } + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setServiceAccountJson(com.google.protobuf.StringValue value) { + if (serviceAccountJsonBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + serviceAccountJson_ = value; + } else { + serviceAccountJsonBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setServiceAccountJson( + com.google.protobuf.StringValue.Builder builderForValue) { + if (serviceAccountJsonBuilder_ == null) { + serviceAccountJson_ = builderForValue.build(); + } else { + serviceAccountJsonBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeServiceAccountJson(com.google.protobuf.StringValue value) { + if (serviceAccountJsonBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + serviceAccountJson_ != null && + serviceAccountJson_ != com.google.protobuf.StringValue.getDefaultInstance()) { + getServiceAccountJsonBuilder().mergeFrom(value); + } else { + serviceAccountJson_ = value; + } + } else { + serviceAccountJsonBuilder_.mergeFrom(value); + } + if (serviceAccountJson_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearServiceAccountJson() { + bitField0_ = (bitField0_ & ~0x00000001); + serviceAccountJson_ = null; + if (serviceAccountJsonBuilder_ != null) { + serviceAccountJsonBuilder_.dispose(); + serviceAccountJsonBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.StringValue.Builder getServiceAccountJsonBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getServiceAccountJsonFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.StringValueOrBuilder getServiceAccountJsonOrBuilder() { + if (serviceAccountJsonBuilder_ != null) { + return serviceAccountJsonBuilder_.getMessageOrBuilder(); + } else { + return serviceAccountJson_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : serviceAccountJson_; + } + } + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getServiceAccountJsonFieldBuilder() { + if (serviceAccountJsonBuilder_ == null) { + serviceAccountJsonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getServiceAccountJson(), + getParentForChildren(), + isClean()); + serviceAccountJson_ = null; + } + return serviceAccountJsonBuilder_; + } + + 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_ |= 0x00000002; + } + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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); + } + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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); + } + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002);; + onChanged(); + return this; + } + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.StringValue tokenUri_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> tokenUriBuilder_; + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the tokenUri field is set. + */ + public boolean hasTokenUri() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The tokenUri. + */ + public com.google.protobuf.StringValue getTokenUri() { + if (tokenUriBuilder_ == null) { + return tokenUri_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : tokenUri_; + } else { + return tokenUriBuilder_.getMessage(); + } + } + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setTokenUri(com.google.protobuf.StringValue value) { + if (tokenUriBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokenUri_ = value; + } else { + tokenUriBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setTokenUri( + com.google.protobuf.StringValue.Builder builderForValue) { + if (tokenUriBuilder_ == null) { + tokenUri_ = builderForValue.build(); + } else { + tokenUriBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeTokenUri(com.google.protobuf.StringValue value) { + if (tokenUriBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + tokenUri_ != null && + tokenUri_ != com.google.protobuf.StringValue.getDefaultInstance()) { + getTokenUriBuilder().mergeFrom(value); + } else { + tokenUri_ = value; + } + } else { + tokenUriBuilder_.mergeFrom(value); + } + if (tokenUri_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearTokenUri() { + bitField0_ = (bitField0_ & ~0x00000004); + tokenUri_ = null; + if (tokenUriBuilder_ != null) { + tokenUriBuilder_.dispose(); + tokenUriBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.StringValue.Builder getTokenUriBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getTokenUriFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.StringValueOrBuilder getTokenUriOrBuilder() { + if (tokenUriBuilder_ != null) { + return tokenUriBuilder_.getMessageOrBuilder(); + } else { + return tokenUri_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : tokenUri_; + } + } + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getTokenUriFieldBuilder() { + if (tokenUriBuilder_ == null) { + tokenUriBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getTokenUri(), + getParentForChildren(), + isClean()); + tokenUri_ = null; + } + return tokenUriBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.connections.GoogleDWDConfig) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.connections.GoogleDWDConfig) + private static final com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig(); + } + + public static com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleDWDConfig 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.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GoogleDWDConfigOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GoogleDWDConfigOrBuilder.java new file mode 100644 index 00000000..9a6892c8 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/GoogleDWDConfigOrBuilder.java @@ -0,0 +1,65 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connections/connections.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connections; + +public interface GoogleDWDConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.connections.GoogleDWDConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the serviceAccountJson field is set. + */ + boolean hasServiceAccountJson(); + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The serviceAccountJson. + */ + com.google.protobuf.StringValue getServiceAccountJson(); + /** + * .google.protobuf.StringValue service_account_json = 1 [json_name = "serviceAccountJson", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.StringValueOrBuilder getServiceAccountJsonOrBuilder(); + + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the scopes. + */ + java.util.List + getScopesList(); + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of scopes. + */ + int getScopesCount(); + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + /** + * repeated string scopes = 2 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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); + + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the tokenUri field is set. + */ + boolean hasTokenUri(); + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The tokenUri. + */ + com.google.protobuf.StringValue getTokenUri(); + /** + * .google.protobuf.StringValue token_uri = 3 [json_name = "tokenUri", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.StringValueOrBuilder getTokenUriOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OAuthConnectionConfig.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OAuthConnectionConfig.java index f6921cd3..ea6638b4 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OAuthConnectionConfig.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OAuthConnectionConfig.java @@ -405,6 +405,136 @@ public com.google.protobuf.BoolValueOrBuilder getSyncUserProfileOnLoginOrBuilder return syncUserProfileOnLogin_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : syncUserProfileOnLogin_; } + public static final int TOKEN_ACCESS_TYPE_FIELD_NUMBER = 19; + private com.google.protobuf.StringValue tokenAccessType_; + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the tokenAccessType field is set. + */ + @java.lang.Override + public boolean hasTokenAccessType() { + return ((bitField0_ & 0x00000800) != 0); + } + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The tokenAccessType. + */ + @java.lang.Override + public com.google.protobuf.StringValue getTokenAccessType() { + return tokenAccessType_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : tokenAccessType_; + } + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.StringValueOrBuilder getTokenAccessTypeOrBuilder() { + return tokenAccessType_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : tokenAccessType_; + } + + public static final int TENANT_ID_FIELD_NUMBER = 20; + private com.google.protobuf.StringValue tenantId_; + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the tenantId field is set. + */ + @java.lang.Override + public boolean hasTenantId() { + return ((bitField0_ & 0x00001000) != 0); + } + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The tenantId. + */ + @java.lang.Override + public com.google.protobuf.StringValue getTenantId() { + return tenantId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : tenantId_; + } + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.StringValueOrBuilder getTenantIdOrBuilder() { + return tenantId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : tenantId_; + } + + public static final int IS_CIMD_FIELD_NUMBER = 21; + private com.google.protobuf.BoolValue isCimd_; + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the isCimd field is set. + */ + @java.lang.Override + public boolean hasIsCimd() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The isCimd. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getIsCimd() { + return isCimd_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCimd_; + } + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getIsCimdOrBuilder() { + return isCimd_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCimd_; + } + + public static final int APP_NAME_FIELD_NUMBER = 22; + private com.google.protobuf.StringValue appName_; + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the appName field is set. + */ + @java.lang.Override + public boolean hasAppName() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The appName. + */ + @java.lang.Override + public com.google.protobuf.StringValue getAppName() { + return appName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : appName_; + } + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.StringValueOrBuilder getAppNameOrBuilder() { + return appName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : appName_; + } + + public static final int OPTIONAL_SCOPES_FIELD_NUMBER = 23; + private com.scalekit.grpc.scalekit.v1.connections.OptionalScopes optionalScopes_; + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the optionalScopes field is set. + */ + @java.lang.Override + public boolean hasOptionalScopes() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The optionalScopes. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.OptionalScopes getOptionalScopes() { + return optionalScopes_ == null ? com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.getDefaultInstance() : optionalScopes_; + } + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.OptionalScopesOrBuilder getOptionalScopesOrBuilder() { + return optionalScopes_ == null ? com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.getDefaultInstance() : optionalScopes_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -458,6 +588,21 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000400) != 0)) { output.writeMessage(18, getSyncUserProfileOnLogin()); } + if (((bitField0_ & 0x00000800) != 0)) { + output.writeMessage(19, getTokenAccessType()); + } + if (((bitField0_ & 0x00001000) != 0)) { + output.writeMessage(20, getTenantId()); + } + if (((bitField0_ & 0x00002000) != 0)) { + output.writeMessage(21, getIsCimd()); + } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(22, getAppName()); + } + if (((bitField0_ & 0x00008000) != 0)) { + output.writeMessage(23, getOptionalScopes()); + } getUnknownFields().writeTo(output); } @@ -522,6 +667,26 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, getSyncUserProfileOnLogin()); } + if (((bitField0_ & 0x00000800) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(19, getTokenAccessType()); + } + if (((bitField0_ & 0x00001000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(20, getTenantId()); + } + if (((bitField0_ & 0x00002000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(21, getIsCimd()); + } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(22, getAppName()); + } + if (((bitField0_ & 0x00008000) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(23, getOptionalScopes()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -596,6 +761,31 @@ public boolean equals(final java.lang.Object obj) { if (!getSyncUserProfileOnLogin() .equals(other.getSyncUserProfileOnLogin())) return false; } + if (hasTokenAccessType() != other.hasTokenAccessType()) return false; + if (hasTokenAccessType()) { + if (!getTokenAccessType() + .equals(other.getTokenAccessType())) return false; + } + if (hasTenantId() != other.hasTenantId()) return false; + if (hasTenantId()) { + if (!getTenantId() + .equals(other.getTenantId())) return false; + } + if (hasIsCimd() != other.hasIsCimd()) return false; + if (hasIsCimd()) { + if (!getIsCimd() + .equals(other.getIsCimd())) return false; + } + if (hasAppName() != other.hasAppName()) return false; + if (hasAppName()) { + if (!getAppName() + .equals(other.getAppName())) return false; + } + if (hasOptionalScopes() != other.hasOptionalScopes()) return false; + if (hasOptionalScopes()) { + if (!getOptionalScopes() + .equals(other.getOptionalScopes())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -657,6 +847,26 @@ public int hashCode() { hash = (37 * hash) + SYNC_USER_PROFILE_ON_LOGIN_FIELD_NUMBER; hash = (53 * hash) + getSyncUserProfileOnLogin().hashCode(); } + if (hasTokenAccessType()) { + hash = (37 * hash) + TOKEN_ACCESS_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getTokenAccessType().hashCode(); + } + if (hasTenantId()) { + hash = (37 * hash) + TENANT_ID_FIELD_NUMBER; + hash = (53 * hash) + getTenantId().hashCode(); + } + if (hasIsCimd()) { + hash = (37 * hash) + IS_CIMD_FIELD_NUMBER; + hash = (53 * hash) + getIsCimd().hashCode(); + } + if (hasAppName()) { + hash = (37 * hash) + APP_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAppName().hashCode(); + } + if (hasOptionalScopes()) { + hash = (37 * hash) + OPTIONAL_SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getOptionalScopes().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -798,6 +1008,11 @@ private void maybeForceBuilderInitialization() { getAccessTypeFieldBuilder(); getCustomScopeNameFieldBuilder(); getSyncUserProfileOnLoginFieldBuilder(); + getTokenAccessTypeFieldBuilder(); + getTenantIdFieldBuilder(); + getIsCimdFieldBuilder(); + getAppNameFieldBuilder(); + getOptionalScopesFieldBuilder(); } } @java.lang.Override @@ -862,6 +1077,31 @@ public Builder clear() { syncUserProfileOnLoginBuilder_.dispose(); syncUserProfileOnLoginBuilder_ = null; } + tokenAccessType_ = null; + if (tokenAccessTypeBuilder_ != null) { + tokenAccessTypeBuilder_.dispose(); + tokenAccessTypeBuilder_ = null; + } + tenantId_ = null; + if (tenantIdBuilder_ != null) { + tenantIdBuilder_.dispose(); + tenantIdBuilder_ = null; + } + isCimd_ = null; + if (isCimdBuilder_ != null) { + isCimdBuilder_.dispose(); + isCimdBuilder_ = null; + } + appName_ = null; + if (appNameBuilder_ != null) { + appNameBuilder_.dispose(); + appNameBuilder_ = null; + } + optionalScopes_ = null; + if (optionalScopesBuilder_ != null) { + optionalScopesBuilder_.dispose(); + optionalScopesBuilder_ = null; + } return this; } @@ -969,6 +1209,36 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.connections.OAuthConnec : syncUserProfileOnLoginBuilder_.build(); to_bitField0_ |= 0x00000400; } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.tokenAccessType_ = tokenAccessTypeBuilder_ == null + ? tokenAccessType_ + : tokenAccessTypeBuilder_.build(); + to_bitField0_ |= 0x00000800; + } + if (((from_bitField0_ & 0x00004000) != 0)) { + result.tenantId_ = tenantIdBuilder_ == null + ? tenantId_ + : tenantIdBuilder_.build(); + to_bitField0_ |= 0x00001000; + } + if (((from_bitField0_ & 0x00008000) != 0)) { + result.isCimd_ = isCimdBuilder_ == null + ? isCimd_ + : isCimdBuilder_.build(); + to_bitField0_ |= 0x00002000; + } + if (((from_bitField0_ & 0x00010000) != 0)) { + result.appName_ = appNameBuilder_ == null + ? appName_ + : appNameBuilder_.build(); + to_bitField0_ |= 0x00004000; + } + if (((from_bitField0_ & 0x00020000) != 0)) { + result.optionalScopes_ = optionalScopesBuilder_ == null + ? optionalScopes_ + : optionalScopesBuilder_.build(); + to_bitField0_ |= 0x00008000; + } result.bitField0_ |= to_bitField0_; } @@ -1064,6 +1334,21 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connections.OAuthConnecti if (other.hasSyncUserProfileOnLogin()) { mergeSyncUserProfileOnLogin(other.getSyncUserProfileOnLogin()); } + if (other.hasTokenAccessType()) { + mergeTokenAccessType(other.getTokenAccessType()); + } + if (other.hasTenantId()) { + mergeTenantId(other.getTenantId()); + } + if (other.hasIsCimd()) { + mergeIsCimd(other.getIsCimd()); + } + if (other.hasAppName()) { + mergeAppName(other.getAppName()); + } + if (other.hasOptionalScopes()) { + mergeOptionalScopes(other.getOptionalScopes()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1178,6 +1463,41 @@ public Builder mergeFrom( bitField0_ |= 0x00001000; break; } // case 146 + case 154: { + input.readMessage( + getTokenAccessTypeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00002000; + break; + } // case 154 + case 162: { + input.readMessage( + getTenantIdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00004000; + break; + } // case 162 + case 170: { + input.readMessage( + getIsCimdFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00008000; + break; + } // case 170 + case 178: { + input.readMessage( + getAppNameFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00010000; + break; + } // case 178 + case 186: { + input.readMessage( + getOptionalScopesFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00020000; + break; + } // case 186 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -2708,6 +3028,611 @@ public com.google.protobuf.BoolValueOrBuilder getSyncUserProfileOnLoginOrBuilder } return syncUserProfileOnLoginBuilder_; } + + private com.google.protobuf.StringValue tokenAccessType_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> tokenAccessTypeBuilder_; + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the tokenAccessType field is set. + */ + public boolean hasTokenAccessType() { + return ((bitField0_ & 0x00002000) != 0); + } + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The tokenAccessType. + */ + public com.google.protobuf.StringValue getTokenAccessType() { + if (tokenAccessTypeBuilder_ == null) { + return tokenAccessType_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : tokenAccessType_; + } else { + return tokenAccessTypeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setTokenAccessType(com.google.protobuf.StringValue value) { + if (tokenAccessTypeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tokenAccessType_ = value; + } else { + tokenAccessTypeBuilder_.setMessage(value); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setTokenAccessType( + com.google.protobuf.StringValue.Builder builderForValue) { + if (tokenAccessTypeBuilder_ == null) { + tokenAccessType_ = builderForValue.build(); + } else { + tokenAccessTypeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00002000; + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeTokenAccessType(com.google.protobuf.StringValue value) { + if (tokenAccessTypeBuilder_ == null) { + if (((bitField0_ & 0x00002000) != 0) && + tokenAccessType_ != null && + tokenAccessType_ != com.google.protobuf.StringValue.getDefaultInstance()) { + getTokenAccessTypeBuilder().mergeFrom(value); + } else { + tokenAccessType_ = value; + } + } else { + tokenAccessTypeBuilder_.mergeFrom(value); + } + if (tokenAccessType_ != null) { + bitField0_ |= 0x00002000; + onChanged(); + } + return this; + } + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearTokenAccessType() { + bitField0_ = (bitField0_ & ~0x00002000); + tokenAccessType_ = null; + if (tokenAccessTypeBuilder_ != null) { + tokenAccessTypeBuilder_.dispose(); + tokenAccessTypeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.StringValue.Builder getTokenAccessTypeBuilder() { + bitField0_ |= 0x00002000; + onChanged(); + return getTokenAccessTypeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.StringValueOrBuilder getTokenAccessTypeOrBuilder() { + if (tokenAccessTypeBuilder_ != null) { + return tokenAccessTypeBuilder_.getMessageOrBuilder(); + } else { + return tokenAccessType_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : tokenAccessType_; + } + } + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getTokenAccessTypeFieldBuilder() { + if (tokenAccessTypeBuilder_ == null) { + tokenAccessTypeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getTokenAccessType(), + getParentForChildren(), + isClean()); + tokenAccessType_ = null; + } + return tokenAccessTypeBuilder_; + } + + private com.google.protobuf.StringValue tenantId_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> tenantIdBuilder_; + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the tenantId field is set. + */ + public boolean hasTenantId() { + return ((bitField0_ & 0x00004000) != 0); + } + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The tenantId. + */ + public com.google.protobuf.StringValue getTenantId() { + if (tenantIdBuilder_ == null) { + return tenantId_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : tenantId_; + } else { + return tenantIdBuilder_.getMessage(); + } + } + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setTenantId(com.google.protobuf.StringValue value) { + if (tenantIdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tenantId_ = value; + } else { + tenantIdBuilder_.setMessage(value); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setTenantId( + com.google.protobuf.StringValue.Builder builderForValue) { + if (tenantIdBuilder_ == null) { + tenantId_ = builderForValue.build(); + } else { + tenantIdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00004000; + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeTenantId(com.google.protobuf.StringValue value) { + if (tenantIdBuilder_ == null) { + if (((bitField0_ & 0x00004000) != 0) && + tenantId_ != null && + tenantId_ != com.google.protobuf.StringValue.getDefaultInstance()) { + getTenantIdBuilder().mergeFrom(value); + } else { + tenantId_ = value; + } + } else { + tenantIdBuilder_.mergeFrom(value); + } + if (tenantId_ != null) { + bitField0_ |= 0x00004000; + onChanged(); + } + return this; + } + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearTenantId() { + bitField0_ = (bitField0_ & ~0x00004000); + tenantId_ = null; + if (tenantIdBuilder_ != null) { + tenantIdBuilder_.dispose(); + tenantIdBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.StringValue.Builder getTenantIdBuilder() { + bitField0_ |= 0x00004000; + onChanged(); + return getTenantIdFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.StringValueOrBuilder getTenantIdOrBuilder() { + if (tenantIdBuilder_ != null) { + return tenantIdBuilder_.getMessageOrBuilder(); + } else { + return tenantId_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : tenantId_; + } + } + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getTenantIdFieldBuilder() { + if (tenantIdBuilder_ == null) { + tenantIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getTenantId(), + getParentForChildren(), + isClean()); + tenantId_ = null; + } + return tenantIdBuilder_; + } + + private com.google.protobuf.BoolValue isCimd_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> isCimdBuilder_; + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the isCimd field is set. + */ + public boolean hasIsCimd() { + return ((bitField0_ & 0x00008000) != 0); + } + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The isCimd. + */ + public com.google.protobuf.BoolValue getIsCimd() { + if (isCimdBuilder_ == null) { + return isCimd_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : isCimd_; + } else { + return isCimdBuilder_.getMessage(); + } + } + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setIsCimd(com.google.protobuf.BoolValue value) { + if (isCimdBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + isCimd_ = value; + } else { + isCimdBuilder_.setMessage(value); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setIsCimd( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (isCimdBuilder_ == null) { + isCimd_ = builderForValue.build(); + } else { + isCimdBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00008000; + onChanged(); + return this; + } + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeIsCimd(com.google.protobuf.BoolValue value) { + if (isCimdBuilder_ == null) { + if (((bitField0_ & 0x00008000) != 0) && + isCimd_ != null && + isCimd_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getIsCimdBuilder().mergeFrom(value); + } else { + isCimd_ = value; + } + } else { + isCimdBuilder_.mergeFrom(value); + } + if (isCimd_ != null) { + bitField0_ |= 0x00008000; + onChanged(); + } + return this; + } + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearIsCimd() { + bitField0_ = (bitField0_ & ~0x00008000); + isCimd_ = null; + if (isCimdBuilder_ != null) { + isCimdBuilder_.dispose(); + isCimdBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.BoolValue.Builder getIsCimdBuilder() { + bitField0_ |= 0x00008000; + onChanged(); + return getIsCimdFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.BoolValueOrBuilder getIsCimdOrBuilder() { + if (isCimdBuilder_ != null) { + return isCimdBuilder_.getMessageOrBuilder(); + } else { + return isCimd_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : isCimd_; + } + } + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getIsCimdFieldBuilder() { + if (isCimdBuilder_ == null) { + isCimdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getIsCimd(), + getParentForChildren(), + isClean()); + isCimd_ = null; + } + return isCimdBuilder_; + } + + private com.google.protobuf.StringValue appName_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> appNameBuilder_; + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the appName field is set. + */ + public boolean hasAppName() { + return ((bitField0_ & 0x00010000) != 0); + } + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The appName. + */ + public com.google.protobuf.StringValue getAppName() { + if (appNameBuilder_ == null) { + return appName_ == null ? com.google.protobuf.StringValue.getDefaultInstance() : appName_; + } else { + return appNameBuilder_.getMessage(); + } + } + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setAppName(com.google.protobuf.StringValue value) { + if (appNameBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + appName_ = value; + } else { + appNameBuilder_.setMessage(value); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setAppName( + com.google.protobuf.StringValue.Builder builderForValue) { + if (appNameBuilder_ == null) { + appName_ = builderForValue.build(); + } else { + appNameBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00010000; + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeAppName(com.google.protobuf.StringValue value) { + if (appNameBuilder_ == null) { + if (((bitField0_ & 0x00010000) != 0) && + appName_ != null && + appName_ != com.google.protobuf.StringValue.getDefaultInstance()) { + getAppNameBuilder().mergeFrom(value); + } else { + appName_ = value; + } + } else { + appNameBuilder_.mergeFrom(value); + } + if (appName_ != null) { + bitField0_ |= 0x00010000; + onChanged(); + } + return this; + } + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearAppName() { + bitField0_ = (bitField0_ & ~0x00010000); + appName_ = null; + if (appNameBuilder_ != null) { + appNameBuilder_.dispose(); + appNameBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.StringValue.Builder getAppNameBuilder() { + bitField0_ |= 0x00010000; + onChanged(); + return getAppNameFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.StringValueOrBuilder getAppNameOrBuilder() { + if (appNameBuilder_ != null) { + return appNameBuilder_.getMessageOrBuilder(); + } else { + return appName_ == null ? + com.google.protobuf.StringValue.getDefaultInstance() : appName_; + } + } + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder> + getAppNameFieldBuilder() { + if (appNameBuilder_ == null) { + appNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.StringValue, com.google.protobuf.StringValue.Builder, com.google.protobuf.StringValueOrBuilder>( + getAppName(), + getParentForChildren(), + isClean()); + appName_ = null; + } + return appNameBuilder_; + } + + private com.scalekit.grpc.scalekit.v1.connections.OptionalScopes optionalScopes_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connections.OptionalScopes, com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.Builder, com.scalekit.grpc.scalekit.v1.connections.OptionalScopesOrBuilder> optionalScopesBuilder_; + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the optionalScopes field is set. + */ + public boolean hasOptionalScopes() { + return ((bitField0_ & 0x00020000) != 0); + } + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The optionalScopes. + */ + public com.scalekit.grpc.scalekit.v1.connections.OptionalScopes getOptionalScopes() { + if (optionalScopesBuilder_ == null) { + return optionalScopes_ == null ? com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.getDefaultInstance() : optionalScopes_; + } else { + return optionalScopesBuilder_.getMessage(); + } + } + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setOptionalScopes(com.scalekit.grpc.scalekit.v1.connections.OptionalScopes value) { + if (optionalScopesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + optionalScopes_ = value; + } else { + optionalScopesBuilder_.setMessage(value); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setOptionalScopes( + com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.Builder builderForValue) { + if (optionalScopesBuilder_ == null) { + optionalScopes_ = builderForValue.build(); + } else { + optionalScopesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00020000; + onChanged(); + return this; + } + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeOptionalScopes(com.scalekit.grpc.scalekit.v1.connections.OptionalScopes value) { + if (optionalScopesBuilder_ == null) { + if (((bitField0_ & 0x00020000) != 0) && + optionalScopes_ != null && + optionalScopes_ != com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.getDefaultInstance()) { + getOptionalScopesBuilder().mergeFrom(value); + } else { + optionalScopes_ = value; + } + } else { + optionalScopesBuilder_.mergeFrom(value); + } + if (optionalScopes_ != null) { + bitField0_ |= 0x00020000; + onChanged(); + } + return this; + } + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearOptionalScopes() { + bitField0_ = (bitField0_ & ~0x00020000); + optionalScopes_ = null; + if (optionalScopesBuilder_ != null) { + optionalScopesBuilder_.dispose(); + optionalScopesBuilder_ = null; + } + onChanged(); + return this; + } + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.Builder getOptionalScopesBuilder() { + bitField0_ |= 0x00020000; + onChanged(); + return getOptionalScopesFieldBuilder().getBuilder(); + } + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.connections.OptionalScopesOrBuilder getOptionalScopesOrBuilder() { + if (optionalScopesBuilder_ != null) { + return optionalScopesBuilder_.getMessageOrBuilder(); + } else { + return optionalScopes_ == null ? + com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.getDefaultInstance() : optionalScopes_; + } + } + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connections.OptionalScopes, com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.Builder, com.scalekit.grpc.scalekit.v1.connections.OptionalScopesOrBuilder> + getOptionalScopesFieldBuilder() { + if (optionalScopesBuilder_ == null) { + optionalScopesBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connections.OptionalScopes, com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.Builder, com.scalekit.grpc.scalekit.v1.connections.OptionalScopesOrBuilder>( + getOptionalScopes(), + getParentForChildren(), + isClean()); + optionalScopes_ = null; + } + return optionalScopesBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OAuthConnectionConfigOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OAuthConnectionConfigOrBuilder.java index af2ee5c0..9c5e560d 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OAuthConnectionConfigOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OAuthConnectionConfigOrBuilder.java @@ -209,4 +209,79 @@ public interface OAuthConnectionConfigOrBuilder extends * .google.protobuf.BoolValue sync_user_profile_on_login = 18 [json_name = "syncUserProfileOnLogin", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ com.google.protobuf.BoolValueOrBuilder getSyncUserProfileOnLoginOrBuilder(); + + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the tokenAccessType field is set. + */ + boolean hasTokenAccessType(); + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The tokenAccessType. + */ + com.google.protobuf.StringValue getTokenAccessType(); + /** + * .google.protobuf.StringValue token_access_type = 19 [json_name = "tokenAccessType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.StringValueOrBuilder getTokenAccessTypeOrBuilder(); + + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the tenantId field is set. + */ + boolean hasTenantId(); + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The tenantId. + */ + com.google.protobuf.StringValue getTenantId(); + /** + * .google.protobuf.StringValue tenant_id = 20 [json_name = "tenantId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.StringValueOrBuilder getTenantIdOrBuilder(); + + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the isCimd field is set. + */ + boolean hasIsCimd(); + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The isCimd. + */ + com.google.protobuf.BoolValue getIsCimd(); + /** + * .google.protobuf.BoolValue is_cimd = 21 [json_name = "isCimd", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.BoolValueOrBuilder getIsCimdOrBuilder(); + + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the appName field is set. + */ + boolean hasAppName(); + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The appName. + */ + com.google.protobuf.StringValue getAppName(); + /** + * .google.protobuf.StringValue app_name = 22 [json_name = "appName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.StringValueOrBuilder getAppNameOrBuilder(); + + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the optionalScopes field is set. + */ + boolean hasOptionalScopes(); + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The optionalScopes. + */ + com.scalekit.grpc.scalekit.v1.connections.OptionalScopes getOptionalScopes(); + /** + * optional .scalekit.v1.connections.OptionalScopes optional_scopes = 23 [json_name = "optionalScopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.connections.OptionalScopesOrBuilder getOptionalScopesOrBuilder(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OptionalScopes.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OptionalScopes.java new file mode 100644 index 00000000..9b8f5c7e --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OptionalScopes.java @@ -0,0 +1,731 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connections/connections.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connections; + +/** + * Protobuf type {@code scalekit.v1.connections.OptionalScopes} + */ +public final class OptionalScopes extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.connections.OptionalScopes) + OptionalScopesOrBuilder { +private static final long serialVersionUID = 0L; + // Use OptionalScopes.newBuilder() to construct. + private OptionalScopes(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OptionalScopes() { + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + fieldName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OptionalScopes(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_OptionalScopes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_OptionalScopes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.class, com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.Builder.class); + } + + public static final int SCOPES_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + return scopes_; + } + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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); + } + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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 FIELD_NAME_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object fieldName_ = ""; + /** + * string field_name = 2 [json_name = "fieldName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The fieldName. + */ + @java.lang.Override + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } + } + /** + * string field_name = 2 [json_name = "fieldName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for fieldName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + 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 < scopes_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, scopes_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, fieldName_); + } + 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 < scopes_.size(); i++) { + dataSize += computeStringSizeNoTag(scopes_.getRaw(i)); + } + size += dataSize; + size += 1 * getScopesList().size(); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, fieldName_); + } + 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.scalekit.grpc.scalekit.v1.connections.OptionalScopes)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.connections.OptionalScopes other = (com.scalekit.grpc.scalekit.v1.connections.OptionalScopes) obj; + + if (!getScopesList() + .equals(other.getScopesList())) return false; + if (!getFieldName() + .equals(other.getFieldName())) 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 (getScopesCount() > 0) { + hash = (37 * hash) + SCOPES_FIELD_NUMBER; + hash = (53 * hash) + getScopesList().hashCode(); + } + hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; + hash = (53 * hash) + getFieldName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.connections.OptionalScopes prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.connections.OptionalScopes} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.connections.OptionalScopes) + com.scalekit.grpc.scalekit.v1.connections.OptionalScopesOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_OptionalScopes_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_OptionalScopes_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.class, com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + fieldName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_OptionalScopes_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.OptionalScopes getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.OptionalScopes build() { + com.scalekit.grpc.scalekit.v1.connections.OptionalScopes result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.OptionalScopes buildPartial() { + com.scalekit.grpc.scalekit.v1.connections.OptionalScopes result = new com.scalekit.grpc.scalekit.v1.connections.OptionalScopes(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.connections.OptionalScopes result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + scopes_.makeImmutable(); + result.scopes_ = scopes_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fieldName_ = fieldName_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.connections.OptionalScopes) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.connections.OptionalScopes)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connections.OptionalScopes other) { + if (other == com.scalekit.grpc.scalekit.v1.connections.OptionalScopes.getDefaultInstance()) return this; + if (!other.scopes_.isEmpty()) { + if (scopes_.isEmpty()) { + scopes_ = other.scopes_; + bitField0_ |= 0x00000001; + } else { + ensureScopesIsMutable(); + scopes_.addAll(other.scopes_); + } + onChanged(); + } + if (!other.getFieldName().isEmpty()) { + fieldName_ = other.fieldName_; + 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(); + ensureScopesIsMutable(); + scopes_.add(s); + break; + } // case 10 + case 18: { + fieldName_ = 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 scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureScopesIsMutable() { + if (!scopes_.isModifiable()) { + scopes_ = new com.google.protobuf.LazyStringArrayList(scopes_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the scopes. + */ + public com.google.protobuf.ProtocolStringList + getScopesList() { + scopes_.makeImmutable(); + return scopes_; + } + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of scopes. + */ + public int getScopesCount() { + return scopes_.size(); + } + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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); + } + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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); + } + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearScopes() { + scopes_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object fieldName_ = ""; + /** + * string field_name = 2 [json_name = "fieldName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The fieldName. + */ + public java.lang.String getFieldName() { + java.lang.Object ref = fieldName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fieldName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string field_name = 2 [json_name = "fieldName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for fieldName. + */ + public com.google.protobuf.ByteString + getFieldNameBytes() { + java.lang.Object ref = fieldName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + fieldName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string field_name = 2 [json_name = "fieldName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + fieldName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string field_name = 2 [json_name = "fieldName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearFieldName() { + fieldName_ = getDefaultInstance().getFieldName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string field_name = 2 [json_name = "fieldName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for fieldName to set. + * @return This builder for chaining. + */ + public Builder setFieldNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + fieldName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.connections.OptionalScopes) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.connections.OptionalScopes) + private static final com.scalekit.grpc.scalekit.v1.connections.OptionalScopes DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.connections.OptionalScopes(); + } + + public static com.scalekit.grpc.scalekit.v1.connections.OptionalScopes getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OptionalScopes 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.scalekit.grpc.scalekit.v1.connections.OptionalScopes getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OptionalScopesOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OptionalScopesOrBuilder.java new file mode 100644 index 00000000..605b025c --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/OptionalScopesOrBuilder.java @@ -0,0 +1,47 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connections/connections.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connections; + +public interface OptionalScopesOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.connections.OptionalScopes) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return A list containing the scopes. + */ + java.util.List + getScopesList(); + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The count of scopes. + */ + int getScopesCount(); + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param index The index of the element to return. + * @return The scopes at the given index. + */ + java.lang.String getScopes(int index); + /** + * repeated string scopes = 1 [json_name = "scopes", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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); + + /** + * string field_name = 2 [json_name = "fieldName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The fieldName. + */ + java.lang.String getFieldName(); + /** + * string field_name = 2 [json_name = "fieldName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for fieldName. + */ + com.google.protobuf.ByteString + getFieldNameBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnection.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnection.java index 246beb3f..d38167fa 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnection.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnection.java @@ -69,6 +69,7 @@ public enum SettingsCase PASSWORDLESS_CONFIG(20), STATIC_CONFIG(23), WEBAUTHN_CONFIG(24), + GOOGLE_DWD_CONFIG(25), SETTINGS_NOT_SET(0); private final int value; private SettingsCase(int value) { @@ -92,6 +93,7 @@ public static SettingsCase forNumber(int value) { case 20: return PASSWORDLESS_CONFIG; case 23: return STATIC_CONFIG; case 24: return WEBAUTHN_CONFIG; + case 25: return GOOGLE_DWD_CONFIG; case 0: return SETTINGS_NOT_SET; default: return null; } @@ -478,6 +480,37 @@ public com.scalekit.grpc.scalekit.v1.connections.WebAuthConfigurationOrBuilder g return com.scalekit.grpc.scalekit.v1.connections.WebAuthConfiguration.getDefaultInstance(); } + public static final int GOOGLE_DWD_CONFIG_FIELD_NUMBER = 25; + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the googleDwdConfig field is set. + */ + @java.lang.Override + public boolean hasGoogleDwdConfig() { + return settingsCase_ == 25; + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The googleDwdConfig. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig getGoogleDwdConfig() { + if (settingsCase_ == 25) { + return (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_; + } + return com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder getGoogleDwdConfigOrBuilder() { + if (settingsCase_ == 25) { + return (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_; + } + return com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } + public static final int KEY_ID_FIELD_NUMBER = 22; @SuppressWarnings("serial") private volatile java.lang.Object keyId_ = ""; @@ -623,6 +656,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (settingsCase_ == 24) { output.writeMessage(24, (com.scalekit.grpc.scalekit.v1.connections.WebAuthConfiguration) settings_); } + if (settingsCase_ == 25) { + output.writeMessage(25, (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_); + } getUnknownFields().writeTo(output); } @@ -692,6 +728,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(24, (com.scalekit.grpc.scalekit.v1.connections.WebAuthConfiguration) settings_); } + if (settingsCase_ == 25) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(25, (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -755,6 +795,10 @@ public boolean equals(final java.lang.Object obj) { if (!getWebauthnConfig() .equals(other.getWebauthnConfig())) return false; break; + case 25: + if (!getGoogleDwdConfig() + .equals(other.getGoogleDwdConfig())) return false; + break; case 0: default: } @@ -818,6 +862,10 @@ public int hashCode() { hash = (37 * hash) + WEBAUTHN_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getWebauthnConfig().hashCode(); break; + case 25: + hash = (37 * hash) + GOOGLE_DWD_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGoogleDwdConfig().hashCode(); + break; case 0: default: } @@ -1013,6 +1061,9 @@ public Builder clear() { if (webauthnConfigBuilder_ != null) { webauthnConfigBuilder_.clear(); } + if (googleDwdConfigBuilder_ != null) { + googleDwdConfigBuilder_.clear(); + } keyId_ = ""; providerKey_ = ""; settingsCase_ = 0; @@ -1077,11 +1128,11 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.connections.UpdateConne result.attributeMapping_ = internalGetAttributeMapping(); result.attributeMapping_.makeImmutable(); } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.keyId_ = keyId_; to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.providerKey_ = providerKey_; } result.bitField0_ |= to_bitField0_; @@ -1114,6 +1165,10 @@ private void buildPartialOneofs(com.scalekit.grpc.scalekit.v1.connections.Update webauthnConfigBuilder_ != null) { result.settings_ = webauthnConfigBuilder_.build(); } + if (settingsCase_ == 25 && + googleDwdConfigBuilder_ != null) { + result.settings_ = googleDwdConfigBuilder_.build(); + } } @java.lang.Override @@ -1180,12 +1235,12 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connections.UpdateConnect bitField0_ |= 0x00000020; if (other.hasKeyId()) { keyId_ = other.keyId_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } if (!other.getProviderKey().isEmpty()) { providerKey_ = other.providerKey_; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } switch (other.getSettingsCase()) { @@ -1213,6 +1268,10 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connections.UpdateConnect mergeWebauthnConfig(other.getWebauthnConfig()); break; } + case GOOGLE_DWD_CONFIG: { + mergeGoogleDwdConfig(other.getGoogleDwdConfig()); + break; + } case SETTINGS_NOT_SET: { break; } @@ -1311,12 +1370,12 @@ public Builder mergeFrom( } // case 162 case 170: { providerKey_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 170 case 178: { keyId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 178 case 186: { @@ -1333,6 +1392,13 @@ public Builder mergeFrom( settingsCase_ = 24; break; } // case 194 + case 202: { + input.readMessage( + getGoogleDwdConfigFieldBuilder().getBuilder(), + extensionRegistry); + settingsCase_ = 25; + break; + } // case 202 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -2745,13 +2811,155 @@ public com.scalekit.grpc.scalekit.v1.connections.WebAuthConfigurationOrBuilder g return webauthnConfigBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.Builder, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder> googleDwdConfigBuilder_; + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the googleDwdConfig field is set. + */ + @java.lang.Override + public boolean hasGoogleDwdConfig() { + return settingsCase_ == 25; + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The googleDwdConfig. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig getGoogleDwdConfig() { + if (googleDwdConfigBuilder_ == null) { + if (settingsCase_ == 25) { + return (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_; + } + return com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } else { + if (settingsCase_ == 25) { + return googleDwdConfigBuilder_.getMessage(); + } + return com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setGoogleDwdConfig(com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig value) { + if (googleDwdConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + settings_ = value; + onChanged(); + } else { + googleDwdConfigBuilder_.setMessage(value); + } + settingsCase_ = 25; + return this; + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setGoogleDwdConfig( + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.Builder builderForValue) { + if (googleDwdConfigBuilder_ == null) { + settings_ = builderForValue.build(); + onChanged(); + } else { + googleDwdConfigBuilder_.setMessage(builderForValue.build()); + } + settingsCase_ = 25; + return this; + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeGoogleDwdConfig(com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig value) { + if (googleDwdConfigBuilder_ == null) { + if (settingsCase_ == 25 && + settings_ != com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance()) { + settings_ = com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.newBuilder((com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_) + .mergeFrom(value).buildPartial(); + } else { + settings_ = value; + } + onChanged(); + } else { + if (settingsCase_ == 25) { + googleDwdConfigBuilder_.mergeFrom(value); + } else { + googleDwdConfigBuilder_.setMessage(value); + } + } + settingsCase_ = 25; + return this; + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearGoogleDwdConfig() { + if (googleDwdConfigBuilder_ == null) { + if (settingsCase_ == 25) { + settingsCase_ = 0; + settings_ = null; + onChanged(); + } + } else { + if (settingsCase_ == 25) { + settingsCase_ = 0; + settings_ = null; + } + googleDwdConfigBuilder_.clear(); + } + return this; + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.Builder getGoogleDwdConfigBuilder() { + return getGoogleDwdConfigFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder getGoogleDwdConfigOrBuilder() { + if ((settingsCase_ == 25) && (googleDwdConfigBuilder_ != null)) { + return googleDwdConfigBuilder_.getMessageOrBuilder(); + } else { + if (settingsCase_ == 25) { + return (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_; + } + return com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } + } + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.Builder, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder> + getGoogleDwdConfigFieldBuilder() { + if (googleDwdConfigBuilder_ == null) { + if (!(settingsCase_ == 25)) { + settings_ = com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.getDefaultInstance(); + } + googleDwdConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig.Builder, com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder>( + (com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig) settings_, + getParentForChildren(), + isClean()); + settings_ = null; + } + settingsCase_ = 25; + onChanged(); + return googleDwdConfigBuilder_; + } + private java.lang.Object keyId_ = ""; /** * optional string key_id = 22 [json_name = "keyId", (.buf.validate.field) = { ... } * @return Whether the keyId field is set. */ public boolean hasKeyId() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** * optional string key_id = 22 [json_name = "keyId", (.buf.validate.field) = { ... } @@ -2795,7 +3003,7 @@ public Builder setKeyId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } keyId_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -2805,7 +3013,7 @@ public Builder setKeyId( */ public Builder clearKeyId() { keyId_ = getDefaultInstance().getKeyId(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -2819,7 +3027,7 @@ public Builder setKeyIdBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); keyId_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -2867,7 +3075,7 @@ public Builder setProviderKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } providerKey_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -2877,7 +3085,7 @@ public Builder setProviderKey( */ public Builder clearProviderKey() { providerKey_ = getDefaultInstance().getProviderKey(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } @@ -2891,7 +3099,7 @@ public Builder setProviderKeyBytes( if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); providerKey_ = value; - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnectionContextRequest.java similarity index 51% rename from src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsResponse.java rename to src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnectionContextRequest.java index 75e5febe..7e99077f 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsResponse.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnectionContextRequest.java @@ -1,23 +1,23 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: scalekit/v1/organizations/organizations.proto +// source: scalekit/v1/connections/connections.proto // Protobuf Java Version: 3.25.3 -package com.scalekit.grpc.scalekit.v1.organizations; +package com.scalekit.grpc.scalekit.v1.connections; /** - * Protobuf type {@code scalekit.v1.organizations.GetOrganizationSessionSettingsResponse} + * Protobuf type {@code scalekit.v1.connections.UpdateConnectionContextRequest} */ -public final class GetOrganizationSessionSettingsResponse extends +public final class UpdateConnectionContextRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.GetOrganizationSessionSettingsResponse) - GetOrganizationSessionSettingsResponseOrBuilder { + // @@protoc_insertion_point(message_implements:scalekit.v1.connections.UpdateConnectionContextRequest) + UpdateConnectionContextRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use GetOrganizationSessionSettingsResponse.newBuilder() to construct. - private GetOrganizationSessionSettingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use UpdateConnectionContextRequest.newBuilder() to construct. + private UpdateConnectionContextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetOrganizationSessionSettingsResponse() { - environmentId_ = ""; + private UpdateConnectionContextRequest() { + connectionId_ = ""; organizationId_ = ""; } @@ -25,56 +25,56 @@ private GetOrganizationSessionSettingsResponse() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new GetOrganizationSessionSettingsResponse(); + return new UpdateConnectionContextRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsResponse_descriptor; + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_UpdateConnectionContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsResponse_fieldAccessorTable + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_UpdateConnectionContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse.class, com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse.Builder.class); + com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest.class, com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest.Builder.class); } private int bitField0_; - public static final int ENVIRONMENT_ID_FIELD_NUMBER = 1; + public static final int CONNECTION_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object environmentId_ = ""; + private volatile java.lang.Object connectionId_ = ""; /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @return The connectionId. */ @java.lang.Override - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; + public java.lang.String getConnectionId() { + java.lang.Object ref = connectionId_; 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(); - environmentId_ = s; + connectionId_ = s; return s; } } /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @return The bytes for connectionId. */ @java.lang.Override public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; + getConnectionIdBytes() { + java.lang.Object ref = connectionId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - environmentId_ = b; + connectionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -85,7 +85,7 @@ public java.lang.String getEnvironmentId() { @SuppressWarnings("serial") private volatile java.lang.Object organizationId_ = ""; /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @return The organizationId. */ @java.lang.Override @@ -102,7 +102,7 @@ public java.lang.String getOrganizationId() { } } /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @return The bytes for organizationId. */ @java.lang.Override @@ -120,30 +120,30 @@ public java.lang.String getOrganizationId() { } } - public static final int SESSION_SETTINGS_FIELD_NUMBER = 3; - private com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings sessionSettings_; + public static final int CONTEXT_FIELD_NUMBER = 3; + private com.google.protobuf.Struct context_; /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionSettings field is set. + * .google.protobuf.Struct context = 3 [json_name = "context"]; + * @return Whether the context field is set. */ @java.lang.Override - public boolean hasSessionSettings() { + public boolean hasContext() { return ((bitField0_ & 0x00000001) != 0); } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionSettings. + * .google.protobuf.Struct context = 3 [json_name = "context"]; + * @return The context. */ @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings getSessionSettings() { - return sessionSettings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; + public com.google.protobuf.Struct getContext() { + return context_ == null ? com.google.protobuf.Struct.getDefaultInstance() : context_; } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder getSessionSettingsOrBuilder() { - return sessionSettings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; + public com.google.protobuf.StructOrBuilder getContextOrBuilder() { + return context_ == null ? com.google.protobuf.Struct.getDefaultInstance() : context_; } private byte memoizedIsInitialized = -1; @@ -160,14 +160,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environmentId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, connectionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, organizationId_); } if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getSessionSettings()); + output.writeMessage(3, getContext()); } getUnknownFields().writeTo(output); } @@ -178,15 +178,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, environmentId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(connectionId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, connectionId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, organizationId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSessionSettings()); + .computeMessageSize(3, getContext()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -198,19 +198,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse)) { + if (!(obj instanceof com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest)) { return super.equals(obj); } - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse other = (com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse) obj; + com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest other = (com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest) obj; - if (!getEnvironmentId() - .equals(other.getEnvironmentId())) return false; + if (!getConnectionId() + .equals(other.getConnectionId())) return false; if (!getOrganizationId() .equals(other.getOrganizationId())) return false; - if (hasSessionSettings() != other.hasSessionSettings()) return false; - if (hasSessionSettings()) { - if (!getSessionSettings() - .equals(other.getSessionSettings())) return false; + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext() + .equals(other.getContext())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -223,57 +223,57 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getEnvironmentId().hashCode(); + hash = (37 * hash) + CONNECTION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectionId().hashCode(); hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; hash = (53 * hash) + getOrganizationId().hashCode(); - if (hasSessionSettings()) { - hash = (37 * hash) + SESSION_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getSessionSettings().hashCode(); + if (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse parseFrom(byte[] data) + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse parseFrom(java.io.InputStream input) + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -281,26 +281,26 @@ public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSession .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse parseDelimitedFrom(java.io.InputStream input) + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse parseDelimitedFrom( + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -313,7 +313,7 @@ public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSession public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse prototype) { + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -329,26 +329,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code scalekit.v1.organizations.GetOrganizationSessionSettingsResponse} + * Protobuf type {@code scalekit.v1.connections.UpdateConnectionContextRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.GetOrganizationSessionSettingsResponse) - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:scalekit.v1.connections.UpdateConnectionContextRequest) + com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsResponse_descriptor; + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_UpdateConnectionContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsResponse_fieldAccessorTable + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_UpdateConnectionContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse.class, com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse.Builder.class); + com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest.class, com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest.Builder.class); } - // Construct using com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse.newBuilder() + // Construct using com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -361,19 +361,19 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getSessionSettingsFieldBuilder(); + getContextFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - environmentId_ = ""; + connectionId_ = ""; organizationId_ = ""; - sessionSettings_ = null; - if (sessionSettingsBuilder_ != null) { - sessionSettingsBuilder_.dispose(); - sessionSettingsBuilder_ = null; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; } return this; } @@ -381,17 +381,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsResponse_descriptor; + return com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.internal_static_scalekit_v1_connections_UpdateConnectionContextRequest_descriptor; } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse getDefaultInstanceForType() { - return com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse.getDefaultInstance(); + public com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest.getDefaultInstance(); } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse build() { - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse result = buildPartial(); + public com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest build() { + com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -399,26 +399,26 @@ public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSetting } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse buildPartial() { - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse result = new com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse(this); + public com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest result = new com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse result) { + private void buildPartial0(com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.environmentId_ = environmentId_; + result.connectionId_ = connectionId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.organizationId_ = organizationId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.sessionSettings_ = sessionSettingsBuilder_ == null - ? sessionSettings_ - : sessionSettingsBuilder_.build(); + result.context_ = contextBuilder_ == null + ? context_ + : contextBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -458,18 +458,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse) { - return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse)other); + if (other instanceof com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse other) { - if (other == com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse.getDefaultInstance()) return this; - if (!other.getEnvironmentId().isEmpty()) { - environmentId_ = other.environmentId_; + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest.getDefaultInstance()) return this; + if (!other.getConnectionId().isEmpty()) { + connectionId_ = other.connectionId_; bitField0_ |= 0x00000001; onChanged(); } @@ -478,8 +478,8 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.GetOrganiza bitField0_ |= 0x00000002; onChanged(); } - if (other.hasSessionSettings()) { - mergeSessionSettings(other.getSessionSettings()); + if (other.hasContext()) { + mergeContext(other.getContext()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -508,7 +508,7 @@ public Builder mergeFrom( done = true; break; case 10: { - environmentId_ = input.readStringRequireUtf8(); + connectionId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 @@ -519,7 +519,7 @@ public Builder mergeFrom( } // case 18 case 26: { input.readMessage( - getSessionSettingsFieldBuilder().getBuilder(), + getContextFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; @@ -541,73 +541,73 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object environmentId_ = ""; + private java.lang.Object connectionId_ = ""; /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @return The connectionId. */ - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; + public java.lang.String getConnectionId() { + java.lang.Object ref = connectionId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - environmentId_ = s; + connectionId_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @return The bytes for connectionId. */ public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; + getConnectionIdBytes() { + java.lang.Object ref = connectionId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - environmentId_ = b; + connectionId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The environmentId to set. + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @param value The connectionId to set. * @return This builder for chaining. */ - public Builder setEnvironmentId( + public Builder setConnectionId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environmentId_ = value; + connectionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } * @return This builder for chaining. */ - public Builder clearEnvironmentId() { - environmentId_ = getDefaultInstance().getEnvironmentId(); + public Builder clearConnectionId() { + connectionId_ = getDefaultInstance().getConnectionId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for environmentId to set. + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @param value The bytes for connectionId to set. * @return This builder for chaining. */ - public Builder setEnvironmentIdBytes( + public Builder setConnectionIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environmentId_ = value; + connectionId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -615,7 +615,7 @@ public Builder setEnvironmentIdBytes( private java.lang.Object organizationId_ = ""; /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @return The organizationId. */ public java.lang.String getOrganizationId() { @@ -631,7 +631,7 @@ public java.lang.String getOrganizationId() { } } /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @return The bytes for organizationId. */ public com.google.protobuf.ByteString @@ -648,7 +648,7 @@ public java.lang.String getOrganizationId() { } } /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @param value The organizationId to set. * @return This builder for chaining. */ @@ -661,7 +661,7 @@ public Builder setOrganizationId( return this; } /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @return This builder for chaining. */ public Builder clearOrganizationId() { @@ -671,7 +671,7 @@ public Builder clearOrganizationId() { return this; } /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @param value The bytes for organizationId to set. * @return This builder for chaining. */ @@ -685,125 +685,125 @@ public Builder setOrganizationIdBytes( return this; } - private com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings sessionSettings_; + private com.google.protobuf.Struct context_; private com.google.protobuf.SingleFieldBuilderV3< - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder> sessionSettingsBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> contextBuilder_; /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionSettings field is set. + * .google.protobuf.Struct context = 3 [json_name = "context"]; + * @return Whether the context field is set. */ - public boolean hasSessionSettings() { + public boolean hasContext() { return ((bitField0_ & 0x00000004) != 0); } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionSettings. + * .google.protobuf.Struct context = 3 [json_name = "context"]; + * @return The context. */ - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings getSessionSettings() { - if (sessionSettingsBuilder_ == null) { - return sessionSettings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; + public com.google.protobuf.Struct getContext() { + if (contextBuilder_ == null) { + return context_ == null ? com.google.protobuf.Struct.getDefaultInstance() : context_; } else { - return sessionSettingsBuilder_.getMessage(); + return contextBuilder_.getMessage(); } } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ - public Builder setSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings value) { - if (sessionSettingsBuilder_ == null) { + public Builder setContext(com.google.protobuf.Struct value) { + if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - sessionSettings_ = value; + context_ = value; } else { - sessionSettingsBuilder_.setMessage(value); + contextBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ - public Builder setSessionSettings( - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder builderForValue) { - if (sessionSettingsBuilder_ == null) { - sessionSettings_ = builderForValue.build(); + public Builder setContext( + com.google.protobuf.Struct.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); } else { - sessionSettingsBuilder_.setMessage(builderForValue.build()); + contextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ - public Builder mergeSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings value) { - if (sessionSettingsBuilder_ == null) { + public Builder mergeContext(com.google.protobuf.Struct value) { + if (contextBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && - sessionSettings_ != null && - sessionSettings_ != com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance()) { - getSessionSettingsBuilder().mergeFrom(value); + context_ != null && + context_ != com.google.protobuf.Struct.getDefaultInstance()) { + getContextBuilder().mergeFrom(value); } else { - sessionSettings_ = value; + context_ = value; } } else { - sessionSettingsBuilder_.mergeFrom(value); + contextBuilder_.mergeFrom(value); } - if (sessionSettings_ != null) { + if (context_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ - public Builder clearSessionSettings() { + public Builder clearContext() { bitField0_ = (bitField0_ & ~0x00000004); - sessionSettings_ = null; - if (sessionSettingsBuilder_ != null) { - sessionSettingsBuilder_.dispose(); - sessionSettingsBuilder_ = null; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; } onChanged(); return this; } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder getSessionSettingsBuilder() { + public com.google.protobuf.Struct.Builder getContextBuilder() { bitField0_ |= 0x00000004; onChanged(); - return getSessionSettingsFieldBuilder().getBuilder(); + return getContextFieldBuilder().getBuilder(); } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder getSessionSettingsOrBuilder() { - if (sessionSettingsBuilder_ != null) { - return sessionSettingsBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StructOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); } else { - return sessionSettings_ == null ? - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; + return context_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : context_; } } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder> - getSessionSettingsFieldBuilder() { - if (sessionSettingsBuilder_ == null) { - sessionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder>( - getSessionSettings(), + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getContext(), getParentForChildren(), isClean()); - sessionSettings_ = null; + context_ = null; } - return sessionSettingsBuilder_; + return contextBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -818,23 +818,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.GetOrganizationSessionSettingsResponse) + // @@protoc_insertion_point(builder_scope:scalekit.v1.connections.UpdateConnectionContextRequest) } - // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.GetOrganizationSessionSettingsResponse) - private static final com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:scalekit.v1.connections.UpdateConnectionContextRequest) + private static final com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse(); + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest(); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse getDefaultInstance() { + public static com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public GetOrganizationSessionSettingsResponse parsePartialFrom( + public UpdateConnectionContextRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -853,17 +853,17 @@ public GetOrganizationSessionSettingsResponse parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse getDefaultInstanceForType() { + public com.scalekit.grpc.scalekit.v1.connections.UpdateConnectionContextRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnectionContextRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnectionContextRequestOrBuilder.java new file mode 100644 index 00000000..bda4e064 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnectionContextRequestOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/connections/connections.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.connections; + +public interface UpdateConnectionContextRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.connections.UpdateConnectionContextRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @return The connectionId. + */ + java.lang.String getConnectionId(); + /** + * string connection_id = 1 [json_name = "connectionId", (.buf.validate.field) = { ... } + * @return The bytes for connectionId. + */ + com.google.protobuf.ByteString + getConnectionIdBytes(); + + /** + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * .google.protobuf.Struct context = 3 [json_name = "context"]; + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + * .google.protobuf.Struct context = 3 [json_name = "context"]; + * @return The context. + */ + com.google.protobuf.Struct getContext(); + /** + * .google.protobuf.Struct context = 3 [json_name = "context"]; + */ + com.google.protobuf.StructOrBuilder getContextOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnectionOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnectionOrBuilder.java index cf133908..d8ba5850 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnectionOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/connections/UpdateConnectionOrBuilder.java @@ -195,6 +195,21 @@ java.lang.String getAttributeMappingOrThrow( */ com.scalekit.grpc.scalekit.v1.connections.WebAuthConfigurationOrBuilder getWebauthnConfigOrBuilder(); + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the googleDwdConfig field is set. + */ + boolean hasGoogleDwdConfig(); + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The googleDwdConfig. + */ + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfig getGoogleDwdConfig(); + /** + * .scalekit.v1.connections.GoogleDWDConfig google_dwd_config = 25 [json_name = "googleDwdConfig", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.connections.GoogleDWDConfigOrBuilder getGoogleDwdConfigOrBuilder(); + /** * optional string key_id = 22 [json_name = "keyId", (.buf.validate.field) = { ... } * @return Whether the keyId field is set. diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/directories/DirectoriesProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/DirectoriesProto.java index f36d59d1..15f9dc6c 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/directories/DirectoriesProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/DirectoriesProto.java @@ -210,6 +210,21 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_directories_TriggerDirectorySyncRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_directories_GetDirectoryContextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_directories_GetDirectoryContextRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_directories_GetDirectoryContextResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_directories_GetDirectoryContextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_directories_UpdateDirectoryContextRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_directories_UpdateDirectoryContextRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -603,183 +618,214 @@ public static void registerAllExtensions( "dir_121312434123312\"\272H\006r\004\020\001\030 R\013directory" + "Id\022r\n\017organization_id\030\002 \001(\tBI\222A=2$Unique" + " identifier to an OrganizationJ\025\"org_121" + - "312434123312\"\272H\006r\004\020\001\030 R\016organizationId*M" + - "\n\rDirectoryType\022\036\n\032DIRECTORY_TYPE_UNSPEC" + - "IFIED\020\000\022\010\n\004SCIM\020\001\022\010\n\004LDAP\020\002\022\010\n\004POLL\020\003*\232\001" + - "\n\021DirectoryProvider\022\"\n\036DIRECTORY_PROVIDE" + - "R_UNSPECIFIED\020\000\022\010\n\004OKTA\020\001\022\n\n\006GOOGLE\020\002\022\020\n" + - "\014MICROSOFT_AD\020\003\022\t\n\005AUTH0\020\004\022\014\n\010ONELOGIN\020\005" + - "\022\r\n\tJUMPCLOUD\020\006\022\021\n\rPING_IDENTITY\020\007*^\n\017Di" + - "rectoryStatus\022 \n\034DIRECTORY_STATUS_UNSPEC" + - "IFIED\020\000\022\t\n\005DRAFT\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tC" + - "OMPLETED\020\003*(\n\014SecretStatus\022\n\n\006ACTIVE\020\000\022\014" + - "\n\010INACTIVE\020\0012\3531\n\020DirectoryService\022\344\001\n\017Cr" + - "eateDirectory\022/.scalekit.v1.directories." + - "CreateDirectoryRequest\0320.scalekit.v1.dir" + - "ectories.CreateDirectoryResponse\"n\202\265\030\025\n\021" + - "directories_write\030t\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002@" + - "\"3/api/v1/organizations/{organization_id", - "}/directories:\tdirectory\022\236\002\n\017DeleteDirec" + - "tory\022/.scalekit.v1.directories.DeleteDir" + - "ectoryRequest\032\026.google.protobuf.Empty\"\301\001" + - "\222Ai\n\tDirectory\022\022Delete a directory\032)Dele" + - "te a Directory within an organizationJ\035\n" + - "\003200\022\026\n\024Deleted Successfully\202\265\030\002\030d\372\322\344\223\002\t" + - "\022\007PREVIEW\202\323\344\223\002:*8/api/v1/organizations/{" + - "organization_id}/directories/{id}\022\351\001\n\017Up" + - "dateDirectory\022/.scalekit.v1.directories." + - "UpdateDirectoryRequest\0320.scalekit.v1.dir" + - "ectories.UpdateDirectoryResponse\"s\202\265\030\025\n\021" + - "directories_write\030t\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002E" + - "28/api/v1/organizations/{organization_id" + - "}/directories/{id}:\tdirectory\022\347\001\n\030Assign" + - "GroupsForDirectory\0228.scalekit.v1.directo" + - "ries.AssignGroupsForDirectoryRequest\032\026.g" + - "oogle.protobuf.Empty\"y\202\265\030\025\n\021directories_" + - "write\030t\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002K\032F/api/v1/or" + - "ganizations/{organization_id}/directorie" + - "s/{id}/groups:assign:\001*\022\373\001\n\013AssignRoles\022" + - "+.scalekit.v1.directories.AssignRolesReq" + - "uest\032,.scalekit.v1.directories.AssignRol" + - "esResponse\"\220\001\202\265\030\025\n\021directories_write\030t\372\322" + - "\344\223\002\t\022\007PREVIEW\202\323\344\223\002b\032N/api/v1/organizatio" + - "ns/{organization_id}/directories/{id}/gr" + - "oups/-/roles:assign:\020role_assignments\022\200\002" + - "\n\020UpdateAttributes\0220.scalekit.v1.directo" + - "ries.UpdateAttributesRequest\0321.scalekit." + - "v1.directories.UpdateAttributesResponse\"" + - "\206\001\202\265\030\025\n\021directories_write\030t\372\322\344\223\002\t\022\007PREVI" + - "EW\202\323\344\223\002X\032C/api/v1/organizations/{organiz" + - "ation_id}/directories/{id}/attributes:\021a" + - "ttribute_mapping\022\244\003\n\014GetDirectory\022,.scal" + - "ekit.v1.directories.GetDirectoryRequest\032" + - "-.scalekit.v1.directories.GetDirectoryRe" + - "sponse\"\266\002\222A\332\001\n\tDirectory\022\025Get directory " + - "details\032PRetrieves detailed information " + - "about a specific directory within an org" + - "anizationJd\n\003200\022]\n(Successfully retriev" + - "ed directory details\0221\n/\032-.scalekit.v1.d" + - "irectories.GetDirectoryResponse\202\265\030\024\n\020dir" + - "ectories_read\030t\202\323\344\223\002:\0228/api/v1/organizat" + - "ions/{organization_id}/directories/{id}\022" + - "\375\002\n\017ListDirectories\022/.scalekit.v1.direct" + - "ories.ListDirectoriesRequest\0320.scalekit." + - "v1.directories.ListDirectoriesResponse\"\206" + - "\002\222A\257\001\n\tDirectory\022\035List organization dire" + - "ctoriesJ\202\001\n\003200\022{\nCSuccessfully retrieve" + - "d the list of directories for the organi" + - "zation\0224\n2\0320.scalekit.v1.directories.Lis" + - "tDirectoriesResponse\202\265\030\024\n\020directories_re" + - "ad\030t\202\323\344\223\0025\0223/api/v1/organizations/{organ" + - "ization_id}/directories\022\303\003\n\017EnableDirect" + - "ory\022/.scalekit.v1.directories.ToggleDire" + - "ctoryRequest\0320.scalekit.v1.directories.T" + - "oggleDirectoryResponse\"\314\002\222A\350\001\n\tDirectory" + - "\022\022Enable a directory\032\177Activates a direct" + - "ory within an organization, allowing it " + - "to synchronize users and groups with the" + - " connected Directory providerJF\n\003200\022?\n\007" + - "Success\0224\n2\0320.scalekit.v1.directories.To" + - "ggleDirectoryResponse\202\265\030\025\n\021directories_w" + - "rite\030t\202\323\344\223\002A2?/api/v1/organizations/{org" + - "anization_id}/directories/{id}:enable\022\216\004" + - "\n\020DisableDirectory\022/.scalekit.v1.directo" + - "ries.ToggleDirectoryRequest\0320.scalekit.v" + - "1.directories.ToggleDirectoryResponse\"\226\003" + - "\222A\261\002\n\tDirectory\022\023Disable a directory\032\252\001S" + - "tops synchronization of users and groups" + - " from a specified directory within an or" + - "ganization. This operation prevents furt" + - "her updates from the connected Directory" + - " providerJb\n\003200\022[\n#Successfully disable" + - "d the directory\0224\n2\0320.scalekit.v1.direct" + - "ories.ToggleDirectoryResponse\202\265\030\025\n\021direc" + - "tories_write\030t\202\323\344\223\002B2@/api/v1/organizati" + - "ons/{organization_id}/directories/{id}:d" + - "isable\022\315\004\n\022ListDirectoryUsers\0222.scalekit" + - ".v1.directories.ListDirectoryUsersReques" + - "t\0323.scalekit.v1.directories.ListDirector" + - "yUsersResponse\"\315\003\222A\341\002\n\tDirectory\022\024List d" + - "irectory users\032\262\001Retrieves a list of all" + - " users within a specified directory for " + - "an organization. This endpoint allows yo" + - "u to view user accounts associated with " + - "your connected Directory Providers.J\210\001\n\003" + - "200\022\200\001\nESuccessfully retrieved the list " + - "of users from the specified directory\0227\n" + - "5\0323.scalekit.v1.directories.ListDirector" + - "yUsersResponse\202\265\030\024\n\020directories_read\030t\202\323" + - "\344\223\002J\022H/api/v1/organizations/{organizatio" + - "n_id}/directories/{directory_id}/users\022\244" + - "\004\n\023ListDirectoryGroups\0223.scalekit.v1.dir" + - "ectories.ListDirectoryGroupsRequest\0324.sc" + - "alekit.v1.directories.ListDirectoryGroup" + - "sResponse\"\241\003\222A\264\002\n\tDirectory\022\025List direct" + - "ory groups\032\202\001Retrieves all groups from a" + - " specified directory. Use this endpoint " + - "to view group structures from your conne" + - "cted identity provider.J\212\001\n\003200\022\202\001\nFSucc" + - "essfully retrieved the list of groups fr" + - "om the specified directory\0228\n6\0324.scaleki" + - "t.v1.directories.ListDirectoryGroupsResp" + - "onse\202\265\030\024\n\020directories_read\030t\202\323\344\223\002K\022I/api" + + "312434123312\"\272H\006r\004\020\001\030 R\016organizationId\"\220" + + "\001\n\032GetDirectoryContextRequest\0225\n\014directo" + + "ry_id\030\001 \001(\tB\022\272H\017r\n\020\001\030 :\004dir_\310\001\001R\013directo" + + "ryId\022;\n\017organization_id\030\002 \001(\tB\022\272H\017r\n\020\001\030 " + + ":\004org_\310\001\001R\016organizationId\"P\n\033GetDirector" + + "yContextResponse\0221\n\007context\030\001 \001(\0132\027.goog" + + "le.protobuf.StructR\007context\"\306\001\n\035UpdateDi" + + "rectoryContextRequest\0225\n\014directory_id\030\001 " + + "\001(\tB\022\272H\017r\n\020\001\030 :\004dir_\310\001\001R\013directoryId\022;\n\017" + + "organization_id\030\002 \001(\tB\022\272H\017r\n\020\001\030 :\004org_\310\001" + + "\001R\016organizationId\0221\n\007context\030\003 \001(\0132\027.goo" + + "gle.protobuf.StructR\007context*M\n\rDirector" + + "yType\022\036\n\032DIRECTORY_TYPE_UNSPECIFIED\020\000\022\010\n" + + "\004SCIM\020\001\022\010\n\004LDAP\020\002\022\010\n\004POLL\020\003*\232\001\n\021Director" + + "yProvider\022\"\n\036DIRECTORY_PROVIDER_UNSPECIF" + + "IED\020\000\022\010\n\004OKTA\020\001\022\n\n\006GOOGLE\020\002\022\020\n\014MICROSOFT", + "_AD\020\003\022\t\n\005AUTH0\020\004\022\014\n\010ONELOGIN\020\005\022\r\n\tJUMPCL" + + "OUD\020\006\022\021\n\rPING_IDENTITY\020\007*^\n\017DirectorySta" + + "tus\022 \n\034DIRECTORY_STATUS_UNSPECIFIED\020\000\022\t\n" + + "\005DRAFT\020\001\022\017\n\013IN_PROGRESS\020\002\022\r\n\tCOMPLETED\020\003" + + "*(\n\014SecretStatus\022\n\n\006ACTIVE\020\000\022\014\n\010INACTIVE" + + "\020\0012\2518\n\020DirectoryService\022\344\001\n\017CreateDirect" + + "ory\022/.scalekit.v1.directories.CreateDire" + + "ctoryRequest\0320.scalekit.v1.directories.C" + + "reateDirectoryResponse\"n\202\265\030\025\n\021directorie" + + "s_write\030t\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002@\"3/api/v1/" + + "organizations/{organization_id}/director" + + "ies:\tdirectory\022\236\002\n\017DeleteDirectory\022/.sca" + + "lekit.v1.directories.DeleteDirectoryRequ" + + "est\032\026.google.protobuf.Empty\"\301\001\222Ai\n\tDirec" + + "tory\022\022Delete a directory\032)Delete a Direc" + + "tory within an organizationJ\035\n\003200\022\026\n\024De" + + "leted Successfully\202\265\030\002\030d\372\322\344\223\002\t\022\007PREVIEW\202" + + "\323\344\223\002:*8/api/v1/organizations/{organizati" + + "on_id}/directories/{id}\022\351\001\n\017UpdateDirect" + + "ory\022/.scalekit.v1.directories.UpdateDire" + + "ctoryRequest\0320.scalekit.v1.directories.U" + + "pdateDirectoryResponse\"s\202\265\030\025\n\021directorie" + + "s_write\030t\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002E28/api/v1/" + + "organizations/{organization_id}/director" + + "ies/{id}:\tdirectory\022\347\001\n\030AssignGroupsForD" + + "irectory\0228.scalekit.v1.directories.Assig" + + "nGroupsForDirectoryRequest\032\026.google.prot" + + "obuf.Empty\"y\202\265\030\025\n\021directories_write\030t\372\322\344" + + "\223\002\t\022\007PREVIEW\202\323\344\223\002K\032F/api/v1/organization" + + "s/{organization_id}/directories/{id}/gro" + + "ups:assign:\001*\022\373\001\n\013AssignRoles\022+.scalekit" + + ".v1.directories.AssignRolesRequest\032,.sca" + + "lekit.v1.directories.AssignRolesResponse" + + "\"\220\001\202\265\030\025\n\021directories_write\030t\372\322\344\223\002\t\022\007PREV" + + "IEW\202\323\344\223\002b\032N/api/v1/organizations/{organi" + + "zation_id}/directories/{id}/groups/-/rol" + + "es:assign:\020role_assignments\022\200\002\n\020UpdateAt" + + "tributes\0220.scalekit.v1.directories.Updat" + + "eAttributesRequest\0321.scalekit.v1.directo" + + "ries.UpdateAttributesResponse\"\206\001\202\265\030\025\n\021di" + + "rectories_write\030t\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002X\032C" + + "/api/v1/organizations/{organization_id}/" + + "directories/{id}/attributes:\021attribute_m" + + "apping\022\244\003\n\014GetDirectory\022,.scalekit.v1.di" + + "rectories.GetDirectoryRequest\032-.scalekit" + + ".v1.directories.GetDirectoryResponse\"\266\002\222" + + "A\332\001\n\tDirectory\022\025Get directory details\032PR" + + "etrieves detailed information about a sp" + + "ecific directory within an organizationJ" + + "d\n\003200\022]\n(Successfully retrieved directo" + + "ry details\0221\n/\032-.scalekit.v1.directories" + + ".GetDirectoryResponse\202\265\030\024\n\020directories_r" + + "ead\030t\202\323\344\223\002:\0228/api/v1/organizations/{orga" + + "nization_id}/directories/{id}\022\375\002\n\017ListDi" + + "rectories\022/.scalekit.v1.directories.List" + + "DirectoriesRequest\0320.scalekit.v1.directo" + + "ries.ListDirectoriesResponse\"\206\002\222A\257\001\n\tDir" + + "ectory\022\035List organization directoriesJ\202\001" + + "\n\003200\022{\nCSuccessfully retrieved the list" + + " of directories for the organization\0224\n2" + + "\0320.scalekit.v1.directories.ListDirectori" + + "esResponse\202\265\030\024\n\020directories_read\030t\202\323\344\223\0025" + + "\0223/api/v1/organizations/{organization_id" + + "}/directories\022\303\003\n\017EnableDirectory\022/.scal" + + "ekit.v1.directories.ToggleDirectoryReque" + + "st\0320.scalekit.v1.directories.ToggleDirec" + + "toryResponse\"\314\002\222A\350\001\n\tDirectory\022\022Enable a" + + " directory\032\177Activates a directory within" + + " an organization, allowing it to synchro" + + "nize users and groups with the connected" + + " Directory providerJF\n\003200\022?\n\007Success\0224\n" + + "2\0320.scalekit.v1.directories.ToggleDirect" + + "oryResponse\202\265\030\025\n\021directories_write\030t\202\323\344\223" + + "\002A2?/api/v1/organizations/{organization_" + + "id}/directories/{id}:enable\022\216\004\n\020DisableD" + + "irectory\022/.scalekit.v1.directories.Toggl" + + "eDirectoryRequest\0320.scalekit.v1.director" + + "ies.ToggleDirectoryResponse\"\226\003\222A\261\002\n\tDire" + + "ctory\022\023Disable a directory\032\252\001Stops synch" + + "ronization of users and groups from a sp" + + "ecified directory within an organization" + + ". This operation prevents further update" + + "s from the connected Directory providerJ" + + "b\n\003200\022[\n#Successfully disabled the dire" + + "ctory\0224\n2\0320.scalekit.v1.directories.Togg" + + "leDirectoryResponse\202\265\030\025\n\021directories_wri" + + "te\030t\202\323\344\223\002B2@/api/v1/organizations/{organ" + + "ization_id}/directories/{id}:disable\022\315\004\n" + + "\022ListDirectoryUsers\0222.scalekit.v1.direct" + + "ories.ListDirectoryUsersRequest\0323.scalek" + + "it.v1.directories.ListDirectoryUsersResp" + + "onse\"\315\003\222A\341\002\n\tDirectory\022\024List directory u" + + "sers\032\262\001Retrieves a list of all users wit" + + "hin a specified directory for an organiz" + + "ation. This endpoint allows you to view " + + "user accounts associated with your conne" + + "cted Directory Providers.J\210\001\n\003200\022\200\001\nESu" + + "ccessfully retrieved the list of users f" + + "rom the specified directory\0227\n5\0323.scalek" + + "it.v1.directories.ListDirectoryUsersResp" + + "onse\202\265\030\024\n\020directories_read\030t\202\323\344\223\002J\022H/api" + "/v1/organizations/{organization_id}/dire" + - "ctories/{directory_id}/groups\022\323\004\n\032ListDi" + - "rectoryGroupsSummary\022:.scalekit.v1.direc" + - "tories.ListDirectoryGroupsSummaryRequest" + - "\0324.scalekit.v1.directories.ListDirectory" + - "GroupsResponse\"\302\003\222A\276\002\n\tDirectory\022\035List d" + - "irectory groups summary\032\204\001Retrieves all " + - "groups from a specified directory. This " + - "is not a paginated api. It gives a summa" + - "ry view with id and name of the group.J\212" + - "\001\n\003200\022\202\001\nFSuccessfully retrieved the li" + - "st of groups from the specified director" + - "y\0228\n6\0324.scalekit.v1.directories.ListDire" + - "ctoryGroupsResponse\202\265\030\024\n\020directories_rea" + - "d\030t\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002S\022Q/api/v1/organi" + + "ctories/{directory_id}/users\022\244\004\n\023ListDir" + + "ectoryGroups\0223.scalekit.v1.directories.L" + + "istDirectoryGroupsRequest\0324.scalekit.v1." + + "directories.ListDirectoryGroupsResponse\"" + + "\241\003\222A\264\002\n\tDirectory\022\025List directory groups" + + "\032\202\001Retrieves all groups from a specified" + + " directory. Use this endpoint to view gr" + + "oup structures from your connected ident" + + "ity provider.J\212\001\n\003200\022\202\001\nFSuccessfully r" + + "etrieved the list of groups from the spe" + + "cified directory\0228\n6\0324.scalekit.v1.direc" + + "tories.ListDirectoryGroupsResponse\202\265\030\024\n\020" + + "directories_read\030t\202\323\344\223\002K\022I/api/v1/organi" + "zations/{organization_id}/directories/{d" + - "irectory_id}/groups/summary\022\376\002\n\025CreateDi" + - "rectorySecret\0225.scalekit.v1.directories." + - "CreateDirectorySecretRequest\0326.scalekit." + - "v1.directories.CreateDirectorySecretResp" + - "onse\"\365\001\222Ax\n\tDirectory\022\035Create secret for" + - " a directoryJL\n\003200\022E\n\007Success\022:\n8\0326.sca" + - "lekit.v1.directories.CreateDirectorySecr" + - "etResponse\202\265\030\025\n\021directories_write\030t\372\322\344\223\002" + - "\t\022\007PREVIEW\202\323\344\223\002L\"J/api/v1/organizations/" + - "{organization_id}/directories/{directory" + - "_id}/secrets\022\236\003\n\031RegenerateDirectorySecr" + - "et\0229.scalekit.v1.directories.RegenerateD" + - "irectorySecretRequest\032:.scalekit.v1.dire" + - "ctories.RegenerateDirectorySecretRespons" + - "e\"\211\002\222A\200\001\n\tDirectory\022!Regenerate secret f" + - "or a directoryJP\n\003200\022I\n\007Success\022>\n<\032:.s" + - "calekit.v1.directories.RegenerateDirecto" + - "rySecretResponse\202\265\030\025\n\021directories_write\030" + - "t\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002W\"U/api/v1/organiza" + - "tions/{organization_id}/directories/{dir" + - "ectory_id}/secrets:regenerate\022\335\001\n\024Trigge" + - "rDirectorySync\0224.scalekit.v1.directories" + - ".TriggerDirectorySyncRequest\032\026.google.pr" + - "otobuf.Empty\"w\202\265\030\025\n\021directories_write\030t\372" + - "\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002I\022G/api/v1/organizati" + - "ons/{organization_id}/directories/{direc" + - "tory_id}:sync\032\252\002\222A\246\002\n\tDirectory\022\230\002Direct" + - "ory management for viewing and controlli" + - "ng external identity provider connection" + - "s in your Scalekit environment. This ser" + - "vice provides endpoints for retrieving d" + - "irectory information, listing directorie" + - "s and their contents, and enabling or di" + - "sabling directory synchronization.B\362\001\n)c" + - "om.scalekit.grpc.scalekit.v1.directories" + - "B\020DirectoriesProtoP\001Z5github.com/scaleki" + - "t-inc/scalekit/pkg/grpc/directories\242\002\003SV" + - "D\252\002\027Scalekit.V1.Directories\312\002\027Scalekit\\V" + - "1\\Directories\342\002#Scalekit\\V1\\Directories\\" + - "GPBMetadata\352\002\031Scalekit::V1::Directoriesb" + - "\006proto3" + "irectory_id}/groups\022\323\004\n\032ListDirectoryGro" + + "upsSummary\022:.scalekit.v1.directories.Lis" + + "tDirectoryGroupsSummaryRequest\0324.scaleki" + + "t.v1.directories.ListDirectoryGroupsResp" + + "onse\"\302\003\222A\276\002\n\tDirectory\022\035List directory g" + + "roups summary\032\204\001Retrieves all groups fro" + + "m a specified directory. This is not a p" + + "aginated api. It gives a summary view wi" + + "th id and name of the group.J\212\001\n\003200\022\202\001\n" + + "FSuccessfully retrieved the list of grou" + + "ps from the specified directory\0228\n6\0324.sc" + + "alekit.v1.directories.ListDirectoryGroup" + + "sResponse\202\265\030\024\n\020directories_read\030t\372\322\344\223\002\t\022" + + "\007PREVIEW\202\323\344\223\002S\022Q/api/v1/organizations/{o" + + "rganization_id}/directories/{directory_i" + + "d}/groups/summary\022\376\002\n\025CreateDirectorySec" + + "ret\0225.scalekit.v1.directories.CreateDire" + + "ctorySecretRequest\0326.scalekit.v1.directo" + + "ries.CreateDirectorySecretResponse\"\365\001\222Ax" + + "\n\tDirectory\022\035Create secret for a directo" + + "ryJL\n\003200\022E\n\007Success\022:\n8\0326.scalekit.v1.d" + + "irectories.CreateDirectorySecretResponse" + + "\202\265\030\025\n\021directories_write\030t\372\322\344\223\002\t\022\007PREVIEW" + + "\202\323\344\223\002L\"J/api/v1/organizations/{organizat" + + "ion_id}/directories/{directory_id}/secre" + + "ts\022\236\003\n\031RegenerateDirectorySecret\0229.scale" + + "kit.v1.directories.RegenerateDirectorySe" + + "cretRequest\032:.scalekit.v1.directories.Re" + + "generateDirectorySecretResponse\"\211\002\222A\200\001\n\t" + + "Directory\022!Regenerate secret for a direc" + + "toryJP\n\003200\022I\n\007Success\022>\n<\032:.scalekit.v1" + + ".directories.RegenerateDirectorySecretRe" + + "sponse\202\265\030\025\n\021directories_write\030t\372\322\344\223\002\t\022\007P" + + "REVIEW\202\323\344\223\002W\"U/api/v1/organizations/{org" + + "anization_id}/directories/{directory_id}" + + "/secrets:regenerate\022\335\001\n\024TriggerDirectory" + + "Sync\0224.scalekit.v1.directories.TriggerDi" + + "rectorySyncRequest\032\026.google.protobuf.Emp" + + "ty\"w\202\265\030\025\n\021directories_write\030t\372\322\344\223\002\t\022\007PRE" + + "VIEW\202\323\344\223\002I\022G/api/v1/organizations/{organ" + + "ization_id}/directories/{directory_id}:s" + + "ync\022\226\003\n\023GetDirectoryContext\0223.scalekit.v" + + "1.directories.GetDirectoryContextRequest" + + "\0324.scalekit.v1.directories.GetDirectoryC" + + "ontextResponse\"\223\002\222A\247\001\n\tDirectory\022\025Get di" + + "rectory context\032;Retrieves the custom co" + + "ntext data for a specific directory.J\'\n\003" + + "200\022 \n\036Returns the directory context.J\035\n" + + "\003404\022\026\n\024Directory not found.\202\265\030\002\030p\372\322\344\223\002\t" + + "\022\007PREVIEW\202\323\344\223\002M\022K/api/v1/organizations/{" + + "organization_id}/directories/{directory_" + + "id}/contexts\022\242\003\n\026UpdateDirectoryContext\022" + + "6.scalekit.v1.directories.UpdateDirector" + + "yContextRequest\032\026.google.protobuf.Empty\"" + + "\267\002\222A\302\001\n\tDirectory\022\030Update directory cont" + + "ext\0329Updates the custom context data for" + + " a specific directory.J&\n\003200\022\037\n\035Context" + + " updated successfully.J\031\n\003400\022\022\n\020Invalid" + + " request.J\035\n\003404\022\026\n\024Directory not found." + + "\202\265\030\002\030p\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002V\032K/api/v1/org" + + "anizations/{organization_id}/directories" + + "/{directory_id}/contexts:\007context\032\252\002\222A\246\002" + + "\n\tDirectory\022\230\002Directory management for v" + + "iewing and controlling external identity" + + " provider connections in your Scalekit e" + + "nvironment. This service provides endpoi" + + "nts for retrieving directory information" + + ", listing directories and their contents" + + ", and enabling or disabling directory sy" + + "nchronization.B\362\001\n)com.scalekit.grpc.sca" + + "lekit.v1.directoriesB\020DirectoriesProtoP\001" + + "Z5github.com/scalekit-inc/scalekit/pkg/g" + + "rpc/directories\242\002\003SVD\252\002\027Scalekit.V1.Dire" + + "ctories\312\002\027Scalekit\\V1\\Directories\342\002#Scal" + + "ekit\\V1\\Directories\\GPBMetadata\352\002\031Scalek" + + "it::V1::Directoriesb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -1030,6 +1076,24 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_directories_TriggerDirectorySyncRequest_descriptor, new java.lang.String[] { "DirectoryId", "OrganizationId", }); + internal_static_scalekit_v1_directories_GetDirectoryContextRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_scalekit_v1_directories_GetDirectoryContextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_directories_GetDirectoryContextRequest_descriptor, + new java.lang.String[] { "DirectoryId", "OrganizationId", }); + internal_static_scalekit_v1_directories_GetDirectoryContextResponse_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_scalekit_v1_directories_GetDirectoryContextResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_directories_GetDirectoryContextResponse_descriptor, + new java.lang.String[] { "Context", }); + internal_static_scalekit_v1_directories_UpdateDirectoryContextRequest_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_scalekit_v1_directories_UpdateDirectoryContextRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_directories_UpdateDirectoryContextRequest_descriptor, + new java.lang.String[] { "DirectoryId", "OrganizationId", "Context", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.scalekit.grpc.buf.validate.ValidateProto.field); diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/directories/DirectoryServiceGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/DirectoryServiceGrpc.java index 75a7dbad..c23e0f29 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/directories/DirectoryServiceGrpc.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/DirectoryServiceGrpc.java @@ -511,6 +511,68 @@ com.google.protobuf.Empty> getTriggerDirectorySyncMethod() { return getTriggerDirectorySyncMethod; } + private static volatile io.grpc.MethodDescriptor getGetDirectoryContextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDirectoryContext", + requestType = com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetDirectoryContextMethod() { + io.grpc.MethodDescriptor getGetDirectoryContextMethod; + if ((getGetDirectoryContextMethod = DirectoryServiceGrpc.getGetDirectoryContextMethod) == null) { + synchronized (DirectoryServiceGrpc.class) { + if ((getGetDirectoryContextMethod = DirectoryServiceGrpc.getGetDirectoryContextMethod) == null) { + DirectoryServiceGrpc.getGetDirectoryContextMethod = getGetDirectoryContextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDirectoryContext")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse.getDefaultInstance())) + .setSchemaDescriptor(new DirectoryServiceMethodDescriptorSupplier("GetDirectoryContext")) + .build(); + } + } + } + return getGetDirectoryContextMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateDirectoryContextMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDirectoryContext", + requestType = com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateDirectoryContextMethod() { + io.grpc.MethodDescriptor getUpdateDirectoryContextMethod; + if ((getUpdateDirectoryContextMethod = DirectoryServiceGrpc.getUpdateDirectoryContextMethod) == null) { + synchronized (DirectoryServiceGrpc.class) { + if ((getUpdateDirectoryContextMethod = DirectoryServiceGrpc.getUpdateDirectoryContextMethod) == null) { + DirectoryServiceGrpc.getUpdateDirectoryContextMethod = getUpdateDirectoryContextMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDirectoryContext")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new DirectoryServiceMethodDescriptorSupplier("UpdateDirectoryContext")) + .build(); + } + } + } + return getUpdateDirectoryContextMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -670,6 +732,20 @@ default void triggerDirectorySync(com.scalekit.grpc.scalekit.v1.directories.Trig io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTriggerDirectorySyncMethod(), responseObserver); } + + /** + */ + default void getDirectoryContext(com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDirectoryContextMethod(), responseObserver); + } + + /** + */ + default void updateDirectoryContext(com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDirectoryContextMethod(), responseObserver); + } } /** @@ -826,6 +902,22 @@ public void triggerDirectorySync(com.scalekit.grpc.scalekit.v1.directories.Trigg io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getTriggerDirectorySyncMethod(), getCallOptions()), request, responseObserver); } + + /** + */ + public void getDirectoryContext(com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDirectoryContextMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void updateDirectoryContext(com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDirectoryContextMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -955,6 +1047,20 @@ public com.google.protobuf.Empty triggerDirectorySync(com.scalekit.grpc.scalekit return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTriggerDirectorySyncMethod(), getCallOptions(), request); } + + /** + */ + public com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse getDirectoryContext(com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDirectoryContextMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty updateDirectoryContext(com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDirectoryContextMethod(), getCallOptions(), request); + } } /** @@ -1100,6 +1206,22 @@ public com.google.common.util.concurrent.ListenableFuture getDirectoryContext( + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDirectoryContextMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture updateDirectoryContext( + com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDirectoryContextMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_DIRECTORY = 0; @@ -1118,6 +1240,8 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1200,6 +1324,14 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.triggerDirectorySync((com.scalekit.grpc.scalekit.v1.directories.TriggerDirectorySyncRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_DIRECTORY_CONTEXT: + serviceImpl.getDirectoryContext((com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DIRECTORY_CONTEXT: + serviceImpl.updateDirectoryContext((com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1330,6 +1462,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.directories.TriggerDirectorySyncRequest, com.google.protobuf.Empty>( service, METHODID_TRIGGER_DIRECTORY_SYNC))) + .addMethod( + getGetDirectoryContextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest, + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse>( + service, METHODID_GET_DIRECTORY_CONTEXT))) + .addMethod( + getUpdateDirectoryContextMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest, + com.google.protobuf.Empty>( + service, METHODID_UPDATE_DIRECTORY_CONTEXT))) .build(); } @@ -1394,6 +1540,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateDirectorySecretMethod()) .addMethod(getRegenerateDirectorySecretMethod()) .addMethod(getTriggerDirectorySyncMethod()) + .addMethod(getGetDirectoryContextMethod()) + .addMethod(getUpdateDirectoryContextMethod()) .build(); } } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/DeleteOrganizationSessionSettingsRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextRequest.java similarity index 55% rename from src/main/java/com/scalekit/grpc/scalekit/v1/organizations/DeleteOrganizationSessionSettingsRequest.java rename to src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextRequest.java index e0678aa1..952cafcf 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/DeleteOrganizationSessionSettingsRequest.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextRequest.java @@ -1,118 +1,118 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: scalekit/v1/organizations/organizations.proto +// source: scalekit/v1/directories/directories.proto // Protobuf Java Version: 3.25.3 -package com.scalekit.grpc.scalekit.v1.organizations; +package com.scalekit.grpc.scalekit.v1.directories; /** - * Protobuf type {@code scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest} + * Protobuf type {@code scalekit.v1.directories.GetDirectoryContextRequest} */ -public final class DeleteOrganizationSessionSettingsRequest extends +public final class GetDirectoryContextRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest) - DeleteOrganizationSessionSettingsRequestOrBuilder { + // @@protoc_insertion_point(message_implements:scalekit.v1.directories.GetDirectoryContextRequest) + GetDirectoryContextRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use DeleteOrganizationSessionSettingsRequest.newBuilder() to construct. - private DeleteOrganizationSessionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetDirectoryContextRequest.newBuilder() to construct. + private GetDirectoryContextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private DeleteOrganizationSessionSettingsRequest() { - id_ = ""; - environmentId_ = ""; + private GetDirectoryContextRequest() { + directoryId_ = ""; + organizationId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new DeleteOrganizationSessionSettingsRequest(); + return new GetDirectoryContextRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_DeleteOrganizationSessionSettingsRequest_descriptor; + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_GetDirectoryContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_DeleteOrganizationSessionSettingsRequest_fieldAccessorTable + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_GetDirectoryContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest.class, com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest.Builder.class); + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest.class, com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest.Builder.class); } - public static final int ID_FIELD_NUMBER = 1; + public static final int DIRECTORY_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; + private volatile java.lang.Object directoryId_ = ""; /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The id. + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @return The directoryId. */ @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getDirectoryId() { + java.lang.Object ref = directoryId_; 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(); - id_ = s; + directoryId_ = s; return s; } } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for id. + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @return The bytes for directoryId. */ @java.lang.Override public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; + getDirectoryIdBytes() { + java.lang.Object ref = directoryId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - id_ = b; + directoryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int ENVIRONMENT_ID_FIELD_NUMBER = 2; + public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object environmentId_ = ""; + private volatile java.lang.Object organizationId_ = ""; /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The organizationId. */ @java.lang.Override - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; 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(); - environmentId_ = s; + organizationId_ = s; return s; } } /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The bytes for organizationId. */ @java.lang.Override public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - environmentId_ = b; + organizationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -133,11 +133,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(directoryId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, directoryId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environmentId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, organizationId_); } getUnknownFields().writeTo(output); } @@ -148,11 +148,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(directoryId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, directoryId_); } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, organizationId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -164,15 +164,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest)) { + if (!(obj instanceof com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest)) { return super.equals(obj); } - com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest other = (com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest) obj; + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest other = (com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getEnvironmentId() - .equals(other.getEnvironmentId())) return false; + if (!getDirectoryId() + .equals(other.getDirectoryId())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,53 +184,53 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getEnvironmentId().hashCode(); + hash = (37 * hash) + DIRECTORY_ID_FIELD_NUMBER; + hash = (53 * hash) + getDirectoryId().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest parseFrom(byte[] data) + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest parseFrom(java.io.InputStream input) + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -238,26 +238,26 @@ public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSess .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest parseDelimitedFrom(java.io.InputStream input) + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest parseDelimitedFrom( + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -270,7 +270,7 @@ public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSess public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest prototype) { + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -286,26 +286,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest} + * Protobuf type {@code scalekit.v1.directories.GetDirectoryContextRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest) - com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:scalekit.v1.directories.GetDirectoryContextRequest) + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_DeleteOrganizationSessionSettingsRequest_descriptor; + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_GetDirectoryContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_DeleteOrganizationSessionSettingsRequest_fieldAccessorTable + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_GetDirectoryContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest.class, com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest.Builder.class); + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest.class, com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest.Builder.class); } - // Construct using com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest.newBuilder() + // Construct using com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest.newBuilder() private Builder() { } @@ -319,25 +319,25 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - id_ = ""; - environmentId_ = ""; + directoryId_ = ""; + organizationId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_DeleteOrganizationSessionSettingsRequest_descriptor; + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_GetDirectoryContextRequest_descriptor; } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest getDefaultInstanceForType() { - return com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest.getDefaultInstance(); + public com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest.getDefaultInstance(); } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest build() { - com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest result = buildPartial(); + public com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest build() { + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -345,20 +345,20 @@ public com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSett } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest buildPartial() { - com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest result = new com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest(this); + public com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest result = new com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest result) { + private void buildPartial0(com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; + result.directoryId_ = directoryId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.environmentId_ = environmentId_; + result.organizationId_ = organizationId_; } } @@ -396,23 +396,23 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest) { - return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest)other); + if (other instanceof com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest other) { - if (other == com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest.getDefaultInstance()) return this; + if (!other.getDirectoryId().isEmpty()) { + directoryId_ = other.directoryId_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getEnvironmentId().isEmpty()) { - environmentId_ = other.environmentId_; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; bitField0_ |= 0x00000002; onChanged(); } @@ -443,12 +443,12 @@ public Builder mergeFrom( done = true; break; case 10: { - id_ = input.readStringRequireUtf8(); + directoryId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - environmentId_ = input.readStringRequireUtf8(); + organizationId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 @@ -469,145 +469,145 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object id_ = ""; + private java.lang.Object directoryId_ = ""; /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The id. + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @return The directoryId. */ - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getDirectoryId() { + java.lang.Object ref = directoryId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - id_ = s; + directoryId_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for id. + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @return The bytes for directoryId. */ public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; + getDirectoryIdBytes() { + java.lang.Object ref = directoryId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - id_ = b; + directoryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The id to set. + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @param value The directoryId to set. * @return This builder for chaining. */ - public Builder setId( + public Builder setDirectoryId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + directoryId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } * @return This builder for chaining. */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); + public Builder clearDirectoryId() { + directoryId_ = getDefaultInstance().getDirectoryId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for id to set. + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @param value The bytes for directoryId to set. * @return This builder for chaining. */ - public Builder setIdBytes( + public Builder setDirectoryIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + directoryId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object environmentId_ = ""; + private java.lang.Object organizationId_ = ""; /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The organizationId. */ - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - environmentId_ = s; + organizationId_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The bytes for organizationId. */ public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - environmentId_ = b; + organizationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The environmentId to set. + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @param value The organizationId to set. * @return This builder for chaining. */ - public Builder setEnvironmentId( + public Builder setOrganizationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environmentId_ = value; + organizationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @return This builder for chaining. */ - public Builder clearEnvironmentId() { - environmentId_ = getDefaultInstance().getEnvironmentId(); + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for environmentId to set. + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @param value The bytes for organizationId to set. * @return This builder for chaining. */ - public Builder setEnvironmentIdBytes( + public Builder setOrganizationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environmentId_ = value; + organizationId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -625,23 +625,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest) + // @@protoc_insertion_point(builder_scope:scalekit.v1.directories.GetDirectoryContextRequest) } - // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest) - private static final com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:scalekit.v1.directories.GetDirectoryContextRequest) + private static final com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest(); + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest(); } - public static com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest getDefaultInstance() { + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public DeleteOrganizationSessionSettingsRequest parsePartialFrom( + public GetDirectoryContextRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -660,17 +660,17 @@ public DeleteOrganizationSessionSettingsRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest getDefaultInstanceForType() { + public com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextRequestOrBuilder.java new file mode 100644 index 00000000..fe60886d --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextRequestOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/directories/directories.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.directories; + +public interface GetDirectoryContextRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.directories.GetDirectoryContextRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @return The directoryId. + */ + java.lang.String getDirectoryId(); + /** + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @return The bytes for directoryId. + */ + com.google.protobuf.ByteString + getDirectoryIdBytes(); + + /** + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextResponse.java new file mode 100644 index 00000000..1cac0c0c --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextResponse.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/directories/directories.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.directories; + +/** + * Protobuf type {@code scalekit.v1.directories.GetDirectoryContextResponse} + */ +public final class GetDirectoryContextResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.directories.GetDirectoryContextResponse) + GetDirectoryContextResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetDirectoryContextResponse.newBuilder() to construct. + private GetDirectoryContextResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetDirectoryContextResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetDirectoryContextResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_GetDirectoryContextResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_GetDirectoryContextResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse.class, com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse.Builder.class); + } + + private int bitField0_; + public static final int CONTEXT_FIELD_NUMBER = 1; + private com.google.protobuf.Struct context_; + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + * @return Whether the context field is set. + */ + @java.lang.Override + public boolean hasContext() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + * @return The context. + */ + @java.lang.Override + public com.google.protobuf.Struct getContext() { + return context_ == null ? com.google.protobuf.Struct.getDefaultInstance() : context_; + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getContextOrBuilder() { + return context_ == null ? com.google.protobuf.Struct.getDefaultInstance() : context_; + } + + 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, getContext()); + } + 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, getContext()); + } + 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.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse other = (com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse) obj; + + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext() + .equals(other.getContext())) 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 (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.directories.GetDirectoryContextResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.directories.GetDirectoryContextResponse) + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_GetDirectoryContextResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_GetDirectoryContextResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse.class, com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getContextFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_GetDirectoryContextResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse build() { + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse result = new com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.context_ = contextBuilder_ == null + ? context_ + : contextBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse.getDefaultInstance()) return this; + if (other.hasContext()) { + mergeContext(other.getContext()); + } + 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( + getContextFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.google.protobuf.Struct context_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> contextBuilder_; + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + * @return Whether the context field is set. + */ + public boolean hasContext() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + * @return The context. + */ + public com.google.protobuf.Struct getContext() { + if (contextBuilder_ == null) { + return context_ == null ? com.google.protobuf.Struct.getDefaultInstance() : context_; + } else { + return contextBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + public Builder setContext(com.google.protobuf.Struct value) { + if (contextBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + } else { + contextBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + public Builder setContext( + com.google.protobuf.Struct.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); + } else { + contextBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + public Builder mergeContext(com.google.protobuf.Struct value) { + if (contextBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + context_ != null && + context_ != com.google.protobuf.Struct.getDefaultInstance()) { + getContextBuilder().mergeFrom(value); + } else { + context_ = value; + } + } else { + contextBuilder_.mergeFrom(value); + } + if (context_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + public Builder clearContext() { + bitField0_ = (bitField0_ & ~0x00000001); + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + public com.google.protobuf.Struct.Builder getContextBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getContextFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + public com.google.protobuf.StructOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); + } else { + return context_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : context_; + } + } + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getContext(), + getParentForChildren(), + isClean()); + context_ = null; + } + return contextBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.directories.GetDirectoryContextResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.directories.GetDirectoryContextResponse) + private static final com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDirectoryContextResponse 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.scalekit.grpc.scalekit.v1.directories.GetDirectoryContextResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextResponseOrBuilder.java new file mode 100644 index 00000000..1e65b7ef --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/GetDirectoryContextResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/directories/directories.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.directories; + +public interface GetDirectoryContextResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.directories.GetDirectoryContextResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + * @return The context. + */ + com.google.protobuf.Struct getContext(); + /** + * .google.protobuf.Struct context = 1 [json_name = "context"]; + */ + com.google.protobuf.StructOrBuilder getContextOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationSessionSettingsResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/UpdateDirectoryContextRequest.java similarity index 51% rename from src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationSessionSettingsResponse.java rename to src/main/java/com/scalekit/grpc/scalekit/v1/directories/UpdateDirectoryContextRequest.java index 697fee78..e370be00 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationSessionSettingsResponse.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/UpdateDirectoryContextRequest.java @@ -1,23 +1,23 @@ // Generated by the protocol buffer compiler. DO NOT EDIT! -// source: scalekit/v1/organizations/organizations.proto +// source: scalekit/v1/directories/directories.proto // Protobuf Java Version: 3.25.3 -package com.scalekit.grpc.scalekit.v1.organizations; +package com.scalekit.grpc.scalekit.v1.directories; /** - * Protobuf type {@code scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse} + * Protobuf type {@code scalekit.v1.directories.UpdateDirectoryContextRequest} */ -public final class CreateOrganizationSessionSettingsResponse extends +public final class UpdateDirectoryContextRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse) - CreateOrganizationSessionSettingsResponseOrBuilder { + // @@protoc_insertion_point(message_implements:scalekit.v1.directories.UpdateDirectoryContextRequest) + UpdateDirectoryContextRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use CreateOrganizationSessionSettingsResponse.newBuilder() to construct. - private CreateOrganizationSessionSettingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use UpdateDirectoryContextRequest.newBuilder() to construct. + private UpdateDirectoryContextRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private CreateOrganizationSessionSettingsResponse() { - environmentId_ = ""; + private UpdateDirectoryContextRequest() { + directoryId_ = ""; organizationId_ = ""; } @@ -25,56 +25,56 @@ private CreateOrganizationSessionSettingsResponse() { @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new CreateOrganizationSessionSettingsResponse(); + return new UpdateDirectoryContextRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsResponse_descriptor; + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_UpdateDirectoryContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsResponse_fieldAccessorTable + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_UpdateDirectoryContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse.class, com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse.Builder.class); + com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest.class, com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest.Builder.class); } private int bitField0_; - public static final int ENVIRONMENT_ID_FIELD_NUMBER = 1; + public static final int DIRECTORY_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object environmentId_ = ""; + private volatile java.lang.Object directoryId_ = ""; /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @return The directoryId. */ @java.lang.Override - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; + public java.lang.String getDirectoryId() { + java.lang.Object ref = directoryId_; 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(); - environmentId_ = s; + directoryId_ = s; return s; } } /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @return The bytes for directoryId. */ @java.lang.Override public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; + getDirectoryIdBytes() { + java.lang.Object ref = directoryId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - environmentId_ = b; + directoryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -85,7 +85,7 @@ public java.lang.String getEnvironmentId() { @SuppressWarnings("serial") private volatile java.lang.Object organizationId_ = ""; /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @return The organizationId. */ @java.lang.Override @@ -102,7 +102,7 @@ public java.lang.String getOrganizationId() { } } /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @return The bytes for organizationId. */ @java.lang.Override @@ -120,30 +120,30 @@ public java.lang.String getOrganizationId() { } } - public static final int SESSION_SETTINGS_FIELD_NUMBER = 3; - private com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings sessionSettings_; + public static final int CONTEXT_FIELD_NUMBER = 3; + private com.google.protobuf.Struct context_; /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionSettings field is set. + * .google.protobuf.Struct context = 3 [json_name = "context"]; + * @return Whether the context field is set. */ @java.lang.Override - public boolean hasSessionSettings() { + public boolean hasContext() { return ((bitField0_ & 0x00000001) != 0); } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionSettings. + * .google.protobuf.Struct context = 3 [json_name = "context"]; + * @return The context. */ @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings getSessionSettings() { - return sessionSettings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; + public com.google.protobuf.Struct getContext() { + return context_ == null ? com.google.protobuf.Struct.getDefaultInstance() : context_; } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder getSessionSettingsOrBuilder() { - return sessionSettings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; + public com.google.protobuf.StructOrBuilder getContextOrBuilder() { + return context_ == null ? com.google.protobuf.Struct.getDefaultInstance() : context_; } private byte memoizedIsInitialized = -1; @@ -160,14 +160,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environmentId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(directoryId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, directoryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, organizationId_); } if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getSessionSettings()); + output.writeMessage(3, getContext()); } getUnknownFields().writeTo(output); } @@ -178,15 +178,15 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, environmentId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(directoryId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, directoryId_); } if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, organizationId_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSessionSettings()); + .computeMessageSize(3, getContext()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -198,19 +198,19 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse)) { + if (!(obj instanceof com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest)) { return super.equals(obj); } - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse other = (com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse) obj; + com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest other = (com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest) obj; - if (!getEnvironmentId() - .equals(other.getEnvironmentId())) return false; + if (!getDirectoryId() + .equals(other.getDirectoryId())) return false; if (!getOrganizationId() .equals(other.getOrganizationId())) return false; - if (hasSessionSettings() != other.hasSessionSettings()) return false; - if (hasSessionSettings()) { - if (!getSessionSettings() - .equals(other.getSessionSettings())) return false; + if (hasContext() != other.hasContext()) return false; + if (hasContext()) { + if (!getContext() + .equals(other.getContext())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -223,57 +223,57 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getEnvironmentId().hashCode(); + hash = (37 * hash) + DIRECTORY_ID_FIELD_NUMBER; + hash = (53 * hash) + getDirectoryId().hashCode(); hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; hash = (53 * hash) + getOrganizationId().hashCode(); - if (hasSessionSettings()) { - hash = (37 * hash) + SESSION_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getSessionSettings().hashCode(); + if (hasContext()) { + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse parseFrom(byte[] data) + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse parseFrom(java.io.InputStream input) + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -281,26 +281,26 @@ public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSess .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse parseDelimitedFrom(java.io.InputStream input) + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse parseDelimitedFrom( + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse parseFrom( + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -313,7 +313,7 @@ public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSess public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse prototype) { + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -329,26 +329,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse} + * Protobuf type {@code scalekit.v1.directories.UpdateDirectoryContextRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse) - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponseOrBuilder { + // @@protoc_insertion_point(builder_implements:scalekit.v1.directories.UpdateDirectoryContextRequest) + com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsResponse_descriptor; + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_UpdateDirectoryContextRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsResponse_fieldAccessorTable + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_UpdateDirectoryContextRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse.class, com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse.Builder.class); + com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest.class, com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest.Builder.class); } - // Construct using com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse.newBuilder() + // Construct using com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -361,19 +361,19 @@ private Builder( private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { - getSessionSettingsFieldBuilder(); + getContextFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - environmentId_ = ""; + directoryId_ = ""; organizationId_ = ""; - sessionSettings_ = null; - if (sessionSettingsBuilder_ != null) { - sessionSettingsBuilder_.dispose(); - sessionSettingsBuilder_ = null; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; } return this; } @@ -381,17 +381,17 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsResponse_descriptor; + return com.scalekit.grpc.scalekit.v1.directories.DirectoriesProto.internal_static_scalekit_v1_directories_UpdateDirectoryContextRequest_descriptor; } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse getDefaultInstanceForType() { - return com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse.getDefaultInstance(); + public com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest.getDefaultInstance(); } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse build() { - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse result = buildPartial(); + public com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest build() { + com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -399,26 +399,26 @@ public com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSett } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse buildPartial() { - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse result = new com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse(this); + public com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest result = new com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse result) { + private void buildPartial0(com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.environmentId_ = environmentId_; + result.directoryId_ = directoryId_; } if (((from_bitField0_ & 0x00000002) != 0)) { result.organizationId_ = organizationId_; } int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { - result.sessionSettings_ = sessionSettingsBuilder_ == null - ? sessionSettings_ - : sessionSettingsBuilder_.build(); + result.context_ = contextBuilder_ == null + ? context_ + : contextBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -458,18 +458,18 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse) { - return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse)other); + if (other instanceof com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse other) { - if (other == com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse.getDefaultInstance()) return this; - if (!other.getEnvironmentId().isEmpty()) { - environmentId_ = other.environmentId_; + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest.getDefaultInstance()) return this; + if (!other.getDirectoryId().isEmpty()) { + directoryId_ = other.directoryId_; bitField0_ |= 0x00000001; onChanged(); } @@ -478,8 +478,8 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.CreateOrgan bitField0_ |= 0x00000002; onChanged(); } - if (other.hasSessionSettings()) { - mergeSessionSettings(other.getSessionSettings()); + if (other.hasContext()) { + mergeContext(other.getContext()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -508,7 +508,7 @@ public Builder mergeFrom( done = true; break; case 10: { - environmentId_ = input.readStringRequireUtf8(); + directoryId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 @@ -519,7 +519,7 @@ public Builder mergeFrom( } // case 18 case 26: { input.readMessage( - getSessionSettingsFieldBuilder().getBuilder(), + getContextFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; @@ -541,73 +541,73 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object environmentId_ = ""; + private java.lang.Object directoryId_ = ""; /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @return The directoryId. */ - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; + public java.lang.String getDirectoryId() { + java.lang.Object ref = directoryId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - environmentId_ = s; + directoryId_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @return The bytes for directoryId. */ public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; + getDirectoryIdBytes() { + java.lang.Object ref = directoryId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - environmentId_ = b; + directoryId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The environmentId to set. + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @param value The directoryId to set. * @return This builder for chaining. */ - public Builder setEnvironmentId( + public Builder setDirectoryId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - environmentId_ = value; + directoryId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } * @return This builder for chaining. */ - public Builder clearEnvironmentId() { - environmentId_ = getDefaultInstance().getEnvironmentId(); + public Builder clearDirectoryId() { + directoryId_ = getDefaultInstance().getDirectoryId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for environmentId to set. + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @param value The bytes for directoryId to set. * @return This builder for chaining. */ - public Builder setEnvironmentIdBytes( + public Builder setDirectoryIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - environmentId_ = value; + directoryId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -615,7 +615,7 @@ public Builder setEnvironmentIdBytes( private java.lang.Object organizationId_ = ""; /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @return The organizationId. */ public java.lang.String getOrganizationId() { @@ -631,7 +631,7 @@ public java.lang.String getOrganizationId() { } } /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @return The bytes for organizationId. */ public com.google.protobuf.ByteString @@ -648,7 +648,7 @@ public java.lang.String getOrganizationId() { } } /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @param value The organizationId to set. * @return This builder for chaining. */ @@ -661,7 +661,7 @@ public Builder setOrganizationId( return this; } /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @return This builder for chaining. */ public Builder clearOrganizationId() { @@ -671,7 +671,7 @@ public Builder clearOrganizationId() { return this; } /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } * @param value The bytes for organizationId to set. * @return This builder for chaining. */ @@ -685,125 +685,125 @@ public Builder setOrganizationIdBytes( return this; } - private com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings sessionSettings_; + private com.google.protobuf.Struct context_; private com.google.protobuf.SingleFieldBuilderV3< - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder> sessionSettingsBuilder_; + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> contextBuilder_; /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionSettings field is set. + * .google.protobuf.Struct context = 3 [json_name = "context"]; + * @return Whether the context field is set. */ - public boolean hasSessionSettings() { + public boolean hasContext() { return ((bitField0_ & 0x00000004) != 0); } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionSettings. + * .google.protobuf.Struct context = 3 [json_name = "context"]; + * @return The context. */ - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings getSessionSettings() { - if (sessionSettingsBuilder_ == null) { - return sessionSettings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; + public com.google.protobuf.Struct getContext() { + if (contextBuilder_ == null) { + return context_ == null ? com.google.protobuf.Struct.getDefaultInstance() : context_; } else { - return sessionSettingsBuilder_.getMessage(); + return contextBuilder_.getMessage(); } } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ - public Builder setSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings value) { - if (sessionSettingsBuilder_ == null) { + public Builder setContext(com.google.protobuf.Struct value) { + if (contextBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - sessionSettings_ = value; + context_ = value; } else { - sessionSettingsBuilder_.setMessage(value); + contextBuilder_.setMessage(value); } bitField0_ |= 0x00000004; onChanged(); return this; } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ - public Builder setSessionSettings( - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder builderForValue) { - if (sessionSettingsBuilder_ == null) { - sessionSettings_ = builderForValue.build(); + public Builder setContext( + com.google.protobuf.Struct.Builder builderForValue) { + if (contextBuilder_ == null) { + context_ = builderForValue.build(); } else { - sessionSettingsBuilder_.setMessage(builderForValue.build()); + contextBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; onChanged(); return this; } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ - public Builder mergeSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings value) { - if (sessionSettingsBuilder_ == null) { + public Builder mergeContext(com.google.protobuf.Struct value) { + if (contextBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && - sessionSettings_ != null && - sessionSettings_ != com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance()) { - getSessionSettingsBuilder().mergeFrom(value); + context_ != null && + context_ != com.google.protobuf.Struct.getDefaultInstance()) { + getContextBuilder().mergeFrom(value); } else { - sessionSettings_ = value; + context_ = value; } } else { - sessionSettingsBuilder_.mergeFrom(value); + contextBuilder_.mergeFrom(value); } - if (sessionSettings_ != null) { + if (context_ != null) { bitField0_ |= 0x00000004; onChanged(); } return this; } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ - public Builder clearSessionSettings() { + public Builder clearContext() { bitField0_ = (bitField0_ & ~0x00000004); - sessionSettings_ = null; - if (sessionSettingsBuilder_ != null) { - sessionSettingsBuilder_.dispose(); - sessionSettingsBuilder_ = null; + context_ = null; + if (contextBuilder_ != null) { + contextBuilder_.dispose(); + contextBuilder_ = null; } onChanged(); return this; } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder getSessionSettingsBuilder() { + public com.google.protobuf.Struct.Builder getContextBuilder() { bitField0_ |= 0x00000004; onChanged(); - return getSessionSettingsFieldBuilder().getBuilder(); + return getContextFieldBuilder().getBuilder(); } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder getSessionSettingsOrBuilder() { - if (sessionSettingsBuilder_ != null) { - return sessionSettingsBuilder_.getMessageOrBuilder(); + public com.google.protobuf.StructOrBuilder getContextOrBuilder() { + if (contextBuilder_ != null) { + return contextBuilder_.getMessageOrBuilder(); } else { - return sessionSettings_ == null ? - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; + return context_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : context_; } } /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * .google.protobuf.Struct context = 3 [json_name = "context"]; */ private com.google.protobuf.SingleFieldBuilderV3< - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder> - getSessionSettingsFieldBuilder() { - if (sessionSettingsBuilder_ == null) { - sessionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder>( - getSessionSettings(), + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getContextFieldBuilder() { + if (contextBuilder_ == null) { + contextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getContext(), getParentForChildren(), isClean()); - sessionSettings_ = null; + context_ = null; } - return sessionSettingsBuilder_; + return contextBuilder_; } @java.lang.Override public final Builder setUnknownFields( @@ -818,23 +818,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse) + // @@protoc_insertion_point(builder_scope:scalekit.v1.directories.UpdateDirectoryContextRequest) } - // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse) - private static final com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:scalekit.v1.directories.UpdateDirectoryContextRequest) + private static final com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse(); + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest(); } - public static com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse getDefaultInstance() { + public static com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public CreateOrganizationSessionSettingsResponse parsePartialFrom( + public UpdateDirectoryContextRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -853,17 +853,17 @@ public CreateOrganizationSessionSettingsResponse parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse getDefaultInstanceForType() { + public com.scalekit.grpc.scalekit.v1.directories.UpdateDirectoryContextRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/directories/UpdateDirectoryContextRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/UpdateDirectoryContextRequestOrBuilder.java new file mode 100644 index 00000000..4d82f344 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/directories/UpdateDirectoryContextRequestOrBuilder.java @@ -0,0 +1,49 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/directories/directories.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.directories; + +public interface UpdateDirectoryContextRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.directories.UpdateDirectoryContextRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @return The directoryId. + */ + java.lang.String getDirectoryId(); + /** + * string directory_id = 1 [json_name = "directoryId", (.buf.validate.field) = { ... } + * @return The bytes for directoryId. + */ + com.google.protobuf.ByteString + getDirectoryIdBytes(); + + /** + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 2 [json_name = "organizationId", (.buf.validate.field) = { ... } + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * .google.protobuf.Struct context = 3 [json_name = "context"]; + * @return Whether the context field is set. + */ + boolean hasContext(); + /** + * .google.protobuf.Struct context = 3 [json_name = "context"]; + * @return The context. + */ + com.google.protobuf.Struct getContext(); + /** + * .google.protobuf.Struct context = 3 [json_name = "context"]; + */ + com.google.protobuf.StructOrBuilder getContextOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/Domain.java b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/Domain.java index 30b21d61..8eec4c6e 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/Domain.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/Domain.java @@ -25,6 +25,7 @@ private Domain() { txtRecordSecret_ = ""; verificationStatus_ = 0; domainType_ = 0; + verificationMethod_ = 0; } @java.lang.Override @@ -370,6 +371,24 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return result == null ? com.scalekit.grpc.scalekit.v1.domains.DomainType.UNRECOGNIZED : result; } + public static final int VERIFICATION_METHOD_FIELD_NUMBER = 13; + private int verificationMethod_ = 0; + /** + * .scalekit.v1.domains.VerificationMethod verification_method = 13 [json_name = "verificationMethod", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for verificationMethod. + */ + @java.lang.Override public int getVerificationMethodValue() { + return verificationMethod_; + } + /** + * .scalekit.v1.domains.VerificationMethod verification_method = 13 [json_name = "verificationMethod", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The verificationMethod. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.domains.VerificationMethod getVerificationMethod() { + com.scalekit.grpc.scalekit.v1.domains.VerificationMethod result = com.scalekit.grpc.scalekit.v1.domains.VerificationMethod.forNumber(verificationMethod_); + return result == null ? com.scalekit.grpc.scalekit.v1.domains.VerificationMethod.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -414,6 +433,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (domainType_ != com.scalekit.grpc.scalekit.v1.domains.DomainType.DOMAIN_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(12, domainType_); } + if (verificationMethod_ != com.scalekit.grpc.scalekit.v1.domains.VerificationMethod.VERIFICATION_METHOD_UNSPECIFIED.getNumber()) { + output.writeEnum(13, verificationMethod_); + } getUnknownFields().writeTo(output); } @@ -457,6 +479,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(12, domainType_); } + if (verificationMethod_ != com.scalekit.grpc.scalekit.v1.domains.VerificationMethod.VERIFICATION_METHOD_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(13, verificationMethod_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -496,6 +522,7 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getUpdateTime())) return false; } if (domainType_ != other.domainType_) return false; + if (verificationMethod_ != other.verificationMethod_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -531,6 +558,8 @@ public int hashCode() { } hash = (37 * hash) + DOMAIN_TYPE_FIELD_NUMBER; hash = (53 * hash) + domainType_; + hash = (37 * hash) + VERIFICATION_METHOD_FIELD_NUMBER; + hash = (53 * hash) + verificationMethod_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -687,6 +716,7 @@ public Builder clear() { updateTimeBuilder_ = null; } domainType_ = 0; + verificationMethod_ = 0; return this; } @@ -757,6 +787,9 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.domains.Domain result) if (((from_bitField0_ & 0x00000200) != 0)) { result.domainType_ = domainType_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.verificationMethod_ = verificationMethod_; + } result.bitField0_ |= to_bitField0_; } @@ -846,6 +879,9 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.domains.Domain other) { if (other.domainType_ != 0) { setDomainTypeValue(other.getDomainTypeValue()); } + if (other.verificationMethod_ != 0) { + setVerificationMethodValue(other.getVerificationMethodValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -926,6 +962,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 96 + case 104: { + verificationMethod_ = input.readEnum(); + bitField0_ |= 0x00000400; + break; + } // case 104 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1722,6 +1763,59 @@ public Builder clearDomainType() { onChanged(); return this; } + + private int verificationMethod_ = 0; + /** + * .scalekit.v1.domains.VerificationMethod verification_method = 13 [json_name = "verificationMethod", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for verificationMethod. + */ + @java.lang.Override public int getVerificationMethodValue() { + return verificationMethod_; + } + /** + * .scalekit.v1.domains.VerificationMethod verification_method = 13 [json_name = "verificationMethod", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The enum numeric value on the wire for verificationMethod to set. + * @return This builder for chaining. + */ + public Builder setVerificationMethodValue(int value) { + verificationMethod_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + /** + * .scalekit.v1.domains.VerificationMethod verification_method = 13 [json_name = "verificationMethod", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The verificationMethod. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.domains.VerificationMethod getVerificationMethod() { + com.scalekit.grpc.scalekit.v1.domains.VerificationMethod result = com.scalekit.grpc.scalekit.v1.domains.VerificationMethod.forNumber(verificationMethod_); + return result == null ? com.scalekit.grpc.scalekit.v1.domains.VerificationMethod.UNRECOGNIZED : result; + } + /** + * .scalekit.v1.domains.VerificationMethod verification_method = 13 [json_name = "verificationMethod", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The verificationMethod to set. + * @return This builder for chaining. + */ + public Builder setVerificationMethod(com.scalekit.grpc.scalekit.v1.domains.VerificationMethod value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000400; + verificationMethod_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .scalekit.v1.domains.VerificationMethod verification_method = 13 [json_name = "verificationMethod", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearVerificationMethod() { + bitField0_ = (bitField0_ & ~0x00000400); + verificationMethod_ = 0; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainOrBuilder.java index 27de54ac..541a92e1 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainOrBuilder.java @@ -131,4 +131,15 @@ public interface DomainOrBuilder extends * @return The domainType. */ com.scalekit.grpc.scalekit.v1.domains.DomainType getDomainType(); + + /** + * .scalekit.v1.domains.VerificationMethod verification_method = 13 [json_name = "verificationMethod", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for verificationMethod. + */ + int getVerificationMethodValue(); + /** + * .scalekit.v1.domains.VerificationMethod verification_method = 13 [json_name = "verificationMethod", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The verificationMethod. + */ + com.scalekit.grpc.scalekit.v1.domains.VerificationMethod getVerificationMethod(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainServiceGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainServiceGrpc.java index bd38322d..bc926f65 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainServiceGrpc.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainServiceGrpc.java @@ -78,28 +78,28 @@ com.scalekit.grpc.scalekit.v1.domains.UpdateDomainResponse> getUpdateDomainMetho } private static volatile io.grpc.MethodDescriptor getVerifyDomainMethod; + com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse> getVerifyDomainMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "VerifyDomain", requestType = com.scalekit.grpc.scalekit.v1.domains.VerifyDomainRequest.class, - responseType = com.google.protobuf.BoolValue.class, + responseType = com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getVerifyDomainMethod() { - io.grpc.MethodDescriptor getVerifyDomainMethod; + com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse> getVerifyDomainMethod() { + io.grpc.MethodDescriptor getVerifyDomainMethod; if ((getVerifyDomainMethod = DomainServiceGrpc.getVerifyDomainMethod) == null) { synchronized (DomainServiceGrpc.class) { if ((getVerifyDomainMethod = DomainServiceGrpc.getVerifyDomainMethod) == null) { DomainServiceGrpc.getVerifyDomainMethod = getVerifyDomainMethod = - io.grpc.MethodDescriptor.newBuilder() + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VerifyDomain")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.scalekit.grpc.scalekit.v1.domains.VerifyDomainRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.BoolValue.getDefaultInstance())) + com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse.getDefaultInstance())) .setSchemaDescriptor(new DomainServiceMethodDescriptorSupplier("VerifyDomain")) .build(); } @@ -297,7 +297,7 @@ default void updateDomain(com.scalekit.grpc.scalekit.v1.domains.UpdateDomainRequ /** */ default void verifyDomain(com.scalekit.grpc.scalekit.v1.domains.VerifyDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVerifyDomainMethod(), responseObserver); } @@ -376,7 +376,7 @@ public void updateDomain(com.scalekit.grpc.scalekit.v1.domains.UpdateDomainReque /** */ public void verifyDomain(com.scalekit.grpc.scalekit.v1.domains.VerifyDomainRequest request, - io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getVerifyDomainMethod(), getCallOptions()), request, responseObserver); } @@ -446,7 +446,7 @@ public com.scalekit.grpc.scalekit.v1.domains.UpdateDomainResponse updateDomain(c /** */ - public com.google.protobuf.BoolValue verifyDomain(com.scalekit.grpc.scalekit.v1.domains.VerifyDomainRequest request) { + public com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse verifyDomain(com.scalekit.grpc.scalekit.v1.domains.VerifyDomainRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getVerifyDomainMethod(), getCallOptions(), request); } @@ -514,7 +514,7 @@ public com.google.common.util.concurrent.ListenableFuture verifyDomain( + public com.google.common.util.concurrent.ListenableFuture verifyDomain( com.scalekit.grpc.scalekit.v1.domains.VerifyDomainRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getVerifyDomainMethod(), getCallOptions()), request); @@ -588,7 +588,7 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv break; case METHODID_VERIFY_DOMAIN: serviceImpl.verifyDomain((com.scalekit.grpc.scalekit.v1.domains.VerifyDomainRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_DOMAIN: serviceImpl.getDomain((com.scalekit.grpc.scalekit.v1.domains.GetDomainRequest) request, @@ -643,7 +643,7 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.scalekit.grpc.scalekit.v1.domains.VerifyDomainRequest, - com.google.protobuf.BoolValue>( + com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse>( service, METHODID_VERIFY_DOMAIN))) .addMethod( getGetDomainMethod(), diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainType.java b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainType.java index d4c1c837..1157f61a 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainType.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainType.java @@ -95,7 +95,7 @@ public DomainType findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.scalekit.grpc.scalekit.v1.domains.DomainsProto.getDescriptor().getEnumTypes().get(1); + return com.scalekit.grpc.scalekit.v1.domains.DomainsProto.getDescriptor().getEnumTypes().get(2); } private static final DomainType[] VALUES = values(); diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainsProto.java index 56d42e7b..d14556db 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/DomainsProto.java @@ -70,6 +70,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_domains_VerifyDomainRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_domains_VerifyDomainResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_domains_VerifyDomainResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_scalekit_v1_domains_ListDomainResponse_descriptor; static final @@ -104,376 +109,403 @@ public static void registerAllExtensions( "proto\032\034google/api/annotations.proto\032\037goo" + "gle/api/field_behavior.proto\032\033google/api" + "/visibility.proto\032\033google/protobuf/empty" + - ".proto\032\037google/protobuf/timestamp.proto\032" + - "\036google/protobuf/wrappers.proto\032.protoc-" + - "gen-openapiv2/options/annotations.proto\032" + - "!scalekit/v1/options/options.proto\"\212\006\n\023C" + - "reateDomainRequest\022\313\001\n\017organization_id\030\001" + - " \001(\tB\237\001\222A\222\0012wScalekit-generated unique i" + - "dentifier for the organization. Use eith" + - "er this or external_id to identify the o" + - "rganization.J\027\"org_81667076086825451\"\272H\006" + - "r\004\020\001\030 H\000R\016organizationId\022\315\001\n\013external_id" + - "\030\002 \001(\tB\251\001\222A\215\0012{Your application\'s unique" + - " identifier for the organization. Altern" + - "ative to organization_id for identifying" + - " the organization.J\016\"tenant_12345\"\272H\006r\004\020" + - "\001\030 \372\322\344\223\002\t\022\007PREVIEWH\000R\nexternalId\022\272\001\n\rcon" + - "nection_id\030\003 \001(\tB\217\001\222A}2iOptional identit" + - "y provider connection ID to associate wi" + - "th this domain for enterprise SSO config" + - "urations.J\020\"conn_123456789\"\372\322\344\223\002\t\022\007PREVI" + - "EWH\001R\014connectionId\210\001\001\022x\n\006domain\030\004 \001(\0132!." + - "scalekit.v1.domains.CreateDomainB=\222A:28D" + - "omain configuration including the domain" + - " name and type.R\006domainB\014\n\nidentitiesB\020\n" + - "\016_connection_id\"\263\001\n\024CreateDomainResponse" + - "\022\232\001\n\006domain\030\001 \001(\0132\033.scalekit.v1.domains." + - "DomainBe\222Ab2`The newly created domain ob" + - "ject with all configuration details and " + - "system-generated identifiers.R\006domain\"\346\004" + - "\n\014CreateDomain\022\366\001\n\006domain\030\001 \001(\tB\335\001\222A\314\0012\263" + - "\001The domain name to be configured. Must " + - "be a valid business domain you control. " + - "Public and disposable domains (gmail.com" + - ", outlook.com, etc.) are automatically b" + - "locked for security.J\024\"customerdomain.co" + - "m\"\272H\nr\005\020\004\030\377\001\310\001\001R\006domain\022\334\002\n\013domain_type\030" + - "\002 \001(\0162\037.scalekit.v1.domains.DomainTypeB\231" + - "\002\222A\225\0022\373\001The domain type.\n- ALLOWED_EMAIL" + - "_DOMAIN: trusted domain used to suggest " + - "the organization in the organization swi" + - "tcher during sign-in/sign-up.\n- ORGANIZA" + - "TION_DOMAIN: SSO discovery domain used t" + - "o route users to the correct SSO provide" + - "r and enforce SSO.\nJ\025\"ORGANIZATION_DOMAI" + - "N\"R\ndomainType\"\204\007\n\023UpdateDomainRequest\022\313" + - "\001\n\017organization_id\030\001 \001(\tB\237\001\222A\222\0012wScaleki" + - "t-generated unique identifier for the or" + - "ganization. Use either this or external_" + - "id to identify the organization.J\027\"org_8" + - "1667076086825451\"\272H\006r\004\020\001\030 H\000R\016organizati" + - "onId\022\315\001\n\013external_id\030\002 \001(\tB\251\001\222A\215\0012{Your " + - "application\'s unique identifier for the " + - "organization. Alternative to organizatio" + - "n_id for identifying the organization.J\016" + - "\"tenant_12345\"\272H\006r\004\020\001\030 \372\322\344\223\002\t\022\007PREVIEWH\000" + - "R\nexternalId\022\237\001\n\rconnection_id\030\003 \001(\tBu\222A" + - "c2OOptional updated identity provider co" + - "nnection ID to associate with this domai" + - "n.J\020\"conn_123456789\"\372\322\344\223\002\t\022\007PREVIEWH\001R\014c" + - "onnectionId\210\001\001\022o\n\002id\030\004 \001(\tB_\222A\\2AScaleki" + - "t-generated unique identifier of the dom" + - "ain to be updated.J\027\"dom_883516431292250" + - "05\"R\002id\022\233\001\n\006domain\030\005 \001(\0132!.scalekit.v1.d" + - "omains.UpdateDomainB`\222A]2[Domain update " + - "configuration. Currently empty as domain" + - " name cannot be changed once created.R\006d" + - "omainB\014\n\nidentitiesB\020\n\016_connection_id\"\016\n" + - "\014UpdateDomain\"\245\001\n\024UpdateDomainResponse\022\214" + - "\001\n\006domain\030\001 \001(\0132\033.scalekit.v1.domains.Do" + - "mainBW\222AT2RThe updated domain object ref" + - "lecting all changes made to the domain c" + - "onfiguration.R\006domain\"\255\004\n\020GetDomainReque" + - "st\022\313\001\n\017organization_id\030\001 \001(\tB\237\001\222A\222\0012wSca" + - "lekit-generated unique identifier for th" + - "e organization. Use either this or exter" + - "nal_id to identify the organization.J\027\"o" + - "rg_81667076086825451\"\272H\006r\004\020\001\030 H\000R\016organi" + - "zationId\022\315\001\n\013external_id\030\002 \001(\tB\251\001\222A\215\0012{Y" + - "our application\'s unique identifier for " + - "the organization. Alternative to organiz" + - "ation_id for identifying the organizatio" + - "n.J\016\"tenant_12345\"\272H\006r\004\020\001\030 \372\322\344\223\002\t\022\007PREVI" + - "EWH\000R\nexternalId\022m\n\002id\030\003 \001(\tB]\222AZ2?Scale" + - "kit-generated unique identifier of the d" + - "omain to retrieve.J\027\"dom_883516431292250" + - "05\"R\002idB\014\n\nidentities\"\266\001\n\021GetDomainRespo" + - "nse\022\240\001\n\006domain\030\001 \001(\0132\033.scalekit.v1.domai" + - "ns.DomainBk\222Ah2fThe requested domain obj" + - "ect with complete details including doma" + - "in type, timestamps and configuration.R\006" + - "domain\"\353\005\n\023DeleteDomainRequest\022{\n\002id\030\001 \001" + - "(\tBk\222Ah2MScalekit-generated unique ident" + - "ifier of the domain to be permanently de" + - "leted.J\027\"dom_88351643129225005\"R\002id\022\313\001\n\017" + - "organization_id\030\002 \001(\tB\237\001\222A\222\0012wScalekit-g" + - "enerated unique identifier for the organ" + - "ization. Use either this or external_id " + - "to identify the organization.J\027\"org_8166" + - "7076086825451\"\272H\006r\004\020\001\030 H\000R\016organizationI" + - "d\022\315\001\n\013external_id\030\003 \001(\tB\251\001\222A\215\0012{Your app" + - "lication\'s unique identifier for the org" + - "anization. Alternative to organization_i" + - "d for identifying the organization.J\016\"te" + - "nant_12345\"\272H\006r\004\020\001\030 \372\322\344\223\002\t\022\007PREVIEWH\000R\ne" + - "xternalId\022\230\001\n\rconnection_id\030\004 \001(\tBn\222A\\2H" + - "Optional connection ID for additional va" + - "lidation during domain deletion.J\020\"conn_" + + ".proto\032\034google/protobuf/struct.proto\032\037go" + + "ogle/protobuf/timestamp.proto\032\036google/pr" + + "otobuf/wrappers.proto\032.protoc-gen-openap" + + "iv2/options/annotations.proto\032!scalekit/" + + "v1/options/options.proto\"\212\006\n\023CreateDomai" + + "nRequest\022\313\001\n\017organization_id\030\001 \001(\tB\237\001\222A\222" + + "\0012wScalekit-generated unique identifier " + + "for the organization. Use either this or" + + " external_id to identify the organizatio" + + "n.J\027\"org_81667076086825451\"\272H\006r\004\020\001\030 H\000R\016" + + "organizationId\022\315\001\n\013external_id\030\002 \001(\tB\251\001\222" + + "A\215\0012{Your application\'s unique identifie" + + "r for the organization. Alternative to o" + + "rganization_id for identifying the organ" + + "ization.J\016\"tenant_12345\"\272H\006r\004\020\001\030 \372\322\344\223\002\t\022" + + "\007PREVIEWH\000R\nexternalId\022\272\001\n\rconnection_id" + + "\030\003 \001(\tB\217\001\222A}2iOptional identity provider" + + " connection ID to associate with this do" + + "main for enterprise SSO configurations.J" + + "\020\"conn_123456789\"\372\322\344\223\002\t\022\007PREVIEWH\001R\014conn" + + "ectionId\210\001\001\022x\n\006domain\030\004 \001(\0132!.scalekit.v" + + "1.domains.CreateDomainB=\222A:28Domain conf" + + "iguration including the domain name and " + + "type.R\006domainB\014\n\nidentitiesB\020\n\016_connecti" + + "on_id\"\263\001\n\024CreateDomainResponse\022\232\001\n\006domai" + + "n\030\001 \001(\0132\033.scalekit.v1.domains.DomainBe\222A" + + "b2`The newly created domain object with " + + "all configuration details and system-gen" + + "erated identifiers.R\006domain\"\346\004\n\014CreateDo" + + "main\022\366\001\n\006domain\030\001 \001(\tB\335\001\222A\314\0012\263\001The domai" + + "n name to be configured. Must be a valid" + + " business domain you control. Public and" + + " disposable domains (gmail.com, outlook." + + "com, etc.) are automatically blocked for" + + " security.J\024\"customerdomain.com\"\272H\nr\005\020\004\030" + + "\377\001\310\001\001R\006domain\022\334\002\n\013domain_type\030\002 \001(\0162\037.sc" + + "alekit.v1.domains.DomainTypeB\231\002\222A\225\0022\373\001Th" + + "e domain type.\n- ALLOWED_EMAIL_DOMAIN: t" + + "rusted domain used to suggest the organi" + + "zation in the organization switcher duri" + + "ng sign-in/sign-up.\n- ORGANIZATION_DOMAI" + + "N: SSO discovery domain used to route us" + + "ers to the correct SSO provider and enfo" + + "rce SSO.\nJ\025\"ORGANIZATION_DOMAIN\"R\ndomain" + + "Type\"\204\007\n\023UpdateDomainRequest\022\313\001\n\017organiz" + + "ation_id\030\001 \001(\tB\237\001\222A\222\0012wScalekit-generate" + + "d unique identifier for the organization" + + ". Use either this or external_id to iden" + + "tify the organization.J\027\"org_81667076086" + + "825451\"\272H\006r\004\020\001\030 H\000R\016organizationId\022\315\001\n\013e" + + "xternal_id\030\002 \001(\tB\251\001\222A\215\0012{Your applicatio" + + "n\'s unique identifier for the organizati" + + "on. Alternative to organization_id for i" + + "dentifying the organization.J\016\"tenant_12" + + "345\"\272H\006r\004\020\001\030 \372\322\344\223\002\t\022\007PREVIEWH\000R\nexternal" + + "Id\022\237\001\n\rconnection_id\030\003 \001(\tBu\222Ac2OOptiona" + + "l updated identity provider connection I" + + "D to associate with this domain.J\020\"conn_" + "123456789\"\372\322\344\223\002\t\022\007PREVIEWH\001R\014connectionI" + - "d\210\001\001B\014\n\nidentitiesB\020\n\016_connection_id\"\254\013\n" + - "\021ListDomainRequest\022\313\001\n\017organization_id\030\001" + - " \001(\tB\237\001\222A\222\0012wScalekit-generated unique i" + - "dentifier for the organization. Use eith" + - "er this or external_id to identify the o" + - "rganization.J\027\"org_81667076086825451\"\272H\006" + - "r\004\020\001\030 H\000R\016organizationId\022\315\001\n\013external_id" + - "\030\002 \001(\tB\251\001\222A\215\0012{Your application\'s unique" + - " identifier for the organization. Altern" + - "ative to organization_id for identifying" + - " the organization.J\016\"tenant_12345\"\272H\006r\004\020" + - "\001\030 \372\322\344\223\002\t\022\007PREVIEWH\000R\nexternalId\022\250\001\n\rcon" + - "nection_id\030\003 \001(\tB~\222Al2XOptional filter t" + - "o list domains associated with a specifi" + - "c identity provider connection.J\020\"conn_1" + - "23456789\"\372\322\344\223\002\t\022\007PREVIEWH\001R\014connectionId" + - "\210\001\001\022\253\001\n\007include\030\004 \001(\tB\213\001\222A\207\0012mOptional c" + - "omma-separated list of additional fields" + - " to include in the response (e.g., \'veri" + - "fication_details\').J\026\"verification_detai" + - "ls\"H\002R\007include\210\001\001\022\217\001\n\tpage_size\030\005 \001(\0132\033." + - "google.protobuf.Int32ValueBU\222AR2LMaximum" + - " number of domains to return per page. D" + - "efault is 30, maximum is 100.J\00230R\010pageS" + - "ize\022\202\001\n\013page_number\030\006 \001(\0132\033.google.proto" + - "buf.Int32ValueBD\222AA224/api/v1/orga" + + "nizations/{organization_id}/domains/{id}" + + ":\006domain\022\246\007\n\014VerifyDomain\022(.scalekit.v1." + + "domains.VerifyDomainRequest\032).scalekit.v" + + "1.domains.VerifyDomainResponse\"\300\006\222A\317\005\n\007D" + + "omains\022\rVerify Domain\032\236\004Initiates domain" + + " ownership verification by checking the " + + "DNS TXT record that should be added to t" + + "he domain\'s DNS configuration.\n\nUse this" + + " endpoint to manually trigger verificati" + + "on for domains that are in PENDING statu" + + "s. The system will check for the require" + + "d TXT record and update the verification" + + " status accordingly.\n\nFor automatically " + + "verified domains, this endpoint will ret" + + "urn true immediately. For domains requir" + + "ing manual verification, ensure the TXT " + + "record has been properly configured in y" + + "our DNS settings before calling this end" + + "point.J\223\001\n\003200\022\213\001\nZDomain verification r" + + "esult. `verified` is true if verificatio" + + "n succeeded, false otherwise.\022-\n+\032).scal" + + "ekit.v1.domains.VerifyDomainResponse\202\265\030\027" + + "\n\023organizations_write\030t\372\322\344\223\002\t\022\007PREVIEW\202\323" + + "\344\223\002=2;/api/v1/organizations/{organizatio" + + "n_id}/domains/{id}:verify\022\232\003\n\tGetDomain\022" + + "%.scalekit.v1.domains.GetDomainRequest\032&" + + ".scalekit.v1.domains.GetDomainResponse\"\275" + + "\002\222A\343\001\n\007Domains\022\nGet Domain\032kRetrieves co" + + "mplete details for a domain including do" + + "main type, timestamps, and configuration" + + " information.\n\nJ_\n\003200\022X\n*Successfully r" + + "etrieved the domain details.\022*\n(\032&.scale" + + "kit.v1.domains.GetDomainResponse\202\265\030\026\n\022or" + + "ganizations_read\030t\202\323\344\223\0026\0224/api/v1/organi" + + "zations/{organization_id}/domains/{id}\022\344" + + "\003\n\014DeleteDomain\022(.scalekit.v1.domains.De" + + "leteDomainRequest\032\026.google.protobuf.Empt" + + "y\"\221\003\222A\266\002\n\007Domains\022\rDelete Domain\032\364\001Perma" + + "nently removes a domain record from an o" + + "rganization.\n\n- Deleting an ORGANIZATION" + + "_DOMAIN disables SSO routing/enforcement" + + " for that domain.\n- Deleting an ALLOWED_" + + "EMAIL_DOMAIN stops organization suggesti" + + "ons for users with that email domain.\n\nJ" + + "%\n\003200\022\036\n\034Domain successfully deleted.\202\265" + + "\030\027\n\023organizations_write\030t\202\323\344\223\0026*4/api/v1" + + "/organizations/{organization_id}/domains" + + "/{id}\022\233\005\n\013ListDomains\022&.scalekit.v1.doma" + + "ins.ListDomainRequest\032\'.scalekit.v1.doma" + + "ins.ListDomainResponse\"\272\004\222A\345\003\n\007Domains\022\014" + + "List Domains\032\350\002Retrieves a paginated lis" + + "t of all domains configured for the spec" + + "ified organization.\n\nDomain types:\n- ALL" + + "OWED_EMAIL_DOMAIN: Trusted domains used " + + "to suggest the organization in the organ" + "ization switcher during sign-in/sign-up " + "(auth-method agnostic).\n- ORGANIZATION_D" + - "OMAIN: Enables SSO domain discovery. If " + - "a user signs in with a matching email do" + - "main, Scalekit redirects them to the org" + - "anization\342\200\231s SSO provider and enforces " + - "SSO.\n\nThe domain must be a valid busines" + - "s domain that you control. Public/dispos" + - "able domains (e.g., gmail.com) are block" + - "ed for security.\n\nJX\n\003200\022Q\n Successfull" + - "y created the domain.\022-\n+\032).scalekit.v1." + - "domains.CreateDomainResponseJ\240\001\n\003400\022\230\001\n" + - "oInvalid request \342\200\224 common causes inval" + - "id domain format, public or disposable d" + - "omain, or domain already exists.\022%\n#\032!#/" + - "definitions/errdetailsErrorInfo\202\265\030\027\n\023org" + - "anizations_write\030t\202\323\344\223\0029\"//api/v1/organi" + - "zations/{organization_id}/domains:\006domai" + - "n\022\356\005\n\014UpdateDomain\022(.scalekit.v1.domains" + - ".UpdateDomainRequest\032).scalekit.v1.domai" + - "ns.UpdateDomainResponse\"\210\005\222A\226\004\n\007Domains\022" + - "\rUpdate Domain\032\241\003Updates an existing dom" + - "ain\'s configuration within an organizati" + - "on. Currently supports updating domain m" + - "etadata and configuration settings.\n\nUse" + - " this endpoint to modify domain properti" + - "es after initial creation. Note that the" + - " domain name itself cannot be changed on" + - "ce created.\n\nThe domain must belong to t" + - "he specified organization and you must p" + - "rovide either the organization ID or ext" + - "ernal ID along with the domain ID.JX\n\00320" + - "0\022Q\n Successfully updated the domain.\022-\n" + - "+\032).scalekit.v1.domains.UpdateDomainResp" + - "onse\202\265\030\027\n\023organizations_write\030t\372\322\344\223\002\t\022\007P" + - "REVIEW\202\323\344\223\002>24/api/v1/organizations/{org" + - "anization_id}/domains/{id}:\006domain\022\352\006\n\014V" + - "erifyDomain\022(.scalekit.v1.domains.Verify" + - "DomainRequest\032\032.google.protobuf.BoolValu" + - "e\"\223\006\222A\267\005\n\007Domains\022\rVerify Domain\032\236\004Initi" + - "ates domain ownership verification by ch" + - "ecking the DNS TXT record that should be" + - " added to the domain\'s DNS configuration" + - ".\n\nUse this endpoint to manually trigger" + - " verification for domains that are in PE" + - "NDING status. The system will check for " + - "the required TXT record and update the v" + - "erification status accordingly.\n\nFor aut" + - "omatically verified domains, this endpoi" + - "nt will return true immediately. For dom" + - "ains requiring manual verification, ensu" + - "re the TXT record has been properly conf" + - "igured in your DNS settings before calli" + - "ng this endpoint.J|\n\003200\022u\nSDomain verif" + - "ication result. Returns true if verifica" + - "tion succeeds, false otherwise.\022\036\n\034\032\032.go" + - "ogle.protobuf.BoolValue\202\265\030\002\030d\372\322\344\223\002\t\022\007PRE" + - "VIEW\202\323\344\223\002=2;/api/v1/organizations/{organ" + - "ization_id}/domains/{id}:verify\022\232\003\n\tGetD" + - "omain\022%.scalekit.v1.domains.GetDomainReq" + - "uest\032&.scalekit.v1.domains.GetDomainResp" + - "onse\"\275\002\222A\343\001\n\007Domains\022\nGet Domain\032kRetrie" + - "ves complete details for a domain includ" + - "ing domain type, timestamps, and configu" + - "ration information.\n\nJ_\n\003200\022X\n*Successf" + - "ully retrieved the domain details.\022*\n(\032&" + - ".scalekit.v1.domains.GetDomainResponse\202\265" + - "\030\026\n\022organizations_read\030t\202\323\344\223\0026\0224/api/v1/" + - "organizations/{organization_id}/domains/" + - "{id}\022\344\003\n\014DeleteDomain\022(.scalekit.v1.doma" + - "ins.DeleteDomainRequest\032\026.google.protobu" + - "f.Empty\"\221\003\222A\266\002\n\007Domains\022\rDelete Domain\032\364" + - "\001Permanently removes a domain record fro" + - "m an organization.\n\n- Deleting an ORGANI" + - "ZATION_DOMAIN disables SSO routing/enfor" + - "cement for that domain.\n- Deleting an AL" + - "LOWED_EMAIL_DOMAIN stops organization su" + - "ggestions for users with that email doma" + - "in.\n\nJ%\n\003200\022\036\n\034Domain successfully dele" + - "ted.\202\265\030\027\n\023organizations_write\030t\202\323\344\223\0026*4/" + - "api/v1/organizations/{organization_id}/d" + - "omains/{id}\022\233\005\n\013ListDomains\022&.scalekit.v" + - "1.domains.ListDomainRequest\032\'.scalekit.v" + - "1.domains.ListDomainResponse\"\272\004\222A\345\003\n\007Dom" + - "ains\022\014List Domains\032\350\002Retrieves a paginat" + - "ed list of all domains configured for th" + - "e specified organization.\n\nDomain types:" + - "\n- ALLOWED_EMAIL_DOMAIN: Trusted domains" + - " used to suggest the organization in the" + - " organization switcher during sign-in/si" + - "gn-up (auth-method agnostic).\n- ORGANIZA" + - "TION_DOMAIN: SSO discovery domains used " + - "to route users to the correct SSO provid" + - "er and enforce SSO.\n\nJa\n\003200\022Z\n+Successf" + - "ully retrieved the list of domains.\022+\n)\032" + - "\'.scalekit.v1.domains.ListDomainResponse" + - "\202\265\030\026\n\022organizations_read\030t\202\323\344\223\0021\022//api/v" + - "1/organizations/{organization_id}/domain" + - "s\022\220\005\n\025ListAuthorizedDomains\0220.scalekit.v" + - "1.domains.ListAuthorizedDomainRequest\0321." + - "scalekit.v1.domains.ListAuthorizedDomain" + - "Response\"\221\004\222A\330\003\n\007Domains\022\027List Authorize" + - "d Domains\032\273\002Retrieves a list of domains " + - "that are authorized for use with the spe" + - "cified origin URL.\n\nUse this endpoint to" + - " validate whether a particular domain is" + - " allowed for authentication or other dom" + - "ain-restricted operations.\n\nThis is comm" + - "only used by frontend applications to ve" + - "rify domain allowlists and CORS configur" + - "ations.Jv\n\003200\022o\n6Successfully retrieved" + - " the list of authorized domains.\0225\n3\0321.s" + - "calekit.v1.domains.ListAuthorizedDomainR" + - "esponse\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\032\022\030/api" + - "/v1/domains/{origin}\032\370\003\222A\364\003\n\007Domains\022\350\003M" + - "anage organization-level domains. Scalek" + - "it supports two domain types:\n\n- ORGANIZ" + - "ATION_DOMAIN: Used for SSO domain discov" + - "ery. When a user signs in with a matchin" + - "g email domain, Scalekit routes them to " + - "the organization\342\200\231s SSO provider and en" + - "forces SSO.\n- ALLOWED_EMAIL_DOMAIN: Used" + - " to mark trusted email domains for an or" + - "ganization. When a user signs in or sign" + - "s up with a matching domain, Scalekit su" + - "ggests the organization in the organizat" + - "ion switcher (authentication-method agno" + - "stic).\nB\326\001\n%com.scalekit.grpc.scalekit.v" + - "1.domainsB\014DomainsProtoP\001Z1github.com/sc" + - "alekit-inc/scalekit/pkg/grpc/domains\242\002\003S" + - "VD\252\002\023Scalekit.V1.Domains\312\002\023Scalekit\\V1\\D" + - "omains\342\002\037Scalekit\\V1\\Domains\\GPBMetadata" + - "\352\002\025Scalekit::V1::Domainsb\006proto3" + "OMAIN: SSO discovery domains used to rou" + + "te users to the correct SSO provider and" + + " enforce SSO.\n\nJa\n\003200\022Z\n+Successfully r" + + "etrieved the list of domains.\022+\n)\032\'.scal" + + "ekit.v1.domains.ListDomainResponse\202\265\030\026\n\022" + + "organizations_read\030t\202\323\344\223\0021\022//api/v1/orga" + + "nizations/{organization_id}/domains\022\220\005\n\025" + + "ListAuthorizedDomains\0220.scalekit.v1.doma" + + "ins.ListAuthorizedDomainRequest\0321.scalek" + + "it.v1.domains.ListAuthorizedDomainRespon" + + "se\"\221\004\222A\330\003\n\007Domains\022\027List Authorized Doma" + + "ins\032\273\002Retrieves a list of domains that a" + + "re authorized for use with the specified" + + " origin URL.\n\nUse this endpoint to valid" + + "ate whether a particular domain is allow" + + "ed for authentication or other domain-re" + + "stricted operations.\n\nThis is commonly u" + + "sed by frontend applications to verify d" + + "omain allowlists and CORS configurations" + + ".Jv\n\003200\022o\n6Successfully retrieved the l" + + "ist of authorized domains.\0225\n3\0321.scaleki" + + "t.v1.domains.ListAuthorizedDomainRespons" + + "e\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\032\022\030/api/v1/do" + + "mains/{origin}\032\370\003\222A\364\003\n\007Domains\022\350\003Manage " + + "organization-level domains. Scalekit sup" + + "ports two domain types:\n\n- ORGANIZATION_" + + "DOMAIN: Used for SSO domain discovery. W" + + "hen a user signs in with a matching emai" + + "l domain, Scalekit routes them to the or" + + "ganization\342\200\231s SSO provider and enforces" + + " SSO.\n- ALLOWED_EMAIL_DOMAIN: Used to ma" + + "rk trusted email domains for an organiza" + + "tion. When a user signs in or signs up w" + + "ith a matching domain, Scalekit suggests" + + " the organization in the organization sw" + + "itcher (authentication-method agnostic)." + + "\nB\326\001\n%com.scalekit.grpc.scalekit.v1.doma" + + "insB\014DomainsProtoP\001Z1github.com/scalekit" + + "-inc/scalekit/pkg/grpc/domains\242\002\003SVD\252\002\023S" + + "calekit.V1.Domains\312\002\023Scalekit\\V1\\Domains", + "\342\002\037Scalekit\\V1\\Domains\\GPBMetadata\352\002\025Sca" + + "lekit::V1::Domainsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -483,6 +515,7 @@ public static void registerAllExtensions( com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(), com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.protobuf.WrappersProto.getDescriptor(), com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(), @@ -554,30 +587,36 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_domains_VerifyDomainRequest_descriptor, new java.lang.String[] { "OrganizationId", "ExternalId", "Id", "Identities", }); - internal_static_scalekit_v1_domains_ListDomainResponse_descriptor = + internal_static_scalekit_v1_domains_VerifyDomainResponse_descriptor = getDescriptor().getMessageTypes().get(11); + internal_static_scalekit_v1_domains_VerifyDomainResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_domains_VerifyDomainResponse_descriptor, + new java.lang.String[] { "Verified", }); + internal_static_scalekit_v1_domains_ListDomainResponse_descriptor = + getDescriptor().getMessageTypes().get(12); internal_static_scalekit_v1_domains_ListDomainResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_domains_ListDomainResponse_descriptor, new java.lang.String[] { "PageSize", "PageNumber", "Domains", }); internal_static_scalekit_v1_domains_ListAuthorizedDomainRequest_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(13); internal_static_scalekit_v1_domains_ListAuthorizedDomainRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_domains_ListAuthorizedDomainRequest_descriptor, - new java.lang.String[] { "Origin", }); + new java.lang.String[] { "Origin", "LinkId", }); internal_static_scalekit_v1_domains_ListAuthorizedDomainResponse_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(14); internal_static_scalekit_v1_domains_ListAuthorizedDomainResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_domains_ListAuthorizedDomainResponse_descriptor, new java.lang.String[] { "Domains", }); internal_static_scalekit_v1_domains_Domain_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(15); internal_static_scalekit_v1_domains_Domain_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_domains_Domain_descriptor, - new java.lang.String[] { "Id", "Domain", "EnvironmentId", "OrganizationId", "TxtRecordKey", "TxtRecordSecret", "VerificationStatus", "CreateTime", "UpdateTime", "DomainType", }); + new java.lang.String[] { "Id", "Domain", "EnvironmentId", "OrganizationId", "TxtRecordKey", "TxtRecordSecret", "VerificationStatus", "CreateTime", "UpdateTime", "DomainType", "VerificationMethod", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.scalekit.grpc.buf.validate.ValidateProto.field); @@ -595,6 +634,7 @@ public static void registerAllExtensions( com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(); com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.protobuf.WrappersProto.getDescriptor(); com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(); diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/ListAuthorizedDomainRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/ListAuthorizedDomainRequest.java index 1c2b44ea..ff1507d1 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/ListAuthorizedDomainRequest.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/ListAuthorizedDomainRequest.java @@ -18,6 +18,7 @@ private ListAuthorizedDomainRequest(com.google.protobuf.GeneratedMessageV3.Build } private ListAuthorizedDomainRequest() { origin_ = ""; + linkId_ = ""; } @java.lang.Override @@ -79,6 +80,45 @@ public java.lang.String getOrigin() { } } + public static final int LINK_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object linkId_ = ""; + /** + * string link_id = 2 [json_name = "linkId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The linkId. + */ + @java.lang.Override + public java.lang.String getLinkId() { + java.lang.Object ref = linkId_; + 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(); + linkId_ = s; + return s; + } + } + /** + * string link_id = 2 [json_name = "linkId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for linkId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getLinkIdBytes() { + java.lang.Object ref = linkId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + linkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -96,6 +136,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(origin_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, origin_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, linkId_); + } getUnknownFields().writeTo(output); } @@ -108,6 +151,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(origin_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, origin_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(linkId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, linkId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -125,6 +171,8 @@ public boolean equals(final java.lang.Object obj) { if (!getOrigin() .equals(other.getOrigin())) return false; + if (!getLinkId() + .equals(other.getLinkId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -138,6 +186,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ORIGIN_FIELD_NUMBER; hash = (53 * hash) + getOrigin().hashCode(); + hash = (37 * hash) + LINK_ID_FIELD_NUMBER; + hash = (53 * hash) + getLinkId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -270,6 +320,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; origin_ = ""; + linkId_ = ""; return this; } @@ -306,6 +357,9 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.domains.ListAuthorizedD if (((from_bitField0_ & 0x00000001) != 0)) { result.origin_ = origin_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.linkId_ = linkId_; + } } @java.lang.Override @@ -357,6 +411,11 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.domains.ListAuthorizedDom bitField0_ |= 0x00000001; onChanged(); } + if (!other.getLinkId().isEmpty()) { + linkId_ = other.linkId_; + bitField0_ |= 0x00000002; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -388,6 +447,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: { + linkId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -476,6 +540,78 @@ public Builder setOriginBytes( onChanged(); return this; } + + private java.lang.Object linkId_ = ""; + /** + * string link_id = 2 [json_name = "linkId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The linkId. + */ + public java.lang.String getLinkId() { + java.lang.Object ref = linkId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + linkId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string link_id = 2 [json_name = "linkId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for linkId. + */ + public com.google.protobuf.ByteString + getLinkIdBytes() { + java.lang.Object ref = linkId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + linkId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string link_id = 2 [json_name = "linkId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The linkId to set. + * @return This builder for chaining. + */ + public Builder setLinkId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + linkId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string link_id = 2 [json_name = "linkId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearLinkId() { + linkId_ = getDefaultInstance().getLinkId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string link_id = 2 [json_name = "linkId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for linkId to set. + * @return This builder for chaining. + */ + public Builder setLinkIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + linkId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/ListAuthorizedDomainRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/ListAuthorizedDomainRequestOrBuilder.java index b63586d2..d66b71d6 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/ListAuthorizedDomainRequestOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/ListAuthorizedDomainRequestOrBuilder.java @@ -19,4 +19,16 @@ public interface ListAuthorizedDomainRequestOrBuilder extends */ com.google.protobuf.ByteString getOriginBytes(); + + /** + * string link_id = 2 [json_name = "linkId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The linkId. + */ + java.lang.String getLinkId(); + /** + * string link_id = 2 [json_name = "linkId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for linkId. + */ + com.google.protobuf.ByteString + getLinkIdBytes(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerificationMethod.java b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerificationMethod.java new file mode 100644 index 00000000..99234c6d --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerificationMethod.java @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/domains/domains.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.domains; + +/** + * Protobuf enum {@code scalekit.v1.domains.VerificationMethod} + */ +public enum VerificationMethod + implements com.google.protobuf.ProtocolMessageEnum { + /** + * VERIFICATION_METHOD_UNSPECIFIED = 0; + */ + VERIFICATION_METHOD_UNSPECIFIED(0), + /** + * ADMIN = 1; + */ + ADMIN(1), + /** + * DNS = 2; + */ + DNS(2), + /** + * NOT_APPLICABLE = 3; + */ + NOT_APPLICABLE(3), + UNRECOGNIZED(-1), + ; + + /** + * VERIFICATION_METHOD_UNSPECIFIED = 0; + */ + public static final int VERIFICATION_METHOD_UNSPECIFIED_VALUE = 0; + /** + * ADMIN = 1; + */ + public static final int ADMIN_VALUE = 1; + /** + * DNS = 2; + */ + public static final int DNS_VALUE = 2; + /** + * NOT_APPLICABLE = 3; + */ + public static final int NOT_APPLICABLE_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static VerificationMethod 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 VerificationMethod forNumber(int value) { + switch (value) { + case 0: return VERIFICATION_METHOD_UNSPECIFIED; + case 1: return ADMIN; + case 2: return DNS; + case 3: return NOT_APPLICABLE; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + VerificationMethod> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public VerificationMethod findValueByNumber(int number) { + return VerificationMethod.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.domains.DomainsProto.getDescriptor().getEnumTypes().get(0); + } + + private static final VerificationMethod[] VALUES = values(); + + public static VerificationMethod 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 VerificationMethod(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:scalekit.v1.domains.VerificationMethod) +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerificationStatus.java b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerificationStatus.java index 4e10d4c5..dadf5944 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerificationStatus.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerificationStatus.java @@ -113,7 +113,7 @@ public VerificationStatus findValueByNumber(int number) { } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.scalekit.grpc.scalekit.v1.domains.DomainsProto.getDescriptor().getEnumTypes().get(0); + return com.scalekit.grpc.scalekit.v1.domains.DomainsProto.getDescriptor().getEnumTypes().get(1); } private static final VerificationStatus[] VALUES = values(); diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerifyDomainResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerifyDomainResponse.java new file mode 100644 index 00000000..9760a616 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerifyDomainResponse.java @@ -0,0 +1,473 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/domains/domains.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.domains; + +/** + * Protobuf type {@code scalekit.v1.domains.VerifyDomainResponse} + */ +public final class VerifyDomainResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.domains.VerifyDomainResponse) + VerifyDomainResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use VerifyDomainResponse.newBuilder() to construct. + private VerifyDomainResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private VerifyDomainResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new VerifyDomainResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.domains.DomainsProto.internal_static_scalekit_v1_domains_VerifyDomainResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.domains.DomainsProto.internal_static_scalekit_v1_domains_VerifyDomainResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse.class, com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse.Builder.class); + } + + public static final int VERIFIED_FIELD_NUMBER = 1; + private boolean verified_ = false; + /** + * bool verified = 1 [json_name = "verified", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The verified. + */ + @java.lang.Override + public boolean getVerified() { + return verified_; + } + + 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 (verified_ != false) { + output.writeBool(1, verified_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (verified_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(1, verified_); + } + 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.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse other = (com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse) obj; + + if (getVerified() + != other.getVerified()) 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) + VERIFIED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getVerified()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.domains.VerifyDomainResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.domains.VerifyDomainResponse) + com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.domains.DomainsProto.internal_static_scalekit_v1_domains_VerifyDomainResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.domains.DomainsProto.internal_static_scalekit_v1_domains_VerifyDomainResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse.class, com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + verified_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.domains.DomainsProto.internal_static_scalekit_v1_domains_VerifyDomainResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse build() { + com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse result = new com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.verified_ = verified_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse.getDefaultInstance()) return this; + if (other.getVerified() != false) { + setVerified(other.getVerified()); + } + 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 8: { + verified_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 boolean verified_ ; + /** + * bool verified = 1 [json_name = "verified", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The verified. + */ + @java.lang.Override + public boolean getVerified() { + return verified_; + } + /** + * bool verified = 1 [json_name = "verified", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The verified to set. + * @return This builder for chaining. + */ + public Builder setVerified(boolean value) { + + verified_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * bool verified = 1 [json_name = "verified", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearVerified() { + bitField0_ = (bitField0_ & ~0x00000001); + verified_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.domains.VerifyDomainResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.domains.VerifyDomainResponse) + private static final com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VerifyDomainResponse 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.scalekit.grpc.scalekit.v1.domains.VerifyDomainResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerifyDomainResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerifyDomainResponseOrBuilder.java new file mode 100644 index 00000000..2871352b --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/domains/VerifyDomainResponseOrBuilder.java @@ -0,0 +1,16 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/domains/domains.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.domains; + +public interface VerifyDomainResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.domains.VerifyDomainResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * bool verified = 1 [json_name = "verified", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The verified. + */ + boolean getVerified(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/emails/EmailsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/emails/EmailsProto.java index f68401a9..0fbc069a 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/emails/EmailsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/emails/EmailsProto.java @@ -212,290 +212,296 @@ public static void registerAllExtensions( "\n\037scalekit/v1/emails/emails.proto\022\022scale" + "kit.v1.emails\032\033buf/validate/validate.pro" + "to\032\034google/api/annotations.proto\032\037google" + - "/api/field_behavior.proto\032\033google/protob" + - "uf/empty.proto\032 google/protobuf/field_ma" + - "sk.proto\032\037google/protobuf/timestamp.prot" + - "o\032\036google/protobuf/wrappers.proto\032.proto" + - "c-gen-openapiv2/options/annotations.prot" + - "o\032!scalekit/v1/commons/commons.proto\032!sc" + - "alekit/v1/options/options.proto\"`\n\026GetPl" + - "aceholdersRequest\022F\n\010use_case\030\001 \001(\0162#.sc" + - "alekit.v1.emails.TemplateUsecaseB\006\272H\003\310\001\001" + - "R\007useCase\"B\n\027GetPlaceholdersResponse\022\'\n\014" + - "placeholders\030\001 \003(\tB\003\340A\003R\014placeholders\"t\n" + - "\033GetTemplateUseCasesResponse\022U\n\tuse_case" + - "s\030\001 \003(\01323.scalekit.v1.emails.TemplateUse" + - "caseWithPlaceholdersB\003\340A\003R\010useCases\"\353\002\n\037" + - "TemplateUsecaseWithPlaceholders\022F\n\010use_c" + - "ase\030\001 \001(\0162#.scalekit.v1.emails.TemplateU" + - "secaseB\006\272H\003\310\001\001R\007useCase\022 \n\005title\030\002 \001(\tB\n" + - "\272H\007r\005\020\001\030\377\001R\005title\022,\n\013description\030\003 \001(\tB\n" + - "\272H\007r\005\020\001\030\377\001R\013description\022H\n\014placeholders\030" + - "\004 \003(\0132\037.scalekit.v1.emails.PlaceholderB\003" + - "\340A\003R\014placeholders\022\030\n\007display\030\005 \001(\010R\007disp" + - "lay\022L\n\020default_template\030\006 \001(\0132\034.scalekit" + - ".v1.emails.TemplateB\003\340A\003R\017defaultTemplat" + - "e\"\340\001\n\013Placeholder\022\036\n\004name\030\001 \001(\tB\n\272H\007r\005\020\001" + - "\030\377\001R\004name\022 \n\005title\030\002 \001(\tB\n\272H\007r\005\020\001\030\377\001R\005ti" + - "tle\022,\n\013description\030\003 \001(\tB\n\272H\007r\005\020\001\030\377\001R\013de" + - "scription\022\030\n\007display\030\004 \001(\010R\007display\022\032\n\010c" + - "ategory\030\005 \001(\tR\010category\022+\n\021category_prio" + - "rity\030\006 \001(\005R\020categoryPriority\"\352\002\n\010Templat" + - "e\022>\n\nupdated_at\030\001 \001(\0132\032.google.protobuf." + - "TimestampB\003\340A\003R\tupdatedAt\022\023\n\002id\030\002 \001(\tB\003\340" + - "A\003R\002id\022>\n\010use_case\030\003 \001(\0162#.scalekit.v1.e" + - "mails.TemplateUsecaseR\007useCase\022\030\n\007enable" + - "d\030\004 \001(\010R\007enabled\022$\n\007subject\030\005 \001(\tB\n\272H\007r\005" + - "\020\001\030\377\001R\007subject\022.\n\014html_content\030\006 \001(\tB\013\272H" + - "\010r\006\020\001(\200\200@R\013htmlContent\0220\n\rplain_content\030" + - "\007 \001(\tB\013\272H\010r\006\020\001(\200\200@R\014plainContent\022\'\n\014plac" + - "eholders\030\010 \003(\tB\003\340A\003R\014placeholders\"\310\002\n\023Cr" + - "eateEmailTemplate\022>\n\nupdated_at\030\001 \001(\0132\032." + - "google.protobuf.TimestampB\003\340A\003R\tupdatedA" + - "t\022\023\n\002id\030\002 \001(\tB\003\340A\003R\002id\022K\n\010use_case\030\003 \001(\016" + - "2#.scalekit.v1.emails.TemplateUsecaseB\013\272" + - "H\010\202\001\002\020\001\310\001\001R\007useCase\022\'\n\007subject\030\004 \001(\tB\r\272H" + - "\nr\005\020\001\030\377\001\310\001\001R\007subject\0221\n\014html_content\030\005 \001" + - "(\tB\016\272H\013r\006\020\001(\200\200@\310\001\001R\013htmlContent\0223\n\rplain" + - "_content\030\006 \001(\tB\016\272H\013r\006\020\001(\200\200@\310\001\001R\014plainCon" + - "tent\"\235\001\n\032CreateEmailTemplateRequest\0222\n\017o" + - "rganization_id\030\001 \001(\tB\t\272H\006r\004\020\000\030 R\016organiz" + - "ationId\022K\n\010template\030\002 \001(\0132\'.scalekit.v1." + - "emails.CreateEmailTemplateB\006\272H\003\310\001\001R\010temp" + - "late\"_\n\033CreateEmailTemplateResponse\022@\n\010t" + - "emplate\030\001 \001(\0132\034.scalekit.v1.emails.Templ" + - "ateB\006\272H\003\310\001\001R\010template\"\204\001\n\032EnableEmailTem" + - "plateRequest\0222\n\017organization_id\030\001 \001(\tB\t\272" + - "H\006r\004\020\000\030 R\016organizationId\0222\n\013template_id\030" + - "\002 \001(\tB\021\272H\016r\t\020\001\030 :\003tpl\310\001\001R\ntemplateId\"\336\001\n" + - "\033EnableEmailTemplateResponse\022Z\n\022active_t" + - "emplate_id\030\001 \001(\0132\034.google.protobuf.Strin" + - "gValueB\016\272H\013r\t\020\001\030 :\003tplR\020activeTemplateId" + - "\022c\n\027last_active_template_id\030\002 \001(\0132\034.goog" + - "le.protobuf.StringValueB\016\272H\013r\t\020\001\030 :\003tplR" + - "\024lastActiveTemplateId\"\205\001\n\033DisableEmailTe" + - "mplateRequest\0222\n\017organization_id\030\001 \001(\tB\t" + - "\272H\006r\004\020\000\030 R\016organizationId\0222\n\013template_id" + - "\030\002 \001(\tB\021\272H\016r\t\020\001\030 :\003tpl\310\001\001R\ntemplateId\"\201\001" + - "\n\027GetEmailTemplateRequest\0222\n\017organizatio" + - "n_id\030\001 \001(\tB\t\272H\006r\004\020\000\030 R\016organizationId\0222\n" + - "\013template_id\030\002 \001(\tB\021\272H\016r\t\020\001\030 :\003tpl\310\001\001R\nt" + - "emplateId\"T\n\030GetEmailTemplateResponse\0228\n" + - "\010template\030\001 \001(\0132\034.scalekit.v1.emails.Tem" + - "plateR\010template\"N\n\030ListEmailTemplateRequ" + - "est\0222\n\017organization_id\030\001 \001(\tB\t\272H\006r\004\020\000\030 R" + - "\016organizationId\"W\n\031ListEmailTemplateResp" + - "onse\022:\n\ttemplates\030\001 \003(\0132\034.scalekit.v1.em" + - "ails.TemplateR\ttemplates\"\220\003\n\016UpdateTempl" + - "ate\022)\n\007subject\030\001 \001(\tB\n\272H\007r\005\020\001\030\377\001H\000R\007subj" + - "ect\210\001\001\0223\n\014html_content\030\002 \001(\tB\013\272H\010r\006\020\001(\200\200" + - "@H\001R\013htmlContent\210\001\001\0225\n\rplain_content\030\003 \001" + - "(\tB\013\272H\010r\006\020\001(\200\200@H\002R\014plainContent\210\001\001:\267\001\272H\263" + - "\001\032\260\001\n\033at_least_one_field_required\022IAt le" + - "ast one of \'subject\', \'html_content\', or" + - " \'plain_content\' must be set\032Fhas(this.s" + - "ubject) || has(this.html_content) || has" + - "(this.plain_content)B\n\n\010_subjectB\017\n\r_htm" + - "l_contentB\020\n\016_plain_content\"\226\003\n\035GetEmail" + - "ConfigurationResponse\022i\n\021default_from_na" + - "me\030\001 \001(\tB=\222A:28Default email from name w" + - "hen using scalekit email serverR\017default" + - "FromName\022x\n\024default_from_address\030\002 \001(\tBF" + - "\222A=2;Default email from address when usi" + - "ng scalekit email server\272H\003\310\001\001R\022defaultF" + - "romAddress\022W\n\025email_server_selected\030\003 \001(" + - "\0162#.scalekit.v1.emails.EmailServerTypeR\023" + - "emailServerSelected\0227\n\006server\030\004 \001(\0132\037.sc" + - "alekit.v1.emails.EmailServerR\006server\"\231\001\n" + - "\037UpsertEmailConfigurationRequest\022*\n\021defa" + - "ult_from_name\030\001 \001(\tR\017defaultFromName\022J\n\006" + - "server\030\002 \001(\01322.scalekit.v1.emails.Upsert" + - "EmailConfigurationServerR\006server\"\237\002\n\036Ups" + - "ertEmailConfigurationServer\022\016\n\002id\030\001 \001(\tR" + - "\002id\022K\n\010provider\030\002 \001(\0162\'.scalekit.v1.emai" + - "ls.EmailServerProviderB\006\272H\003\310\001\001R\010provider" + - "\022<\n\007enabled\030\003 \001(\0132\032.google.protobuf.Bool" + - "ValueB\006\272H\003\310\001\001R\007enabled\022b\n\010settings\030\004 \001(\013" + - "2>.scalekit.v1.emails.UpsertEmailConfigu" + - "rationSMTPServerSettingsB\006\272H\003\310\001\001R\010settin" + - "gs\"\214\002\n*UpsertEmailConfigurationSMTPServe" + - "rSettings\022!\n\004host\030\001 \001(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\004" + - "host\022\032\n\004port\030\002 \001(\003B\006\272H\003\310\001\001R\004port\022)\n\010user" + - "name\030\003 \001(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\010username\022\032\n\010p" + - "assword\030\004 \001(\tR\010password\022,\n\nfrom_email\030\005 " + - "\001(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\tfromEmail\022*\n\tfrom_na" + - "me\030\006 \001(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\010fromName\"\222\002\n Up" + - "sertEmailConfigurationResponse\022*\n\021defaul" + - "t_from_name\030\001 \001(\tR\017defaultFromName\0220\n\024de" + - "fault_from_address\030\002 \001(\tR\022defaultFromAdd" + - "ress\022W\n\025email_server_selected\030\003 \001(\0162#.sc" + - "alekit.v1.emails.EmailServerTypeR\023emailS" + - "erverSelected\0227\n\006server\030\004 \001(\0132\037.scalekit" + - ".v1.emails.EmailServerR\006server\"\210\002\n\031Patch" + - "EmailTemplateRequest\0222\n\017organization_id\030" + - "\001 \001(\tB\t\272H\006r\004\020\000\030 R\016organizationId\0222\n\013temp" + - "late_id\030\002 \001(\tB\021\272H\016r\t\020\001\030 :\003tpl\310\001\001R\ntempla" + - "teId\022F\n\010template\030\004 \001(\0132\".scalekit.v1.ema" + - "ils.UpdateTemplateB\006\272H\003\310\001\001R\010template\022;\n\013" + - "update_mask\030c \001(\0132\032.google.protobuf.Fiel" + - "dMaskR\nupdateMask\"\204\001\n\032DeleteEmailTemplat" + - "eRequest\0222\n\017organization_id\030\001 \001(\tB\t\272H\006r\004" + - "\020\000\030 R\016organizationId\0222\n\013template_id\030\002 \001(" + - "\tB\021\272H\016r\t\020\001\030 :\003tpl\310\001\001R\ntemplateId\"\254\002\n\013Ema" + - "ilServer\022>\n\nupdated_at\030\001 \001(\0132\032.google.pr" + - "otobuf.TimestampB\003\340A\003R\tupdatedAt\022\023\n\002id\030\002" + - " \001(\tB\003\340A\003R\002id\022K\n\010provider\030\003 \001(\0162\'.scalek" + - "it.v1.emails.EmailServerProviderB\006\272H\003\310\001\001" + - "R\010provider\022\030\n\007enabled\030\004 \001(\010R\007enabled\022U\n\r" + - "smtp_settings\030\005 \001(\0132&.scalekit.v1.emails" + - ".SMTPServerSettingsB\006\272H\003\310\001\001H\000R\014smtpSetti" + - "ngsB\n\n\010settings\"\206\002\n\022SMTPServerSettings\022!" + + "/api/field_behavior.proto\032\033google/api/vi" + + "sibility.proto\032\033google/protobuf/empty.pr" + + "oto\032 google/protobuf/field_mask.proto\032\037g" + + "oogle/protobuf/timestamp.proto\032\036google/p" + + "rotobuf/wrappers.proto\032.protoc-gen-opena" + + "piv2/options/annotations.proto\032!scalekit" + + "/v1/commons/commons.proto\032!scalekit/v1/o" + + "ptions/options.proto\"`\n\026GetPlaceholdersR" + + "equest\022F\n\010use_case\030\001 \001(\0162#.scalekit.v1.e" + + "mails.TemplateUsecaseB\006\272H\003\310\001\001R\007useCase\"B" + + "\n\027GetPlaceholdersResponse\022\'\n\014placeholder" + + "s\030\001 \003(\tB\003\340A\003R\014placeholders\"t\n\033GetTemplat" + + "eUseCasesResponse\022U\n\tuse_cases\030\001 \003(\01323.s" + + "calekit.v1.emails.TemplateUsecaseWithPla" + + "ceholdersB\003\340A\003R\010useCases\"\353\002\n\037TemplateUse" + + "caseWithPlaceholders\022F\n\010use_case\030\001 \001(\0162#" + + ".scalekit.v1.emails.TemplateUsecaseB\006\272H\003" + + "\310\001\001R\007useCase\022 \n\005title\030\002 \001(\tB\n\272H\007r\005\020\001\030\377\001R" + + "\005title\022,\n\013description\030\003 \001(\tB\n\272H\007r\005\020\001\030\377\001R" + + "\013description\022H\n\014placeholders\030\004 \003(\0132\037.sca" + + "lekit.v1.emails.PlaceholderB\003\340A\003R\014placeh" + + "olders\022\030\n\007display\030\005 \001(\010R\007display\022L\n\020defa" + + "ult_template\030\006 \001(\0132\034.scalekit.v1.emails." + + "TemplateB\003\340A\003R\017defaultTemplate\"\340\001\n\013Place" + + "holder\022\036\n\004name\030\001 \001(\tB\n\272H\007r\005\020\001\030\377\001R\004name\022 " + + "\n\005title\030\002 \001(\tB\n\272H\007r\005\020\001\030\377\001R\005title\022,\n\013desc" + + "ription\030\003 \001(\tB\n\272H\007r\005\020\001\030\377\001R\013description\022\030" + + "\n\007display\030\004 \001(\010R\007display\022\032\n\010category\030\005 \001" + + "(\tR\010category\022+\n\021category_priority\030\006 \001(\005R" + + "\020categoryPriority\"\352\002\n\010Template\022>\n\nupdate" + + "d_at\030\001 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003R\tupdatedAt\022\023\n\002id\030\002 \001(\tB\003\340A\003R\002id\022>\n\010u" + + "se_case\030\003 \001(\0162#.scalekit.v1.emails.Templ" + + "ateUsecaseR\007useCase\022\030\n\007enabled\030\004 \001(\010R\007en" + + "abled\022$\n\007subject\030\005 \001(\tB\n\272H\007r\005\020\001\030\377\001R\007subj" + + "ect\022.\n\014html_content\030\006 \001(\tB\013\272H\010r\006\020\001(\200\200@R\013" + + "htmlContent\0220\n\rplain_content\030\007 \001(\tB\013\272H\010r" + + "\006\020\001(\200\200@R\014plainContent\022\'\n\014placeholders\030\010 " + + "\003(\tB\003\340A\003R\014placeholders\"\310\002\n\023CreateEmailTe" + + "mplate\022>\n\nupdated_at\030\001 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003R\tupdatedAt\022\023\n\002id\030\002 \001" + + "(\tB\003\340A\003R\002id\022K\n\010use_case\030\003 \001(\0162#.scalekit" + + ".v1.emails.TemplateUsecaseB\013\272H\010\202\001\002\020\001\310\001\001R" + + "\007useCase\022\'\n\007subject\030\004 \001(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001" + + "R\007subject\0221\n\014html_content\030\005 \001(\tB\016\272H\013r\006\020\001" + + "(\200\200@\310\001\001R\013htmlContent\0223\n\rplain_content\030\006 " + + "\001(\tB\016\272H\013r\006\020\001(\200\200@\310\001\001R\014plainContent\"\235\001\n\032Cr" + + "eateEmailTemplateRequest\0222\n\017organization" + + "_id\030\001 \001(\tB\t\272H\006r\004\020\000\030 R\016organizationId\022K\n\010" + + "template\030\002 \001(\0132\'.scalekit.v1.emails.Crea" + + "teEmailTemplateB\006\272H\003\310\001\001R\010template\"_\n\033Cre" + + "ateEmailTemplateResponse\022@\n\010template\030\001 \001" + + "(\0132\034.scalekit.v1.emails.TemplateB\006\272H\003\310\001\001" + + "R\010template\"\204\001\n\032EnableEmailTemplateReques" + + "t\0222\n\017organization_id\030\001 \001(\tB\t\272H\006r\004\020\000\030 R\016o" + + "rganizationId\0222\n\013template_id\030\002 \001(\tB\021\272H\016r" + + "\t\020\001\030 :\003tpl\310\001\001R\ntemplateId\"\336\001\n\033EnableEmai" + + "lTemplateResponse\022Z\n\022active_template_id\030" + + "\001 \001(\0132\034.google.protobuf.StringValueB\016\272H\013" + + "r\t\020\001\030 :\003tplR\020activeTemplateId\022c\n\027last_ac" + + "tive_template_id\030\002 \001(\0132\034.google.protobuf" + + ".StringValueB\016\272H\013r\t\020\001\030 :\003tplR\024lastActive" + + "TemplateId\"\205\001\n\033DisableEmailTemplateReque" + + "st\0222\n\017organization_id\030\001 \001(\tB\t\272H\006r\004\020\000\030 R\016" + + "organizationId\0222\n\013template_id\030\002 \001(\tB\021\272H\016" + + "r\t\020\001\030 :\003tpl\310\001\001R\ntemplateId\"\201\001\n\027GetEmailT" + + "emplateRequest\0222\n\017organization_id\030\001 \001(\tB" + + "\t\272H\006r\004\020\000\030 R\016organizationId\0222\n\013template_i" + + "d\030\002 \001(\tB\021\272H\016r\t\020\001\030 :\003tpl\310\001\001R\ntemplateId\"T" + + "\n\030GetEmailTemplateResponse\0228\n\010template\030\001" + + " \001(\0132\034.scalekit.v1.emails.TemplateR\010temp" + + "late\"N\n\030ListEmailTemplateRequest\0222\n\017orga" + + "nization_id\030\001 \001(\tB\t\272H\006r\004\020\000\030 R\016organizati" + + "onId\"W\n\031ListEmailTemplateResponse\022:\n\ttem" + + "plates\030\001 \003(\0132\034.scalekit.v1.emails.Templa" + + "teR\ttemplates\"\220\003\n\016UpdateTemplate\022)\n\007subj" + + "ect\030\001 \001(\tB\n\272H\007r\005\020\001\030\377\001H\000R\007subject\210\001\001\0223\n\014h" + + "tml_content\030\002 \001(\tB\013\272H\010r\006\020\001(\200\200@H\001R\013htmlCo" + + "ntent\210\001\001\0225\n\rplain_content\030\003 \001(\tB\013\272H\010r\006\020\001" + + "(\200\200@H\002R\014plainContent\210\001\001:\267\001\272H\263\001\032\260\001\n\033at_le" + + "ast_one_field_required\022IAt least one of " + + "\'subject\', \'html_content\', or \'plain_con" + + "tent\' must be set\032Fhas(this.subject) || " + + "has(this.html_content) || has(this.plain" + + "_content)B\n\n\010_subjectB\017\n\r_html_contentB\020" + + "\n\016_plain_content\"\226\003\n\035GetEmailConfigurati" + + "onResponse\022i\n\021default_from_name\030\001 \001(\tB=\222" + + "A:28Default email from name when using s" + + "calekit email serverR\017defaultFromName\022x\n" + + "\024default_from_address\030\002 \001(\tBF\222A=2;Defaul" + + "t email from address when using scalekit" + + " email server\272H\003\310\001\001R\022defaultFromAddress\022" + + "W\n\025email_server_selected\030\003 \001(\0162#.scaleki" + + "t.v1.emails.EmailServerTypeR\023emailServer" + + "Selected\0227\n\006server\030\004 \001(\0132\037.scalekit.v1.e" + + "mails.EmailServerR\006server\"\231\001\n\037UpsertEmai" + + "lConfigurationRequest\022*\n\021default_from_na" + + "me\030\001 \001(\tR\017defaultFromName\022J\n\006server\030\002 \001(" + + "\01322.scalekit.v1.emails.UpsertEmailConfig" + + "urationServerR\006server\"\237\002\n\036UpsertEmailCon" + + "figurationServer\022\016\n\002id\030\001 \001(\tR\002id\022K\n\010prov" + + "ider\030\002 \001(\0162\'.scalekit.v1.emails.EmailSer" + + "verProviderB\006\272H\003\310\001\001R\010provider\022<\n\007enabled" + + "\030\003 \001(\0132\032.google.protobuf.BoolValueB\006\272H\003\310" + + "\001\001R\007enabled\022b\n\010settings\030\004 \001(\0132>.scalekit" + + ".v1.emails.UpsertEmailConfigurationSMTPS" + + "erverSettingsB\006\272H\003\310\001\001R\010settings\"\214\002\n*Upse" + + "rtEmailConfigurationSMTPServerSettings\022!" + "\n\004host\030\001 \001(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\004host\022\032\n\004por" + "t\030\002 \001(\003B\006\272H\003\310\001\001R\004port\022)\n\010username\030\003 \001(\tB" + - "\r\272H\nr\005\020\001\030\377\001\310\001\001R\010username\022,\n\010password\030\004 \001" + - "(\tB\020\340A\004\272H\nr\005\020\001\030\377\001\310\001\001R\010password\022,\n\nfrom_e" + - "mail\030\005 \001(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\tfromEmail\022*\n\t" + - "from_name\030\006 \001(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\010fromName" + - "\"\376\001\n\027PatchSMTPServerSettings\022!\n\004host\030\001 \001" + - "(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\004host\022\032\n\004port\030\002 \001(\003B\006\272" + - "H\003\310\001\001R\004port\022)\n\010username\030\003 \001(\tB\r\272H\nr\005\020\001\030\377" + - "\001\310\001\001R\010username\022\037\n\010password\030\004 \001(\tB\003\340A\004R\010p" + - "assword\022,\n\nfrom_email\030\005 \001(\tB\r\272H\nr\005\020\001\030\377\001\310" + - "\001\001R\tfromEmail\022*\n\tfrom_name\030\006 \001(\tB\r\272H\nr\005\020" + - "\001\030\377\001\310\001\001R\010fromName\"\253\001\n\030CreateEmailServerR" + - "equest\022K\n\010provider\030\001 \001(\0162\'.scalekit.v1.e" + - "mails.EmailServerProviderB\006\272H\003\310\001\001R\010provi" + - "der\022B\n\010settings\030\002 \001(\0132&.scalekit.v1.emai" + - "ls.SMTPServerSettingsR\010settings\"\\\n\031Creat" + - "eEmailServerResponse\022?\n\006server\030\001 \001(\0132\037.s" + - "calekit.v1.emails.EmailServerB\006\272H\003\310\001\001R\006s" + - "erver\"G\n\025GetEmailServerRequest\022.\n\tserver" + - "_id\030\001 \001(\tB\021\272H\016r\t\020\001\030 :\003esr\310\001\001R\010serverId\"Q" + - "\n\026GetEmailServerResponse\0227\n\006server\030\001 \001(\013" + - "2\037.scalekit.v1.emails.EmailServerR\006serve" + - "r\"J\n\030EnableEmailServerRequest\022.\n\tserver_" + - "id\030\001 \001(\tB\021\272H\016r\t\020\001\030 :\003esr\310\001\001R\010serverId\"\324\001" + - "\n\031EnableEmailServerResponse\022V\n\020active_se" + - "rver_id\030\001 \001(\0132\034.google.protobuf.StringVa" + - "lueB\016\272H\013r\t\020\001\030 :\003esrR\016activeServerId\022_\n\025l" + - "ast_active_server_id\030\002 \001(\0132\034.google.prot" + - "obuf.StringValueB\016\272H\013r\t\020\001\030 :\003esrR\022lastAc" + - "tiveServerId\"K\n\031DisableEmailServerReques" + - "t\022.\n\tserver_id\030\001 \001(\tB\021\272H\016r\t\020\001\030 :\003esr\310\001\001R" + - "\010serverId\"T\n\027ListEmailServerResponse\0229\n\007" + - "servers\030\001 \003(\0132\037.scalekit.v1.emails.Email" + - "ServerR\007servers\"\242\001\n\037PatchEmailServerSett" + - "ingsRequest\022.\n\tserver_id\030\001 \001(\tB\021\272H\016r\t\020\001\030" + - " :\003esr\310\001\001R\010serverId\022O\n\010settings\030\002 \001(\0132+." + - "scalekit.v1.emails.PatchSMTPServerSettin" + - "gsB\006\272H\003\310\001\001R\010settings\"J\n\030DeleteEmailServe" + - "rRequest\022.\n\tserver_id\030\001 \001(\tB\021\272H\016r\t\020\001\030 :\003" + - "esr\310\001\001R\010serverId*\224\002\n\017TemplateUsecase\022 \n\034" + - "TEMPLATE_USECASE_UNSPECIFIED\020\000\022\t\n\005LOGIN\020" + - "\001\022\r\n\tOTP_LOGIN\020\002\022\021\n\rMEMBER_INVITE\020\003\022\017\n\013U" + - "SER_INVITE\020\004\022\016\n\nUSER_LOGIN\020\005\022\n\n\006SIGNUP\020\006" + - "\022\022\n\016USER_LOGIN_OTP\020\007\022\023\n\017USER_LOGIN_LINK\020" + - "\010\022\027\n\023USER_LOGIN_LINK_OTP\020\t\022\023\n\017USER_SIGNU" + - "P_OTP\020\n\022\024\n\020USER_SIGNUP_LINK\020\013\022\030\n\024USER_SI" + - "GNUP_LINK_OTP\020\014*=\n\017EmailServerType\022\017\n\013UN" + - "SPECIFIED\020\000\022\013\n\007INHOUSE\020\001\022\014\n\010CUSTOMER\020\002*Z" + - "\n\023EmailServerProvider\022\034\n\030EMAIL_SERVER_UN" + - "SPECIFIED\020\000\022\014\n\010SENDGRID\020\001\022\014\n\010POSTMARK\020\002\022" + - "\t\n\005OTHER\020\0032\325\033\n\014EmailService\022\246\001\n\027GetTempl" + - "atePlaceholders\022*.scalekit.v1.emails.Get" + - "PlaceholdersRequest\032+.scalekit.v1.emails" + - ".GetPlaceholdersResponse\"2\202\265\030\002\030D\202\323\344\223\002&\022$" + - "/api/v1/email/templates/placeholders\022\216\001\n" + - "\023GetTemplateUseCases\022\026.google.protobuf.E" + - "mpty\032/.scalekit.v1.emails.GetTemplateUse" + - "CasesResponse\".\202\265\030\002\030\001\202\323\344\223\002\"\022 /api/v1/ema" + - "il/templates/usecases\022\375\001\n\023CreateEmailTem" + - "plate\022..scalekit.v1.emails.CreateEmailTe" + - "mplateRequest\032/.scalekit.v1.emails.Creat" + - "eEmailTemplateResponse\"\204\001\202\265\030\002\030D\202\323\344\223\002x\"7/" + - "api/v1/organizations/{organization_id}/e" + - "mail/templates:\010templateZ3\"\'/api/v1/orga" + - "nizations/-/email/templates:\010template\022\226\002" + - "\n\023UpdateEmailTemplate\022-.scalekit.v1.emai" + - "ls.PatchEmailTemplateRequest\032,.scalekit." + - "v1.emails.GetEmailTemplateResponse\"\241\001\202\265\030" + - "\002\030D\202\323\344\223\002\224\0012E/api/v1/organizations/{organ" + - "ization_id}/email/templates/{template_id" + - "}:\010templateZA25/api/v1/organizations/-/e" + - "mail/templates/{template_id}:\010template\022\216" + - "\001\n\025GetEmailConfiguration\022\026.google.protob" + - "uf.Empty\0321.scalekit.v1.emails.GetEmailCo" + - "nfigurationResponse\"*\202\265\030\002\030@\202\323\344\223\002\036\022\034/api/" + - "v1/emails/configuration\022\264\001\n\030UpsertEmailC" + - "onfiguration\0223.scalekit.v1.emails.Upsert" + - "EmailConfigurationRequest\0324.scalekit.v1." + - "emails.UpsertEmailConfigurationResponse\"" + - "-\202\265\030\002\030@\202\323\344\223\002!\"\034/api/v1/emails/configurat" + - "ion:\001*\022\224\002\n\023EnableEmailTemplate\022..scaleki" + - "t.v1.emails.EnableEmailTemplateRequest\032/" + - ".scalekit.v1.emails.EnableEmailTemplateR" + - "esponse\"\233\001\202\265\030\002\030D\202\323\344\223\002\216\0012L/api/v1/organiz" + + "\r\272H\nr\005\020\001\030\377\001\310\001\001R\010username\022\032\n\010password\030\004 \001" + + "(\tR\010password\022,\n\nfrom_email\030\005 \001(\tB\r\272H\nr\005\020" + + "\001\030\377\001\310\001\001R\tfromEmail\022*\n\tfrom_name\030\006 \001(\tB\r\272" + + "H\nr\005\020\001\030\377\001\310\001\001R\010fromName\"\222\002\n UpsertEmailCo" + + "nfigurationResponse\022*\n\021default_from_name" + + "\030\001 \001(\tR\017defaultFromName\0220\n\024default_from_" + + "address\030\002 \001(\tR\022defaultFromAddress\022W\n\025ema" + + "il_server_selected\030\003 \001(\0162#.scalekit.v1.e" + + "mails.EmailServerTypeR\023emailServerSelect" + + "ed\0227\n\006server\030\004 \001(\0132\037.scalekit.v1.emails." + + "EmailServerR\006server\"\210\002\n\031PatchEmailTempla" + + "teRequest\0222\n\017organization_id\030\001 \001(\tB\t\272H\006r" + + "\004\020\000\030 R\016organizationId\0222\n\013template_id\030\002 \001" + + "(\tB\021\272H\016r\t\020\001\030 :\003tpl\310\001\001R\ntemplateId\022F\n\010tem" + + "plate\030\004 \001(\0132\".scalekit.v1.emails.UpdateT" + + "emplateB\006\272H\003\310\001\001R\010template\022;\n\013update_mask" + + "\030c \001(\0132\032.google.protobuf.FieldMaskR\nupda" + + "teMask\"\204\001\n\032DeleteEmailTemplateRequest\0222\n" + + "\017organization_id\030\001 \001(\tB\t\272H\006r\004\020\000\030 R\016organ" + + "izationId\0222\n\013template_id\030\002 \001(\tB\021\272H\016r\t\020\001\030" + + " :\003tpl\310\001\001R\ntemplateId\"\254\002\n\013EmailServer\022>\n" + + "\nupdated_at\030\001 \001(\0132\032.google.protobuf.Time" + + "stampB\003\340A\003R\tupdatedAt\022\023\n\002id\030\002 \001(\tB\003\340A\003R\002" + + "id\022K\n\010provider\030\003 \001(\0162\'.scalekit.v1.email" + + "s.EmailServerProviderB\006\272H\003\310\001\001R\010provider\022" + + "\030\n\007enabled\030\004 \001(\010R\007enabled\022U\n\rsmtp_settin" + + "gs\030\005 \001(\0132&.scalekit.v1.emails.SMTPServer" + + "SettingsB\006\272H\003\310\001\001H\000R\014smtpSettingsB\n\n\010sett" + + "ings\"\206\002\n\022SMTPServerSettings\022!\n\004host\030\001 \001(" + + "\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\004host\022\032\n\004port\030\002 \001(\003B\006\272H" + + "\003\310\001\001R\004port\022)\n\010username\030\003 \001(\tB\r\272H\nr\005\020\001\030\377\001" + + "\310\001\001R\010username\022,\n\010password\030\004 \001(\tB\020\340A\004\272H\nr" + + "\005\020\001\030\377\001\310\001\001R\010password\022,\n\nfrom_email\030\005 \001(\tB" + + "\r\272H\nr\005\020\001\030\377\001\310\001\001R\tfromEmail\022*\n\tfrom_name\030\006" + + " \001(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\010fromName\"\376\001\n\027PatchS" + + "MTPServerSettings\022!\n\004host\030\001 \001(\tB\r\272H\nr\005\020\001" + + "\030\377\001\310\001\001R\004host\022\032\n\004port\030\002 \001(\003B\006\272H\003\310\001\001R\004port" + + "\022)\n\010username\030\003 \001(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\010usern" + + "ame\022\037\n\010password\030\004 \001(\tB\003\340A\004R\010password\022,\n\n" + + "from_email\030\005 \001(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\tfromEma" + + "il\022*\n\tfrom_name\030\006 \001(\tB\r\272H\nr\005\020\001\030\377\001\310\001\001R\010fr" + + "omName\"\253\001\n\030CreateEmailServerRequest\022K\n\010p" + + "rovider\030\001 \001(\0162\'.scalekit.v1.emails.Email" + + "ServerProviderB\006\272H\003\310\001\001R\010provider\022B\n\010sett" + + "ings\030\002 \001(\0132&.scalekit.v1.emails.SMTPServ" + + "erSettingsR\010settings\"\\\n\031CreateEmailServe" + + "rResponse\022?\n\006server\030\001 \001(\0132\037.scalekit.v1." + + "emails.EmailServerB\006\272H\003\310\001\001R\006server\"G\n\025Ge" + + "tEmailServerRequest\022.\n\tserver_id\030\001 \001(\tB\021" + + "\272H\016r\t\020\001\030 :\003esr\310\001\001R\010serverId\"Q\n\026GetEmailS" + + "erverResponse\0227\n\006server\030\001 \001(\0132\037.scalekit" + + ".v1.emails.EmailServerR\006server\"J\n\030Enable" + + "EmailServerRequest\022.\n\tserver_id\030\001 \001(\tB\021\272" + + "H\016r\t\020\001\030 :\003esr\310\001\001R\010serverId\"\324\001\n\031EnableEma" + + "ilServerResponse\022V\n\020active_server_id\030\001 \001" + + "(\0132\034.google.protobuf.StringValueB\016\272H\013r\t\020" + + "\001\030 :\003esrR\016activeServerId\022_\n\025last_active_" + + "server_id\030\002 \001(\0132\034.google.protobuf.String" + + "ValueB\016\272H\013r\t\020\001\030 :\003esrR\022lastActiveServerI" + + "d\"K\n\031DisableEmailServerRequest\022.\n\tserver" + + "_id\030\001 \001(\tB\021\272H\016r\t\020\001\030 :\003esr\310\001\001R\010serverId\"T" + + "\n\027ListEmailServerResponse\0229\n\007servers\030\001 \003" + + "(\0132\037.scalekit.v1.emails.EmailServerR\007ser" + + "vers\"\242\001\n\037PatchEmailServerSettingsRequest" + + "\022.\n\tserver_id\030\001 \001(\tB\021\272H\016r\t\020\001\030 :\003esr\310\001\001R\010" + + "serverId\022O\n\010settings\030\002 \001(\0132+.scalekit.v1" + + ".emails.PatchSMTPServerSettingsB\006\272H\003\310\001\001R" + + "\010settings\"J\n\030DeleteEmailServerRequest\022.\n" + + "\tserver_id\030\001 \001(\tB\021\272H\016r\t\020\001\030 :\003esr\310\001\001R\010ser" + + "verId*\224\002\n\017TemplateUsecase\022 \n\034TEMPLATE_US" + + "ECASE_UNSPECIFIED\020\000\022\t\n\005LOGIN\020\001\022\r\n\tOTP_LO" + + "GIN\020\002\022\021\n\rMEMBER_INVITE\020\003\022\017\n\013USER_INVITE\020" + + "\004\022\016\n\nUSER_LOGIN\020\005\022\n\n\006SIGNUP\020\006\022\022\n\016USER_LO" + + "GIN_OTP\020\007\022\023\n\017USER_LOGIN_LINK\020\010\022\027\n\023USER_L" + + "OGIN_LINK_OTP\020\t\022\023\n\017USER_SIGNUP_OTP\020\n\022\024\n\020" + + "USER_SIGNUP_LINK\020\013\022\030\n\024USER_SIGNUP_LINK_O" + + "TP\020\014*=\n\017EmailServerType\022\017\n\013UNSPECIFIED\020\000" + + "\022\013\n\007INHOUSE\020\001\022\014\n\010CUSTOMER\020\002*Z\n\023EmailServ" + + "erProvider\022\034\n\030EMAIL_SERVER_UNSPECIFIED\020\000" + + "\022\014\n\010SENDGRID\020\001\022\014\n\010POSTMARK\020\002\022\t\n\005OTHER\020\0032" + + "\267\035\n\014EmailService\022\265\001\n\027GetTemplatePlacehol" + + "ders\022*.scalekit.v1.emails.GetPlaceholder" + + "sRequest\032+.scalekit.v1.emails.GetPlaceho" + + "ldersResponse\"A\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223" + + "\002&\022$/api/v1/email/templates/placeholders" + + "\022\216\001\n\023GetTemplateUseCases\022\026.google.protob" + + "uf.Empty\032/.scalekit.v1.emails.GetTemplat" + + "eUseCasesResponse\".\202\265\030\002\030\001\202\323\344\223\002\"\022 /api/v1" + + "/email/templates/usecases\022\214\002\n\023CreateEmai" + + "lTemplate\022..scalekit.v1.emails.CreateEma" + + "ilTemplateRequest\032/.scalekit.v1.emails.C" + + "reateEmailTemplateResponse\"\223\001\202\265\030\002\030D\372\322\344\223\002" + + "\t\022\007PREVIEW\202\323\344\223\002x\"7/api/v1/organizations/" + + "{organization_id}/email/templates:\010templ" + + "ateZ3\"\'/api/v1/organizations/-/email/tem" + + "plates:\010template\022\245\002\n\023UpdateEmailTemplate" + + "\022-.scalekit.v1.emails.PatchEmailTemplate" + + "Request\032,.scalekit.v1.emails.GetEmailTem" + + "plateResponse\"\260\001\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344" + + "\223\002\224\0012E/api/v1/organizations/{organizatio" + + "n_id}/email/templates/{template_id}:\010tem" + + "plateZA25/api/v1/organizations/-/email/t" + + "emplates/{template_id}:\010template\022\216\001\n\025Get" + + "EmailConfiguration\022\026.google.protobuf.Emp" + + "ty\0321.scalekit.v1.emails.GetEmailConfigur" + + "ationResponse\"*\202\265\030\002\030@\202\323\344\223\002\036\022\034/api/v1/ema" + + "ils/configuration\022\264\001\n\030UpsertEmailConfigu" + + "ration\0223.scalekit.v1.emails.UpsertEmailC" + + "onfigurationRequest\0324.scalekit.v1.emails" + + ".UpsertEmailConfigurationResponse\"-\202\265\030\002\030" + + "@\202\323\344\223\002!\"\034/api/v1/emails/configuration:\001*" + + "\022\243\002\n\023EnableEmailTemplate\022..scalekit.v1.e" + + "mails.EnableEmailTemplateRequest\032/.scale" + + "kit.v1.emails.EnableEmailTemplateRespons" + + "e\"\252\001\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\216\0012L/api/v" + + "1/organizations/{organization_id}/email/" + + "templates/{template_id}:enableZ>22\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002#\022!/a" + + "pi/v1/email/servers/{server_id}\022\213\001\n\020List" + + "EmailServers\022\026.google.protobuf.Empty\032+.s" + + "calekit.v1.emails.ListEmailServerRespons" + + "e\"2\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\027\022\025/api/v1/" + + "email/servers\022\231\001\n\021DeleteEmailServer\022,.sc" + "alekit.v1.emails.DeleteEmailServerReques" + - "t\032\026.google.protobuf.Empty\"/\202\265\030\002\030D\202\323\344\223\002#*" + - "!/api/v1/email/servers/{server_id}B\317\001\n$c" + - "om.scalekit.grpc.scalekit.v1.emailsB\013Ema" + - "ilsProtoP\001Z0github.com/scalekit-inc/scal" + - "ekit/pkg/grpc/emails\242\002\003SVE\252\002\022Scalekit.V1" + - ".Emails\312\002\022Scalekit\\V1\\Emails\342\002\036Scalekit\\" + - "V1\\Emails\\GPBMetadata\352\002\024Scalekit::V1::Em" + - "ailsb\006proto3" + "t\032\026.google.protobuf.Empty\">\202\265\030\002\030D\372\322\344\223\002\t\022" + + "\007PREVIEW\202\323\344\223\002#*!/api/v1/email/servers/{s" + + "erver_id}B\317\001\n$com.scalekit.grpc.scalekit" + + ".v1.emailsB\013EmailsProtoP\001Z0github.com/sc" + + "alekit-inc/scalekit/pkg/grpc/emails\242\002\003SV" + + "E\252\002\022Scalekit.V1.Emails\312\002\022Scalekit\\V1\\Ema" + + "ils\342\002\036Scalekit\\V1\\Emails\\GPBMetadata\352\002\024S" + + "calekit::V1::Emailsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -503,6 +509,7 @@ public static void registerAllExtensions( com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(), com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(), com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(), + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.FieldMaskProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -739,6 +746,7 @@ public static void registerAllExtensions( registry.add(com.scalekit.grpc.buf.validate.ValidateProto.message); registry.add(com.scalekit.grpc.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.scalekit.grpc.google.api.AnnotationsProto.http); + registry.add(com.scalekit.grpc.google.api.VisibilityProto.methodVisibility); registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Field); registry.add(com.scalekit.grpc.scalekit.v1.options.OptionsProto.authOption); com.google.protobuf.Descriptors.FileDescriptor @@ -746,6 +754,7 @@ public static void registerAllExtensions( com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(); com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(); com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(); + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.FieldMaskProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/AgentActionsConfig.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/AgentActionsConfig.java new file mode 100644 index 00000000..ce592cdb --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/AgentActionsConfig.java @@ -0,0 +1,592 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + * Protobuf type {@code scalekit.v1.environments.AgentActionsConfig} + */ +public final class AgentActionsConfig extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.environments.AgentActionsConfig) + AgentActionsConfigOrBuilder { +private static final long serialVersionUID = 0L; + // Use AgentActionsConfig.newBuilder() to construct. + private AgentActionsConfig(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private AgentActionsConfig() { + userVerifyMode_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new AgentActionsConfig(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_AgentActionsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_AgentActionsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.class, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder.class); + } + + private int bitField0_; + public static final int USER_VERIFY_MODE_FIELD_NUMBER = 1; + private int userVerifyMode_ = 0; + /** + * .scalekit.v1.environments.ConnectedAccountUserVerifyMode user_verify_mode = 1 [json_name = "userVerifyMode", (.buf.validate.field) = { ... } + * @return The enum numeric value on the wire for userVerifyMode. + */ + @java.lang.Override public int getUserVerifyModeValue() { + return userVerifyMode_; + } + /** + * .scalekit.v1.environments.ConnectedAccountUserVerifyMode user_verify_mode = 1 [json_name = "userVerifyMode", (.buf.validate.field) = { ... } + * @return The userVerifyMode. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.environments.ConnectedAccountUserVerifyMode getUserVerifyMode() { + com.scalekit.grpc.scalekit.v1.environments.ConnectedAccountUserVerifyMode result = com.scalekit.grpc.scalekit.v1.environments.ConnectedAccountUserVerifyMode.forNumber(userVerifyMode_); + return result == null ? com.scalekit.grpc.scalekit.v1.environments.ConnectedAccountUserVerifyMode.UNRECOGNIZED : result; + } + + public static final int DETAILED_ERROR_LOGGING_FIELD_NUMBER = 2; + private boolean detailedErrorLogging_ = false; + /** + * optional bool detailed_error_logging = 2 [json_name = "detailedErrorLogging", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the detailedErrorLogging field is set. + */ + @java.lang.Override + public boolean hasDetailedErrorLogging() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional bool detailed_error_logging = 2 [json_name = "detailedErrorLogging", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The detailedErrorLogging. + */ + @java.lang.Override + public boolean getDetailedErrorLogging() { + return detailedErrorLogging_; + } + + 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 (userVerifyMode_ != com.scalekit.grpc.scalekit.v1.environments.ConnectedAccountUserVerifyMode.CONNECTED_ACCOUNT_USER_VERIFY_MODE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, userVerifyMode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeBool(2, detailedErrorLogging_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (userVerifyMode_ != com.scalekit.grpc.scalekit.v1.environments.ConnectedAccountUserVerifyMode.CONNECTED_ACCOUNT_USER_VERIFY_MODE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, userVerifyMode_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, detailedErrorLogging_); + } + 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.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig other = (com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig) obj; + + if (userVerifyMode_ != other.userVerifyMode_) return false; + if (hasDetailedErrorLogging() != other.hasDetailedErrorLogging()) return false; + if (hasDetailedErrorLogging()) { + if (getDetailedErrorLogging() + != other.getDetailedErrorLogging()) 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) + USER_VERIFY_MODE_FIELD_NUMBER; + hash = (53 * hash) + userVerifyMode_; + if (hasDetailedErrorLogging()) { + hash = (37 * hash) + DETAILED_ERROR_LOGGING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getDetailedErrorLogging()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.environments.AgentActionsConfig} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.environments.AgentActionsConfig) + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_AgentActionsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_AgentActionsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.class, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userVerifyMode_ = 0; + detailedErrorLogging_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_AgentActionsConfig_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig build() { + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig buildPartial() { + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig result = new com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userVerifyMode_ = userVerifyMode_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.detailedErrorLogging_ = detailedErrorLogging_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig other) { + if (other == com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance()) return this; + if (other.userVerifyMode_ != 0) { + setUserVerifyModeValue(other.getUserVerifyModeValue()); + } + if (other.hasDetailedErrorLogging()) { + setDetailedErrorLogging(other.getDetailedErrorLogging()); + } + 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 8: { + userVerifyMode_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + detailedErrorLogging_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + 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 int userVerifyMode_ = 0; + /** + * .scalekit.v1.environments.ConnectedAccountUserVerifyMode user_verify_mode = 1 [json_name = "userVerifyMode", (.buf.validate.field) = { ... } + * @return The enum numeric value on the wire for userVerifyMode. + */ + @java.lang.Override public int getUserVerifyModeValue() { + return userVerifyMode_; + } + /** + * .scalekit.v1.environments.ConnectedAccountUserVerifyMode user_verify_mode = 1 [json_name = "userVerifyMode", (.buf.validate.field) = { ... } + * @param value The enum numeric value on the wire for userVerifyMode to set. + * @return This builder for chaining. + */ + public Builder setUserVerifyModeValue(int value) { + userVerifyMode_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.ConnectedAccountUserVerifyMode user_verify_mode = 1 [json_name = "userVerifyMode", (.buf.validate.field) = { ... } + * @return The userVerifyMode. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.ConnectedAccountUserVerifyMode getUserVerifyMode() { + com.scalekit.grpc.scalekit.v1.environments.ConnectedAccountUserVerifyMode result = com.scalekit.grpc.scalekit.v1.environments.ConnectedAccountUserVerifyMode.forNumber(userVerifyMode_); + return result == null ? com.scalekit.grpc.scalekit.v1.environments.ConnectedAccountUserVerifyMode.UNRECOGNIZED : result; + } + /** + * .scalekit.v1.environments.ConnectedAccountUserVerifyMode user_verify_mode = 1 [json_name = "userVerifyMode", (.buf.validate.field) = { ... } + * @param value The userVerifyMode to set. + * @return This builder for chaining. + */ + public Builder setUserVerifyMode(com.scalekit.grpc.scalekit.v1.environments.ConnectedAccountUserVerifyMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + userVerifyMode_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.ConnectedAccountUserVerifyMode user_verify_mode = 1 [json_name = "userVerifyMode", (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearUserVerifyMode() { + bitField0_ = (bitField0_ & ~0x00000001); + userVerifyMode_ = 0; + onChanged(); + return this; + } + + private boolean detailedErrorLogging_ ; + /** + * optional bool detailed_error_logging = 2 [json_name = "detailedErrorLogging", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the detailedErrorLogging field is set. + */ + @java.lang.Override + public boolean hasDetailedErrorLogging() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional bool detailed_error_logging = 2 [json_name = "detailedErrorLogging", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The detailedErrorLogging. + */ + @java.lang.Override + public boolean getDetailedErrorLogging() { + return detailedErrorLogging_; + } + /** + * optional bool detailed_error_logging = 2 [json_name = "detailedErrorLogging", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The detailedErrorLogging to set. + * @return This builder for chaining. + */ + public Builder setDetailedErrorLogging(boolean value) { + + detailedErrorLogging_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * optional bool detailed_error_logging = 2 [json_name = "detailedErrorLogging", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearDetailedErrorLogging() { + bitField0_ = (bitField0_ & ~0x00000002); + detailedErrorLogging_ = false; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.environments.AgentActionsConfig) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.environments.AgentActionsConfig) + private static final com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig(); + } + + public static com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentActionsConfig 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.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/AgentActionsConfigOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/AgentActionsConfigOrBuilder.java new file mode 100644 index 00000000..c49d0358 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/AgentActionsConfigOrBuilder.java @@ -0,0 +1,32 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +public interface AgentActionsConfigOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.environments.AgentActionsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.environments.ConnectedAccountUserVerifyMode user_verify_mode = 1 [json_name = "userVerifyMode", (.buf.validate.field) = { ... } + * @return The enum numeric value on the wire for userVerifyMode. + */ + int getUserVerifyModeValue(); + /** + * .scalekit.v1.environments.ConnectedAccountUserVerifyMode user_verify_mode = 1 [json_name = "userVerifyMode", (.buf.validate.field) = { ... } + * @return The userVerifyMode. + */ + com.scalekit.grpc.scalekit.v1.environments.ConnectedAccountUserVerifyMode getUserVerifyMode(); + + /** + * optional bool detailed_error_logging = 2 [json_name = "detailedErrorLogging", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the detailedErrorLogging field is set. + */ + boolean hasDetailedErrorLogging(); + /** + * optional bool detailed_error_logging = 2 [json_name = "detailedErrorLogging", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The detailedErrorLogging. + */ + boolean getDetailedErrorLogging(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/ConnectedAccountUserVerifyMode.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/ConnectedAccountUserVerifyMode.java new file mode 100644 index 00000000..8525192e --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/ConnectedAccountUserVerifyMode.java @@ -0,0 +1,132 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + * Protobuf enum {@code scalekit.v1.environments.ConnectedAccountUserVerifyMode} + */ +public enum ConnectedAccountUserVerifyMode + implements com.google.protobuf.ProtocolMessageEnum { + /** + * CONNECTED_ACCOUNT_USER_VERIFY_MODE_UNSPECIFIED = 0; + */ + CONNECTED_ACCOUNT_USER_VERIFY_MODE_UNSPECIFIED(0), + /** + * USER_VERIFY_MODE_NONE = 1; + */ + USER_VERIFY_MODE_NONE(1), + /** + * USER_VERIFY_MODE_B2B = 2; + */ + USER_VERIFY_MODE_B2B(2), + /** + * USER_VERIFY_MODE_SCALEKIT_PLATFORM = 3; + */ + USER_VERIFY_MODE_SCALEKIT_PLATFORM(3), + UNRECOGNIZED(-1), + ; + + /** + * CONNECTED_ACCOUNT_USER_VERIFY_MODE_UNSPECIFIED = 0; + */ + public static final int CONNECTED_ACCOUNT_USER_VERIFY_MODE_UNSPECIFIED_VALUE = 0; + /** + * USER_VERIFY_MODE_NONE = 1; + */ + public static final int USER_VERIFY_MODE_NONE_VALUE = 1; + /** + * USER_VERIFY_MODE_B2B = 2; + */ + public static final int USER_VERIFY_MODE_B2B_VALUE = 2; + /** + * USER_VERIFY_MODE_SCALEKIT_PLATFORM = 3; + */ + public static final int USER_VERIFY_MODE_SCALEKIT_PLATFORM_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConnectedAccountUserVerifyMode 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 ConnectedAccountUserVerifyMode forNumber(int value) { + switch (value) { + case 0: return CONNECTED_ACCOUNT_USER_VERIFY_MODE_UNSPECIFIED; + case 1: return USER_VERIFY_MODE_NONE; + case 2: return USER_VERIFY_MODE_B2B; + case 3: return USER_VERIFY_MODE_SCALEKIT_PLATFORM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ConnectedAccountUserVerifyMode> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ConnectedAccountUserVerifyMode findValueByNumber(int number) { + return ConnectedAccountUserVerifyMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.getDescriptor().getEnumTypes().get(6); + } + + private static final ConnectedAccountUserVerifyMode[] VALUES = values(); + + public static ConnectedAccountUserVerifyMode 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 ConnectedAccountUserVerifyMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:scalekit.v1.environments.ConnectedAccountUserVerifyMode) +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigRequest.java new file mode 100644 index 00000000..7c4d1197 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigRequest.java @@ -0,0 +1,735 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + * Protobuf type {@code scalekit.v1.environments.CreateAgentActionsConfigRequest} + */ +public final class CreateAgentActionsConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.environments.CreateAgentActionsConfigRequest) + CreateAgentActionsConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateAgentActionsConfigRequest.newBuilder() to construct. + private CreateAgentActionsConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateAgentActionsConfigRequest() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateAgentActionsConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_CreateAgentActionsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_CreateAgentActionsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest.class, com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_ACTIONS_CONFIG_FIELD_NUMBER = 2; + private com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig agentActionsConfig_; + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + * @return Whether the agentActionsConfig field is set. + */ + @java.lang.Override + public boolean hasAgentActionsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + * @return The agentActionsConfig. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig() { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder() { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAgentActionsConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAgentActionsConfig()); + } + 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.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest other = (com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasAgentActionsConfig() != other.hasAgentActionsConfig()) return false; + if (hasAgentActionsConfig()) { + if (!getAgentActionsConfig() + .equals(other.getAgentActionsConfig())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasAgentActionsConfig()) { + hash = (37 * hash) + AGENT_ACTIONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAgentActionsConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.environments.CreateAgentActionsConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.environments.CreateAgentActionsConfigRequest) + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_CreateAgentActionsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_CreateAgentActionsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest.class, com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAgentActionsConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + agentActionsConfig_ = null; + if (agentActionsConfigBuilder_ != null) { + agentActionsConfigBuilder_.dispose(); + agentActionsConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_CreateAgentActionsConfigRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest build() { + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest result = new com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentActionsConfig_ = agentActionsConfigBuilder_ == null + ? agentActionsConfig_ + : agentActionsConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAgentActionsConfig()) { + mergeAgentActionsConfig(other.getAgentActionsConfig()); + } + 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: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAgentActionsConfigFieldBuilder().getBuilder(), + extensionRegistry); + 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 id_ = ""; + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig agentActionsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder> agentActionsConfigBuilder_; + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + * @return Whether the agentActionsConfig field is set. + */ + public boolean hasAgentActionsConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + * @return The agentActionsConfig. + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig() { + if (agentActionsConfigBuilder_ == null) { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } else { + return agentActionsConfigBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder setAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig value) { + if (agentActionsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentActionsConfig_ = value; + } else { + agentActionsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder setAgentActionsConfig( + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder builderForValue) { + if (agentActionsConfigBuilder_ == null) { + agentActionsConfig_ = builderForValue.build(); + } else { + agentActionsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig value) { + if (agentActionsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + agentActionsConfig_ != null && + agentActionsConfig_ != com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance()) { + getAgentActionsConfigBuilder().mergeFrom(value); + } else { + agentActionsConfig_ = value; + } + } else { + agentActionsConfigBuilder_.mergeFrom(value); + } + if (agentActionsConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearAgentActionsConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + agentActionsConfig_ = null; + if (agentActionsConfigBuilder_ != null) { + agentActionsConfigBuilder_.dispose(); + agentActionsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder getAgentActionsConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAgentActionsConfigFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder() { + if (agentActionsConfigBuilder_ != null) { + return agentActionsConfigBuilder_.getMessageOrBuilder(); + } else { + return agentActionsConfig_ == null ? + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder> + getAgentActionsConfigFieldBuilder() { + if (agentActionsConfigBuilder_ == null) { + agentActionsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder>( + getAgentActionsConfig(), + getParentForChildren(), + isClean()); + agentActionsConfig_ = null; + } + return agentActionsConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.environments.CreateAgentActionsConfigRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.environments.CreateAgentActionsConfigRequest) + private static final com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAgentActionsConfigRequest 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.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigRequestOrBuilder.java new file mode 100644 index 00000000..ebc031a2 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +public interface CreateAgentActionsConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.environments.CreateAgentActionsConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + * @return Whether the agentActionsConfig field is set. + */ + boolean hasAgentActionsConfig(); + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + * @return The agentActionsConfig. + */ + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig(); + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigResponse.java new file mode 100644 index 00000000..9ba7a233 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigResponse.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + * Protobuf type {@code scalekit.v1.environments.CreateAgentActionsConfigResponse} + */ +public final class CreateAgentActionsConfigResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.environments.CreateAgentActionsConfigResponse) + CreateAgentActionsConfigResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateAgentActionsConfigResponse.newBuilder() to construct. + private CreateAgentActionsConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateAgentActionsConfigResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateAgentActionsConfigResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_CreateAgentActionsConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_CreateAgentActionsConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse.class, com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse.Builder.class); + } + + private int bitField0_; + public static final int AGENT_ACTIONS_CONFIG_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig agentActionsConfig_; + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the agentActionsConfig field is set. + */ + @java.lang.Override + public boolean hasAgentActionsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The agentActionsConfig. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig() { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder() { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + + 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, getAgentActionsConfig()); + } + 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, getAgentActionsConfig()); + } + 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.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse other = (com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse) obj; + + if (hasAgentActionsConfig() != other.hasAgentActionsConfig()) return false; + if (hasAgentActionsConfig()) { + if (!getAgentActionsConfig() + .equals(other.getAgentActionsConfig())) 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 (hasAgentActionsConfig()) { + hash = (37 * hash) + AGENT_ACTIONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAgentActionsConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.environments.CreateAgentActionsConfigResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.environments.CreateAgentActionsConfigResponse) + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_CreateAgentActionsConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_CreateAgentActionsConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse.class, com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAgentActionsConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agentActionsConfig_ = null; + if (agentActionsConfigBuilder_ != null) { + agentActionsConfigBuilder_.dispose(); + agentActionsConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_CreateAgentActionsConfigResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse build() { + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse result = new com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agentActionsConfig_ = agentActionsConfigBuilder_ == null + ? agentActionsConfig_ + : agentActionsConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse.getDefaultInstance()) return this; + if (other.hasAgentActionsConfig()) { + mergeAgentActionsConfig(other.getAgentActionsConfig()); + } + 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( + getAgentActionsConfigFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig agentActionsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder> agentActionsConfigBuilder_; + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the agentActionsConfig field is set. + */ + public boolean hasAgentActionsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The agentActionsConfig. + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig() { + if (agentActionsConfigBuilder_ == null) { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } else { + return agentActionsConfigBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig value) { + if (agentActionsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentActionsConfig_ = value; + } else { + agentActionsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAgentActionsConfig( + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder builderForValue) { + if (agentActionsConfigBuilder_ == null) { + agentActionsConfig_ = builderForValue.build(); + } else { + agentActionsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig value) { + if (agentActionsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + agentActionsConfig_ != null && + agentActionsConfig_ != com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance()) { + getAgentActionsConfigBuilder().mergeFrom(value); + } else { + agentActionsConfig_ = value; + } + } else { + agentActionsConfigBuilder_.mergeFrom(value); + } + if (agentActionsConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearAgentActionsConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + agentActionsConfig_ = null; + if (agentActionsConfigBuilder_ != null) { + agentActionsConfigBuilder_.dispose(); + agentActionsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder getAgentActionsConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAgentActionsConfigFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder() { + if (agentActionsConfigBuilder_ != null) { + return agentActionsConfigBuilder_.getMessageOrBuilder(); + } else { + return agentActionsConfig_ == null ? + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder> + getAgentActionsConfigFieldBuilder() { + if (agentActionsConfigBuilder_ == null) { + agentActionsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder>( + getAgentActionsConfig(), + getParentForChildren(), + isClean()); + agentActionsConfig_ = null; + } + return agentActionsConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.environments.CreateAgentActionsConfigResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.environments.CreateAgentActionsConfigResponse) + private static final com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAgentActionsConfigResponse 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.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigResponseOrBuilder.java new file mode 100644 index 00000000..a792d030 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/CreateAgentActionsConfigResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +public interface CreateAgentActionsConfigResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.environments.CreateAgentActionsConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the agentActionsConfig field is set. + */ + boolean hasAgentActionsConfig(); + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The agentActionsConfig. + */ + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig(); + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/EnvironmentServiceGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/EnvironmentServiceGrpc.java index 33dde2db..7341f976 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/EnvironmentServiceGrpc.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/EnvironmentServiceGrpc.java @@ -635,6 +635,37 @@ com.scalekit.grpc.scalekit.v1.environments.GetFeaturesResponse> getGetFeaturesMe return getGetFeaturesMethod; } + private static volatile io.grpc.MethodDescriptor getGetHostScopedPublicFeatureFlagsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetHostScopedPublicFeatureFlags", + requestType = com.google.protobuf.Empty.class, + responseType = com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetHostScopedPublicFeatureFlagsMethod() { + io.grpc.MethodDescriptor getGetHostScopedPublicFeatureFlagsMethod; + if ((getGetHostScopedPublicFeatureFlagsMethod = EnvironmentServiceGrpc.getGetHostScopedPublicFeatureFlagsMethod) == null) { + synchronized (EnvironmentServiceGrpc.class) { + if ((getGetHostScopedPublicFeatureFlagsMethod = EnvironmentServiceGrpc.getGetHostScopedPublicFeatureFlagsMethod) == null) { + EnvironmentServiceGrpc.getGetHostScopedPublicFeatureFlagsMethod = getGetHostScopedPublicFeatureFlagsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetHostScopedPublicFeatureFlags")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentServiceMethodDescriptorSupplier("GetHostScopedPublicFeatureFlags")) + .build(); + } + } + } + return getGetHostScopedPublicFeatureFlagsMethod; + } + private static volatile io.grpc.MethodDescriptor getCreateEnvironmentSessionSettingsMethod; @@ -821,6 +852,99 @@ com.scalekit.grpc.scalekit.v1.environments.UpdateEnvironmentUserManagementRespon return getUpdateEnvironmentUserManagementMethod; } + private static volatile io.grpc.MethodDescriptor getCreateAgentActionsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAgentActionsConfig", + requestType = com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateAgentActionsConfigMethod() { + io.grpc.MethodDescriptor getCreateAgentActionsConfigMethod; + if ((getCreateAgentActionsConfigMethod = EnvironmentServiceGrpc.getCreateAgentActionsConfigMethod) == null) { + synchronized (EnvironmentServiceGrpc.class) { + if ((getCreateAgentActionsConfigMethod = EnvironmentServiceGrpc.getCreateAgentActionsConfigMethod) == null) { + EnvironmentServiceGrpc.getCreateAgentActionsConfigMethod = getCreateAgentActionsConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAgentActionsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentServiceMethodDescriptorSupplier("CreateAgentActionsConfig")) + .build(); + } + } + } + return getCreateAgentActionsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getGetAgentActionsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAgentActionsConfig", + requestType = com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetAgentActionsConfigMethod() { + io.grpc.MethodDescriptor getGetAgentActionsConfigMethod; + if ((getGetAgentActionsConfigMethod = EnvironmentServiceGrpc.getGetAgentActionsConfigMethod) == null) { + synchronized (EnvironmentServiceGrpc.class) { + if ((getGetAgentActionsConfigMethod = EnvironmentServiceGrpc.getGetAgentActionsConfigMethod) == null) { + EnvironmentServiceGrpc.getGetAgentActionsConfigMethod = getGetAgentActionsConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAgentActionsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentServiceMethodDescriptorSupplier("GetAgentActionsConfig")) + .build(); + } + } + } + return getGetAgentActionsConfigMethod; + } + + private static volatile io.grpc.MethodDescriptor getUpdateAgentActionsConfigMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAgentActionsConfig", + requestType = com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateAgentActionsConfigMethod() { + io.grpc.MethodDescriptor getUpdateAgentActionsConfigMethod; + if ((getUpdateAgentActionsConfigMethod = EnvironmentServiceGrpc.getUpdateAgentActionsConfigMethod) == null) { + synchronized (EnvironmentServiceGrpc.class) { + if ((getUpdateAgentActionsConfigMethod = EnvironmentServiceGrpc.getUpdateAgentActionsConfigMethod) == null) { + EnvironmentServiceGrpc.getUpdateAgentActionsConfigMethod = getUpdateAgentActionsConfigMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAgentActionsConfig")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentServiceMethodDescriptorSupplier("UpdateAgentActionsConfig")) + .build(); + } + } + } + return getUpdateAgentActionsConfigMethod; + } + private static volatile io.grpc.MethodDescriptor getGetContextMethod; @@ -945,6 +1069,37 @@ com.scalekit.grpc.scalekit.v1.environments.ScalekitResourceResponse> getGetScale return getGetScalekitResourcesMethod; } + private static volatile io.grpc.MethodDescriptor getPortalBootstrapMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "PortalBootstrap", + requestType = com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getPortalBootstrapMethod() { + io.grpc.MethodDescriptor getPortalBootstrapMethod; + if ((getPortalBootstrapMethod = EnvironmentServiceGrpc.getPortalBootstrapMethod) == null) { + synchronized (EnvironmentServiceGrpc.class) { + if ((getPortalBootstrapMethod = EnvironmentServiceGrpc.getPortalBootstrapMethod) == null) { + EnvironmentServiceGrpc.getPortalBootstrapMethod = getPortalBootstrapMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PortalBootstrap")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse.getDefaultInstance())) + .setSchemaDescriptor(new EnvironmentServiceMethodDescriptorSupplier("PortalBootstrap")) + .build(); + } + } + } + return getPortalBootstrapMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -1133,6 +1288,18 @@ default void getFeatures(com.scalekit.grpc.scalekit.v1.environments.GetFeaturesR io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFeaturesMethod(), responseObserver); } + /** + *
+     * Returns allowlisted public feature flags for the environment implied by the request
+     * host (typically HTTP Host). No environment id in path, query, or headers; unauthenticated.
+     * 404 when the host does not resolve to an environment.
+     * 
+ */ + default void getHostScopedPublicFeatureFlags(com.google.protobuf.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetHostScopedPublicFeatureFlagsMethod(), responseObserver); + } + /** */ default void createEnvironmentSessionSettings(com.scalekit.grpc.scalekit.v1.environments.CreateEnvironmentSessionSettingsRequest request, @@ -1175,6 +1342,27 @@ default void updateEnvironmentUserManagement(com.scalekit.grpc.scalekit.v1.envir io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateEnvironmentUserManagementMethod(), responseObserver); } + /** + */ + default void createAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateAgentActionsConfigMethod(), responseObserver); + } + + /** + */ + default void getAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAgentActionsConfigMethod(), responseObserver); + } + + /** + */ + default void updateAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateAgentActionsConfigMethod(), responseObserver); + } + /** */ default void getContext(com.scalekit.grpc.scalekit.v1.environments.GetContextRequest request, @@ -1202,6 +1390,13 @@ default void getScalekitResources(com.scalekit.grpc.scalekit.v1.environments.Sca io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetScalekitResourcesMethod(), responseObserver); } + + /** + */ + default void portalBootstrap(com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPortalBootstrapMethod(), responseObserver); + } } /** @@ -1391,6 +1586,19 @@ public void getFeatures(com.scalekit.grpc.scalekit.v1.environments.GetFeaturesRe getChannel().newCall(getGetFeaturesMethod(), getCallOptions()), request, responseObserver); } + /** + *
+     * Returns allowlisted public feature flags for the environment implied by the request
+     * host (typically HTTP Host). No environment id in path, query, or headers; unauthenticated.
+     * 404 when the host does not resolve to an environment.
+     * 
+ */ + public void getHostScopedPublicFeatureFlags(com.google.protobuf.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetHostScopedPublicFeatureFlagsMethod(), getCallOptions()), request, responseObserver); + } + /** */ public void createEnvironmentSessionSettings(com.scalekit.grpc.scalekit.v1.environments.CreateEnvironmentSessionSettingsRequest request, @@ -1439,6 +1647,30 @@ public void updateEnvironmentUserManagement(com.scalekit.grpc.scalekit.v1.enviro getChannel().newCall(getUpdateEnvironmentUserManagementMethod(), getCallOptions()), request, responseObserver); } + /** + */ + public void createAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAgentActionsConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void getAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAgentActionsConfigMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void updateAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAgentActionsConfigMethod(), getCallOptions()), request, responseObserver); + } + /** */ public void getContext(com.scalekit.grpc.scalekit.v1.environments.GetContextRequest request, @@ -1470,6 +1702,14 @@ public void getScalekitResources(com.scalekit.grpc.scalekit.v1.environments.Scal io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetScalekitResourcesMethod(), getCallOptions()), request, responseObserver); } + + /** + */ + public void portalBootstrap(com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getPortalBootstrapMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -1628,6 +1868,18 @@ public com.scalekit.grpc.scalekit.v1.environments.GetFeaturesResponse getFeature getChannel(), getGetFeaturesMethod(), getCallOptions(), request); } + /** + *
+     * Returns allowlisted public feature flags for the environment implied by the request
+     * host (typically HTTP Host). No environment id in path, query, or headers; unauthenticated.
+     * 404 when the host does not resolve to an environment.
+     * 
+ */ + public com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse getHostScopedPublicFeatureFlags(com.google.protobuf.Empty request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetHostScopedPublicFeatureFlagsMethod(), getCallOptions(), request); + } + /** */ public com.scalekit.grpc.scalekit.v1.environments.CreateEnvironmentSessionSettingsResponse createEnvironmentSessionSettings(com.scalekit.grpc.scalekit.v1.environments.CreateEnvironmentSessionSettingsRequest request) { @@ -1670,6 +1922,27 @@ public com.scalekit.grpc.scalekit.v1.environments.UpdateEnvironmentUserManagemen getChannel(), getUpdateEnvironmentUserManagementMethod(), getCallOptions(), request); } + /** + */ + public com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse createAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAgentActionsConfigMethod(), getCallOptions(), request); + } + + /** + */ + public com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse getAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAgentActionsConfigMethod(), getCallOptions(), request); + } + + /** + */ + public com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse updateAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAgentActionsConfigMethod(), getCallOptions(), request); + } + /** */ public com.scalekit.grpc.scalekit.v1.environments.GetContextResponse getContext(com.scalekit.grpc.scalekit.v1.environments.GetContextRequest request) { @@ -1697,6 +1970,13 @@ public com.scalekit.grpc.scalekit.v1.environments.ScalekitResourceResponse getSc return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetScalekitResourcesMethod(), getCallOptions(), request); } + + /** + */ + public com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse portalBootstrap(com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getPortalBootstrapMethod(), getCallOptions(), request); + } } /** @@ -1875,6 +2155,19 @@ public com.google.common.util.concurrent.ListenableFuture + * Returns allowlisted public feature flags for the environment implied by the request + * host (typically HTTP Host). No environment id in path, query, or headers; unauthenticated. + * 404 when the host does not resolve to an environment. + *
+ */ + public com.google.common.util.concurrent.ListenableFuture getHostScopedPublicFeatureFlags( + com.google.protobuf.Empty request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetHostScopedPublicFeatureFlagsMethod(), getCallOptions()), request); + } + /** */ public com.google.common.util.concurrent.ListenableFuture createEnvironmentSessionSettings( @@ -1923,6 +2216,30 @@ public com.google.common.util.concurrent.ListenableFuture createAgentActionsConfig( + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAgentActionsConfigMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture getAgentActionsConfig( + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAgentActionsConfigMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture updateAgentActionsConfig( + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAgentActionsConfigMethod(), getCallOptions()), request); + } + /** */ public com.google.common.util.concurrent.ListenableFuture getContext( @@ -1954,6 +2271,14 @@ public com.google.common.util.concurrent.ListenableFuture portalBootstrap( + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getPortalBootstrapMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_ENVIRONMENT = 0; @@ -1976,16 +2301,21 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2084,6 +2414,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.getFeatures((com.scalekit.grpc.scalekit.v1.environments.GetFeaturesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_HOST_SCOPED_PUBLIC_FEATURE_FLAGS: + serviceImpl.getHostScopedPublicFeatureFlags((com.google.protobuf.Empty) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_CREATE_ENVIRONMENT_SESSION_SETTINGS: serviceImpl.createEnvironmentSessionSettings((com.scalekit.grpc.scalekit.v1.environments.CreateEnvironmentSessionSettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -2108,6 +2442,18 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.updateEnvironmentUserManagement((com.scalekit.grpc.scalekit.v1.environments.UpdateEnvironmentUserManagementRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_AGENT_ACTIONS_CONFIG: + serviceImpl.createAgentActionsConfig((com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_AGENT_ACTIONS_CONFIG: + serviceImpl.getAgentActionsConfig((com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_AGENT_ACTIONS_CONFIG: + serviceImpl.updateAgentActionsConfig((com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_CONTEXT: serviceImpl.getContext((com.scalekit.grpc.scalekit.v1.environments.GetContextRequest) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -2124,6 +2470,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.getScalekitResources((com.scalekit.grpc.scalekit.v1.environments.ScalekitResourceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_PORTAL_BOOTSTRAP: + serviceImpl.portalBootstrap((com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -2282,6 +2632,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.environments.GetFeaturesRequest, com.scalekit.grpc.scalekit.v1.environments.GetFeaturesResponse>( service, METHODID_GET_FEATURES))) + .addMethod( + getGetHostScopedPublicFeatureFlagsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protobuf.Empty, + com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse>( + service, METHODID_GET_HOST_SCOPED_PUBLIC_FEATURE_FLAGS))) .addMethod( getCreateEnvironmentSessionSettingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2324,6 +2681,27 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.environments.UpdateEnvironmentUserManagementRequest, com.scalekit.grpc.scalekit.v1.environments.UpdateEnvironmentUserManagementResponse>( service, METHODID_UPDATE_ENVIRONMENT_USER_MANAGEMENT))) + .addMethod( + getCreateAgentActionsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigRequest, + com.scalekit.grpc.scalekit.v1.environments.CreateAgentActionsConfigResponse>( + service, METHODID_CREATE_AGENT_ACTIONS_CONFIG))) + .addMethod( + getGetAgentActionsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest, + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse>( + service, METHODID_GET_AGENT_ACTIONS_CONFIG))) + .addMethod( + getUpdateAgentActionsConfigMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest, + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse>( + service, METHODID_UPDATE_AGENT_ACTIONS_CONFIG))) .addMethod( getGetContextMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2352,6 +2730,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.environments.ScalekitResourceRequest, com.scalekit.grpc.scalekit.v1.environments.ScalekitResourceResponse>( service, METHODID_GET_SCALEKIT_RESOURCES))) + .addMethod( + getPortalBootstrapMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest, + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse>( + service, METHODID_PORTAL_BOOTSTRAP))) .build(); } @@ -2420,16 +2805,21 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getEnableFeatureMethod()) .addMethod(getDisableFeatureMethod()) .addMethod(getGetFeaturesMethod()) + .addMethod(getGetHostScopedPublicFeatureFlagsMethod()) .addMethod(getCreateEnvironmentSessionSettingsMethod()) .addMethod(getCreateEnvironmentUserManagementMethod()) .addMethod(getGetEnvironmentSessionSettingsMethod()) .addMethod(getGetEnvironmentUserManagementMethod()) .addMethod(getUpdateEnvironmentSessionSettingsMethod()) .addMethod(getUpdateEnvironmentUserManagementMethod()) + .addMethod(getCreateAgentActionsConfigMethod()) + .addMethod(getGetAgentActionsConfigMethod()) + .addMethod(getUpdateAgentActionsConfigMethod()) .addMethod(getGetContextMethod()) .addMethod(getUpdateContextMethod()) .addMethod(getGetCurrentSessionMethod()) .addMethod(getGetScalekitResourcesMethod()) + .addMethod(getPortalBootstrapMethod()) .build(); } } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/EnvironmentsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/EnvironmentsProto.java index 358eb36c..a3fface9 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/EnvironmentsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/EnvironmentsProto.java @@ -200,6 +200,16 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_environments_EnvironmentFeature_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_environments_GetHostScopedPublicFeatureFlagsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_environments_GetHostScopedPublicFeatureFlagsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_environments_PublicHostFeatureFlag_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_environments_PublicHostFeatureFlag_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_scalekit_v1_environments_GetEnvironmentSessionSettingsRequest_descriptor; static final @@ -315,6 +325,56 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_environments_ScalekitResourceResponse_ResourcesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_environments_PortalBootstrapRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_environments_PortalBootstrapRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_environments_PortalCustomizationBootstrap_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_environments_PortalCustomizationBootstrap_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_environments_PortalBootstrapResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_environments_PortalBootstrapResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_environments_AgentActionsConfig_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_environments_AgentActionsConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_environments_CreateAgentActionsConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_environments_CreateAgentActionsConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_environments_CreateAgentActionsConfigResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_environments_CreateAgentActionsConfigResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_environments_GetAgentActionsConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_environments_GetAgentActionsConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_environments_GetAgentActionsConfigResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_environments_GetAgentActionsConfigResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_environments_UpdateAgentActionsConfigRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_environments_UpdateAgentActionsConfigRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_environments_UpdateAgentActionsConfigResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_environments_UpdateAgentActionsConfigResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -328,424 +388,563 @@ public static void registerAllExtensions( "proto\022\030scalekit.v1.environments\032\033buf/val" + "idate/validate.proto\032\034google/api/annotat" + "ions.proto\032\037google/api/field_behavior.pr" + - "oto\032\031google/protobuf/any.proto\032\036google/p" + - "rotobuf/duration.proto\032\033google/protobuf/" + - "empty.proto\032\034google/protobuf/struct.prot" + - "o\032\037google/protobuf/timestamp.proto\032\036goog" + - "le/protobuf/wrappers.proto\032.protoc-gen-o" + - "penapiv2/options/annotations.proto\032!scal" + - "ekit/v1/commons/commons.proto\032!scalekit/" + - "v1/options/options.proto\"o\n\031CreateCustom" + - "DomainRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003en" + - "vR\002id\0222\n\rcustom_domain\030\002 \001(\tB\r\272H\nr\005\020\001\030\372\001" + - "\310\001\001R\014customDomain\"e\n\032CreateCustomDomainR" + - "esponse\022G\n\013environment\030\001 \001(\0132%.scalekit." + - "v1.environments.EnvironmentR\013environment" + - "\"j\n\024GetDNSRecordsRequest\022\036\n\002id\030\001 \001(\tB\016\272H" + - "\013r\t\020\001\030 :\003envR\002id\0222\n\rcustom_domain\030\002 \001(\tB" + - "\r\272H\nr\005\020\001\030\372\001\310\001\001R\014customDomain\"^\n\025GetDNSRe" + - "cordsResponse\022E\n\013dns_records\030\001 \003(\0132$.sca" + - "lekit.v1.environments.DNSRecordsR\ndnsRec" + - "ords\"w\n\nDNSRecords\022\'\n\thost_name\030\001 \001(\tB\n\272" + - "H\007r\005\020\001\030\372\001R\010hostName\022\036\n\004type\030\002 \001(\tB\n\272H\007r\005" + - "\020\001\030\372\001R\004type\022 \n\005value\030\003 \001(\tB\n\272H\007r\005\020\001\030\372\001R\005" + - "value\"\222\004\n\013Environment\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t" + - "\020\001\030 :\003envR\002id\022;\n\013create_time\030\002 \001(\0132\032.goo" + - "gle.protobuf.TimestampR\ncreateTime\022;\n\013up" + - "date_time\030\003 \001(\0132\032.google.protobuf.Timest" + - "ampR\nupdateTime\022-\n\014display_name\030\004 \001(\tB\n\272" + - "H\007r\005\020\001\030\310\001R\013displayName\022\"\n\006domain\030\005 \001(\tB\n" + - "\272H\007r\005\020\001\030\372\001R\006domain\022@\n\013region_code\030\006 \001(\0162" + - "\037.scalekit.v1.commons.RegionCodeR\nregion" + - "Code\0228\n\004type\030\007 \001(\0162$.scalekit.v1.commons" + - ".EnvironmentTypeR\004type\022(\n\rcustom_domain\030" + - "\010 \001(\tH\000R\014customDomain\210\001\001\022^\n\024custom_domai" + - "n_status\030\t \001(\0162,.scalekit.v1.environment" + - "s.CustomDomainStatusR\022customDomainStatus" + - "B\020\n\016_custom_domain\"\261\003\n\021CreateEnvironment" + - "\022-\n\014display_name\030\004 \001(\tB\n\272H\007r\005\020\001\030\310\001R\013disp" + - "layName\022E\n\013region_code\030\006 \001(\0162\037.scalekit." + - "v1.commons.RegionCodeH\000R\nregionCode\210\001\001\022=" + - "\n\004type\030\007 \001(\0162$.scalekit.v1.commons.Envir" + - "onmentTypeH\001R\004type\210\001\001\022\257\001\n\023authentication" + - "_mode\030\010 \001(\0162\'.scalekit.v1.commons.Authen" + - "ticationModeBP\222AM2KThe authentication mo" + - "de for the environment. The default is F" + - "ULL_STACK_AUTHH\002R\022authenticationMode\210\001\001B" + - "\016\n\014_region_codeB\007\n\005_typeB\026\n\024_authenticat" + - "ion_modeJ\004\010\005\020\006\"j\n\021UpdateEnvironment\0222\n\014d" + - "isplay_name\030\004 \001(\tB\n\272H\007r\005\020\001\030\320\017H\000R\013display" + - "Name\210\001\001B\017\n\r_display_nameJ\004\010\005\020\006J\004\010\006\020\007J\004\010\007" + - "\020\010\"S\n\027UpdateEnvironmentDomain\022\'\n\006domain\030" + - "\005 \001(\tB\n\272H\007r\005\020\001\030\372\001H\000R\006domain\210\001\001B\t\n\007_domai" + - "nJ\004\010\004\020\005\"q\n\030CreateEnvironmentRequest\022U\n\013e" + - "nvironment\030\001 \001(\0132+.scalekit.v1.environme" + - "nts.CreateEnvironmentB\006\272H\003\310\001\001R\013environme" + - "nt\"d\n\031CreateEnvironmentResponse\022G\n\013envir" + - "onment\030\001 \001(\0132%.scalekit.v1.environments." + - "EnvironmentR\013environment\"\221\001\n\030UpdateEnvir" + - "onmentRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003en" + - "vR\002id\022U\n\013environment\030\002 \001(\0132+.scalekit.v1" + - ".environments.UpdateEnvironmentB\006\272H\003\310\001\001R" + - "\013environment\"\235\001\n\036UpdateEnvironmentDomain" + - "Request\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022" + - "[\n\013environment\030\002 \001(\01321.scalekit.v1.envir" + - "onments.UpdateEnvironmentDomainB\006\272H\003\310\001\001R" + - "\013environment\"d\n\031UpdateEnvironmentRespons" + - "e\022G\n\013environment\030\001 \001(\0132%.scalekit.v1.env" + - "ironments.EnvironmentR\013environment\"7\n\025Ge" + - "tEnvironmentRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001" + - "\030 :\003envR\002id\"a\n\026GetEnvironmentResponse\022G\n" + - "\013environment\030\001 \001(\0132%.scalekit.v1.environ" + - "ments.EnvironmentR\013environment\"U\n\027ListEn" + - "vironmentsRequest\022\033\n\tpage_size\030\001 \001(\rR\010pa" + - "geSize\022\035\n\npage_token\030\002 \001(\tR\tpageToken\"\254\001" + - "\n\030ListEnvironmentsResponse\022&\n\017next_page_" + - "token\030\001 \001(\tR\rnextPageToken\022\035\n\ntotal_size" + - "\030\002 \001(\rR\ttotalSize\022I\n\014environments\030\003 \003(\0132" + - "%.scalekit.v1.environments.EnvironmentR\014" + - "environments\":\n\030DeleteEnvironmentRequest" + - "\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\"@\n\036Gene" + - "rateSamlCertificateRequest\022\036\n\002id\030\001 \001(\tB\016" + - "\272H\013r\t\020\001\030 :\003envR\002id\"k\n\037GenerateSamlCertif" + - "icateResponse\022\016\n\002id\030\001 \001(\tR\002id\022 \n\013certifi" + - "cate\030\002 \001(\tR\013certificate\022\026\n\006expiry\030\003 \001(\003R" + - "\006expiry\"\231\001\n!UpdatePortalCustomizationRes" + - "ponse\022$\n\renvironmentId\030\001 \001(\tR\renvironmen" + - "tId\022N\n\026customization_settings\030\002 \001(\0132\027.go" + - "ogle.protobuf.StructR\025customizationSetti" + - "ngs\"\232\001\n UpdatePortalCustomizationRequest" + - "\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022V\n\026cust" + - "omization_settings\030\002 \001(\0132\027.google.protob" + - "uf.StructB\006\272H\003\310\001\001R\025customizationSettings" + - "\":\n\035GetPortalCustomizationRequest\022\031\n\002id\030" + - "\001 \001(\tB\t\272H\006r\004\020\000\030 R\002id\"\253\001\n\016PortalSettings\022" + - "\230\001\n\017custom_branding\030\001 \001(\010Bo\222Al2dIndicate" + - "s whether custom portal branding is enab" + - "led for this workspace based on billing " + - "subscriptionJ\004trueR\016customBranding\"\341\001\n\036G" + - "etPortalCustomizationResponse\022$\n\renviron" + - "mentId\030\001 \001(\tR\renvironmentId\022N\n\026customiza" + - "tion_settings\030\002 \001(\0132\027.google.protobuf.St" + - "ructR\025customizationSettings\022I\n\010settings\030" + - "\003 \001(\0132(.scalekit.v1.environments.PortalS" + - "ettingsB\003\340A\003R\010settings\"Z\n\034CreateAssetUpl" + - "oadUrlResponse\022\035\n\nupload_url\030\001 \001(\tR\tuplo" + - "adUrl\022\033\n\tfetch_url\030\002 \001(\tR\010fetchUrl\"\215\001\n\033C" + - "reateAssetUploadUrlRequest\022\036\n\002id\030\001 \001(\tB\016" + - "\272H\013r\t\020\001\030 :\003envR\002id\022N\n\016asset_settings\030\002 \001" + - "(\0132\'.scalekit.v1.environments.AssetSetti" + - "ngsR\rassetSettings\"\221\001\n\rAssetSettings\022K\n\010" + - "category\030\001 \001(\0162\'.scalekit.v1.environment" + - "s.AssetCategoryB\006\272H\003\310\001\001R\010category\0223\n\text" + - "ension\030\002 \001(\tB\025\272H\022r\020R\003jpgR\004jpegR\003pngR\text" + - "ension\"\211\001\n\025UpdateFeaturesRequest\022\036\n\002id\030\001" + - " \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022P\n\010features\030\002 \003" + - "(\0132,.scalekit.v1.environments.Environmen" + - "tFeatureB\006\272H\003\310\001\001R\010features\"2\n\027EnableFSAF" + - "eatureRequest\022\027\n\002id\030\001 \001(\tB\007\272H\004r\002\030 R\002id\":" + - "\n\030DisableFSAFeatureRequest\022\036\n\002id\030\001 \001(\tB\016" + - "\272H\013r\t\020\001\030 :\003envR\002id\"7\n\022GetFeaturesRequest" + - "\022!\n\002id\030\001 \001(\tB\021\272H\016r\t\020\001\030 :\003env\320\001\001R\002id\"_\n\023G" + - "etFeaturesResponse\022H\n\010features\030\001 \003(\0132,.s" + - "calekit.v1.environments.EnvironmentFeatu" + - "reR\010features\"`\n\024EnableFeatureRequest\022\036\n\002" + - "id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022(\n\nfeature_" + - "id\030\002 \001(\tB\t\272H\006r\004\020\001\030 R\tfeatureId\"a\n\025Disabl" + - "eFeatureRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003" + - "envR\002id\022(\n\nfeature_id\030\002 \001(\tB\t\272H\006r\004\020\001\030 R\t" + - "featureId\"B\n\022EnvironmentFeature\022\022\n\004name\030" + - "\001 \001(\tR\004name\022\030\n\007enabled\030\002 \001(\010R\007enabled\"F\n" + - "$GetEnvironmentSessionSettingsRequest\022\036\n" + - "\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\"E\n#GetEnvi" + - "ronmentUserManagementRequest\022\036\n\002id\030\001 \001(\t" + - "B\016\272H\013r\t\020\001\030 :\003envR\002id\"}\n%GetEnvironmentSe" + - "ssionSettingsResponse\022T\n\020session_setting" + - "s\030\001 \001(\0132).scalekit.v1.environments.Sessi" + - "onSettingsR\017sessionSettings\"y\n$GetEnviro" + - "nmentUserManagementResponse\022Q\n\017user_mana" + - "gement\030\001 \001(\0132(.scalekit.v1.environments." + - "UserManagementR\016userManagement\"\247\001\n\'Creat" + - "eEnvironmentSessionSettingsRequest\022\036\n\002id" + - "\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022\\\n\020session_se" + - "ttings\030\002 \001(\0132).scalekit.v1.environments." + - "SessionSettingsB\006\272H\003\310\001\001R\017sessionSettings" + - "\"\243\001\n&CreateEnvironmentUserManagementRequ" + - "est\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022Y\n\017u" + - "ser_management\030\002 \001(\0132(.scalekit.v1.envir" + - "onments.UserManagementB\006\272H\003\310\001\001R\016userMana" + - "gement\"\247\001\n(CreateEnvironmentSessionSetti" + - "ngsResponse\022%\n\016environment_id\030\001 \001(\tR\renv" + - "ironmentId\022T\n\020session_settings\030\002 \001(\0132).s" + - "calekit.v1.environments.SessionSettingsR" + - "\017sessionSettings\"\243\001\n\'CreateEnvironmentUs" + - "erManagementResponse\022%\n\016environment_id\030\001" + - " \001(\tR\renvironmentId\022Q\n\017user_management\030\002" + - " \001(\0132(.scalekit.v1.environments.UserMana" + - "gementR\016userManagement\"\247\001\n\'UpdateEnviron" + - "mentSessionSettingsRequest\022\036\n\002id\030\001 \001(\tB\016" + - "\272H\013r\t\020\001\030 :\003envR\002id\022\\\n\020session_settings\030\002" + - " \001(\0132).scalekit.v1.environments.SessionS" + - "ettingsB\006\272H\003\310\001\001R\017sessionSettings\"\243\001\n&Upd" + - "ateEnvironmentUserManagementRequest\022\036\n\002i" + - "d\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022Y\n\017user_mana" + - "gement\030\002 \001(\0132(.scalekit.v1.environments." + - "UserManagementB\006\272H\003\310\001\001R\016userManagement\"\247" + - "\001\n(UpdateEnvironmentSessionSettingsRespo" + - "nse\022%\n\016environment_id\030\001 \001(\tR\renvironment" + - "Id\022T\n\020session_settings\030\002 \001(\0132).scalekit." + - "v1.environments.SessionSettingsR\017session" + - "Settings\"\243\001\n\'UpdateEnvironmentUserManage" + - "mentResponse\022%\n\016environment_id\030\001 \001(\tR\ren" + - "vironmentId\022Q\n\017user_management\030\002 \001(\0132(.s" + - "calekit.v1.environments.UserManagementR\016" + - "userManagement\"\377\010\n\017SessionSettings\022X\n\023ac" + - "cess_token_expiry\030\001 \001(\0132\033.google.protobu" + - "f.Int32ValueB\013\272H\010\032\006\030\300\321\002(\001R\021accessTokenEx" + - "piry\022e\n\032client_access_token_expiry\030\002 \001(\013" + - "2\033.google.protobuf.Int32ValueB\013\272H\010\032\006\030\300\321\002" + - "(\001R\027clientAccessTokenExpiry\022b\n\030absolute_" + - "session_timeout\030\003 \001(\0132\033.google.protobuf." + - "Int32ValueB\013\272H\010\032\006\030\240\212 (\001R\026absoluteSession" + - "Timeout\022X\n\032session_management_enabled\030\004 " + - "\001(\0132\032.google.protobuf.BoolValueR\030session" + - "ManagementEnabled\022Y\n\024idle_session_timeou" + - "t\030\005 \001(\0132\033.google.protobuf.Int32ValueB\n\272H" + - "\007\032\005\030\340N(\001R\022idleSessionTimeout\022L\n\024idle_ses" + - "sion_enabled\030\006 \001(\0132\032.google.protobuf.Boo" + - "lValueR\022idleSessionEnabled\022g\n\027cookie_per" + - "sistence_type\030\007 \001(\0162/.scalekit.v1.enviro" + - "nments.CookiePersistenceTypeR\025cookiePers" + - "istenceType\022h\n\030cookie_same_site_setting\030" + - "\010 \001(\0162/.scalekit.v1.environments.CookieS" + - "ameSiteSettingR\025cookieSameSiteSetting\022N\n" + - "\024cookie_custom_domain\030\t \001(\0132\034.google.pro" + - "tobuf.StringValueR\022cookieCustomDomain\022[\n" + - "\030access_token_expiry_unit\030\n \001(\0162\".scalek" + - "it.v1.environments.TimeUnitR\025accessToken" + - "ExpiryUnit\022e\n\035absolute_session_timeout_u" + - "nit\030\013 \001(\0162\".scalekit.v1.environments.Tim" + - "eUnitR\032absoluteSessionTimeoutUnit\022]\n\031idl" + - "e_session_timeout_unit\030\014 \001(\0162\".scalekit." + - "v1.environments.TimeUnitR\026idleSessionTim" + - "eoutUnit\"\245\007\n\016UserManagement\022a\n\037allow_dup" + - "licate_user_identities\030\001 \001(\0132\032.google.pr" + - "otobuf.BoolValueR\034allowDuplicateUserIden" + - "tities\022X\n\032allow_multiple_memberships\030\002 \001" + - "(\0132\032.google.protobuf.BoolValueR\030allowMul" + - "tipleMemberships\022V\n\031allow_organization_s" + - "ignup\030\003 \001(\0132\032.google.protobuf.BoolValueR" + - "\027allowOrganizationSignup\022o\n\025org_user_rel" + - "ationship\030\004 \001(\01621.scalekit.v1.environmen" + - "ts.OrgUserRelationshipTypeB\010\272H\005\202\001\002\020\001R\023or" + - "gUserRelationship\022O\n\026enable_max_users_li" + - "mit\030\005 \001(\0132\032.google.protobuf.BoolValueR\023e" + - "nableMaxUsersLimit\022P\n\017max_users_limit\030\006 " + - "\001(\0132\033.google.protobuf.Int32ValueB\013\272H\010\032\006\030" + - "\237\215\006(\001R\rmaxUsersLimit\022V\n\021invitation_expir" + - "y\030\007 \001(\0132\034.google.protobuf.UInt32ValueB\013\272" + - "H\010*\006\030\300\321\002(\001R\020invitationExpiry\022_\n\036block_di" + - "sposable_email_domains\030\t \001(\0132\032.google.pr" + - "otobuf.BoolValueR\033blockDisposableEmailDo" + - "mains\022W\n\032block_public_email_domains\030\n \001(" + - "\0132\032.google.protobuf.BoolValueR\027blockPubl" + - "icEmailDomains\022X\n\033sync_user_profile_on_s" + - "ignin\030\013 \001(\0132\032.google.protobuf.BoolValueR" + - "\027syncUserProfileOnSignin\":\n\021GetContextRe" + - "quest\022%\n\016environment_id\030\002 \001(\tR\renvironme" + - "ntId\"G\n\022GetContextResponse\0221\n\007context\030\001 " + - "\001(\0132\027.google.protobuf.StructR\007context\"p\n" + - "\024UpdateContextRequest\022%\n\016environment_id\030" + - "\002 \001(\tR\renvironmentId\0221\n\007context\030\003 \001(\0132\027." + - "google.protobuf.StructR\007context\"*\n\030GetCu" + - "rrentSessionRequest\022\016\n\002id\030\002 \001(\tR\002id\"\303\002\n\031" + - "GetCurrentSessionResponse\022F\n\016session_exp" + - "iry\030\001 \001(\0132\032.google.protobuf.TimestampH\000R" + - "\rsessionExpiry\210\001\001\022J\n\023access_token_expiry" + - "\030\002 \001(\0132\032.google.protobuf.TimestampR\021acce" + - "ssTokenExpiry\022,\n\017organization_id\030\003 \001(\tH\001" + - "R\016organizationId\210\001\001\022\030\n\007subject\030\004 \001(\tR\007su" + - "bject\022\031\n\005email\030\005 \001(\tH\002R\005email\210\001\001B\021\n\017_ses" + - "sion_expiryB\022\n\020_organization_idB\010\n\006_emai" + - "l\"\305\001\n\020ResourceMetadata\022K\n\004type\030\001 \001(\01627.s" + - "calekit.v1.environments.ResourceMetadata" + - ".ResourceTypeR\004type\022 \n\013identifiers\030\002 \003(\t" + - "R\013identifiers\"B\n\014ResourceType\022\020\n\014organiz" + - "ation\020\000\022\016\n\nconnection\020\001\022\020\n\014auth_request\020" + - "\002\"c\n\027ScalekitResourceRequest\022H\n\tresource" + - "s\030\001 \003(\0132*.scalekit.v1.environments.Resou" + - "rceMetadataR\tresources\"\322\001\n\030ScalekitResou" + - "rceResponse\022_\n\tresources\030\001 \003(\0132A.scaleki" + - "t.v1.environments.ScalekitResourceRespon" + - "se.ResourcesEntryR\tresources\032U\n\016Resource" + - "sEntry\022\020\n\003key\030\001 \001(\tR\003key\022-\n\005value\030\002 \001(\0132" + - "\027.google.protobuf.StructR\005value:\0028\001*W\n\022C" + - "ustomDomainStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007PE" + - "NDING\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022\013\n\007INITI" + - "AL\020\004*O\n\rAssetCategory\022\036\n\032ASSET_CATEGORY_" + - "UNSPECIFIED\020\000\022\036\n\032PORTAL_CUSTOMIZATION_IM" + - "AGE\020\001*O\n\010TimeUnit\022!\n\035SESSION_TIME_UNIT_U" + - "NSPECIFIED\020\000\022\013\n\007MINUTES\020\001\022\t\n\005HOURS\020\002\022\010\n\004" + - "DAYS\020\003*w\n\027OrgUserRelationshipType\022\'\n#Org" + - "UserRelationshipType_UNSPECIFIED\020\000\022\027\n\023SI" + - "NGLE_ORGANIZATION\020\001\022\032\n\026MULTIPLE_ORGANIZA" + - "TIONS\020\002*[\n\025CookiePersistenceType\022%\n!Cook" + - "iePersistenceType_UNSPECIFIED\020\000\022\016\n\nPERSI" + - "STENT\020\001\022\013\n\007SESSION\020\002*[\n\025CookieSameSiteSe" + - "tting\022%\n!CookieSameSiteSetting_UNSPECIFI" + - "ED\020\000\022\014\n\010LAX_MODE\020\001\022\r\n\tNONE_MODE\020\0022\275-\n\022En" + - "vironmentService\022\255\001\n\021CreateEnvironment\0222" + - ".scalekit.v1.environments.CreateEnvironm" + - "entRequest\0323.scalekit.v1.environments.Cr" + - "eateEnvironmentResponse\"/\202\265\030\002\030D\202\323\344\223\002#\"\024/" + - "api/v1/environments:\013environment\022\262\001\n\021Upd" + + "oto\032\033google/api/visibility.proto\032\031google" + + "/protobuf/any.proto\032\036google/protobuf/dur" + + "ation.proto\032\033google/protobuf/empty.proto" + + "\032\034google/protobuf/struct.proto\032\037google/p" + + "rotobuf/timestamp.proto\032\036google/protobuf" + + "/wrappers.proto\032.protoc-gen-openapiv2/op" + + "tions/annotations.proto\032!scalekit/v1/com" + + "mons/commons.proto\032)scalekit/v1/connecti" + + "ons/connections.proto\032!scalekit/v1/optio" + + "ns/options.proto\032-scalekit/v1/organizati" + + "ons/organizations.proto\"o\n\031CreateCustomD" + + "omainRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003env" + + "R\002id\0222\n\rcustom_domain\030\002 \001(\tB\r\272H\nr\005\020\001\030\372\001\310" + + "\001\001R\014customDomain\"e\n\032CreateCustomDomainRe" + + "sponse\022G\n\013environment\030\001 \001(\0132%.scalekit.v" + + "1.environments.EnvironmentR\013environment\"" + + "j\n\024GetDNSRecordsRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013" + + "r\t\020\001\030 :\003envR\002id\0222\n\rcustom_domain\030\002 \001(\tB\r" + + "\272H\nr\005\020\001\030\372\001\310\001\001R\014customDomain\"^\n\025GetDNSRec" + + "ordsResponse\022E\n\013dns_records\030\001 \003(\0132$.scal" + + "ekit.v1.environments.DNSRecordsR\ndnsReco" + + "rds\"w\n\nDNSRecords\022\'\n\thost_name\030\001 \001(\tB\n\272H" + + "\007r\005\020\001\030\372\001R\010hostName\022\036\n\004type\030\002 \001(\tB\n\272H\007r\005\020" + + "\001\030\372\001R\004type\022 \n\005value\030\003 \001(\tB\n\272H\007r\005\020\001\030\372\001R\005v" + + "alue\"\222\004\n\013Environment\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020" + + "\001\030 :\003envR\002id\022;\n\013create_time\030\002 \001(\0132\032.goog" + + "le.protobuf.TimestampR\ncreateTime\022;\n\013upd" + + "ate_time\030\003 \001(\0132\032.google.protobuf.Timesta" + + "mpR\nupdateTime\022-\n\014display_name\030\004 \001(\tB\n\272H" + + "\007r\005\020\001\030\310\001R\013displayName\022\"\n\006domain\030\005 \001(\tB\n\272" + + "H\007r\005\020\001\030\372\001R\006domain\022@\n\013region_code\030\006 \001(\0162\037" + + ".scalekit.v1.commons.RegionCodeR\nregionC" + + "ode\0228\n\004type\030\007 \001(\0162$.scalekit.v1.commons." + + "EnvironmentTypeR\004type\022(\n\rcustom_domain\030\010" + + " \001(\tH\000R\014customDomain\210\001\001\022^\n\024custom_domain" + + "_status\030\t \001(\0162,.scalekit.v1.environments" + + ".CustomDomainStatusR\022customDomainStatusB" + + "\020\n\016_custom_domain\"\261\003\n\021CreateEnvironment\022" + + "-\n\014display_name\030\004 \001(\tB\n\272H\007r\005\020\001\030\310\001R\013displ" + + "ayName\022E\n\013region_code\030\006 \001(\0162\037.scalekit.v" + + "1.commons.RegionCodeH\000R\nregionCode\210\001\001\022=\n" + + "\004type\030\007 \001(\0162$.scalekit.v1.commons.Enviro" + + "nmentTypeH\001R\004type\210\001\001\022\257\001\n\023authentication_" + + "mode\030\010 \001(\0162\'.scalekit.v1.commons.Authent" + + "icationModeBP\222AM2KThe authentication mod" + + "e for the environment. The default is FU" + + "LL_STACK_AUTHH\002R\022authenticationMode\210\001\001B\016" + + "\n\014_region_codeB\007\n\005_typeB\026\n\024_authenticati" + + "on_modeJ\004\010\005\020\006\"j\n\021UpdateEnvironment\0222\n\014di" + + "splay_name\030\004 \001(\tB\n\272H\007r\005\020\001\030\320\017H\000R\013displayN" + + "ame\210\001\001B\017\n\r_display_nameJ\004\010\005\020\006J\004\010\006\020\007J\004\010\007\020" + + "\010\"S\n\027UpdateEnvironmentDomain\022\'\n\006domain\030\005" + + " \001(\tB\n\272H\007r\005\020\001\030\372\001H\000R\006domain\210\001\001B\t\n\007_domain" + + "J\004\010\004\020\005\"q\n\030CreateEnvironmentRequest\022U\n\013en" + + "vironment\030\001 \001(\0132+.scalekit.v1.environmen" + + "ts.CreateEnvironmentB\006\272H\003\310\001\001R\013environmen" + + "t\"d\n\031CreateEnvironmentResponse\022G\n\013enviro" + + "nment\030\001 \001(\0132%.scalekit.v1.environments.E" + + "nvironmentR\013environment\"\221\001\n\030UpdateEnviro" + + "nmentRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003env" + + "R\002id\022U\n\013environment\030\002 \001(\0132+.scalekit.v1." + + "environments.UpdateEnvironmentB\006\272H\003\310\001\001R\013" + + "environment\"\235\001\n\036UpdateEnvironmentDomainR" + + "equest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022[" + + "\n\013environment\030\002 \001(\01321.scalekit.v1.enviro" + + "nments.UpdateEnvironmentDomainB\006\272H\003\310\001\001R\013" + + "environment\"d\n\031UpdateEnvironmentResponse" + + "\022G\n\013environment\030\001 \001(\0132%.scalekit.v1.envi" + + "ronments.EnvironmentR\013environment\"7\n\025Get" + + "EnvironmentRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030" + + " :\003envR\002id\"a\n\026GetEnvironmentResponse\022G\n\013" + + "environment\030\001 \001(\0132%.scalekit.v1.environm" + + "ents.EnvironmentR\013environment\"U\n\027ListEnv" + + "ironmentsRequest\022\033\n\tpage_size\030\001 \001(\rR\010pag" + + "eSize\022\035\n\npage_token\030\002 \001(\tR\tpageToken\"\254\001\n" + + "\030ListEnvironmentsResponse\022&\n\017next_page_t" + + "oken\030\001 \001(\tR\rnextPageToken\022\035\n\ntotal_size\030" + + "\002 \001(\rR\ttotalSize\022I\n\014environments\030\003 \003(\0132%" + + ".scalekit.v1.environments.EnvironmentR\014e" + + "nvironments\":\n\030DeleteEnvironmentRequest\022" + + "\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\"@\n\036Gener" + + "ateSamlCertificateRequest\022\036\n\002id\030\001 \001(\tB\016\272" + + "H\013r\t\020\001\030 :\003envR\002id\"k\n\037GenerateSamlCertifi" + + "cateResponse\022\016\n\002id\030\001 \001(\tR\002id\022 \n\013certific" + + "ate\030\002 \001(\tR\013certificate\022\026\n\006expiry\030\003 \001(\003R\006" + + "expiry\"\231\001\n!UpdatePortalCustomizationResp" + + "onse\022$\n\renvironmentId\030\001 \001(\tR\renvironment" + + "Id\022N\n\026customization_settings\030\002 \001(\0132\027.goo" + + "gle.protobuf.StructR\025customizationSettin" + + "gs\"\232\001\n UpdatePortalCustomizationRequest\022" + + "\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022V\n\026custo" + + "mization_settings\030\002 \001(\0132\027.google.protobu" + + "f.StructB\006\272H\003\310\001\001R\025customizationSettings\"" + + ":\n\035GetPortalCustomizationRequest\022\031\n\002id\030\001" + + " \001(\tB\t\272H\006r\004\020\000\030 R\002id\"\235\004\n\016PortalSettings\022\230" + + "\001\n\017custom_branding\030\001 \001(\010Bo\222Al2dIndicates" + + " whether custom portal branding is enabl" + + "ed for this workspace based on billing s" + + "ubscriptionJ\004trueR\016customBranding\022\303\001\n\027ne" + + "w_self_serve_sso_scim\030\002 \001(\010B\214\001\222A\210\0012\177Indi" + + "cates whether the new self-serve SSO/SCI" + + "M flow should be shown in the customer p" + + "ortal (rollout-driven, not billing-deriv" + + "ed)J\005falseR\023newSelfServeSsoScim\022\251\001\n\022enab" + + "le_conn_delete\030\003 \001(\010B{\222Ax2oIndicates whe" + + "ther connection deletion is enabled for " + + "this environment (rollout-driven by envi" + + "ronment allowlist)J\005falseR\020enableConnDel" + + "ete\"\346\001\n\036GetPortalCustomizationResponse\022$" + + "\n\renvironmentId\030\001 \001(\tR\renvironmentId\022S\n\026" + + "customization_settings\030\002 \001(\0132\027.google.pr" + + "otobuf.StructB\003\340A\001R\025customizationSetting" + + "s\022I\n\010settings\030\003 \001(\0132(.scalekit.v1.enviro" + + "nments.PortalSettingsB\003\340A\003R\010settings\"Z\n\034" + + "CreateAssetUploadUrlResponse\022\035\n\nupload_u" + + "rl\030\001 \001(\tR\tuploadUrl\022\033\n\tfetch_url\030\002 \001(\tR\010" + + "fetchUrl\"\215\001\n\033CreateAssetUploadUrlRequest" + + "\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022N\n\016asse" + + "t_settings\030\002 \001(\0132\'.scalekit.v1.environme" + + "nts.AssetSettingsR\rassetSettings\"\221\001\n\rAss" + + "etSettings\022K\n\010category\030\001 \001(\0162\'.scalekit." + + "v1.environments.AssetCategoryB\006\272H\003\310\001\001R\010c" + + "ategory\0223\n\textension\030\002 \001(\tB\025\272H\022r\020R\003jpgR\004" + + "jpegR\003pngR\textension\"\211\001\n\025UpdateFeaturesR" + + "equest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022P" + + "\n\010features\030\002 \003(\0132,.scalekit.v1.environme" + + "nts.EnvironmentFeatureB\006\272H\003\310\001\001R\010features" + + "\"2\n\027EnableFSAFeatureRequest\022\027\n\002id\030\001 \001(\tB" + + "\007\272H\004r\002\030 R\002id\":\n\030DisableFSAFeatureRequest" + + "\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\"7\n\022GetF" + + "eaturesRequest\022!\n\002id\030\001 \001(\tB\021\272H\016r\t\020\001\030 :\003e" + + "nv\320\001\001R\002id\"_\n\023GetFeaturesResponse\022H\n\010feat" + + "ures\030\001 \003(\0132,.scalekit.v1.environments.En" + + "vironmentFeatureR\010features\"`\n\024EnableFeat" + + "ureRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002" + + "id\022(\n\nfeature_id\030\002 \001(\tB\t\272H\006r\004\020\001\030 R\tfeatu" + + "reId\"a\n\025DisableFeatureRequest\022\036\n\002id\030\001 \001(" + + "\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022(\n\nfeature_id\030\002 \001(" + + "\tB\t\272H\006r\004\020\001\030 R\tfeatureId\"B\n\022EnvironmentFe" + + "ature\022\022\n\004name\030\001 \001(\tR\004name\022\030\n\007enabled\030\002 \001" + + "(\010R\007enabled\"p\n\'GetHostScopedPublicFeatur" + + "eFlagsResponse\022E\n\005flags\030\001 \003(\0132/.scalekit" + + ".v1.environments.PublicHostFeatureFlagR\005" + + "flags\"\237\001\n\025PublicHostFeatureFlag\022\020\n\003key\030\001" + + " \001(\tR\003key\022,\n\005value\030\002 \001(\0132\026.google.protob" + + "uf.ValueR\005value\022\030\n\007variant\030\003 \001(\tR\007varian" + + "t\022\026\n\006reason\030\004 \001(\tR\006reason\022\024\n\005error\030\005 \001(\t" + + "R\005error\"F\n$GetEnvironmentSessionSettings" + + "Request\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\"" + + "E\n#GetEnvironmentUserManagementRequest\022\036" + + "\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\"}\n%GetEnv" + + "ironmentSessionSettingsResponse\022T\n\020sessi" + + "on_settings\030\001 \001(\0132).scalekit.v1.environm" + + "ents.SessionSettingsR\017sessionSettings\"y\n" + + "$GetEnvironmentUserManagementResponse\022Q\n" + + "\017user_management\030\001 \001(\0132(.scalekit.v1.env" + + "ironments.UserManagementR\016userManagement" + + "\"\247\001\n\'CreateEnvironmentSessionSettingsReq" + + "uest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022\\\n\020" + + "session_settings\030\002 \001(\0132).scalekit.v1.env" + + "ironments.SessionSettingsB\006\272H\003\310\001\001R\017sessi" + + "onSettings\"\243\001\n&CreateEnvironmentUserMana" + + "gementRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003en" + + "vR\002id\022Y\n\017user_management\030\002 \001(\0132(.scaleki" + + "t.v1.environments.UserManagementB\006\272H\003\310\001\001" + + "R\016userManagement\"\247\001\n(CreateEnvironmentSe" + + "ssionSettingsResponse\022%\n\016environment_id\030" + + "\001 \001(\tR\renvironmentId\022T\n\020session_settings" + + "\030\002 \001(\0132).scalekit.v1.environments.Sessio" + + "nSettingsR\017sessionSettings\"\243\001\n\'CreateEnv" + + "ironmentUserManagementResponse\022%\n\016enviro" + + "nment_id\030\001 \001(\tR\renvironmentId\022Q\n\017user_ma" + + "nagement\030\002 \001(\0132(.scalekit.v1.environment" + + "s.UserManagementR\016userManagement\"\247\001\n\'Upd" + + "ateEnvironmentSessionSettingsRequest\022\036\n\002" + + "id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022\\\n\020session_" + + "settings\030\002 \001(\0132).scalekit.v1.environment" + + "s.SessionSettingsB\006\272H\003\310\001\001R\017sessionSettin" + + "gs\"\243\001\n&UpdateEnvironmentUserManagementRe" + + "quest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022Y\n" + + "\017user_management\030\002 \001(\0132(.scalekit.v1.env" + + "ironments.UserManagementB\006\272H\003\310\001\001R\016userMa" + + "nagement\"\247\001\n(UpdateEnvironmentSessionSet" + + "tingsResponse\022%\n\016environment_id\030\001 \001(\tR\re" + + "nvironmentId\022T\n\020session_settings\030\002 \001(\0132)" + + ".scalekit.v1.environments.SessionSetting" + + "sR\017sessionSettings\"\243\001\n\'UpdateEnvironment" + + "UserManagementResponse\022%\n\016environment_id" + + "\030\001 \001(\tR\renvironmentId\022Q\n\017user_management" + + "\030\002 \001(\0132(.scalekit.v1.environments.UserMa" + + "nagementR\016userManagement\"\377\010\n\017SessionSett" + + "ings\022X\n\023access_token_expiry\030\001 \001(\0132\033.goog" + + "le.protobuf.Int32ValueB\013\272H\010\032\006\030\300\321\002(\001R\021acc" + + "essTokenExpiry\022e\n\032client_access_token_ex" + + "piry\030\002 \001(\0132\033.google.protobuf.Int32ValueB" + + "\013\272H\010\032\006\030\300\321\002(\001R\027clientAccessTokenExpiry\022b\n" + + "\030absolute_session_timeout\030\003 \001(\0132\033.google" + + ".protobuf.Int32ValueB\013\272H\010\032\006\030\240\212 (\001R\026absol" + + "uteSessionTimeout\022X\n\032session_management_" + + "enabled\030\004 \001(\0132\032.google.protobuf.BoolValu" + + "eR\030sessionManagementEnabled\022Y\n\024idle_sess" + + "ion_timeout\030\005 \001(\0132\033.google.protobuf.Int3" + + "2ValueB\n\272H\007\032\005\030\340N(\001R\022idleSessionTimeout\022L" + + "\n\024idle_session_enabled\030\006 \001(\0132\032.google.pr" + + "otobuf.BoolValueR\022idleSessionEnabled\022g\n\027" + + "cookie_persistence_type\030\007 \001(\0162/.scalekit" + + ".v1.environments.CookiePersistenceTypeR\025" + + "cookiePersistenceType\022h\n\030cookie_same_sit" + + "e_setting\030\010 \001(\0162/.scalekit.v1.environmen" + + "ts.CookieSameSiteSettingR\025cookieSameSite" + + "Setting\022N\n\024cookie_custom_domain\030\t \001(\0132\034." + + "google.protobuf.StringValueR\022cookieCusto" + + "mDomain\022[\n\030access_token_expiry_unit\030\n \001(" + + "\0162\".scalekit.v1.environments.TimeUnitR\025a" + + "ccessTokenExpiryUnit\022e\n\035absolute_session" + + "_timeout_unit\030\013 \001(\0162\".scalekit.v1.enviro" + + "nments.TimeUnitR\032absoluteSessionTimeoutU" + + "nit\022]\n\031idle_session_timeout_unit\030\014 \001(\0162\"" + + ".scalekit.v1.environments.TimeUnitR\026idle" + + "SessionTimeoutUnit\"\245\007\n\016UserManagement\022a\n" + + "\037allow_duplicate_user_identities\030\001 \001(\0132\032" + + ".google.protobuf.BoolValueR\034allowDuplica" + + "teUserIdentities\022X\n\032allow_multiple_membe" + + "rships\030\002 \001(\0132\032.google.protobuf.BoolValue" + + "R\030allowMultipleMemberships\022V\n\031allow_orga" + + "nization_signup\030\003 \001(\0132\032.google.protobuf." + + "BoolValueR\027allowOrganizationSignup\022o\n\025or" + + "g_user_relationship\030\004 \001(\01621.scalekit.v1." + + "environments.OrgUserRelationshipTypeB\010\272H" + + "\005\202\001\002\020\001R\023orgUserRelationship\022O\n\026enable_ma" + + "x_users_limit\030\005 \001(\0132\032.google.protobuf.Bo" + + "olValueR\023enableMaxUsersLimit\022P\n\017max_user" + + "s_limit\030\006 \001(\0132\033.google.protobuf.Int32Val" + + "ueB\013\272H\010\032\006\030\237\215\006(\001R\rmaxUsersLimit\022V\n\021invita" + + "tion_expiry\030\007 \001(\0132\034.google.protobuf.UInt" + + "32ValueB\013\272H\010*\006\030\300\321\002(\001R\020invitationExpiry\022_" + + "\n\036block_disposable_email_domains\030\t \001(\0132\032" + + ".google.protobuf.BoolValueR\033blockDisposa" + + "bleEmailDomains\022W\n\032block_public_email_do" + + "mains\030\n \001(\0132\032.google.protobuf.BoolValueR" + + "\027blockPublicEmailDomains\022X\n\033sync_user_pr" + + "ofile_on_signin\030\013 \001(\0132\032.google.protobuf." + + "BoolValueR\027syncUserProfileOnSignin\":\n\021Ge" + + "tContextRequest\022%\n\016environment_id\030\002 \001(\tR" + + "\renvironmentId\"G\n\022GetContextResponse\0221\n\007" + + "context\030\001 \001(\0132\027.google.protobuf.StructR\007" + + "context\"p\n\024UpdateContextRequest\022%\n\016envir" + + "onment_id\030\002 \001(\tR\renvironmentId\0221\n\007contex" + + "t\030\003 \001(\0132\027.google.protobuf.StructR\007contex" + + "t\"*\n\030GetCurrentSessionRequest\022\016\n\002id\030\002 \001(" + + "\tR\002id\"\223\003\n\031GetCurrentSessionResponse\022F\n\016s" + + "ession_expiry\030\001 \001(\0132\032.google.protobuf.Ti" + + "mestampH\000R\rsessionExpiry\210\001\001\022J\n\023access_to" + + "ken_expiry\030\002 \001(\0132\032.google.protobuf.Times" + + "tampR\021accessTokenExpiry\022,\n\017organization_" + + "id\030\003 \001(\tH\001R\016organizationId\210\001\001\022\030\n\007subject" + + "\030\004 \001(\tR\007subject\022\031\n\005email\030\005 \001(\tH\002R\005email\210" + + "\001\001\0225\n\024connected_account_id\030\006 \001(\tH\003R\022conn" + + "ectedAccountId\210\001\001B\021\n\017_session_expiryB\022\n\020" + + "_organization_idB\010\n\006_emailB\027\n\025_connected" + + "_account_id\"\305\001\n\020ResourceMetadata\022K\n\004type" + + "\030\001 \001(\01627.scalekit.v1.environments.Resour" + + "ceMetadata.ResourceTypeR\004type\022 \n\013identif" + + "iers\030\002 \003(\tR\013identifiers\"B\n\014ResourceType\022" + + "\020\n\014organization\020\000\022\016\n\nconnection\020\001\022\020\n\014aut" + + "h_request\020\002\"c\n\027ScalekitResourceRequest\022H" + + "\n\tresources\030\001 \003(\0132*.scalekit.v1.environm" + + "ents.ResourceMetadataR\tresources\"\322\001\n\030Sca" + + "lekitResourceResponse\022_\n\tresources\030\001 \003(\013" + + "2A.scalekit.v1.environments.ScalekitReso" + + "urceResponse.ResourcesEntryR\tresources\032U" + + "\n\016ResourcesEntry\022\020\n\003key\030\001 \001(\tR\003key\022-\n\005va" + + "lue\030\002 \001(\0132\027.google.protobuf.StructR\005valu" + + "e:\0028\001\"\030\n\026PortalBootstrapRequest\"\276\001\n\034Port" + + "alCustomizationBootstrap\022S\n\026customizatio" + + "n_settings\030\001 \001(\0132\027.google.protobuf.Struc" + + "tB\003\340A\001R\025customizationSettings\022I\n\010setting" + + "s\030\002 \001(\0132(.scalekit.v1.environments.Porta" + + "lSettingsB\003\340A\003R\010settings\"\355\002\n\027PortalBoots" + + "trapResponse\022M\n\007session\030\001 \001(\01323.scalekit" + + ".v1.environments.GetCurrentSessionRespon" + + "seR\007session\022k\n\025portal_customizations\030\002 \001" + + "(\01326.scalekit.v1.environments.PortalCust" + + "omizationBootstrapR\024portalCustomizations" + + "\022K\n\014organization\030\003 \001(\0132\'.scalekit.v1.org" + + "anizations.OrganizationR\014organization\022I\n" + + "\013connections\030\004 \003(\0132\'.scalekit.v1.connect" + + "ions.ListConnectionR\013connections\"\247\003\n\022Age" + + "ntActionsConfig\022l\n\020user_verify_mode\030\001 \001(" + + "\01628.scalekit.v1.environments.ConnectedAc" + + "countUserVerifyModeB\010\272H\005\202\001\002\020\001R\016userVerif" + + "yMode\022\207\002\n\026detailed_error_logging\030\002 \001(\010B\313" + + "\001\222A\307\0012\304\001When true, full error messages f" + + "rom provider failures are captured in to" + + "ol-call logs. When false (default), only" + + " the error code is retained. Omit the fi" + + "eld to leave the existing setting unchan" + + "ged.H\000R\024detailedErrorLogging\210\001\001B\031\n\027_deta" + + "iled_error_logging\"\246\001\n\037CreateAgentAction" + + "sConfigRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003e" + + "nvR\002id\022c\n\024agent_actions_config\030\002 \001(\0132,.s" + + "calekit.v1.environments.AgentActionsConf" + + "igB\003\340A\002R\022agentActionsConfig\"\207\001\n CreateAg" + + "entActionsConfigResponse\022c\n\024agent_action" + + "s_config\030\001 \001(\0132,.scalekit.v1.environment" + + "s.AgentActionsConfigB\003\340A\003R\022agentActionsC" + + "onfig\">\n\034GetAgentActionsConfigRequest\022\036\n" + + "\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\"\204\001\n\035GetAge" + + "ntActionsConfigResponse\022c\n\024agent_actions" + + "_config\030\001 \001(\0132,.scalekit.v1.environments" + + ".AgentActionsConfigB\003\340A\003R\022agentActionsCo" + + "nfig\"\246\001\n\037UpdateAgentActionsConfigRequest" + + "\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022c\n\024agen" + + "t_actions_config\030\002 \001(\0132,.scalekit.v1.env" + + "ironments.AgentActionsConfigB\003\340A\002R\022agent" + + "ActionsConfig\"\207\001\n UpdateAgentActionsConf" + + "igResponse\022c\n\024agent_actions_config\030\001 \001(\013" + + "2,.scalekit.v1.environments.AgentActions" + + "ConfigB\003\340A\003R\022agentActionsConfig*W\n\022Custo" + + "mDomainStatus\022\017\n\013UNSPECIFIED\020\000\022\013\n\007PENDIN" + + "G\020\001\022\n\n\006ACTIVE\020\002\022\n\n\006FAILED\020\003\022\013\n\007INITIAL\020\004" + + "*O\n\rAssetCategory\022\036\n\032ASSET_CATEGORY_UNSP" + + "ECIFIED\020\000\022\036\n\032PORTAL_CUSTOMIZATION_IMAGE\020" + + "\001*O\n\010TimeUnit\022!\n\035SESSION_TIME_UNIT_UNSPE" + + "CIFIED\020\000\022\013\n\007MINUTES\020\001\022\t\n\005HOURS\020\002\022\010\n\004DAYS" + + "\020\003*w\n\027OrgUserRelationshipType\022\'\n#OrgUser" + + "RelationshipType_UNSPECIFIED\020\000\022\027\n\023SINGLE" + + "_ORGANIZATION\020\001\022\032\n\026MULTIPLE_ORGANIZATION" + + "S\020\002*[\n\025CookiePersistenceType\022%\n!CookiePe" + + "rsistenceType_UNSPECIFIED\020\000\022\016\n\nPERSISTEN" + + "T\020\001\022\013\n\007SESSION\020\002*[\n\025CookieSameSiteSettin" + + "g\022%\n!CookieSameSiteSetting_UNSPECIFIED\020\000" + + "\022\014\n\010LAX_MODE\020\001\022\r\n\tNONE_MODE\020\002*\261\001\n\036Connec" + + "tedAccountUserVerifyMode\0222\n.CONNECTED_AC" + + "COUNT_USER_VERIFY_MODE_UNSPECIFIED\020\000\022\031\n\025" + + "USER_VERIFY_MODE_NONE\020\001\022\030\n\024USER_VERIFY_M" + + "ODE_B2B\020\002\022&\n\"USER_VERIFY_MODE_SCALEKIT_P" + + "LATFORM\020\0032\313B\n\022EnvironmentService\022\274\001\n\021Cre" + "ateEnvironment\0222.scalekit.v1.environment" + - "s.UpdateEnvironmentRequest\0323.scalekit.v1" + - ".environments.UpdateEnvironmentResponse\"" + - "4\202\265\030\002\030@\202\323\344\223\002(2\031/api/v1/environments/{id}" + - ":\013environment\022\305\001\n\027UpdateEnvironmentDomai" + - "n\0228.scalekit.v1.environments.UpdateEnvir" + - "onmentDomainRequest\0323.scalekit.v1.enviro" + - "nments.UpdateEnvironmentResponse\";\202\265\030\002\030@" + - "\202\323\344\223\002/2 /api/v1/environments/{id}:update" + - ":\013environment\022\234\001\n\016GetEnvironment\022/.scale" + - "kit.v1.environments.GetEnvironmentReques" + - "t\0320.scalekit.v1.environments.GetEnvironm" + - "entResponse\"\'\202\265\030\002\030@\202\323\344\223\002\033\022\031/api/v1/envir" + - "onments/{id}\022\234\001\n\017ListEnvironment\0221.scale" + - "kit.v1.environments.ListEnvironmentsRequ" + - "est\0322.scalekit.v1.environments.ListEnvir" + - "onmentsResponse\"\"\202\265\030\002\030@\202\323\344\223\002\026\022\024/api/v1/e" + - "nvironments\022\206\001\n\021DeleteEnvironment\0222.scal" + - "ekit.v1.environments.DeleteEnvironmentRe" + - "quest\032\026.google.protobuf.Empty\"%\202\265\030\000\202\323\344\223\002" + - "\033*\031/api/v1/environments/{id}\022\250\001\n\025GetRequ" + - "iredDNSRecords\022..scalekit.v1.environment" + - "s.GetDNSRecordsRequest\032/.scalekit.v1.env" + - "ironments.GetDNSRecordsResponse\".\202\265\030\002\030D\202" + - "\323\344\223\002\"\"\035/api/v1/environments/{id}/dns:\001*\022" + - "\221\001\n\020VerifyDNSRecords\022..scalekit.v1.envir" + - "onments.GetDNSRecordsRequest\032\026.google.pr" + - "otobuf.Empty\"5\202\265\030\002\030D\202\323\344\223\002)\"$/api/v1/envi" + - "ronments/{id}/dns:verify:\001*\022\272\001\n\022CreateCu" + - "stomDomain\0223.scalekit.v1.environments.Cr" + - "eateCustomDomainRequest\0324.scalekit.v1.en" + - "vironments.CreateCustomDomainResponse\"9\202" + - "\265\030\002\030D\202\323\344\223\002-\"(/api/v1/environments/{id}/c" + - "ustom-domains:\001*\022\275\001\n\027CheckCustomDomainSt" + - "atus\022/.scalekit.v1.environments.GetEnvir" + - "onmentRequest\0320.scalekit.v1.environments" + - ".GetEnvironmentResponse\"?\202\265\030\002\030D\202\323\344\223\0023\"./" + - "api/v1/environments/{id}/custom-domains:" + - "check:\001*\022\330\001\n\032GenerateNewSamlCertificate\022" + - "8.scalekit.v1.environments.GenerateSamlC" + - "ertificateRequest\0329.scalekit.v1.environm" + - "ents.GenerateSamlCertificateResponse\"E\202\265" + - "\030\002\030D\202\323\344\223\0029\"4/api/v1/environments/{id}/sa" + - "ml-certificates:generate:\001*\022\261\002\n\031UpdatePo" + - "rtalCustomization\022:.scalekit.v1.environm" + - "ents.UpdatePortalCustomizationRequest\032;." + - "scalekit.v1.environments.UpdatePortalCus" + - "tomizationResponse\"\232\001\202\265\030\002\030D\202\323\344\223\002\215\001\032//api" + - "/v1/environments/{id}/portal_customizati" + - "ons:\026customization_settingsZB\032(/api/v1/e" + - "nvironments/{id}/customizations:\026customi" + - "zation_settings\022\350\001\n\026GetPortalCustomizati" + - "on\0227.scalekit.v1.environments.GetPortalC" + - "ustomizationRequest\0328.scalekit.v1.enviro" + - "nments.GetPortalCustomizationResponse\"[\202" + - "\265\030\002\030`\202\323\344\223\002O\022\035/api/v1/portal_customizatio" + - "nsZ.\022,/api/v1/environments/-/portal_cust" + - "omizations\022\304\001\n\024CreateAssetUploadURL\0225.sc" + - "alekit.v1.environments.CreateAssetUpload" + - "UrlRequest\0326.scalekit.v1.environments.Cr" + - "eateAssetUploadUrlResponse\"=\202\265\030\002\030@\202\323\344\223\0021" + - "\"\037/api/v1/environments/{id}/asset:\016asset" + - "_settings\022\254\001\n\016UpdateFeatures\022/.scalekit." + - "v1.environments.UpdateFeaturesRequest\032-." + - "scalekit.v1.environments.GetFeaturesResp" + - "onse\":\202\265\030\002\030@\202\323\344\223\002.\032\"/api/v1/environments" + - "/{id}/features:\010features\022\274\001\n\020EnableFSAFe" + - "ature\0221.scalekit.v1.environments.EnableF" + - "SAFeatureRequest\032\026.google.protobuf.Empty" + - "\"]\202\265\030\002\030D\202\323\344\223\002Q\"-/api/v1/environments/{id" + - "}/features/fsa/enable:\001*Z\035\"\033/api/v1/feat" + - "ures/fsa/enable\022r\n\021DisableFSAFeature\022\026.g" + - "oogle.protobuf.Empty\032\026.google.protobuf.E" + - "mpty\"-\202\265\030\002\030D\202\323\344\223\002!\"\034/api/v1/features/fsa" + - "/disable:\001*\022\235\001\n\rEnableFeature\022..scalekit" + - ".v1.environments.EnableFeatureRequest\032\026." + - "google.protobuf.Empty\"D\202\265\030\002\030`\202\323\344\223\0028\"6/ap" + - "i/v1/environments/{id}/features/{feature" + - "_id}:enable\022\240\001\n\016DisableFeature\022/.scaleki" + - "t.v1.environments.DisableFeatureRequest\032" + - "\026.google.protobuf.Empty\"E\202\265\030\002\030`\202\323\344\223\0029\"7/" + - "api/v1/environments/{id}/features/{featu" + - "re_id}:disable\022\212\001\n\013GetFeatures\022,.scaleki" + - "t.v1.environments.GetFeaturesRequest\032-.s" + - "calekit.v1.environments.GetFeaturesRespo" + - "nse\"\036\202\265\030\002\030T\202\323\344\223\002\022\022\020/api/v1/features\022\365\001\n " + - "CreateEnvironmentSessionSettings\022A.scale" + - "kit.v1.environments.CreateEnvironmentSes" + - "sionSettingsRequest\032B.scalekit.v1.enviro" + - "nments.CreateEnvironmentSessionSettingsR" + - "esponse\"J\202\265\030\002\030D\202\323\344\223\002>\"*/api/v1/environme" + - "nts/{id}/session-settings:\020session_setti" + - "ngs\022\371\001\n\037CreateEnvironmentUserManagement\022" + - "@.scalekit.v1.environments.CreateEnviron" + - "mentUserManagementRequest\032A.scalekit.v1." + - "environments.CreateEnvironmentUserManage" + - "mentResponse\"Q\202\265\030\002\030D\202\323\344\223\002E\"2/api/v1/envi" + - "ronments/{id}/settings/user-management:\017" + - "user_management\022\332\001\n\035GetEnvironmentSessio" + - "nSettings\022>.scalekit.v1.environments.Get" + - "EnvironmentSessionSettingsRequest\032?.scal" + - "ekit.v1.environments.GetEnvironmentSessi" + - "onSettingsResponse\"8\202\265\030\002\030T\202\323\344\223\002,\022*/api/v" + - "1/environments/{id}/session-settings\022\337\001\n" + - "\034GetEnvironmentUserManagement\022=.scalekit" + - ".v1.environments.GetEnvironmentUserManag" + - "ementRequest\032>.scalekit.v1.environments." + - "GetEnvironmentUserManagementResponse\"@\202\265" + - "\030\002\030T\202\323\344\223\0024\0222/api/v1/environments/{id}/se" + - "ttings/user-management\022\365\001\n UpdateEnviron" + - "mentSessionSettings\022A.scalekit.v1.enviro" + - "nments.UpdateEnvironmentSessionSettingsR" + - "equest\032B.scalekit.v1.environments.Update" + - "EnvironmentSessionSettingsResponse\"J\202\265\030\002" + - "\030D\202\323\344\223\002>2*/api/v1/environments/{id}/sess" + - "ion-settings:\020session_settings\022\371\001\n\037Updat" + - "eEnvironmentUserManagement\022@.scalekit.v1" + - ".environments.UpdateEnvironmentUserManag" + - "ementRequest\032A.scalekit.v1.environments." + - "UpdateEnvironmentUserManagementResponse\"" + - "Q\202\265\030\002\030D\202\323\344\223\002E22/api/v1/environments/{id}" + - "/settings/user-management:\017user_manageme" + - "nt\022\245\001\n\nGetContext\022+.scalekit.v1.environm" + - "ents.GetContextRequest\032,.scalekit.v1.env" + - "ironments.GetContextResponse\"<\202\265\030\002\030@\202\323\344\223", - "\0020\022./api/v1/environments/{environment_id" + - "}/contexts\022\236\001\n\rUpdateContext\022..scalekit." + - "v1.environments.UpdateContextRequest\032\026.g" + - "oogle.protobuf.Empty\"E\202\265\030\002\030@\202\323\344\223\0029\032./api" + - "/v1/environments/{environment_id}/contex" + - "ts:\007context\022\356\001\n\021GetCurrentSession\0222.scal" + - "ekit.v1.environments.GetCurrentSessionRe" + - "quest\0323.scalekit.v1.environments.GetCurr" + - "entSessionResponse\"p\202\265\030\002\030p\202\323\344\223\002d\022%/api/v" + - "1/environments/{id}/sessions:meZ$\022\"/api/" + - "v1/environments/-/sessions:meZ\025\022\023/api/v1" + - "/sessions:me\022\242\001\n\024GetScalekitResources\0221." + - "scalekit.v1.environments.ScalekitResourc" + - "eRequest\0322.scalekit.v1.environments.Scal" + - "ekitResourceResponse\"#\202\265\030\002\030D\202\323\344\223\002\027\"\022/api" + - "/v1/fetch:bulk:\001*B\371\001\n*com.scalekit.grpc." + - "scalekit.v1.environmentsB\021EnvironmentsPr" + - "otoP\001Z6github.com/scalekit-inc/scalekit/" + - "pkg/grpc/environments\242\002\003SVE\252\002\030Scalekit.V" + - "1.Environments\312\002\030Scalekit\\V1\\Environment" + - "s\342\002$Scalekit\\V1\\Environments\\GPBMetadata" + - "\352\002\032Scalekit::V1::Environmentsb\006proto3" + "s.CreateEnvironmentRequest\0323.scalekit.v1" + + ".environments.CreateEnvironmentResponse\"" + + ">\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002#\"\024/api/v1/en" + + "vironments:\013environment\022\262\001\n\021UpdateEnviro" + + "nment\0222.scalekit.v1.environments.UpdateE" + + "nvironmentRequest\0323.scalekit.v1.environm" + + "ents.UpdateEnvironmentResponse\"4\202\265\030\002\030@\202\323" + + "\344\223\002(2\031/api/v1/environments/{id}:\013environ" + + "ment\022\305\001\n\027UpdateEnvironmentDomain\0228.scale" + + "kit.v1.environments.UpdateEnvironmentDom" + + "ainRequest\0323.scalekit.v1.environments.Up" + + "dateEnvironmentResponse\";\202\265\030\002\030@\202\323\344\223\002/2 /" + + "api/v1/environments/{id}:update:\013environ" + + "ment\022\234\001\n\016GetEnvironment\022/.scalekit.v1.en" + + "vironments.GetEnvironmentRequest\0320.scale" + + "kit.v1.environments.GetEnvironmentRespon" + + "se\"\'\202\265\030\002\030@\202\323\344\223\002\033\022\031/api/v1/environments/{" + + "id}\022\234\001\n\017ListEnvironment\0221.scalekit.v1.en" + + "vironments.ListEnvironmentsRequest\0322.sca" + + "lekit.v1.environments.ListEnvironmentsRe" + + "sponse\"\"\202\265\030\002\030@\202\323\344\223\002\026\022\024/api/v1/environmen" + + "ts\022\206\001\n\021DeleteEnvironment\0222.scalekit.v1.e" + + "nvironments.DeleteEnvironmentRequest\032\026.g" + + "oogle.protobuf.Empty\"%\202\265\030\000\202\323\344\223\002\033*\031/api/v" + + "1/environments/{id}\022\250\001\n\025GetRequiredDNSRe" + + "cords\022..scalekit.v1.environments.GetDNSR" + + "ecordsRequest\032/.scalekit.v1.environments" + + ".GetDNSRecordsResponse\".\202\265\030\002\030D\202\323\344\223\002\"\"\035/a" + + "pi/v1/environments/{id}/dns:\001*\022\221\001\n\020Verif" + + "yDNSRecords\022..scalekit.v1.environments.G" + + "etDNSRecordsRequest\032\026.google.protobuf.Em" + + "pty\"5\202\265\030\002\030D\202\323\344\223\002)\"$/api/v1/environments/" + + "{id}/dns:verify:\001*\022\311\001\n\022CreateCustomDomai" + + "n\0223.scalekit.v1.environments.CreateCusto" + + "mDomainRequest\0324.scalekit.v1.environment" + + "s.CreateCustomDomainResponse\"H\202\265\030\002\030D\372\322\344\223" + + "\002\t\022\007PREVIEW\202\323\344\223\002-\"(/api/v1/environments/" + + "{id}/custom-domains:\001*\022\314\001\n\027CheckCustomDo" + + "mainStatus\022/.scalekit.v1.environments.Ge" + + "tEnvironmentRequest\0320.scalekit.v1.enviro" + + "nments.GetEnvironmentResponse\"N\202\265\030\002\030D\372\322\344" + + "\223\002\t\022\007PREVIEW\202\323\344\223\0023\"./api/v1/environments" + + "/{id}/custom-domains:check:\001*\022\347\001\n\032Genera" + + "teNewSamlCertificate\0228.scalekit.v1.envir" + + "onments.GenerateSamlCertificateRequest\0329" + + ".scalekit.v1.environments.GenerateSamlCe" + + "rtificateResponse\"T\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW" + + "\202\323\344\223\0029\"4/api/v1/environments/{id}/saml-c" + + "ertificates:generate:\001*\022\300\002\n\031UpdatePortal" + + "Customization\022:.scalekit.v1.environments" + + ".UpdatePortalCustomizationRequest\032;.scal" + + "ekit.v1.environments.UpdatePortalCustomi" + + "zationResponse\"\251\001\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323" + + "\344\223\002\215\001\032//api/v1/environments/{id}/portal_" + + "customizations:\026customization_settingsZB" + + "\032(/api/v1/environments/{id}/customizatio" + + "ns:\026customization_settings\022\351\001\n\026GetPortal", + "Customization\0227.scalekit.v1.environments" + + ".GetPortalCustomizationRequest\0328.scaleki" + + "t.v1.environments.GetPortalCustomization" + + "Response\"\\\202\265\030\003\030\340\001\202\323\344\223\002O\022\035/api/v1/portal_" + + "customizationsZ.\022,/api/v1/environments/-" + + "/portal_customizations\022\304\001\n\024CreateAssetUp" + + "loadURL\0225.scalekit.v1.environments.Creat" + + "eAssetUploadUrlRequest\0326.scalekit.v1.env" + + "ironments.CreateAssetUploadUrlResponse\"=" + + "\202\265\030\002\030@\202\323\344\223\0021\"\037/api/v1/environments/{id}/" + + "asset:\016asset_settings\022\254\001\n\016UpdateFeatures" + + "\022/.scalekit.v1.environments.UpdateFeatur" + + "esRequest\032-.scalekit.v1.environments.Get" + + "FeaturesResponse\":\202\265\030\002\030@\202\323\344\223\002.\032\"/api/v1/" + + "environments/{id}/features:\010features\022\313\001\n" + + "\020EnableFSAFeature\0221.scalekit.v1.environm" + + "ents.EnableFSAFeatureRequest\032\026.google.pr" + + "otobuf.Empty\"l\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002" + + "Q\"-/api/v1/environments/{id}/features/fs" + + "a/enable:\001*Z\035\"\033/api/v1/features/fsa/enab" + + "le\022\201\001\n\021DisableFSAFeature\022\026.google.protob" + + "uf.Empty\032\026.google.protobuf.Empty\"<\202\265\030\002\030D" + + "\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002!\"\034/api/v1/features/" + + "fsa/disable:\001*\022\235\001\n\rEnableFeature\022..scale" + + "kit.v1.environments.EnableFeatureRequest" + + "\032\026.google.protobuf.Empty\"D\202\265\030\002\030`\202\323\344\223\0028\"6" + + "/api/v1/environments/{id}/features/{feat" + + "ure_id}:enable\022\240\001\n\016DisableFeature\022/.scal" + + "ekit.v1.environments.DisableFeatureReque" + + "st\032\026.google.protobuf.Empty\"E\202\265\030\002\030`\202\323\344\223\0029" + + "\"7/api/v1/environments/{id}/features/{fe" + + "ature_id}:disable\022\212\001\n\013GetFeatures\022,.scal" + + "ekit.v1.environments.GetFeaturesRequest\032" + + "-.scalekit.v1.environments.GetFeaturesRe" + + "sponse\"\036\202\265\030\002\030T\202\323\344\223\002\022\022\020/api/v1/features\022\271" + + "\004\n\037GetHostScopedPublicFeatureFlags\022\026.goo" + + "gle.protobuf.Empty\032A.scalekit.v1.environ" + + "ments.GetHostScopedPublicFeatureFlagsRes" + + "ponse\"\272\003\222A\362\002\n\014Environments\022%List host-sc" + + "oped public feature flags\032\305\001Resolves the" + + " environment from the request host only " + + "(no environment path, query, or header)." + + " Returns allowlisted OpenFeature values;" + + " no bearer token. 404 if the host does n" + + "ot map to an environment.J2\n\003200\022+\n)Allo" + + "wlisted flag keys and resolved valuesJ?\n" + + "\003404\0228\n6No environment resolved from hos" + + "t or workspace UI host\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREV" + + "IEW\202\323\344\223\002)\022\'/api/v1/environments:publicFe" + + "atureFlags\022\204\002\n CreateEnvironmentSessionS" + + "ettings\022A.scalekit.v1.environments.Creat" + + "eEnvironmentSessionSettingsRequest\032B.sca" + + "lekit.v1.environments.CreateEnvironmentS" + + "essionSettingsResponse\"Y\202\265\030\002\030D\372\322\344\223\002\t\022\007PR" + + "EVIEW\202\323\344\223\002>\"*/api/v1/environments/{id}/s" + + "ession-settings:\020session_settings\022\210\002\n\037Cr" + + "eateEnvironmentUserManagement\022@.scalekit" + + ".v1.environments.CreateEnvironmentUserMa" + + "nagementRequest\032A.scalekit.v1.environmen" + + "ts.CreateEnvironmentUserManagementRespon" + + "se\"`\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002E\"2/api/v1" + + "/environments/{id}/settings/user-managem" + + "ent:\017user_management\022\332\001\n\035GetEnvironmentS" + + "essionSettings\022>.scalekit.v1.environment" + + "s.GetEnvironmentSessionSettingsRequest\032?" + + ".scalekit.v1.environments.GetEnvironment" + + "SessionSettingsResponse\"8\202\265\030\002\030T\202\323\344\223\002,\022*/" + + "api/v1/environments/{id}/session-setting" + + "s\022\337\001\n\034GetEnvironmentUserManagement\022=.sca" + + "lekit.v1.environments.GetEnvironmentUser" + + "ManagementRequest\032>.scalekit.v1.environm" + + "ents.GetEnvironmentUserManagementRespons" + + "e\"@\202\265\030\002\030T\202\323\344\223\0024\0222/api/v1/environments/{i" + + "d}/settings/user-management\022\204\002\n UpdateEn" + + "vironmentSessionSettings\022A.scalekit.v1.e" + + "nvironments.UpdateEnvironmentSessionSett" + + "ingsRequest\032B.scalekit.v1.environments.U" + + "pdateEnvironmentSessionSettingsResponse\"" + + "Y\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002>2*/api/v1/en" + + "vironments/{id}/session-settings:\020sessio" + + "n_settings\022\210\002\n\037UpdateEnvironmentUserMana" + + "gement\022@.scalekit.v1.environments.Update" + + "EnvironmentUserManagementRequest\032A.scale" + + "kit.v1.environments.UpdateEnvironmentUse" + + "rManagementResponse\"`\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVI" + + "EW\202\323\344\223\002E22/api/v1/environments/{id}/sett" + + "ings/user-management:\017user_management\022\206\004" + + "\n\030CreateAgentActionsConfig\0229.scalekit.v1" + + ".environments.CreateAgentActionsConfigRe" + + "quest\032:.scalekit.v1.environments.CreateA" + + "gentActionsConfigResponse\"\362\002\222A\213\002\n\014Enviro" + + "nments\022\033Create agent actions config\032:Cre" + + "ates the agent actions configuration for" + + " an environmentJ2\n\003200\022+\n)Agent actions " + + "config created successfullyJN\n\003400\022G\nEIn" + + "valid request - missing or invalid field" + + "s, or config already existsJ\036\n\003404\022\027\n\025En" + + "vironment not found\202\265\030\002\030@\372\322\344\223\002\t\022\007PREVIEW" + + "\202\323\344\223\002H\"0/api/v1/environments/{id}/settin" + + "gs/agent-actions:\024agent_actions_config\022\243" + + "\003\n\025GetAgentActionsConfig\0226.scalekit.v1.e" + + "nvironments.GetAgentActionsConfigRequest" + + "\0327.scalekit.v1.environments.GetAgentActi" + + "onsConfigResponse\"\230\002\222A\307\001\n\014Environments\022\030" + + "Get agent actions config\032=Retrieves the " + + "agent actions configuration for an envir" + + "onment.J4\n\003200\022-\n+Agent actions config r" + + "etrieved successfullyJ(\n\003404\022!\n\037Environm" + + "ent or config not found\202\265\030\002\030@\372\322\344\223\002\t\022\007PRE" + + "VIEW\202\323\344\223\0022\0220/api/v1/environments/{id}/se" + + "ttings/agent-actions\022\226\004\n\030UpdateAgentActi" + + "onsConfig\0229.scalekit.v1.environments.Upd" + + "ateAgentActionsConfigRequest\032:.scalekit." + + "v1.environments.UpdateAgentActionsConfig" + + "Response\"\202\003\222A\233\002\n\014Environments\022\033Update ag" + + "ent actions config\032:Updates the agent ac" + + "tions configuration for an environmentJ2" + + "\n\003200\022+\n)Agent actions config updated su" + + "ccessfullyJ^\n\003400\022W\nUInvalid request - m" + + "issing or invalid fields, or mode not al" + + "lowed for this environmentJ\036\n\003404\022\027\n\025Env" + + "ironment not found\202\265\030\002\030@\372\322\344\223\002\t\022\007PREVIEW\202" + + "\323\344\223\002H20/api/v1/environments/{id}/setting" + + "s/agent-actions:\024agent_actions_config\022\245\001" + + "\n\nGetContext\022+.scalekit.v1.environments." + + "GetContextRequest\032,.scalekit.v1.environm" + + "ents.GetContextResponse\"<\202\265\030\002\030@\202\323\344\223\0020\022./" + + "api/v1/environments/{environment_id}/con" + + "texts\022\236\001\n\rUpdateContext\022..scalekit.v1.en" + + "vironments.UpdateContextRequest\032\026.google" + + ".protobuf.Empty\"E\202\265\030\002\030@\202\323\344\223\0029\032./api/v1/e" + + "nvironments/{environment_id}/contexts:\007c" + + "ontext\022\357\001\n\021GetCurrentSession\0222.scalekit." + + "v1.environments.GetCurrentSessionRequest" + + "\0323.scalekit.v1.environments.GetCurrentSe" + + "ssionResponse\"q\202\265\030\003\030\360\001\202\323\344\223\002d\022%/api/v1/en" + + "vironments/{id}/sessions:meZ$\022\"/api/v1/e" + + "nvironments/-/sessions:meZ\025\022\023/api/v1/ses" + + "sions:me\022\261\001\n\024GetScalekitResources\0221.scal" + + "ekit.v1.environments.ScalekitResourceReq" + + "uest\0322.scalekit.v1.environments.Scalekit" + + "ResourceResponse\"2\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202" + + "\323\344\223\002\027\"\022/api/v1/fetch:bulk:\001*\022\320\003\n\017PortalB" + + "ootstrap\0220.scalekit.v1.environments.Port" + + "alBootstrapRequest\0321.scalekit.v1.environ" + + "ments.PortalBootstrapResponse\"\327\002\222A\255\002\n\006Po" + + "rtal\022\036Retrieve portal bootstrap data\032\227\001R" + + "eturns all data needed to initialize the" + + " customer portal in a single request, co" + + "mbining session, portal customizations, " + + "organization, and connections.J5\n\003200\022.\n" + + ",Successfully retrieved portal bootstrap" + + " dataJ2\n\003401\022+\n)Unauthorized - invalid o" + + "r expired session\202\265\030\002\030`\202\323\344\223\002\032\022\030/api/v1/p" + + "ortal/bootstrapB\371\001\n*com.scalekit.grpc.sc" + + "alekit.v1.environmentsB\021EnvironmentsProt" + + "oP\001Z6github.com/scalekit-inc/scalekit/pk" + + "g/grpc/environments\242\002\003SVE\252\002\030Scalekit.V1." + + "Environments\312\002\030Scalekit\\V1\\Environments\342" + + "\002$Scalekit\\V1\\Environments\\GPBMetadata\352\002" + + "\032Scalekit::V1::Environmentsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -753,6 +952,7 @@ public static void registerAllExtensions( com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(), com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(), com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(), + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(), com.google.protobuf.AnyProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), @@ -761,7 +961,9 @@ public static void registerAllExtensions( com.google.protobuf.WrappersProto.getDescriptor(), com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(), com.scalekit.grpc.scalekit.v1.commons.CommonsProto.getDescriptor(), + com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.getDescriptor(), com.scalekit.grpc.scalekit.v1.options.OptionsProto.getDescriptor(), + com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.getDescriptor(), }); internal_static_scalekit_v1_environments_CreateCustomDomainRequest_descriptor = getDescriptor().getMessageTypes().get(0); @@ -912,7 +1114,7 @@ public static void registerAllExtensions( internal_static_scalekit_v1_environments_PortalSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_PortalSettings_descriptor, - new java.lang.String[] { "CustomBranding", }); + new java.lang.String[] { "CustomBranding", "NewSelfServeSsoScim", "EnableConnDelete", }); internal_static_scalekit_v1_environments_GetPortalCustomizationResponse_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_scalekit_v1_environments_GetPortalCustomizationResponse_fieldAccessorTable = new @@ -985,134 +1187,146 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_EnvironmentFeature_descriptor, new java.lang.String[] { "Name", "Enabled", }); - internal_static_scalekit_v1_environments_GetEnvironmentSessionSettingsRequest_descriptor = + internal_static_scalekit_v1_environments_GetHostScopedPublicFeatureFlagsResponse_descriptor = getDescriptor().getMessageTypes().get(37); + internal_static_scalekit_v1_environments_GetHostScopedPublicFeatureFlagsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_environments_GetHostScopedPublicFeatureFlagsResponse_descriptor, + new java.lang.String[] { "Flags", }); + internal_static_scalekit_v1_environments_PublicHostFeatureFlag_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_scalekit_v1_environments_PublicHostFeatureFlag_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_environments_PublicHostFeatureFlag_descriptor, + new java.lang.String[] { "Key", "Value", "Variant", "Reason", "Error", }); + internal_static_scalekit_v1_environments_GetEnvironmentSessionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(39); internal_static_scalekit_v1_environments_GetEnvironmentSessionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_GetEnvironmentSessionSettingsRequest_descriptor, new java.lang.String[] { "Id", }); internal_static_scalekit_v1_environments_GetEnvironmentUserManagementRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(40); internal_static_scalekit_v1_environments_GetEnvironmentUserManagementRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_GetEnvironmentUserManagementRequest_descriptor, new java.lang.String[] { "Id", }); internal_static_scalekit_v1_environments_GetEnvironmentSessionSettingsResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(41); internal_static_scalekit_v1_environments_GetEnvironmentSessionSettingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_GetEnvironmentSessionSettingsResponse_descriptor, new java.lang.String[] { "SessionSettings", }); internal_static_scalekit_v1_environments_GetEnvironmentUserManagementResponse_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(42); internal_static_scalekit_v1_environments_GetEnvironmentUserManagementResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_GetEnvironmentUserManagementResponse_descriptor, new java.lang.String[] { "UserManagement", }); internal_static_scalekit_v1_environments_CreateEnvironmentSessionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(43); internal_static_scalekit_v1_environments_CreateEnvironmentSessionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_CreateEnvironmentSessionSettingsRequest_descriptor, new java.lang.String[] { "Id", "SessionSettings", }); internal_static_scalekit_v1_environments_CreateEnvironmentUserManagementRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(44); internal_static_scalekit_v1_environments_CreateEnvironmentUserManagementRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_CreateEnvironmentUserManagementRequest_descriptor, new java.lang.String[] { "Id", "UserManagement", }); internal_static_scalekit_v1_environments_CreateEnvironmentSessionSettingsResponse_descriptor = - getDescriptor().getMessageTypes().get(43); + getDescriptor().getMessageTypes().get(45); internal_static_scalekit_v1_environments_CreateEnvironmentSessionSettingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_CreateEnvironmentSessionSettingsResponse_descriptor, new java.lang.String[] { "EnvironmentId", "SessionSettings", }); internal_static_scalekit_v1_environments_CreateEnvironmentUserManagementResponse_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(46); internal_static_scalekit_v1_environments_CreateEnvironmentUserManagementResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_CreateEnvironmentUserManagementResponse_descriptor, new java.lang.String[] { "EnvironmentId", "UserManagement", }); internal_static_scalekit_v1_environments_UpdateEnvironmentSessionSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(47); internal_static_scalekit_v1_environments_UpdateEnvironmentSessionSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_UpdateEnvironmentSessionSettingsRequest_descriptor, new java.lang.String[] { "Id", "SessionSettings", }); internal_static_scalekit_v1_environments_UpdateEnvironmentUserManagementRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(48); internal_static_scalekit_v1_environments_UpdateEnvironmentUserManagementRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_UpdateEnvironmentUserManagementRequest_descriptor, new java.lang.String[] { "Id", "UserManagement", }); internal_static_scalekit_v1_environments_UpdateEnvironmentSessionSettingsResponse_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(49); internal_static_scalekit_v1_environments_UpdateEnvironmentSessionSettingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_UpdateEnvironmentSessionSettingsResponse_descriptor, new java.lang.String[] { "EnvironmentId", "SessionSettings", }); internal_static_scalekit_v1_environments_UpdateEnvironmentUserManagementResponse_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(50); internal_static_scalekit_v1_environments_UpdateEnvironmentUserManagementResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_UpdateEnvironmentUserManagementResponse_descriptor, new java.lang.String[] { "EnvironmentId", "UserManagement", }); internal_static_scalekit_v1_environments_SessionSettings_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(51); internal_static_scalekit_v1_environments_SessionSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_SessionSettings_descriptor, new java.lang.String[] { "AccessTokenExpiry", "ClientAccessTokenExpiry", "AbsoluteSessionTimeout", "SessionManagementEnabled", "IdleSessionTimeout", "IdleSessionEnabled", "CookiePersistenceType", "CookieSameSiteSetting", "CookieCustomDomain", "AccessTokenExpiryUnit", "AbsoluteSessionTimeoutUnit", "IdleSessionTimeoutUnit", }); internal_static_scalekit_v1_environments_UserManagement_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(52); internal_static_scalekit_v1_environments_UserManagement_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_UserManagement_descriptor, new java.lang.String[] { "AllowDuplicateUserIdentities", "AllowMultipleMemberships", "AllowOrganizationSignup", "OrgUserRelationship", "EnableMaxUsersLimit", "MaxUsersLimit", "InvitationExpiry", "BlockDisposableEmailDomains", "BlockPublicEmailDomains", "SyncUserProfileOnSignin", }); internal_static_scalekit_v1_environments_GetContextRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(53); internal_static_scalekit_v1_environments_GetContextRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_GetContextRequest_descriptor, new java.lang.String[] { "EnvironmentId", }); internal_static_scalekit_v1_environments_GetContextResponse_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(54); internal_static_scalekit_v1_environments_GetContextResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_GetContextResponse_descriptor, new java.lang.String[] { "Context", }); internal_static_scalekit_v1_environments_UpdateContextRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(55); internal_static_scalekit_v1_environments_UpdateContextRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_UpdateContextRequest_descriptor, new java.lang.String[] { "EnvironmentId", "Context", }); internal_static_scalekit_v1_environments_GetCurrentSessionRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(56); internal_static_scalekit_v1_environments_GetCurrentSessionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_GetCurrentSessionRequest_descriptor, new java.lang.String[] { "Id", }); internal_static_scalekit_v1_environments_GetCurrentSessionResponse_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(57); internal_static_scalekit_v1_environments_GetCurrentSessionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_GetCurrentSessionResponse_descriptor, - new java.lang.String[] { "SessionExpiry", "AccessTokenExpiry", "OrganizationId", "Subject", "Email", }); + new java.lang.String[] { "SessionExpiry", "AccessTokenExpiry", "OrganizationId", "Subject", "Email", "ConnectedAccountId", }); internal_static_scalekit_v1_environments_ResourceMetadata_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(58); internal_static_scalekit_v1_environments_ResourceMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_ResourceMetadata_descriptor, new java.lang.String[] { "Type", "Identifiers", }); internal_static_scalekit_v1_environments_ScalekitResourceRequest_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(59); internal_static_scalekit_v1_environments_ScalekitResourceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_ScalekitResourceRequest_descriptor, new java.lang.String[] { "Resources", }); internal_static_scalekit_v1_environments_ScalekitResourceResponse_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(60); internal_static_scalekit_v1_environments_ScalekitResourceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_ScalekitResourceResponse_descriptor, @@ -1123,18 +1337,81 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_environments_ScalekitResourceResponse_ResourcesEntry_descriptor, new java.lang.String[] { "Key", "Value", }); + internal_static_scalekit_v1_environments_PortalBootstrapRequest_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_scalekit_v1_environments_PortalBootstrapRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_environments_PortalBootstrapRequest_descriptor, + new java.lang.String[] { }); + internal_static_scalekit_v1_environments_PortalCustomizationBootstrap_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_scalekit_v1_environments_PortalCustomizationBootstrap_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_environments_PortalCustomizationBootstrap_descriptor, + new java.lang.String[] { "CustomizationSettings", "Settings", }); + internal_static_scalekit_v1_environments_PortalBootstrapResponse_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_scalekit_v1_environments_PortalBootstrapResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_environments_PortalBootstrapResponse_descriptor, + new java.lang.String[] { "Session", "PortalCustomizations", "Organization", "Connections", }); + internal_static_scalekit_v1_environments_AgentActionsConfig_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_scalekit_v1_environments_AgentActionsConfig_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_environments_AgentActionsConfig_descriptor, + new java.lang.String[] { "UserVerifyMode", "DetailedErrorLogging", }); + internal_static_scalekit_v1_environments_CreateAgentActionsConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(65); + internal_static_scalekit_v1_environments_CreateAgentActionsConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_environments_CreateAgentActionsConfigRequest_descriptor, + new java.lang.String[] { "Id", "AgentActionsConfig", }); + internal_static_scalekit_v1_environments_CreateAgentActionsConfigResponse_descriptor = + getDescriptor().getMessageTypes().get(66); + internal_static_scalekit_v1_environments_CreateAgentActionsConfigResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_environments_CreateAgentActionsConfigResponse_descriptor, + new java.lang.String[] { "AgentActionsConfig", }); + internal_static_scalekit_v1_environments_GetAgentActionsConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(67); + internal_static_scalekit_v1_environments_GetAgentActionsConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_environments_GetAgentActionsConfigRequest_descriptor, + new java.lang.String[] { "Id", }); + internal_static_scalekit_v1_environments_GetAgentActionsConfigResponse_descriptor = + getDescriptor().getMessageTypes().get(68); + internal_static_scalekit_v1_environments_GetAgentActionsConfigResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_environments_GetAgentActionsConfigResponse_descriptor, + new java.lang.String[] { "AgentActionsConfig", }); + internal_static_scalekit_v1_environments_UpdateAgentActionsConfigRequest_descriptor = + getDescriptor().getMessageTypes().get(69); + internal_static_scalekit_v1_environments_UpdateAgentActionsConfigRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_environments_UpdateAgentActionsConfigRequest_descriptor, + new java.lang.String[] { "Id", "AgentActionsConfig", }); + internal_static_scalekit_v1_environments_UpdateAgentActionsConfigResponse_descriptor = + getDescriptor().getMessageTypes().get(70); + internal_static_scalekit_v1_environments_UpdateAgentActionsConfigResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_environments_UpdateAgentActionsConfigResponse_descriptor, + new java.lang.String[] { "AgentActionsConfig", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.scalekit.grpc.buf.validate.ValidateProto.field); registry.add(com.scalekit.grpc.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.scalekit.grpc.google.api.AnnotationsProto.http); + registry.add(com.scalekit.grpc.google.api.VisibilityProto.methodVisibility); registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Field); + registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Operation); registry.add(com.scalekit.grpc.scalekit.v1.options.OptionsProto.authOption); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(); com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(); com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(); + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(); com.google.protobuf.AnyProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); @@ -1143,7 +1420,9 @@ public static void registerAllExtensions( com.google.protobuf.WrappersProto.getDescriptor(); com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(); com.scalekit.grpc.scalekit.v1.commons.CommonsProto.getDescriptor(); + com.scalekit.grpc.scalekit.v1.connections.ConnectionsProto.getDescriptor(); com.scalekit.grpc.scalekit.v1.options.OptionsProto.getDescriptor(); + com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigRequest.java new file mode 100644 index 00000000..b134d634 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigRequest.java @@ -0,0 +1,542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + * Protobuf type {@code scalekit.v1.environments.GetAgentActionsConfigRequest} + */ +public final class GetAgentActionsConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.environments.GetAgentActionsConfigRequest) + GetAgentActionsConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetAgentActionsConfigRequest.newBuilder() to construct. + private GetAgentActionsConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetAgentActionsConfigRequest() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetAgentActionsConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetAgentActionsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetAgentActionsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest.class, com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + 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.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest other = (com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest) obj; + + if (!getId() + .equals(other.getId())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.environments.GetAgentActionsConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.environments.GetAgentActionsConfigRequest) + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetAgentActionsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetAgentActionsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest.class, com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetAgentActionsConfigRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest build() { + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest result = new com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + 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: { + id_ = 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 id_ = ""; + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.environments.GetAgentActionsConfigRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.environments.GetAgentActionsConfigRequest) + private static final com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAgentActionsConfigRequest 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.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigRequestOrBuilder.java new file mode 100644 index 00000000..d6a7184e --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigRequestOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +public interface GetAgentActionsConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.environments.GetAgentActionsConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigResponse.java new file mode 100644 index 00000000..d94e6f7a --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigResponse.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + * Protobuf type {@code scalekit.v1.environments.GetAgentActionsConfigResponse} + */ +public final class GetAgentActionsConfigResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.environments.GetAgentActionsConfigResponse) + GetAgentActionsConfigResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetAgentActionsConfigResponse.newBuilder() to construct. + private GetAgentActionsConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetAgentActionsConfigResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetAgentActionsConfigResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetAgentActionsConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetAgentActionsConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse.class, com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse.Builder.class); + } + + private int bitField0_; + public static final int AGENT_ACTIONS_CONFIG_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig agentActionsConfig_; + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the agentActionsConfig field is set. + */ + @java.lang.Override + public boolean hasAgentActionsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The agentActionsConfig. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig() { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder() { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + + 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, getAgentActionsConfig()); + } + 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, getAgentActionsConfig()); + } + 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.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse other = (com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse) obj; + + if (hasAgentActionsConfig() != other.hasAgentActionsConfig()) return false; + if (hasAgentActionsConfig()) { + if (!getAgentActionsConfig() + .equals(other.getAgentActionsConfig())) 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 (hasAgentActionsConfig()) { + hash = (37 * hash) + AGENT_ACTIONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAgentActionsConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.environments.GetAgentActionsConfigResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.environments.GetAgentActionsConfigResponse) + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetAgentActionsConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetAgentActionsConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse.class, com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAgentActionsConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agentActionsConfig_ = null; + if (agentActionsConfigBuilder_ != null) { + agentActionsConfigBuilder_.dispose(); + agentActionsConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetAgentActionsConfigResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse build() { + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse result = new com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agentActionsConfig_ = agentActionsConfigBuilder_ == null + ? agentActionsConfig_ + : agentActionsConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse.getDefaultInstance()) return this; + if (other.hasAgentActionsConfig()) { + mergeAgentActionsConfig(other.getAgentActionsConfig()); + } + 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( + getAgentActionsConfigFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig agentActionsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder> agentActionsConfigBuilder_; + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the agentActionsConfig field is set. + */ + public boolean hasAgentActionsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The agentActionsConfig. + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig() { + if (agentActionsConfigBuilder_ == null) { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } else { + return agentActionsConfigBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig value) { + if (agentActionsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentActionsConfig_ = value; + } else { + agentActionsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAgentActionsConfig( + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder builderForValue) { + if (agentActionsConfigBuilder_ == null) { + agentActionsConfig_ = builderForValue.build(); + } else { + agentActionsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig value) { + if (agentActionsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + agentActionsConfig_ != null && + agentActionsConfig_ != com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance()) { + getAgentActionsConfigBuilder().mergeFrom(value); + } else { + agentActionsConfig_ = value; + } + } else { + agentActionsConfigBuilder_.mergeFrom(value); + } + if (agentActionsConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearAgentActionsConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + agentActionsConfig_ = null; + if (agentActionsConfigBuilder_ != null) { + agentActionsConfigBuilder_.dispose(); + agentActionsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder getAgentActionsConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAgentActionsConfigFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder() { + if (agentActionsConfigBuilder_ != null) { + return agentActionsConfigBuilder_.getMessageOrBuilder(); + } else { + return agentActionsConfig_ == null ? + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder> + getAgentActionsConfigFieldBuilder() { + if (agentActionsConfigBuilder_ == null) { + agentActionsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder>( + getAgentActionsConfig(), + getParentForChildren(), + isClean()); + agentActionsConfig_ = null; + } + return agentActionsConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.environments.GetAgentActionsConfigResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.environments.GetAgentActionsConfigResponse) + private static final com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAgentActionsConfigResponse 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.scalekit.grpc.scalekit.v1.environments.GetAgentActionsConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigResponseOrBuilder.java new file mode 100644 index 00000000..fc487291 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetAgentActionsConfigResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +public interface GetAgentActionsConfigResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.environments.GetAgentActionsConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the agentActionsConfig field is set. + */ + boolean hasAgentActionsConfig(); + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The agentActionsConfig. + */ + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig(); + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetCurrentSessionResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetCurrentSessionResponse.java index d4b3e4f1..b8f0d916 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetCurrentSessionResponse.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetCurrentSessionResponse.java @@ -20,6 +20,7 @@ private GetCurrentSessionResponse() { organizationId_ = ""; subject_ = ""; email_ = ""; + connectedAccountId_ = ""; } @java.lang.Override @@ -228,6 +229,53 @@ public java.lang.String getEmail() { } } + public static final int CONNECTED_ACCOUNT_ID_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object connectedAccountId_ = ""; + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId"]; + * @return Whether the connectedAccountId field is set. + */ + @java.lang.Override + public boolean hasConnectedAccountId() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId"]; + * @return The connectedAccountId. + */ + @java.lang.Override + public java.lang.String getConnectedAccountId() { + java.lang.Object ref = connectedAccountId_; + 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(); + connectedAccountId_ = s; + return s; + } + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId"]; + * @return The bytes for connectedAccountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConnectedAccountIdBytes() { + java.lang.Object ref = connectedAccountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectedAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -257,6 +305,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, email_); } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, connectedAccountId_); + } getUnknownFields().writeTo(output); } @@ -283,6 +334,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, email_); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, connectedAccountId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -320,6 +374,11 @@ public boolean equals(final java.lang.Object obj) { if (!getEmail() .equals(other.getEmail())) return false; } + if (hasConnectedAccountId() != other.hasConnectedAccountId()) return false; + if (hasConnectedAccountId()) { + if (!getConnectedAccountId() + .equals(other.getConnectedAccountId())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -349,6 +408,10 @@ public int hashCode() { hash = (37 * hash) + EMAIL_FIELD_NUMBER; hash = (53 * hash) + getEmail().hashCode(); } + if (hasConnectedAccountId()) { + hash = (37 * hash) + CONNECTED_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectedAccountId().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -500,6 +563,7 @@ public Builder clear() { organizationId_ = ""; subject_ = ""; email_ = ""; + connectedAccountId_ = ""; return this; } @@ -557,6 +621,10 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.GetCurrent result.email_ = email_; to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.connectedAccountId_ = connectedAccountId_; + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -625,6 +693,11 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.GetCurrentSe bitField0_ |= 0x00000010; onChanged(); } + if (other.hasConnectedAccountId()) { + connectedAccountId_ = other.connectedAccountId_; + bitField0_ |= 0x00000020; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -680,6 +753,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: { + connectedAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1168,6 +1246,85 @@ public Builder setEmailBytes( onChanged(); return this; } + + private java.lang.Object connectedAccountId_ = ""; + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId"]; + * @return Whether the connectedAccountId field is set. + */ + public boolean hasConnectedAccountId() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId"]; + * @return The connectedAccountId. + */ + public java.lang.String getConnectedAccountId() { + java.lang.Object ref = connectedAccountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectedAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId"]; + * @return The bytes for connectedAccountId. + */ + public com.google.protobuf.ByteString + getConnectedAccountIdBytes() { + java.lang.Object ref = connectedAccountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectedAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId"]; + * @param value The connectedAccountId to set. + * @return This builder for chaining. + */ + public Builder setConnectedAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + connectedAccountId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId"]; + * @return This builder for chaining. + */ + public Builder clearConnectedAccountId() { + connectedAccountId_ = getDefaultInstance().getConnectedAccountId(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId"]; + * @param value The bytes for connectedAccountId to set. + * @return This builder for chaining. + */ + public Builder setConnectedAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + connectedAccountId_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetCurrentSessionResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetCurrentSessionResponseOrBuilder.java index 1f230c9d..f76c99f9 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetCurrentSessionResponseOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetCurrentSessionResponseOrBuilder.java @@ -83,4 +83,21 @@ public interface GetCurrentSessionResponseOrBuilder extends */ com.google.protobuf.ByteString getEmailBytes(); + + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId"]; + * @return Whether the connectedAccountId field is set. + */ + boolean hasConnectedAccountId(); + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId"]; + * @return The connectedAccountId. + */ + java.lang.String getConnectedAccountId(); + /** + * optional string connected_account_id = 6 [json_name = "connectedAccountId"]; + * @return The bytes for connectedAccountId. + */ + com.google.protobuf.ByteString + getConnectedAccountIdBytes(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetHostScopedPublicFeatureFlagsResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetHostScopedPublicFeatureFlagsResponse.java new file mode 100644 index 00000000..40bae5a7 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetHostScopedPublicFeatureFlagsResponse.java @@ -0,0 +1,760 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + * Protobuf type {@code scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse} + */ +public final class GetHostScopedPublicFeatureFlagsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse) + GetHostScopedPublicFeatureFlagsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetHostScopedPublicFeatureFlagsResponse.newBuilder() to construct. + private GetHostScopedPublicFeatureFlagsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetHostScopedPublicFeatureFlagsResponse() { + flags_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetHostScopedPublicFeatureFlagsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetHostScopedPublicFeatureFlagsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetHostScopedPublicFeatureFlagsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse.class, com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse.Builder.class); + } + + public static final int FLAGS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List flags_; + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + @java.lang.Override + public java.util.List getFlagsList() { + return flags_; + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + @java.lang.Override + public java.util.List + getFlagsOrBuilderList() { + return flags_; + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + @java.lang.Override + public int getFlagsCount() { + return flags_.size(); + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag getFlags(int index) { + return flags_.get(index); + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlagOrBuilder getFlagsOrBuilder( + int index) { + return flags_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + for (int i = 0; i < flags_.size(); i++) { + output.writeMessage(1, flags_.get(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 < flags_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, flags_.get(i)); + } + 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.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse other = (com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse) obj; + + if (!getFlagsList() + .equals(other.getFlagsList())) 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 (getFlagsCount() > 0) { + hash = (37 * hash) + FLAGS_FIELD_NUMBER; + hash = (53 * hash) + getFlagsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse) + com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetHostScopedPublicFeatureFlagsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetHostScopedPublicFeatureFlagsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse.class, com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (flagsBuilder_ == null) { + flags_ = java.util.Collections.emptyList(); + } else { + flags_ = null; + flagsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_GetHostScopedPublicFeatureFlagsResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse build() { + com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse result = new com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse result) { + if (flagsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + flags_ = java.util.Collections.unmodifiableList(flags_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.flags_ = flags_; + } else { + result.flags_ = flagsBuilder_.build(); + } + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse.getDefaultInstance()) return this; + if (flagsBuilder_ == null) { + if (!other.flags_.isEmpty()) { + if (flags_.isEmpty()) { + flags_ = other.flags_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFlagsIsMutable(); + flags_.addAll(other.flags_); + } + onChanged(); + } + } else { + if (!other.flags_.isEmpty()) { + if (flagsBuilder_.isEmpty()) { + flagsBuilder_.dispose(); + flagsBuilder_ = null; + flags_ = other.flags_; + bitField0_ = (bitField0_ & ~0x00000001); + flagsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getFlagsFieldBuilder() : null; + } else { + flagsBuilder_.addAllMessages(other.flags_); + } + } + } + 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.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag m = + input.readMessage( + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.parser(), + extensionRegistry); + if (flagsBuilder_ == null) { + ensureFlagsIsMutable(); + flags_.add(m); + } else { + flagsBuilder_.addMessage(m); + } + 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.util.List flags_ = + java.util.Collections.emptyList(); + private void ensureFlagsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + flags_ = new java.util.ArrayList(flags_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.Builder, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlagOrBuilder> flagsBuilder_; + + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public java.util.List getFlagsList() { + if (flagsBuilder_ == null) { + return java.util.Collections.unmodifiableList(flags_); + } else { + return flagsBuilder_.getMessageList(); + } + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public int getFlagsCount() { + if (flagsBuilder_ == null) { + return flags_.size(); + } else { + return flagsBuilder_.getCount(); + } + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag getFlags(int index) { + if (flagsBuilder_ == null) { + return flags_.get(index); + } else { + return flagsBuilder_.getMessage(index); + } + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public Builder setFlags( + int index, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag value) { + if (flagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFlagsIsMutable(); + flags_.set(index, value); + onChanged(); + } else { + flagsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public Builder setFlags( + int index, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.Builder builderForValue) { + if (flagsBuilder_ == null) { + ensureFlagsIsMutable(); + flags_.set(index, builderForValue.build()); + onChanged(); + } else { + flagsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public Builder addFlags(com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag value) { + if (flagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFlagsIsMutable(); + flags_.add(value); + onChanged(); + } else { + flagsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public Builder addFlags( + int index, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag value) { + if (flagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFlagsIsMutable(); + flags_.add(index, value); + onChanged(); + } else { + flagsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public Builder addFlags( + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.Builder builderForValue) { + if (flagsBuilder_ == null) { + ensureFlagsIsMutable(); + flags_.add(builderForValue.build()); + onChanged(); + } else { + flagsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public Builder addFlags( + int index, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.Builder builderForValue) { + if (flagsBuilder_ == null) { + ensureFlagsIsMutable(); + flags_.add(index, builderForValue.build()); + onChanged(); + } else { + flagsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public Builder addAllFlags( + java.lang.Iterable values) { + if (flagsBuilder_ == null) { + ensureFlagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, flags_); + onChanged(); + } else { + flagsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public Builder clearFlags() { + if (flagsBuilder_ == null) { + flags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + flagsBuilder_.clear(); + } + return this; + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public Builder removeFlags(int index) { + if (flagsBuilder_ == null) { + ensureFlagsIsMutable(); + flags_.remove(index); + onChanged(); + } else { + flagsBuilder_.remove(index); + } + return this; + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.Builder getFlagsBuilder( + int index) { + return getFlagsFieldBuilder().getBuilder(index); + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlagOrBuilder getFlagsOrBuilder( + int index) { + if (flagsBuilder_ == null) { + return flags_.get(index); } else { + return flagsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public java.util.List + getFlagsOrBuilderList() { + if (flagsBuilder_ != null) { + return flagsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(flags_); + } + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.Builder addFlagsBuilder() { + return getFlagsFieldBuilder().addBuilder( + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.Builder addFlagsBuilder( + int index) { + return getFlagsFieldBuilder().addBuilder( + index, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + public java.util.List + getFlagsBuilderList() { + return getFlagsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.Builder, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlagOrBuilder> + getFlagsFieldBuilder() { + if (flagsBuilder_ == null) { + flagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.Builder, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlagOrBuilder>( + flags_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + flags_ = null; + } + return flagsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse) + private static final com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetHostScopedPublicFeatureFlagsResponse 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.scalekit.grpc.scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetHostScopedPublicFeatureFlagsResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetHostScopedPublicFeatureFlagsResponseOrBuilder.java new file mode 100644 index 00000000..c09d9f58 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetHostScopedPublicFeatureFlagsResponseOrBuilder.java @@ -0,0 +1,34 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +public interface GetHostScopedPublicFeatureFlagsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.environments.GetHostScopedPublicFeatureFlagsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + java.util.List + getFlagsList(); + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag getFlags(int index); + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + int getFlagsCount(); + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + java.util.List + getFlagsOrBuilderList(); + /** + * repeated .scalekit.v1.environments.PublicHostFeatureFlag flags = 1 [json_name = "flags"]; + */ + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlagOrBuilder getFlagsOrBuilder( + int index); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetPortalCustomizationResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetPortalCustomizationResponse.java index 08457aaf..c2aac947 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetPortalCustomizationResponse.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetPortalCustomizationResponse.java @@ -83,7 +83,7 @@ public java.lang.String getEnvironmentId() { public static final int CUSTOMIZATION_SETTINGS_FIELD_NUMBER = 2; private com.google.protobuf.Struct customizationSettings_; /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; * @return Whether the customizationSettings field is set. */ @java.lang.Override @@ -91,7 +91,7 @@ public boolean hasCustomizationSettings() { return ((bitField0_ & 0x00000001) != 0); } /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; * @return The customizationSettings. */ @java.lang.Override @@ -99,7 +99,7 @@ public com.google.protobuf.Struct getCustomizationSettings() { return customizationSettings_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customizationSettings_; } /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; */ @java.lang.Override public com.google.protobuf.StructOrBuilder getCustomizationSettingsOrBuilder() { @@ -110,7 +110,7 @@ public com.google.protobuf.StructOrBuilder getCustomizationSettingsOrBuilder() { private com.scalekit.grpc.scalekit.v1.environments.PortalSettings settings_; /** *
-   * settings contains feature flags derived from the workspace's billing subscription
+   * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
    * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -122,7 +122,7 @@ public boolean hasSettings() { } /** *
-   * settings contains feature flags derived from the workspace's billing subscription
+   * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
    * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -134,7 +134,7 @@ public com.scalekit.grpc.scalekit.v1.environments.PortalSettings getSettings() { } /** *
-   * settings contains feature flags derived from the workspace's billing subscription
+   * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
    * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -629,14 +629,14 @@ public Builder setEnvironmentIdBytes( private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customizationSettingsBuilder_; /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; * @return Whether the customizationSettings field is set. */ public boolean hasCustomizationSettings() { return ((bitField0_ & 0x00000002) != 0); } /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; * @return The customizationSettings. */ public com.google.protobuf.Struct getCustomizationSettings() { @@ -647,7 +647,7 @@ public com.google.protobuf.Struct getCustomizationSettings() { } } /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomizationSettings(com.google.protobuf.Struct value) { if (customizationSettingsBuilder_ == null) { @@ -663,7 +663,7 @@ public Builder setCustomizationSettings(com.google.protobuf.Struct value) { return this; } /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; */ public Builder setCustomizationSettings( com.google.protobuf.Struct.Builder builderForValue) { @@ -677,7 +677,7 @@ public Builder setCustomizationSettings( return this; } /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; */ public Builder mergeCustomizationSettings(com.google.protobuf.Struct value) { if (customizationSettingsBuilder_ == null) { @@ -698,7 +698,7 @@ public Builder mergeCustomizationSettings(com.google.protobuf.Struct value) { return this; } /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; */ public Builder clearCustomizationSettings() { bitField0_ = (bitField0_ & ~0x00000002); @@ -711,7 +711,7 @@ public Builder clearCustomizationSettings() { return this; } /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.Struct.Builder getCustomizationSettingsBuilder() { bitField0_ |= 0x00000002; @@ -719,7 +719,7 @@ public com.google.protobuf.Struct.Builder getCustomizationSettingsBuilder() { return getCustomizationSettingsFieldBuilder().getBuilder(); } /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; */ public com.google.protobuf.StructOrBuilder getCustomizationSettingsOrBuilder() { if (customizationSettingsBuilder_ != null) { @@ -730,7 +730,7 @@ public com.google.protobuf.StructOrBuilder getCustomizationSettingsOrBuilder() { } } /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> @@ -751,7 +751,7 @@ public com.google.protobuf.StructOrBuilder getCustomizationSettingsOrBuilder() { com.scalekit.grpc.scalekit.v1.environments.PortalSettings, com.scalekit.grpc.scalekit.v1.environments.PortalSettings.Builder, com.scalekit.grpc.scalekit.v1.environments.PortalSettingsOrBuilder> settingsBuilder_; /** *
-     * settings contains feature flags derived from the workspace's billing subscription
+     * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
      * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -762,7 +762,7 @@ public boolean hasSettings() { } /** *
-     * settings contains feature flags derived from the workspace's billing subscription
+     * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
      * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -777,7 +777,7 @@ public com.scalekit.grpc.scalekit.v1.environments.PortalSettings getSettings() { } /** *
-     * settings contains feature flags derived from the workspace's billing subscription
+     * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
      * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -797,7 +797,7 @@ public Builder setSettings(com.scalekit.grpc.scalekit.v1.environments.PortalSett } /** *
-     * settings contains feature flags derived from the workspace's billing subscription
+     * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
      * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -815,7 +815,7 @@ public Builder setSettings( } /** *
-     * settings contains feature flags derived from the workspace's billing subscription
+     * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
      * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -840,7 +840,7 @@ public Builder mergeSettings(com.scalekit.grpc.scalekit.v1.environments.PortalSe } /** *
-     * settings contains feature flags derived from the workspace's billing subscription
+     * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
      * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -857,7 +857,7 @@ public Builder clearSettings() { } /** *
-     * settings contains feature flags derived from the workspace's billing subscription
+     * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
      * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -869,7 +869,7 @@ public com.scalekit.grpc.scalekit.v1.environments.PortalSettings.Builder getSett } /** *
-     * settings contains feature flags derived from the workspace's billing subscription
+     * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
      * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -884,7 +884,7 @@ public com.scalekit.grpc.scalekit.v1.environments.PortalSettingsOrBuilder getSet } /** *
-     * settings contains feature flags derived from the workspace's billing subscription
+     * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
      * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetPortalCustomizationResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetPortalCustomizationResponseOrBuilder.java index 18aa7d3b..4a9c1d95 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetPortalCustomizationResponseOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/GetPortalCustomizationResponseOrBuilder.java @@ -21,23 +21,23 @@ public interface GetPortalCustomizationResponseOrBuilder extends getEnvironmentIdBytes(); /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; * @return Whether the customizationSettings field is set. */ boolean hasCustomizationSettings(); /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; * @return The customizationSettings. */ com.google.protobuf.Struct getCustomizationSettings(); /** - * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings"]; + * .google.protobuf.Struct customization_settings = 2 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.StructOrBuilder getCustomizationSettingsOrBuilder(); /** *
-   * settings contains feature flags derived from the workspace's billing subscription
+   * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
    * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -46,7 +46,7 @@ public interface GetPortalCustomizationResponseOrBuilder extends boolean hasSettings(); /** *
-   * settings contains feature flags derived from the workspace's billing subscription
+   * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
    * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; @@ -55,7 +55,7 @@ public interface GetPortalCustomizationResponseOrBuilder extends com.scalekit.grpc.scalekit.v1.environments.PortalSettings getSettings(); /** *
-   * settings contains feature flags derived from the workspace's billing subscription
+   * settings contains feature flags derived from the workspace's billing subscription and feature rollout configuration
    * 
* * .scalekit.v1.environments.PortalSettings settings = 3 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapRequest.java new file mode 100644 index 00000000..16ee7ae5 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapRequest.java @@ -0,0 +1,409 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + *
+ * PortalBootstrapRequest is the request to bootstrap portal data; intentionally empty as all
+ * required context (session, organization) is derived from the authenticated session token.
+ * 
+ * + * Protobuf type {@code scalekit.v1.environments.PortalBootstrapRequest} + */ +public final class PortalBootstrapRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.environments.PortalBootstrapRequest) + PortalBootstrapRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use PortalBootstrapRequest.newBuilder() to construct. + private PortalBootstrapRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PortalBootstrapRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PortalBootstrapRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalBootstrapRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalBootstrapRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest.class, com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest.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.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest other = (com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest) 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.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * PortalBootstrapRequest is the request to bootstrap portal data; intentionally empty as all
+   * required context (session, organization) is derived from the authenticated session token.
+   * 
+ * + * Protobuf type {@code scalekit.v1.environments.PortalBootstrapRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.environments.PortalBootstrapRequest) + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalBootstrapRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalBootstrapRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest.class, com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.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.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalBootstrapRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest build() { + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest result = new com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest.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; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.environments.PortalBootstrapRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.environments.PortalBootstrapRequest) + private static final com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PortalBootstrapRequest 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.scalekit.grpc.scalekit.v1.environments.PortalBootstrapRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapRequestOrBuilder.java new file mode 100644 index 00000000..2d5c3b24 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapRequestOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +public interface PortalBootstrapRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.environments.PortalBootstrapRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapResponse.java new file mode 100644 index 00000000..7206effc --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapResponse.java @@ -0,0 +1,1560 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + * Protobuf type {@code scalekit.v1.environments.PortalBootstrapResponse} + */ +public final class PortalBootstrapResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.environments.PortalBootstrapResponse) + PortalBootstrapResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use PortalBootstrapResponse.newBuilder() to construct. + private PortalBootstrapResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PortalBootstrapResponse() { + connections_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PortalBootstrapResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalBootstrapResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalBootstrapResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse.class, com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse.Builder.class); + } + + private int bitField0_; + public static final int SESSION_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse session_; + /** + *
+   * Current session details including organization ID, expiry, and subject
+   * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + * @return Whether the session field is set. + */ + @java.lang.Override + public boolean hasSession() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Current session details including organization ID, expiry, and subject
+   * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + * @return The session. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse getSession() { + return session_ == null ? com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse.getDefaultInstance() : session_; + } + /** + *
+   * Current session details including organization ID, expiry, and subject
+   * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponseOrBuilder getSessionOrBuilder() { + return session_ == null ? com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse.getDefaultInstance() : session_; + } + + public static final int PORTAL_CUSTOMIZATIONS_FIELD_NUMBER = 2; + private com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap portalCustomizations_; + /** + *
+   * Portal customization settings for branding and UI configuration
+   * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + * @return Whether the portalCustomizations field is set. + */ + @java.lang.Override + public boolean hasPortalCustomizations() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Portal customization settings for branding and UI configuration
+   * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + * @return The portalCustomizations. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap getPortalCustomizations() { + return portalCustomizations_ == null ? com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.getDefaultInstance() : portalCustomizations_; + } + /** + *
+   * Portal customization settings for branding and UI configuration
+   * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrapOrBuilder getPortalCustomizationsOrBuilder() { + return portalCustomizations_ == null ? com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.getDefaultInstance() : portalCustomizations_; + } + + public static final int ORGANIZATION_FIELD_NUMBER = 3; + private com.scalekit.grpc.scalekit.v1.organizations.Organization organization_; + /** + *
+   * Organization details for the current portal session
+   * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + * @return Whether the organization field is set. + */ + @java.lang.Override + public boolean hasOrganization() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * Organization details for the current portal session
+   * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + * @return The organization. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.Organization getOrganization() { + return organization_ == null ? com.scalekit.grpc.scalekit.v1.organizations.Organization.getDefaultInstance() : organization_; + } + /** + *
+   * Organization details for the current portal session
+   * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationOrBuilder getOrganizationOrBuilder() { + return organization_ == null ? com.scalekit.grpc.scalekit.v1.organizations.Organization.getDefaultInstance() : organization_; + } + + public static final int CONNECTIONS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List connections_; + /** + *
+   * All connections configured for the organization
+   * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + @java.lang.Override + public java.util.List getConnectionsList() { + return connections_; + } + /** + *
+   * All connections configured for the organization
+   * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + @java.lang.Override + public java.util.List + getConnectionsOrBuilderList() { + return connections_; + } + /** + *
+   * All connections configured for the organization
+   * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + @java.lang.Override + public int getConnectionsCount() { + return connections_.size(); + } + /** + *
+   * All connections configured for the organization
+   * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.ListConnection getConnections(int index) { + return connections_.get(index); + } + /** + *
+   * All connections configured for the organization
+   * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.connections.ListConnectionOrBuilder getConnectionsOrBuilder( + int index) { + return connections_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getSession()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPortalCustomizations()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getOrganization()); + } + for (int i = 0; i < connections_.size(); i++) { + output.writeMessage(4, connections_.get(i)); + } + 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, getSession()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPortalCustomizations()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getOrganization()); + } + for (int i = 0; i < connections_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, connections_.get(i)); + } + 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.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse other = (com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse) obj; + + if (hasSession() != other.hasSession()) return false; + if (hasSession()) { + if (!getSession() + .equals(other.getSession())) return false; + } + if (hasPortalCustomizations() != other.hasPortalCustomizations()) return false; + if (hasPortalCustomizations()) { + if (!getPortalCustomizations() + .equals(other.getPortalCustomizations())) return false; + } + if (hasOrganization() != other.hasOrganization()) return false; + if (hasOrganization()) { + if (!getOrganization() + .equals(other.getOrganization())) return false; + } + if (!getConnectionsList() + .equals(other.getConnectionsList())) 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 (hasSession()) { + hash = (37 * hash) + SESSION_FIELD_NUMBER; + hash = (53 * hash) + getSession().hashCode(); + } + if (hasPortalCustomizations()) { + hash = (37 * hash) + PORTAL_CUSTOMIZATIONS_FIELD_NUMBER; + hash = (53 * hash) + getPortalCustomizations().hashCode(); + } + if (hasOrganization()) { + hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; + hash = (53 * hash) + getOrganization().hashCode(); + } + if (getConnectionsCount() > 0) { + hash = (37 * hash) + CONNECTIONS_FIELD_NUMBER; + hash = (53 * hash) + getConnectionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.environments.PortalBootstrapResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.environments.PortalBootstrapResponse) + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalBootstrapResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalBootstrapResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse.class, com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getSessionFieldBuilder(); + getPortalCustomizationsFieldBuilder(); + getOrganizationFieldBuilder(); + getConnectionsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + session_ = null; + if (sessionBuilder_ != null) { + sessionBuilder_.dispose(); + sessionBuilder_ = null; + } + portalCustomizations_ = null; + if (portalCustomizationsBuilder_ != null) { + portalCustomizationsBuilder_.dispose(); + portalCustomizationsBuilder_ = null; + } + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + } else { + connections_ = null; + connectionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalBootstrapResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse build() { + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse result = new com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse result) { + if (connectionsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + connections_ = java.util.Collections.unmodifiableList(connections_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.connections_ = connections_; + } else { + result.connections_ = connectionsBuilder_.build(); + } + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.session_ = sessionBuilder_ == null + ? session_ + : sessionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.portalCustomizations_ = portalCustomizationsBuilder_ == null + ? portalCustomizations_ + : portalCustomizationsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.organization_ = organizationBuilder_ == null + ? organization_ + : organizationBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse.getDefaultInstance()) return this; + if (other.hasSession()) { + mergeSession(other.getSession()); + } + if (other.hasPortalCustomizations()) { + mergePortalCustomizations(other.getPortalCustomizations()); + } + if (other.hasOrganization()) { + mergeOrganization(other.getOrganization()); + } + if (connectionsBuilder_ == null) { + if (!other.connections_.isEmpty()) { + if (connections_.isEmpty()) { + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureConnectionsIsMutable(); + connections_.addAll(other.connections_); + } + onChanged(); + } + } else { + if (!other.connections_.isEmpty()) { + if (connectionsBuilder_.isEmpty()) { + connectionsBuilder_.dispose(); + connectionsBuilder_ = null; + connections_ = other.connections_; + bitField0_ = (bitField0_ & ~0x00000008); + connectionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getConnectionsFieldBuilder() : null; + } else { + connectionsBuilder_.addAllMessages(other.connections_); + } + } + } + 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( + getSessionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPortalCustomizationsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + input.readMessage( + getOrganizationFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.scalekit.grpc.scalekit.v1.connections.ListConnection m = + input.readMessage( + com.scalekit.grpc.scalekit.v1.connections.ListConnection.parser(), + extensionRegistry); + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(m); + } else { + connectionsBuilder_.addMessage(m); + } + 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 com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse session_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse, com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse.Builder, com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponseOrBuilder> sessionBuilder_; + /** + *
+     * Current session details including organization ID, expiry, and subject
+     * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + * @return Whether the session field is set. + */ + public boolean hasSession() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Current session details including organization ID, expiry, and subject
+     * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + * @return The session. + */ + public com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse getSession() { + if (sessionBuilder_ == null) { + return session_ == null ? com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse.getDefaultInstance() : session_; + } else { + return sessionBuilder_.getMessage(); + } + } + /** + *
+     * Current session details including organization ID, expiry, and subject
+     * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + */ + public Builder setSession(com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse value) { + if (sessionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + session_ = value; + } else { + sessionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Current session details including organization ID, expiry, and subject
+     * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + */ + public Builder setSession( + com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse.Builder builderForValue) { + if (sessionBuilder_ == null) { + session_ = builderForValue.build(); + } else { + sessionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Current session details including organization ID, expiry, and subject
+     * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + */ + public Builder mergeSession(com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse value) { + if (sessionBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + session_ != null && + session_ != com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse.getDefaultInstance()) { + getSessionBuilder().mergeFrom(value); + } else { + session_ = value; + } + } else { + sessionBuilder_.mergeFrom(value); + } + if (session_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Current session details including organization ID, expiry, and subject
+     * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + */ + public Builder clearSession() { + bitField0_ = (bitField0_ & ~0x00000001); + session_ = null; + if (sessionBuilder_ != null) { + sessionBuilder_.dispose(); + sessionBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Current session details including organization ID, expiry, and subject
+     * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + */ + public com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse.Builder getSessionBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getSessionFieldBuilder().getBuilder(); + } + /** + *
+     * Current session details including organization ID, expiry, and subject
+     * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + */ + public com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponseOrBuilder getSessionOrBuilder() { + if (sessionBuilder_ != null) { + return sessionBuilder_.getMessageOrBuilder(); + } else { + return session_ == null ? + com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse.getDefaultInstance() : session_; + } + } + /** + *
+     * Current session details including organization ID, expiry, and subject
+     * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse, com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse.Builder, com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponseOrBuilder> + getSessionFieldBuilder() { + if (sessionBuilder_ == null) { + sessionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse, com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse.Builder, com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponseOrBuilder>( + getSession(), + getParentForChildren(), + isClean()); + session_ = null; + } + return sessionBuilder_; + } + + private com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap portalCustomizations_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap, com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.Builder, com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrapOrBuilder> portalCustomizationsBuilder_; + /** + *
+     * Portal customization settings for branding and UI configuration
+     * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + * @return Whether the portalCustomizations field is set. + */ + public boolean hasPortalCustomizations() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Portal customization settings for branding and UI configuration
+     * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + * @return The portalCustomizations. + */ + public com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap getPortalCustomizations() { + if (portalCustomizationsBuilder_ == null) { + return portalCustomizations_ == null ? com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.getDefaultInstance() : portalCustomizations_; + } else { + return portalCustomizationsBuilder_.getMessage(); + } + } + /** + *
+     * Portal customization settings for branding and UI configuration
+     * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + */ + public Builder setPortalCustomizations(com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap value) { + if (portalCustomizationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + portalCustomizations_ = value; + } else { + portalCustomizationsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Portal customization settings for branding and UI configuration
+     * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + */ + public Builder setPortalCustomizations( + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.Builder builderForValue) { + if (portalCustomizationsBuilder_ == null) { + portalCustomizations_ = builderForValue.build(); + } else { + portalCustomizationsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Portal customization settings for branding and UI configuration
+     * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + */ + public Builder mergePortalCustomizations(com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap value) { + if (portalCustomizationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + portalCustomizations_ != null && + portalCustomizations_ != com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.getDefaultInstance()) { + getPortalCustomizationsBuilder().mergeFrom(value); + } else { + portalCustomizations_ = value; + } + } else { + portalCustomizationsBuilder_.mergeFrom(value); + } + if (portalCustomizations_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Portal customization settings for branding and UI configuration
+     * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + */ + public Builder clearPortalCustomizations() { + bitField0_ = (bitField0_ & ~0x00000002); + portalCustomizations_ = null; + if (portalCustomizationsBuilder_ != null) { + portalCustomizationsBuilder_.dispose(); + portalCustomizationsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Portal customization settings for branding and UI configuration
+     * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + */ + public com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.Builder getPortalCustomizationsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPortalCustomizationsFieldBuilder().getBuilder(); + } + /** + *
+     * Portal customization settings for branding and UI configuration
+     * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + */ + public com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrapOrBuilder getPortalCustomizationsOrBuilder() { + if (portalCustomizationsBuilder_ != null) { + return portalCustomizationsBuilder_.getMessageOrBuilder(); + } else { + return portalCustomizations_ == null ? + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.getDefaultInstance() : portalCustomizations_; + } + } + /** + *
+     * Portal customization settings for branding and UI configuration
+     * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap, com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.Builder, com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrapOrBuilder> + getPortalCustomizationsFieldBuilder() { + if (portalCustomizationsBuilder_ == null) { + portalCustomizationsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap, com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.Builder, com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrapOrBuilder>( + getPortalCustomizations(), + getParentForChildren(), + isClean()); + portalCustomizations_ = null; + } + return portalCustomizationsBuilder_; + } + + private com.scalekit.grpc.scalekit.v1.organizations.Organization organization_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.organizations.Organization, com.scalekit.grpc.scalekit.v1.organizations.Organization.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationOrBuilder> organizationBuilder_; + /** + *
+     * Organization details for the current portal session
+     * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + * @return Whether the organization field is set. + */ + public boolean hasOrganization() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Organization details for the current portal session
+     * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + * @return The organization. + */ + public com.scalekit.grpc.scalekit.v1.organizations.Organization getOrganization() { + if (organizationBuilder_ == null) { + return organization_ == null ? com.scalekit.grpc.scalekit.v1.organizations.Organization.getDefaultInstance() : organization_; + } else { + return organizationBuilder_.getMessage(); + } + } + /** + *
+     * Organization details for the current portal session
+     * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + */ + public Builder setOrganization(com.scalekit.grpc.scalekit.v1.organizations.Organization value) { + if (organizationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + organization_ = value; + } else { + organizationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Organization details for the current portal session
+     * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + */ + public Builder setOrganization( + com.scalekit.grpc.scalekit.v1.organizations.Organization.Builder builderForValue) { + if (organizationBuilder_ == null) { + organization_ = builderForValue.build(); + } else { + organizationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Organization details for the current portal session
+     * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + */ + public Builder mergeOrganization(com.scalekit.grpc.scalekit.v1.organizations.Organization value) { + if (organizationBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + organization_ != null && + organization_ != com.scalekit.grpc.scalekit.v1.organizations.Organization.getDefaultInstance()) { + getOrganizationBuilder().mergeFrom(value); + } else { + organization_ = value; + } + } else { + organizationBuilder_.mergeFrom(value); + } + if (organization_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + *
+     * Organization details for the current portal session
+     * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + */ + public Builder clearOrganization() { + bitField0_ = (bitField0_ & ~0x00000004); + organization_ = null; + if (organizationBuilder_ != null) { + organizationBuilder_.dispose(); + organizationBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Organization details for the current portal session
+     * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + */ + public com.scalekit.grpc.scalekit.v1.organizations.Organization.Builder getOrganizationBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getOrganizationFieldBuilder().getBuilder(); + } + /** + *
+     * Organization details for the current portal session
+     * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + */ + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationOrBuilder getOrganizationOrBuilder() { + if (organizationBuilder_ != null) { + return organizationBuilder_.getMessageOrBuilder(); + } else { + return organization_ == null ? + com.scalekit.grpc.scalekit.v1.organizations.Organization.getDefaultInstance() : organization_; + } + } + /** + *
+     * Organization details for the current portal session
+     * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.organizations.Organization, com.scalekit.grpc.scalekit.v1.organizations.Organization.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationOrBuilder> + getOrganizationFieldBuilder() { + if (organizationBuilder_ == null) { + organizationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.organizations.Organization, com.scalekit.grpc.scalekit.v1.organizations.Organization.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationOrBuilder>( + getOrganization(), + getParentForChildren(), + isClean()); + organization_ = null; + } + return organizationBuilder_; + } + + private java.util.List connections_ = + java.util.Collections.emptyList(); + private void ensureConnectionsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + connections_ = new java.util.ArrayList(connections_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connections.ListConnection, com.scalekit.grpc.scalekit.v1.connections.ListConnection.Builder, com.scalekit.grpc.scalekit.v1.connections.ListConnectionOrBuilder> connectionsBuilder_; + + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public java.util.List getConnectionsList() { + if (connectionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(connections_); + } else { + return connectionsBuilder_.getMessageList(); + } + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public int getConnectionsCount() { + if (connectionsBuilder_ == null) { + return connections_.size(); + } else { + return connectionsBuilder_.getCount(); + } + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public com.scalekit.grpc.scalekit.v1.connections.ListConnection getConnections(int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); + } else { + return connectionsBuilder_.getMessage(index); + } + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public Builder setConnections( + int index, com.scalekit.grpc.scalekit.v1.connections.ListConnection value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.set(index, value); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, value); + } + return this; + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public Builder setConnections( + int index, com.scalekit.grpc.scalekit.v1.connections.ListConnection.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.set(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public Builder addConnections(com.scalekit.grpc.scalekit.v1.connections.ListConnection value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(value); + onChanged(); + } else { + connectionsBuilder_.addMessage(value); + } + return this; + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public Builder addConnections( + int index, com.scalekit.grpc.scalekit.v1.connections.ListConnection value) { + if (connectionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConnectionsIsMutable(); + connections_.add(index, value); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, value); + } + return this; + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public Builder addConnections( + com.scalekit.grpc.scalekit.v1.connections.ListConnection.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public Builder addConnections( + int index, com.scalekit.grpc.scalekit.v1.connections.ListConnection.Builder builderForValue) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.add(index, builderForValue.build()); + onChanged(); + } else { + connectionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public Builder addAllConnections( + java.lang.Iterable values) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, connections_); + onChanged(); + } else { + connectionsBuilder_.addAllMessages(values); + } + return this; + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public Builder clearConnections() { + if (connectionsBuilder_ == null) { + connections_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + connectionsBuilder_.clear(); + } + return this; + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public Builder removeConnections(int index) { + if (connectionsBuilder_ == null) { + ensureConnectionsIsMutable(); + connections_.remove(index); + onChanged(); + } else { + connectionsBuilder_.remove(index); + } + return this; + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public com.scalekit.grpc.scalekit.v1.connections.ListConnection.Builder getConnectionsBuilder( + int index) { + return getConnectionsFieldBuilder().getBuilder(index); + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public com.scalekit.grpc.scalekit.v1.connections.ListConnectionOrBuilder getConnectionsOrBuilder( + int index) { + if (connectionsBuilder_ == null) { + return connections_.get(index); } else { + return connectionsBuilder_.getMessageOrBuilder(index); + } + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public java.util.List + getConnectionsOrBuilderList() { + if (connectionsBuilder_ != null) { + return connectionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(connections_); + } + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public com.scalekit.grpc.scalekit.v1.connections.ListConnection.Builder addConnectionsBuilder() { + return getConnectionsFieldBuilder().addBuilder( + com.scalekit.grpc.scalekit.v1.connections.ListConnection.getDefaultInstance()); + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public com.scalekit.grpc.scalekit.v1.connections.ListConnection.Builder addConnectionsBuilder( + int index) { + return getConnectionsFieldBuilder().addBuilder( + index, com.scalekit.grpc.scalekit.v1.connections.ListConnection.getDefaultInstance()); + } + /** + *
+     * All connections configured for the organization
+     * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + public java.util.List + getConnectionsBuilderList() { + return getConnectionsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connections.ListConnection, com.scalekit.grpc.scalekit.v1.connections.ListConnection.Builder, com.scalekit.grpc.scalekit.v1.connections.ListConnectionOrBuilder> + getConnectionsFieldBuilder() { + if (connectionsBuilder_ == null) { + connectionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.connections.ListConnection, com.scalekit.grpc.scalekit.v1.connections.ListConnection.Builder, com.scalekit.grpc.scalekit.v1.connections.ListConnectionOrBuilder>( + connections_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + connections_ = null; + } + return connectionsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.environments.PortalBootstrapResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.environments.PortalBootstrapResponse) + private static final com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PortalBootstrapResponse 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.scalekit.grpc.scalekit.v1.environments.PortalBootstrapResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapResponseOrBuilder.java new file mode 100644 index 00000000..be249778 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalBootstrapResponseOrBuilder.java @@ -0,0 +1,135 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +public interface PortalBootstrapResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.environments.PortalBootstrapResponse) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Current session details including organization ID, expiry, and subject
+   * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + * @return Whether the session field is set. + */ + boolean hasSession(); + /** + *
+   * Current session details including organization ID, expiry, and subject
+   * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + * @return The session. + */ + com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponse getSession(); + /** + *
+   * Current session details including organization ID, expiry, and subject
+   * 
+ * + * .scalekit.v1.environments.GetCurrentSessionResponse session = 1 [json_name = "session"]; + */ + com.scalekit.grpc.scalekit.v1.environments.GetCurrentSessionResponseOrBuilder getSessionOrBuilder(); + + /** + *
+   * Portal customization settings for branding and UI configuration
+   * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + * @return Whether the portalCustomizations field is set. + */ + boolean hasPortalCustomizations(); + /** + *
+   * Portal customization settings for branding and UI configuration
+   * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + * @return The portalCustomizations. + */ + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap getPortalCustomizations(); + /** + *
+   * Portal customization settings for branding and UI configuration
+   * 
+ * + * .scalekit.v1.environments.PortalCustomizationBootstrap portal_customizations = 2 [json_name = "portalCustomizations"]; + */ + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrapOrBuilder getPortalCustomizationsOrBuilder(); + + /** + *
+   * Organization details for the current portal session
+   * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + * @return Whether the organization field is set. + */ + boolean hasOrganization(); + /** + *
+   * Organization details for the current portal session
+   * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + * @return The organization. + */ + com.scalekit.grpc.scalekit.v1.organizations.Organization getOrganization(); + /** + *
+   * Organization details for the current portal session
+   * 
+ * + * .scalekit.v1.organizations.Organization organization = 3 [json_name = "organization"]; + */ + com.scalekit.grpc.scalekit.v1.organizations.OrganizationOrBuilder getOrganizationOrBuilder(); + + /** + *
+   * All connections configured for the organization
+   * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + java.util.List + getConnectionsList(); + /** + *
+   * All connections configured for the organization
+   * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + com.scalekit.grpc.scalekit.v1.connections.ListConnection getConnections(int index); + /** + *
+   * All connections configured for the organization
+   * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + int getConnectionsCount(); + /** + *
+   * All connections configured for the organization
+   * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + java.util.List + getConnectionsOrBuilderList(); + /** + *
+   * All connections configured for the organization
+   * 
+ * + * repeated .scalekit.v1.connections.ListConnection connections = 4 [json_name = "connections"]; + */ + com.scalekit.grpc.scalekit.v1.connections.ListConnectionOrBuilder getConnectionsOrBuilder( + int index); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalCustomizationBootstrap.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalCustomizationBootstrap.java new file mode 100644 index 00000000..aa8cba6e --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalCustomizationBootstrap.java @@ -0,0 +1,890 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + *
+ * PortalCustomizationBootstrap contains portal customization data for bootstrap
+ * excluding sensitive fields like environmentId that should not be exposed to clients.
+ * 
+ * + * Protobuf type {@code scalekit.v1.environments.PortalCustomizationBootstrap} + */ +public final class PortalCustomizationBootstrap extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.environments.PortalCustomizationBootstrap) + PortalCustomizationBootstrapOrBuilder { +private static final long serialVersionUID = 0L; + // Use PortalCustomizationBootstrap.newBuilder() to construct. + private PortalCustomizationBootstrap(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PortalCustomizationBootstrap() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PortalCustomizationBootstrap(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalCustomizationBootstrap_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalCustomizationBootstrap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.class, com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.Builder.class); + } + + private int bitField0_; + public static final int CUSTOMIZATION_SETTINGS_FIELD_NUMBER = 1; + private com.google.protobuf.Struct customizationSettings_; + /** + *
+   * Customization settings for branding and UI configuration
+   * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + * @return Whether the customizationSettings field is set. + */ + @java.lang.Override + public boolean hasCustomizationSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Customization settings for branding and UI configuration
+   * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + * @return The customizationSettings. + */ + @java.lang.Override + public com.google.protobuf.Struct getCustomizationSettings() { + return customizationSettings_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customizationSettings_; + } + /** + *
+   * Customization settings for branding and UI configuration
+   * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getCustomizationSettingsOrBuilder() { + return customizationSettings_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customizationSettings_; + } + + public static final int SETTINGS_FIELD_NUMBER = 2; + private com.scalekit.grpc.scalekit.v1.environments.PortalSettings settings_; + /** + *
+   * Settings contains feature flags derived from the workspace's billing subscription
+   * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the settings field is set. + */ + @java.lang.Override + public boolean hasSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Settings contains feature flags derived from the workspace's billing subscription
+   * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The settings. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalSettings getSettings() { + return settings_ == null ? com.scalekit.grpc.scalekit.v1.environments.PortalSettings.getDefaultInstance() : settings_; + } + /** + *
+   * Settings contains feature flags derived from the workspace's billing subscription
+   * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalSettingsOrBuilder getSettingsOrBuilder() { + return settings_ == null ? com.scalekit.grpc.scalekit.v1.environments.PortalSettings.getDefaultInstance() : settings_; + } + + 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, getCustomizationSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getSettings()); + } + 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, getCustomizationSettings()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getSettings()); + } + 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.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap other = (com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap) obj; + + if (hasCustomizationSettings() != other.hasCustomizationSettings()) return false; + if (hasCustomizationSettings()) { + if (!getCustomizationSettings() + .equals(other.getCustomizationSettings())) return false; + } + if (hasSettings() != other.hasSettings()) return false; + if (hasSettings()) { + if (!getSettings() + .equals(other.getSettings())) 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 (hasCustomizationSettings()) { + hash = (37 * hash) + CUSTOMIZATION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getCustomizationSettings().hashCode(); + } + if (hasSettings()) { + hash = (37 * hash) + SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getSettings().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * PortalCustomizationBootstrap contains portal customization data for bootstrap
+   * excluding sensitive fields like environmentId that should not be exposed to clients.
+   * 
+ * + * Protobuf type {@code scalekit.v1.environments.PortalCustomizationBootstrap} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.environments.PortalCustomizationBootstrap) + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrapOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalCustomizationBootstrap_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalCustomizationBootstrap_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.class, com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCustomizationSettingsFieldBuilder(); + getSettingsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + customizationSettings_ = null; + if (customizationSettingsBuilder_ != null) { + customizationSettingsBuilder_.dispose(); + customizationSettingsBuilder_ = null; + } + settings_ = null; + if (settingsBuilder_ != null) { + settingsBuilder_.dispose(); + settingsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PortalCustomizationBootstrap_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap build() { + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap buildPartial() { + com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap result = new com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customizationSettings_ = customizationSettingsBuilder_ == null + ? customizationSettings_ + : customizationSettingsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.settings_ = settingsBuilder_ == null + ? settings_ + : settingsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap other) { + if (other == com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap.getDefaultInstance()) return this; + if (other.hasCustomizationSettings()) { + mergeCustomizationSettings(other.getCustomizationSettings()); + } + if (other.hasSettings()) { + mergeSettings(other.getSettings()); + } + 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( + getCustomizationSettingsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getSettingsFieldBuilder().getBuilder(), + extensionRegistry); + 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.Struct customizationSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> customizationSettingsBuilder_; + /** + *
+     * Customization settings for branding and UI configuration
+     * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + * @return Whether the customizationSettings field is set. + */ + public boolean hasCustomizationSettings() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Customization settings for branding and UI configuration
+     * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + * @return The customizationSettings. + */ + public com.google.protobuf.Struct getCustomizationSettings() { + if (customizationSettingsBuilder_ == null) { + return customizationSettings_ == null ? com.google.protobuf.Struct.getDefaultInstance() : customizationSettings_; + } else { + return customizationSettingsBuilder_.getMessage(); + } + } + /** + *
+     * Customization settings for branding and UI configuration
+     * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setCustomizationSettings(com.google.protobuf.Struct value) { + if (customizationSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customizationSettings_ = value; + } else { + customizationSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Customization settings for branding and UI configuration
+     * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setCustomizationSettings( + com.google.protobuf.Struct.Builder builderForValue) { + if (customizationSettingsBuilder_ == null) { + customizationSettings_ = builderForValue.build(); + } else { + customizationSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Customization settings for branding and UI configuration
+     * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeCustomizationSettings(com.google.protobuf.Struct value) { + if (customizationSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + customizationSettings_ != null && + customizationSettings_ != com.google.protobuf.Struct.getDefaultInstance()) { + getCustomizationSettingsBuilder().mergeFrom(value); + } else { + customizationSettings_ = value; + } + } else { + customizationSettingsBuilder_.mergeFrom(value); + } + if (customizationSettings_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + *
+     * Customization settings for branding and UI configuration
+     * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearCustomizationSettings() { + bitField0_ = (bitField0_ & ~0x00000001); + customizationSettings_ = null; + if (customizationSettingsBuilder_ != null) { + customizationSettingsBuilder_.dispose(); + customizationSettingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Customization settings for branding and UI configuration
+     * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getCustomizationSettingsBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getCustomizationSettingsFieldBuilder().getBuilder(); + } + /** + *
+     * Customization settings for branding and UI configuration
+     * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getCustomizationSettingsOrBuilder() { + if (customizationSettingsBuilder_ != null) { + return customizationSettingsBuilder_.getMessageOrBuilder(); + } else { + return customizationSettings_ == null ? + com.google.protobuf.Struct.getDefaultInstance() : customizationSettings_; + } + } + /** + *
+     * Customization settings for branding and UI configuration
+     * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> + getCustomizationSettingsFieldBuilder() { + if (customizationSettingsBuilder_ == null) { + customizationSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>( + getCustomizationSettings(), + getParentForChildren(), + isClean()); + customizationSettings_ = null; + } + return customizationSettingsBuilder_; + } + + private com.scalekit.grpc.scalekit.v1.environments.PortalSettings settings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.PortalSettings, com.scalekit.grpc.scalekit.v1.environments.PortalSettings.Builder, com.scalekit.grpc.scalekit.v1.environments.PortalSettingsOrBuilder> settingsBuilder_; + /** + *
+     * Settings contains feature flags derived from the workspace's billing subscription
+     * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the settings field is set. + */ + public boolean hasSettings() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Settings contains feature flags derived from the workspace's billing subscription
+     * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The settings. + */ + public com.scalekit.grpc.scalekit.v1.environments.PortalSettings getSettings() { + if (settingsBuilder_ == null) { + return settings_ == null ? com.scalekit.grpc.scalekit.v1.environments.PortalSettings.getDefaultInstance() : settings_; + } else { + return settingsBuilder_.getMessage(); + } + } + /** + *
+     * Settings contains feature flags derived from the workspace's billing subscription
+     * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setSettings(com.scalekit.grpc.scalekit.v1.environments.PortalSettings value) { + if (settingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + settings_ = value; + } else { + settingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Settings contains feature flags derived from the workspace's billing subscription
+     * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setSettings( + com.scalekit.grpc.scalekit.v1.environments.PortalSettings.Builder builderForValue) { + if (settingsBuilder_ == null) { + settings_ = builderForValue.build(); + } else { + settingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Settings contains feature flags derived from the workspace's billing subscription
+     * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeSettings(com.scalekit.grpc.scalekit.v1.environments.PortalSettings value) { + if (settingsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + settings_ != null && + settings_ != com.scalekit.grpc.scalekit.v1.environments.PortalSettings.getDefaultInstance()) { + getSettingsBuilder().mergeFrom(value); + } else { + settings_ = value; + } + } else { + settingsBuilder_.mergeFrom(value); + } + if (settings_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Settings contains feature flags derived from the workspace's billing subscription
+     * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearSettings() { + bitField0_ = (bitField0_ & ~0x00000002); + settings_ = null; + if (settingsBuilder_ != null) { + settingsBuilder_.dispose(); + settingsBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Settings contains feature flags derived from the workspace's billing subscription
+     * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.scalekit.grpc.scalekit.v1.environments.PortalSettings.Builder getSettingsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSettingsFieldBuilder().getBuilder(); + } + /** + *
+     * Settings contains feature flags derived from the workspace's billing subscription
+     * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.scalekit.grpc.scalekit.v1.environments.PortalSettingsOrBuilder getSettingsOrBuilder() { + if (settingsBuilder_ != null) { + return settingsBuilder_.getMessageOrBuilder(); + } else { + return settings_ == null ? + com.scalekit.grpc.scalekit.v1.environments.PortalSettings.getDefaultInstance() : settings_; + } + } + /** + *
+     * Settings contains feature flags derived from the workspace's billing subscription
+     * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.PortalSettings, com.scalekit.grpc.scalekit.v1.environments.PortalSettings.Builder, com.scalekit.grpc.scalekit.v1.environments.PortalSettingsOrBuilder> + getSettingsFieldBuilder() { + if (settingsBuilder_ == null) { + settingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.PortalSettings, com.scalekit.grpc.scalekit.v1.environments.PortalSettings.Builder, com.scalekit.grpc.scalekit.v1.environments.PortalSettingsOrBuilder>( + getSettings(), + getParentForChildren(), + isClean()); + settings_ = null; + } + return settingsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.environments.PortalCustomizationBootstrap) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.environments.PortalCustomizationBootstrap) + private static final com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap(); + } + + public static com.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PortalCustomizationBootstrap 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.scalekit.grpc.scalekit.v1.environments.PortalCustomizationBootstrap getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalCustomizationBootstrapOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalCustomizationBootstrapOrBuilder.java new file mode 100644 index 00000000..719678db --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalCustomizationBootstrapOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +public interface PortalCustomizationBootstrapOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.environments.PortalCustomizationBootstrap) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Customization settings for branding and UI configuration
+   * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + * @return Whether the customizationSettings field is set. + */ + boolean hasCustomizationSettings(); + /** + *
+   * Customization settings for branding and UI configuration
+   * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + * @return The customizationSettings. + */ + com.google.protobuf.Struct getCustomizationSettings(); + /** + *
+   * Customization settings for branding and UI configuration
+   * 
+ * + * .google.protobuf.Struct customization_settings = 1 [json_name = "customizationSettings", (.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getCustomizationSettingsOrBuilder(); + + /** + *
+   * Settings contains feature flags derived from the workspace's billing subscription
+   * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the settings field is set. + */ + boolean hasSettings(); + /** + *
+   * Settings contains feature flags derived from the workspace's billing subscription
+   * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The settings. + */ + com.scalekit.grpc.scalekit.v1.environments.PortalSettings getSettings(); + /** + *
+   * Settings contains feature flags derived from the workspace's billing subscription
+   * 
+ * + * .scalekit.v1.environments.PortalSettings settings = 2 [json_name = "settings", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.scalekit.grpc.scalekit.v1.environments.PortalSettingsOrBuilder getSettingsOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalSettings.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalSettings.java index df2985a7..90d00fd4 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalSettings.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalSettings.java @@ -6,7 +6,9 @@ /** *
- * PortalSettings contains feature flags and settings derived from the workspace's billing subscription
+ * PortalSettings contains settings and flags from two sources:
+ * - Workspace billing subscription (custom_branding): derived from the workspace's subscribed billing items
+ * - Feature rollout configuration (new_self_serve_sso_scim, enable_conn_delete): environment or workspace-age based feature flags
  * 
* * Protobuf type {@code scalekit.v1.environments.PortalSettings} @@ -59,6 +61,41 @@ public boolean getCustomBranding() { return customBranding_; } + public static final int NEW_SELF_SERVE_SSO_SCIM_FIELD_NUMBER = 2; + private boolean newSelfServeSsoScim_ = false; + /** + *
+   * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+   * should be shown in the customer portal. This is rollout-driven (feature flag),
+   * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+   * not billing-derived.
+   * 
+ * + * bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The newSelfServeSsoScim. + */ + @java.lang.Override + public boolean getNewSelfServeSsoScim() { + return newSelfServeSsoScim_; + } + + public static final int ENABLE_CONN_DELETE_FIELD_NUMBER = 3; + private boolean enableConnDelete_ = false; + /** + *
+   * enable_conn_delete indicates whether connection deletion is enabled for this environment.
+   * This is rollout-driven via environment ID allowlist (feature flag),
+   * enabling per-environment granular control of the delete connection feature.
+   * 
+ * + * bool enable_conn_delete = 3 [json_name = "enableConnDelete", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enableConnDelete. + */ + @java.lang.Override + public boolean getEnableConnDelete() { + return enableConnDelete_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -76,6 +113,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (customBranding_ != false) { output.writeBool(1, customBranding_); } + if (newSelfServeSsoScim_ != false) { + output.writeBool(2, newSelfServeSsoScim_); + } + if (enableConnDelete_ != false) { + output.writeBool(3, enableConnDelete_); + } getUnknownFields().writeTo(output); } @@ -89,6 +132,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(1, customBranding_); } + if (newSelfServeSsoScim_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, newSelfServeSsoScim_); + } + if (enableConnDelete_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(3, enableConnDelete_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -106,6 +157,10 @@ public boolean equals(final java.lang.Object obj) { if (getCustomBranding() != other.getCustomBranding()) return false; + if (getNewSelfServeSsoScim() + != other.getNewSelfServeSsoScim()) return false; + if (getEnableConnDelete() + != other.getEnableConnDelete()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -120,6 +175,12 @@ public int hashCode() { hash = (37 * hash) + CUSTOM_BRANDING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCustomBranding()); + hash = (37 * hash) + NEW_SELF_SERVE_SSO_SCIM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getNewSelfServeSsoScim()); + hash = (37 * hash) + ENABLE_CONN_DELETE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableConnDelete()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -219,7 +280,9 @@ protected Builder newBuilderForType( } /** *
-   * PortalSettings contains feature flags and settings derived from the workspace's billing subscription
+   * PortalSettings contains settings and flags from two sources:
+   * - Workspace billing subscription (custom_branding): derived from the workspace's subscribed billing items
+   * - Feature rollout configuration (new_self_serve_sso_scim, enable_conn_delete): environment or workspace-age based feature flags
    * 
* * Protobuf type {@code scalekit.v1.environments.PortalSettings} @@ -256,6 +319,8 @@ public Builder clear() { super.clear(); bitField0_ = 0; customBranding_ = false; + newSelfServeSsoScim_ = false; + enableConnDelete_ = false; return this; } @@ -292,6 +357,12 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.PortalSett if (((from_bitField0_ & 0x00000001) != 0)) { result.customBranding_ = customBranding_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.newSelfServeSsoScim_ = newSelfServeSsoScim_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableConnDelete_ = enableConnDelete_; + } } @java.lang.Override @@ -341,6 +412,12 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.PortalSettin if (other.getCustomBranding() != false) { setCustomBranding(other.getCustomBranding()); } + if (other.getNewSelfServeSsoScim() != false) { + setNewSelfServeSsoScim(other.getNewSelfServeSsoScim()); + } + if (other.getEnableConnDelete() != false) { + setEnableConnDelete(other.getEnableConnDelete()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -372,6 +449,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 16: { + newSelfServeSsoScim_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + enableConnDelete_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -435,6 +522,109 @@ public Builder clearCustomBranding() { onChanged(); return this; } + + private boolean newSelfServeSsoScim_ ; + /** + *
+     * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+     * should be shown in the customer portal. This is rollout-driven (feature flag),
+     * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+     * not billing-derived.
+     * 
+ * + * bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The newSelfServeSsoScim. + */ + @java.lang.Override + public boolean getNewSelfServeSsoScim() { + return newSelfServeSsoScim_; + } + /** + *
+     * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+     * should be shown in the customer portal. This is rollout-driven (feature flag),
+     * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+     * not billing-derived.
+     * 
+ * + * bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The newSelfServeSsoScim to set. + * @return This builder for chaining. + */ + public Builder setNewSelfServeSsoScim(boolean value) { + + newSelfServeSsoScim_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+     * should be shown in the customer portal. This is rollout-driven (feature flag),
+     * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+     * not billing-derived.
+     * 
+ * + * bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearNewSelfServeSsoScim() { + bitField0_ = (bitField0_ & ~0x00000002); + newSelfServeSsoScim_ = false; + onChanged(); + return this; + } + + private boolean enableConnDelete_ ; + /** + *
+     * enable_conn_delete indicates whether connection deletion is enabled for this environment.
+     * This is rollout-driven via environment ID allowlist (feature flag),
+     * enabling per-environment granular control of the delete connection feature.
+     * 
+ * + * bool enable_conn_delete = 3 [json_name = "enableConnDelete", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enableConnDelete. + */ + @java.lang.Override + public boolean getEnableConnDelete() { + return enableConnDelete_; + } + /** + *
+     * enable_conn_delete indicates whether connection deletion is enabled for this environment.
+     * This is rollout-driven via environment ID allowlist (feature flag),
+     * enabling per-environment granular control of the delete connection feature.
+     * 
+ * + * bool enable_conn_delete = 3 [json_name = "enableConnDelete", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The enableConnDelete to set. + * @return This builder for chaining. + */ + public Builder setEnableConnDelete(boolean value) { + + enableConnDelete_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * enable_conn_delete indicates whether connection deletion is enabled for this environment.
+     * This is rollout-driven via environment ID allowlist (feature flag),
+     * enabling per-environment granular control of the delete connection feature.
+     * 
+ * + * bool enable_conn_delete = 3 [json_name = "enableConnDelete", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearEnableConnDelete() { + bitField0_ = (bitField0_ & ~0x00000004); + enableConnDelete_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalSettingsOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalSettingsOrBuilder.java index b0c9fe20..7b2a61a3 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalSettingsOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PortalSettingsOrBuilder.java @@ -18,4 +18,29 @@ public interface PortalSettingsOrBuilder extends * @return The customBranding. */ boolean getCustomBranding(); + + /** + *
+   * new_self_serve_sso_scim indicates whether the new self-serve SSO/SCIM flow
+   * should be shown in the customer portal. This is rollout-driven (feature flag),
+   * enabled for development environments or new workspaces (workspace_created_at >= cutoff),
+   * not billing-derived.
+   * 
+ * + * bool new_self_serve_sso_scim = 2 [json_name = "newSelfServeSsoScim", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The newSelfServeSsoScim. + */ + boolean getNewSelfServeSsoScim(); + + /** + *
+   * enable_conn_delete indicates whether connection deletion is enabled for this environment.
+   * This is rollout-driven via environment ID allowlist (feature flag),
+   * enabling per-environment granular control of the delete connection feature.
+   * 
+ * + * bool enable_conn_delete = 3 [json_name = "enableConnDelete", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enableConnDelete. + */ + boolean getEnableConnDelete(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PublicHostFeatureFlag.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PublicHostFeatureFlag.java new file mode 100644 index 00000000..e66671dc --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PublicHostFeatureFlag.java @@ -0,0 +1,1143 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + * Protobuf type {@code scalekit.v1.environments.PublicHostFeatureFlag} + */ +public final class PublicHostFeatureFlag extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.environments.PublicHostFeatureFlag) + PublicHostFeatureFlagOrBuilder { +private static final long serialVersionUID = 0L; + // Use PublicHostFeatureFlag.newBuilder() to construct. + private PublicHostFeatureFlag(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private PublicHostFeatureFlag() { + key_ = ""; + variant_ = ""; + reason_ = ""; + error_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new PublicHostFeatureFlag(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PublicHostFeatureFlag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PublicHostFeatureFlag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.class, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.Builder.class); + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object key_ = ""; + /** + * string key = 1 [json_name = "key"]; + * @return The key. + */ + @java.lang.Override + public java.lang.String getKey() { + java.lang.Object ref = key_; + 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(); + key_ = s; + return s; + } + } + /** + * string key = 1 [json_name = "key"]; + * @return The bytes for key. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private com.google.protobuf.Value value_; + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + * @return Whether the value field is set. + */ + @java.lang.Override + public boolean hasValue() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + * @return The value. + */ + @java.lang.Override + public com.google.protobuf.Value getValue() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + */ + @java.lang.Override + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } + + public static final int VARIANT_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object variant_ = ""; + /** + * string variant = 3 [json_name = "variant"]; + * @return The variant. + */ + @java.lang.Override + public java.lang.String getVariant() { + java.lang.Object ref = variant_; + 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(); + variant_ = s; + return s; + } + } + /** + * string variant = 3 [json_name = "variant"]; + * @return The bytes for variant. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getVariantBytes() { + java.lang.Object ref = variant_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + variant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int REASON_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private volatile java.lang.Object reason_ = ""; + /** + * string reason = 4 [json_name = "reason"]; + * @return The reason. + */ + @java.lang.Override + public java.lang.String getReason() { + java.lang.Object ref = reason_; + 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(); + reason_ = s; + return s; + } + } + /** + * string reason = 4 [json_name = "reason"]; + * @return The bytes for reason. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object error_ = ""; + /** + * string error = 5 [json_name = "error"]; + * @return The error. + */ + @java.lang.Override + public java.lang.String getError() { + java.lang.Object ref = error_; + 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(); + error_ = s; + return s; + } + } + /** + * string error = 5 [json_name = "error"]; + * @return The bytes for error. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, key_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getValue()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(variant_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, variant_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, reason_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, error_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(key_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, key_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getValue()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(variant_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, variant_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reason_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, reason_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(error_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, error_); + } + 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.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag other = (com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag) obj; + + if (!getKey() + .equals(other.getKey())) return false; + if (hasValue() != other.hasValue()) return false; + if (hasValue()) { + if (!getValue() + .equals(other.getValue())) return false; + } + if (!getVariant() + .equals(other.getVariant())) return false; + if (!getReason() + .equals(other.getReason())) return false; + if (!getError() + .equals(other.getError())) 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) + KEY_FIELD_NUMBER; + hash = (53 * hash) + getKey().hashCode(); + if (hasValue()) { + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + getValue().hashCode(); + } + hash = (37 * hash) + VARIANT_FIELD_NUMBER; + hash = (53 * hash) + getVariant().hashCode(); + hash = (37 * hash) + REASON_FIELD_NUMBER; + hash = (53 * hash) + getReason().hashCode(); + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.environments.PublicHostFeatureFlag} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.environments.PublicHostFeatureFlag) + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlagOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PublicHostFeatureFlag_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PublicHostFeatureFlag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.class, com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getValueFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + key_ = ""; + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + variant_ = ""; + reason_ = ""; + error_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_PublicHostFeatureFlag_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag build() { + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag buildPartial() { + com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag result = new com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.key_ = key_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = valueBuilder_ == null + ? value_ + : valueBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.variant_ = variant_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reason_ = reason_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.error_ = error_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag other) { + if (other == com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag.getDefaultInstance()) return this; + if (!other.getKey().isEmpty()) { + key_ = other.key_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasValue()) { + mergeValue(other.getValue()); + } + if (!other.getVariant().isEmpty()) { + variant_ = other.variant_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getReason().isEmpty()) { + reason_ = other.reason_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getError().isEmpty()) { + error_ = other.error_; + 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: { + key_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getValueFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + variant_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + reason_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + error_ = 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 key_ = ""; + /** + * string key = 1 [json_name = "key"]; + * @return The key. + */ + public java.lang.String getKey() { + java.lang.Object ref = key_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + key_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string key = 1 [json_name = "key"]; + * @return The bytes for key. + */ + public com.google.protobuf.ByteString + getKeyBytes() { + java.lang.Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string key = 1 [json_name = "key"]; + * @param value The key to set. + * @return This builder for chaining. + */ + public Builder setKey( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string key = 1 [json_name = "key"]; + * @return This builder for chaining. + */ + public Builder clearKey() { + key_ = getDefaultInstance().getKey(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string key = 1 [json_name = "key"]; + * @param value The bytes for key to set. + * @return This builder for chaining. + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + key_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.Value value_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> valueBuilder_; + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + * @return Whether the value field is set. + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + * @return The value. + */ + public com.google.protobuf.Value getValue() { + if (valueBuilder_ == null) { + return value_ == null ? com.google.protobuf.Value.getDefaultInstance() : value_; + } else { + return valueBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + */ + public Builder setValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + value_ = value; + } else { + valueBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + */ + public Builder setValue( + com.google.protobuf.Value.Builder builderForValue) { + if (valueBuilder_ == null) { + value_ = builderForValue.build(); + } else { + valueBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + */ + public Builder mergeValue(com.google.protobuf.Value value) { + if (valueBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + value_ != null && + value_ != com.google.protobuf.Value.getDefaultInstance()) { + getValueBuilder().mergeFrom(value); + } else { + value_ = value; + } + } else { + valueBuilder_.mergeFrom(value); + } + if (value_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = null; + if (valueBuilder_ != null) { + valueBuilder_.dispose(); + valueBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + */ + public com.google.protobuf.Value.Builder getValueBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getValueFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + */ + public com.google.protobuf.ValueOrBuilder getValueOrBuilder() { + if (valueBuilder_ != null) { + return valueBuilder_.getMessageOrBuilder(); + } else { + return value_ == null ? + com.google.protobuf.Value.getDefaultInstance() : value_; + } + } + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder> + getValueFieldBuilder() { + if (valueBuilder_ == null) { + valueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Value, com.google.protobuf.Value.Builder, com.google.protobuf.ValueOrBuilder>( + getValue(), + getParentForChildren(), + isClean()); + value_ = null; + } + return valueBuilder_; + } + + private java.lang.Object variant_ = ""; + /** + * string variant = 3 [json_name = "variant"]; + * @return The variant. + */ + public java.lang.String getVariant() { + java.lang.Object ref = variant_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + variant_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string variant = 3 [json_name = "variant"]; + * @return The bytes for variant. + */ + public com.google.protobuf.ByteString + getVariantBytes() { + java.lang.Object ref = variant_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + variant_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string variant = 3 [json_name = "variant"]; + * @param value The variant to set. + * @return This builder for chaining. + */ + public Builder setVariant( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + variant_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string variant = 3 [json_name = "variant"]; + * @return This builder for chaining. + */ + public Builder clearVariant() { + variant_ = getDefaultInstance().getVariant(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string variant = 3 [json_name = "variant"]; + * @param value The bytes for variant to set. + * @return This builder for chaining. + */ + public Builder setVariantBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + variant_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object reason_ = ""; + /** + * string reason = 4 [json_name = "reason"]; + * @return The reason. + */ + public java.lang.String getReason() { + java.lang.Object ref = reason_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reason_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string reason = 4 [json_name = "reason"]; + * @return The bytes for reason. + */ + public com.google.protobuf.ByteString + getReasonBytes() { + java.lang.Object ref = reason_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + reason_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string reason = 4 [json_name = "reason"]; + * @param value The reason to set. + * @return This builder for chaining. + */ + public Builder setReason( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + reason_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string reason = 4 [json_name = "reason"]; + * @return This builder for chaining. + */ + public Builder clearReason() { + reason_ = getDefaultInstance().getReason(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string reason = 4 [json_name = "reason"]; + * @param value The bytes for reason to set. + * @return This builder for chaining. + */ + public Builder setReasonBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + reason_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object error_ = ""; + /** + * string error = 5 [json_name = "error"]; + * @return The error. + */ + public java.lang.String getError() { + java.lang.Object ref = error_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + error_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string error = 5 [json_name = "error"]; + * @return The bytes for error. + */ + public com.google.protobuf.ByteString + getErrorBytes() { + java.lang.Object ref = error_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + error_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string error = 5 [json_name = "error"]; + * @param value The error to set. + * @return This builder for chaining. + */ + public Builder setError( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + error_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string error = 5 [json_name = "error"]; + * @return This builder for chaining. + */ + public Builder clearError() { + error_ = getDefaultInstance().getError(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string error = 5 [json_name = "error"]; + * @param value The bytes for error to set. + * @return This builder for chaining. + */ + public Builder setErrorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + error_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.environments.PublicHostFeatureFlag) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.environments.PublicHostFeatureFlag) + private static final com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag(); + } + + public static com.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public PublicHostFeatureFlag 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.scalekit.grpc.scalekit.v1.environments.PublicHostFeatureFlag getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PublicHostFeatureFlagOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PublicHostFeatureFlagOrBuilder.java new file mode 100644 index 00000000..76fe8ad0 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/PublicHostFeatureFlagOrBuilder.java @@ -0,0 +1,73 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +public interface PublicHostFeatureFlagOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.environments.PublicHostFeatureFlag) + com.google.protobuf.MessageOrBuilder { + + /** + * string key = 1 [json_name = "key"]; + * @return The key. + */ + java.lang.String getKey(); + /** + * string key = 1 [json_name = "key"]; + * @return The bytes for key. + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + * @return Whether the value field is set. + */ + boolean hasValue(); + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + * @return The value. + */ + com.google.protobuf.Value getValue(); + /** + * .google.protobuf.Value value = 2 [json_name = "value"]; + */ + com.google.protobuf.ValueOrBuilder getValueOrBuilder(); + + /** + * string variant = 3 [json_name = "variant"]; + * @return The variant. + */ + java.lang.String getVariant(); + /** + * string variant = 3 [json_name = "variant"]; + * @return The bytes for variant. + */ + com.google.protobuf.ByteString + getVariantBytes(); + + /** + * string reason = 4 [json_name = "reason"]; + * @return The reason. + */ + java.lang.String getReason(); + /** + * string reason = 4 [json_name = "reason"]; + * @return The bytes for reason. + */ + com.google.protobuf.ByteString + getReasonBytes(); + + /** + * string error = 5 [json_name = "error"]; + * @return The error. + */ + java.lang.String getError(); + /** + * string error = 5 [json_name = "error"]; + * @return The bytes for error. + */ + com.google.protobuf.ByteString + getErrorBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigRequest.java new file mode 100644 index 00000000..0f6131ea --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigRequest.java @@ -0,0 +1,735 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + * Protobuf type {@code scalekit.v1.environments.UpdateAgentActionsConfigRequest} + */ +public final class UpdateAgentActionsConfigRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.environments.UpdateAgentActionsConfigRequest) + UpdateAgentActionsConfigRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateAgentActionsConfigRequest.newBuilder() to construct. + private UpdateAgentActionsConfigRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateAgentActionsConfigRequest() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateAgentActionsConfigRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_UpdateAgentActionsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_UpdateAgentActionsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest.class, com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_ACTIONS_CONFIG_FIELD_NUMBER = 2; + private com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig agentActionsConfig_; + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + * @return Whether the agentActionsConfig field is set. + */ + @java.lang.Override + public boolean hasAgentActionsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + * @return The agentActionsConfig. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig() { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder() { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAgentActionsConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAgentActionsConfig()); + } + 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.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest other = (com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest) obj; + + if (!getId() + .equals(other.getId())) return false; + if (hasAgentActionsConfig() != other.hasAgentActionsConfig()) return false; + if (hasAgentActionsConfig()) { + if (!getAgentActionsConfig() + .equals(other.getAgentActionsConfig())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasAgentActionsConfig()) { + hash = (37 * hash) + AGENT_ACTIONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAgentActionsConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.environments.UpdateAgentActionsConfigRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.environments.UpdateAgentActionsConfigRequest) + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_UpdateAgentActionsConfigRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_UpdateAgentActionsConfigRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest.class, com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAgentActionsConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + agentActionsConfig_ = null; + if (agentActionsConfigBuilder_ != null) { + agentActionsConfigBuilder_.dispose(); + agentActionsConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_UpdateAgentActionsConfigRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest build() { + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest result = new com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentActionsConfig_ = agentActionsConfigBuilder_ == null + ? agentActionsConfig_ + : agentActionsConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasAgentActionsConfig()) { + mergeAgentActionsConfig(other.getAgentActionsConfig()); + } + 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: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getAgentActionsConfigFieldBuilder().getBuilder(), + extensionRegistry); + 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 id_ = ""; + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig agentActionsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder> agentActionsConfigBuilder_; + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + * @return Whether the agentActionsConfig field is set. + */ + public boolean hasAgentActionsConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + * @return The agentActionsConfig. + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig() { + if (agentActionsConfigBuilder_ == null) { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } else { + return agentActionsConfigBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder setAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig value) { + if (agentActionsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentActionsConfig_ = value; + } else { + agentActionsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder setAgentActionsConfig( + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder builderForValue) { + if (agentActionsConfigBuilder_ == null) { + agentActionsConfig_ = builderForValue.build(); + } else { + agentActionsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder mergeAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig value) { + if (agentActionsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + agentActionsConfig_ != null && + agentActionsConfig_ != com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance()) { + getAgentActionsConfigBuilder().mergeFrom(value); + } else { + agentActionsConfig_ = value; + } + } else { + agentActionsConfigBuilder_.mergeFrom(value); + } + if (agentActionsConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + public Builder clearAgentActionsConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + agentActionsConfig_ = null; + if (agentActionsConfigBuilder_ != null) { + agentActionsConfigBuilder_.dispose(); + agentActionsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder getAgentActionsConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAgentActionsConfigFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder() { + if (agentActionsConfigBuilder_ != null) { + return agentActionsConfigBuilder_.getMessageOrBuilder(); + } else { + return agentActionsConfig_ == null ? + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder> + getAgentActionsConfigFieldBuilder() { + if (agentActionsConfigBuilder_ == null) { + agentActionsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder>( + getAgentActionsConfig(), + getParentForChildren(), + isClean()); + agentActionsConfig_ = null; + } + return agentActionsConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.environments.UpdateAgentActionsConfigRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.environments.UpdateAgentActionsConfigRequest) + private static final com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAgentActionsConfigRequest 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.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigRequestOrBuilder.java new file mode 100644 index 00000000..33e07b56 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +public interface UpdateAgentActionsConfigRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.environments.UpdateAgentActionsConfigRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + * @return Whether the agentActionsConfig field is set. + */ + boolean hasAgentActionsConfig(); + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + * @return The agentActionsConfig. + */ + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig(); + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 2 [json_name = "agentActionsConfig", (.google.api.field_behavior) = REQUIRED]; + */ + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigResponse.java new file mode 100644 index 00000000..ac095c77 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigResponse.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +/** + * Protobuf type {@code scalekit.v1.environments.UpdateAgentActionsConfigResponse} + */ +public final class UpdateAgentActionsConfigResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.environments.UpdateAgentActionsConfigResponse) + UpdateAgentActionsConfigResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateAgentActionsConfigResponse.newBuilder() to construct. + private UpdateAgentActionsConfigResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateAgentActionsConfigResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateAgentActionsConfigResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_UpdateAgentActionsConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_UpdateAgentActionsConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse.class, com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse.Builder.class); + } + + private int bitField0_; + public static final int AGENT_ACTIONS_CONFIG_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig agentActionsConfig_; + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the agentActionsConfig field is set. + */ + @java.lang.Override + public boolean hasAgentActionsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The agentActionsConfig. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig() { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder() { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + + 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, getAgentActionsConfig()); + } + 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, getAgentActionsConfig()); + } + 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.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse other = (com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse) obj; + + if (hasAgentActionsConfig() != other.hasAgentActionsConfig()) return false; + if (hasAgentActionsConfig()) { + if (!getAgentActionsConfig() + .equals(other.getAgentActionsConfig())) 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 (hasAgentActionsConfig()) { + hash = (37 * hash) + AGENT_ACTIONS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAgentActionsConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.environments.UpdateAgentActionsConfigResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.environments.UpdateAgentActionsConfigResponse) + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_UpdateAgentActionsConfigResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_UpdateAgentActionsConfigResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse.class, com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAgentActionsConfigFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agentActionsConfig_ = null; + if (agentActionsConfigBuilder_ != null) { + agentActionsConfigBuilder_.dispose(); + agentActionsConfigBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.environments.EnvironmentsProto.internal_static_scalekit_v1_environments_UpdateAgentActionsConfigResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse build() { + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse result = new com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agentActionsConfig_ = agentActionsConfigBuilder_ == null + ? agentActionsConfig_ + : agentActionsConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse.getDefaultInstance()) return this; + if (other.hasAgentActionsConfig()) { + mergeAgentActionsConfig(other.getAgentActionsConfig()); + } + 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( + getAgentActionsConfigFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig agentActionsConfig_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder> agentActionsConfigBuilder_; + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the agentActionsConfig field is set. + */ + public boolean hasAgentActionsConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The agentActionsConfig. + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig() { + if (agentActionsConfigBuilder_ == null) { + return agentActionsConfig_ == null ? com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } else { + return agentActionsConfigBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig value) { + if (agentActionsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentActionsConfig_ = value; + } else { + agentActionsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder setAgentActionsConfig( + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder builderForValue) { + if (agentActionsConfigBuilder_ == null) { + agentActionsConfig_ = builderForValue.build(); + } else { + agentActionsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder mergeAgentActionsConfig(com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig value) { + if (agentActionsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + agentActionsConfig_ != null && + agentActionsConfig_ != com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance()) { + getAgentActionsConfigBuilder().mergeFrom(value); + } else { + agentActionsConfig_ = value; + } + } else { + agentActionsConfigBuilder_.mergeFrom(value); + } + if (agentActionsConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public Builder clearAgentActionsConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + agentActionsConfig_ = null; + if (agentActionsConfigBuilder_ != null) { + agentActionsConfigBuilder_.dispose(); + agentActionsConfigBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder getAgentActionsConfigBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getAgentActionsConfigFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + public com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder() { + if (agentActionsConfigBuilder_ != null) { + return agentActionsConfigBuilder_.getMessageOrBuilder(); + } else { + return agentActionsConfig_ == null ? + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.getDefaultInstance() : agentActionsConfig_; + } + } + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder> + getAgentActionsConfigFieldBuilder() { + if (agentActionsConfigBuilder_ == null) { + agentActionsConfigBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig.Builder, com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder>( + getAgentActionsConfig(), + getParentForChildren(), + isClean()); + agentActionsConfig_ = null; + } + return agentActionsConfigBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.environments.UpdateAgentActionsConfigResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.environments.UpdateAgentActionsConfigResponse) + private static final com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAgentActionsConfigResponse 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.scalekit.grpc.scalekit.v1.environments.UpdateAgentActionsConfigResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigResponseOrBuilder.java new file mode 100644 index 00000000..3a32db76 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/environments/UpdateAgentActionsConfigResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/environments/environments.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.environments; + +public interface UpdateAgentActionsConfigResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.environments.UpdateAgentActionsConfigResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return Whether the agentActionsConfig field is set. + */ + boolean hasAgentActionsConfig(); + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + * @return The agentActionsConfig. + */ + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfig getAgentActionsConfig(); + /** + * .scalekit.v1.environments.AgentActionsConfig agent_actions_config = 1 [json_name = "agentActionsConfig", (.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.scalekit.grpc.scalekit.v1.environments.AgentActionsConfigOrBuilder getAgentActionsConfigOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/DummyGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/DummyGrpc.java new file mode 100644 index 00000000..4309b655 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/DummyGrpc.java @@ -0,0 +1,293 @@ +package com.scalekit.grpc.scalekit.v1.errdetails; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.67.1)", + comments = "Source: scalekit/v1/errdetails/errdetails.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class DummyGrpc { + + private DummyGrpc() {} + + public static final java.lang.String SERVICE_NAME = "scalekit.v1.errdetails.Dummy"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getDummyServiceMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DummyService", + requestType = com.google.protobuf.Empty.class, + responseType = com.scalekit.grpc.scalekit.v1.errdetails.ErrorInfo.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDummyServiceMethod() { + io.grpc.MethodDescriptor getDummyServiceMethod; + if ((getDummyServiceMethod = DummyGrpc.getDummyServiceMethod) == null) { + synchronized (DummyGrpc.class) { + if ((getDummyServiceMethod = DummyGrpc.getDummyServiceMethod) == null) { + DummyGrpc.getDummyServiceMethod = getDummyServiceMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DummyService")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.errdetails.ErrorInfo.getDefaultInstance())) + .setSchemaDescriptor(new DummyMethodDescriptorSupplier("DummyService")) + .build(); + } + } + } + return getDummyServiceMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static DummyStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DummyStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DummyStub(channel, callOptions); + } + }; + return DummyStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static DummyBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DummyBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DummyBlockingStub(channel, callOptions); + } + }; + return DummyBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static DummyFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public DummyFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DummyFutureStub(channel, callOptions); + } + }; + return DummyFutureStub.newStub(factory, channel); + } + + /** + */ + public interface AsyncService { + + /** + */ + default void dummyService(com.google.protobuf.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDummyServiceMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service Dummy. + */ + public static abstract class DummyImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return DummyGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service Dummy. + */ + public static final class DummyStub + extends io.grpc.stub.AbstractAsyncStub { + private DummyStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DummyStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DummyStub(channel, callOptions); + } + + /** + */ + public void dummyService(com.google.protobuf.Empty request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDummyServiceMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service Dummy. + */ + public static final class DummyBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private DummyBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DummyBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DummyBlockingStub(channel, callOptions); + } + + /** + */ + public com.scalekit.grpc.scalekit.v1.errdetails.ErrorInfo dummyService(com.google.protobuf.Empty request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDummyServiceMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service Dummy. + */ + public static final class DummyFutureStub + extends io.grpc.stub.AbstractFutureStub { + private DummyFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected DummyFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new DummyFutureStub(channel, callOptions); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture dummyService( + com.google.protobuf.Empty request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDummyServiceMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_DUMMY_SERVICE = 0; + + 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_DUMMY_SERVICE: + serviceImpl.dummyService((com.google.protobuf.Empty) 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( + getDummyServiceMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.protobuf.Empty, + com.scalekit.grpc.scalekit.v1.errdetails.ErrorInfo>( + service, METHODID_DUMMY_SERVICE))) + .build(); + } + + private static abstract class DummyBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + DummyBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.scalekit.grpc.scalekit.v1.errdetails.ErrdetailsProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("Dummy"); + } + } + + private static final class DummyFileDescriptorSupplier + extends DummyBaseDescriptorSupplier { + DummyFileDescriptorSupplier() {} + } + + private static final class DummyMethodDescriptorSupplier + extends DummyBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + DummyMethodDescriptorSupplier(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 (DummyGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new DummyFileDescriptorSupplier()) + .addMethod(getDummyServiceMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/ErrdetailsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/ErrdetailsProto.java index 5e52b8f9..9cbda8d8 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/ErrdetailsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/ErrdetailsProto.java @@ -75,61 +75,71 @@ public static void registerAllExtensions( static { java.lang.String[] descriptorData = { "\n\'scalekit/v1/errdetails/errdetails.prot" + - "o\022\026scalekit.v1.errdetails\032\036google/protob" + - "uf/duration.proto\"\376\005\n\tErrorInfo\022\035\n\nerror" + - "_code\030\001 \001(\tR\terrorCode\022E\n\ndebug_info\030\002 \001" + - "(\0132!.scalekit.v1.errdetails.DebugInfoH\000R" + - "\tdebugInfo\210\001\001\022B\n\thelp_info\030\003 \001(\0132 .scale" + - "kit.v1.errdetails.HelpInfoH\001R\010helpInfo\210\001" + - "\001\022g\n\026localized_message_info\030\004 \001(\0132,.scal" + - "ekit.v1.errdetails.LocalizedMessageInfoH" + - "\002R\024localizedMessageInfo\210\001\001\022N\n\rresource_i" + - "nfo\030\005 \001(\0132$.scalekit.v1.errdetails.Resou" + - "rceInfoH\003R\014resourceInfo\210\001\001\022K\n\014request_in" + - "fo\030\006 \001(\0132#.scalekit.v1.errdetails.Reques" + - "tInfoH\004R\013requestInfo\210\001\001\022d\n\025validation_er" + - "ror_info\030\010 \001(\0132+.scalekit.v1.errdetails." + - "ValidationErrorInfoH\005R\023validationErrorIn" + - "fo\210\001\001\022R\n\017tool_error_info\030\t \001(\0132%.scaleki" + - "t.v1.errdetails.ToolErrorInfoH\006R\rtoolErr" + - "orInfo\210\001\001B\r\n\013_debug_infoB\014\n\n_help_infoB\031" + - "\n\027_localized_message_infoB\020\n\016_resource_i" + - "nfoB\017\n\r_request_infoB\030\n\026_validation_erro" + - "r_infoB\022\n\020_tool_error_info\"H\n\tDebugInfo\022" + - "#\n\rstack_entries\030\001 \003(\tR\014stackEntries\022\026\n\006" + - "detail\030\002 \001(\tR\006detail\"\346\001\n\023ValidationError" + - "Info\022e\n\020field_violations\030\001 \003(\0132:.scaleki" + - "t.v1.errdetails.ValidationErrorInfo.Fiel" + - "dViolationR\017fieldViolations\032h\n\016FieldViol" + - "ation\022\024\n\005field\030\001 \001(\tR\005field\022 \n\013descripti" + - "on\030\002 \001(\tR\013description\022\036\n\nconstraint\030\003 \001(" + - "\tR\nconstraint\"O\n\013RequestInfo\022\035\n\nrequest_" + - "id\030\001 \001(\tR\trequestId\022!\n\014serving_data\030\002 \001(" + - "\tR\013servingData\"\270\001\n\014ResourceInfo\022#\n\rresou" + - "rce_name\030\002 \001(\tR\014resourceName\022\024\n\005owner\030\003 " + - "\001(\tR\005owner\022 \n\013description\030\004 \001(\tR\013descrip" + - "tion\0221\n\024required_permissions\030\005 \003(\tR\023requ" + - "iredPermissions\022\022\n\004user\030\006 \001(\tR\004userJ\004\010\001\020" + - "\002\"\203\001\n\010HelpInfo\022;\n\005links\030\001 \003(\0132%.scalekit" + - ".v1.errdetails.HelpInfo.LinkR\005links\032:\n\004L" + - "ink\022 \n\013description\030\001 \001(\tR\013description\022\020\n" + - "\003url\030\002 \001(\tR\003url\"H\n\024LocalizedMessageInfo\022" + - "\026\n\006locale\030\001 \001(\tR\006locale\022\030\n\007message\030\002 \001(\t" + - "R\007message\"\210\001\n\rToolErrorInfo\022!\n\014execution" + - "_id\030\001 \001(\tR\013executionId\022,\n\022tool_error_mes" + - "sage\030\002 \001(\tR\020toolErrorMessage\022&\n\017tool_err" + - "or_code\030\003 \001(\tR\rtoolErrorCodeB\353\001\n(com.sca" + - "lekit.grpc.scalekit.v1.errdetailsB\017Errde" + - "tailsProtoP\001Z4github.com/scalekit-inc/sc" + - "alekit/pkg/grpc/errdetails\242\002\003SVE\252\002\026Scale" + - "kit.V1.Errdetails\312\002\026Scalekit\\V1\\Errdetai" + - "ls\342\002\"Scalekit\\V1\\Errdetails\\GPBMetadata\352" + - "\002\030Scalekit::V1::Errdetailsb\006proto3" + "o\022\026scalekit.v1.errdetails\032\034google/api/an" + + "notations.proto\032\036google/protobuf/duratio" + + "n.proto\032\033google/protobuf/empty.proto\032.pr" + + "otoc-gen-openapiv2/options/annotations.p" + + "roto\"\376\005\n\tErrorInfo\022\035\n\nerror_code\030\001 \001(\tR\t" + + "errorCode\022E\n\ndebug_info\030\002 \001(\0132!.scalekit" + + ".v1.errdetails.DebugInfoH\000R\tdebugInfo\210\001\001" + + "\022B\n\thelp_info\030\003 \001(\0132 .scalekit.v1.errdet" + + "ails.HelpInfoH\001R\010helpInfo\210\001\001\022g\n\026localize" + + "d_message_info\030\004 \001(\0132,.scalekit.v1.errde" + + "tails.LocalizedMessageInfoH\002R\024localizedM" + + "essageInfo\210\001\001\022N\n\rresource_info\030\005 \001(\0132$.s" + + "calekit.v1.errdetails.ResourceInfoH\003R\014re" + + "sourceInfo\210\001\001\022K\n\014request_info\030\006 \001(\0132#.sc" + + "alekit.v1.errdetails.RequestInfoH\004R\013requ" + + "estInfo\210\001\001\022d\n\025validation_error_info\030\010 \001(" + + "\0132+.scalekit.v1.errdetails.ValidationErr" + + "orInfoH\005R\023validationErrorInfo\210\001\001\022R\n\017tool" + + "_error_info\030\t \001(\0132%.scalekit.v1.errdetai" + + "ls.ToolErrorInfoH\006R\rtoolErrorInfo\210\001\001B\r\n\013" + + "_debug_infoB\014\n\n_help_infoB\031\n\027_localized_" + + "message_infoB\020\n\016_resource_infoB\017\n\r_reque" + + "st_infoB\030\n\026_validation_error_infoB\022\n\020_to" + + "ol_error_info\"H\n\tDebugInfo\022#\n\rstack_entr" + + "ies\030\001 \003(\tR\014stackEntries\022\026\n\006detail\030\002 \001(\tR" + + "\006detail\"\346\001\n\023ValidationErrorInfo\022e\n\020field" + + "_violations\030\001 \003(\0132:.scalekit.v1.errdetai" + + "ls.ValidationErrorInfo.FieldViolationR\017f" + + "ieldViolations\032h\n\016FieldViolation\022\024\n\005fiel" + + "d\030\001 \001(\tR\005field\022 \n\013description\030\002 \001(\tR\013des" + + "cription\022\036\n\nconstraint\030\003 \001(\tR\nconstraint" + + "\"O\n\013RequestInfo\022\035\n\nrequest_id\030\001 \001(\tR\treq" + + "uestId\022!\n\014serving_data\030\002 \001(\tR\013servingDat" + + "a\"\270\001\n\014ResourceInfo\022#\n\rresource_name\030\002 \001(" + + "\tR\014resourceName\022\024\n\005owner\030\003 \001(\tR\005owner\022 \n" + + "\013description\030\004 \001(\tR\013description\0221\n\024requi" + + "red_permissions\030\005 \003(\tR\023requiredPermissio" + + "ns\022\022\n\004user\030\006 \001(\tR\004userJ\004\010\001\020\002\"\203\001\n\010HelpInf" + + "o\022;\n\005links\030\001 \003(\0132%.scalekit.v1.errdetail" + + "s.HelpInfo.LinkR\005links\032:\n\004Link\022 \n\013descri" + + "ption\030\001 \001(\tR\013description\022\020\n\003url\030\002 \001(\tR\003u" + + "rl\"H\n\024LocalizedMessageInfo\022\026\n\006locale\030\001 \001" + + "(\tR\006locale\022\030\n\007message\030\002 \001(\tR\007message\"\210\001\n" + + "\rToolErrorInfo\022!\n\014execution_id\030\001 \001(\tR\013ex" + + "ecutionId\022,\n\022tool_error_message\030\002 \001(\tR\020t" + + "oolErrorMessage\022&\n\017tool_error_code\030\003 \001(\t" + + "R\rtoolErrorCode2\226\001\n\005Dummy\022\214\001\n\014DummyServi" + + "ce\022\026.google.protobuf.Empty\032!.scalekit.v1" + + ".errdetails.ErrorInfo\"A\222A0J.\n\003200\022\'\022%\n#\032" + + "!.scalekit.v1.errdetails.ErrorInfo\202\323\344\223\002\010" + + "\022\006/dummyB\353\001\n(com.scalekit.grpc.scalekit." + + "v1.errdetailsB\017ErrdetailsProtoP\001Z4github" + + ".com/scalekit-inc/scalekit/pkg/grpc/errd" + + "etails\242\002\003SVE\252\002\026Scalekit.V1.Errdetails\312\002\026" + + "Scalekit\\V1\\Errdetails\342\002\"Scalekit\\V1\\Err" + + "details\\GPBMetadata\352\002\030Scalekit::V1::Errd" + + "etailsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { + com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(), com.google.protobuf.DurationProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(), }); internal_static_scalekit_v1_errdetails_ErrorInfo_descriptor = getDescriptor().getMessageTypes().get(0); @@ -191,7 +201,16 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_errdetails_ToolErrorInfo_descriptor, new java.lang.String[] { "ExecutionId", "ToolErrorMessage", "ToolErrorCode", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.scalekit.grpc.google.api.AnnotationsProto.http); + registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Operation); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(); com.google.protobuf.DurationProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/HelpInfo.java b/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/HelpInfo.java index 318db490..397bd06b 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/HelpInfo.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/HelpInfo.java @@ -5,6 +5,13 @@ package com.scalekit.grpc.scalekit.v1.errdetails; /** + *
+ * HelpInfo provides documentation links attached to an error response.
+ * When present in ErrorInfo, clients should surface these links to help
+ * developers resolve the error. For example, a missing required field error
+ * may include a link to the relevant guide.
+ * 
+ * * Protobuf type {@code scalekit.v1.errdetails.HelpInfo} */ public final class HelpInfo extends @@ -45,11 +52,19 @@ public interface LinkOrBuilder extends com.google.protobuf.MessageOrBuilder { /** + *
+     * Human-readable label for the link (e.g. "User verification flow").
+     * 
+ * * string description = 1 [json_name = "description"]; * @return The description. */ java.lang.String getDescription(); /** + *
+     * Human-readable label for the link (e.g. "User verification flow").
+     * 
+ * * string description = 1 [json_name = "description"]; * @return The bytes for description. */ @@ -57,11 +72,19 @@ public interface LinkOrBuilder extends getDescriptionBytes(); /** + *
+     * Absolute URL to the documentation page (e.g. "https://docs.scalekit.com/...").
+     * 
+ * * string url = 2 [json_name = "url"]; * @return The url. */ java.lang.String getUrl(); /** + *
+     * Absolute URL to the documentation page (e.g. "https://docs.scalekit.com/...").
+     * 
+ * * string url = 2 [json_name = "url"]; * @return The bytes for url. */ @@ -69,6 +92,10 @@ public interface LinkOrBuilder extends getUrlBytes(); } /** + *
+   * A documentation or reference link.
+   * 
+ * * Protobuf type {@code scalekit.v1.errdetails.HelpInfo.Link} */ public static final class Link extends @@ -109,6 +136,10 @@ protected java.lang.Object newInstance( @SuppressWarnings("serial") private volatile java.lang.Object description_ = ""; /** + *
+     * Human-readable label for the link (e.g. "User verification flow").
+     * 
+ * * string description = 1 [json_name = "description"]; * @return The description. */ @@ -126,6 +157,10 @@ public java.lang.String getDescription() { } } /** + *
+     * Human-readable label for the link (e.g. "User verification flow").
+     * 
+ * * string description = 1 [json_name = "description"]; * @return The bytes for description. */ @@ -148,6 +183,10 @@ public java.lang.String getDescription() { @SuppressWarnings("serial") private volatile java.lang.Object url_ = ""; /** + *
+     * Absolute URL to the documentation page (e.g. "https://docs.scalekit.com/...").
+     * 
+ * * string url = 2 [json_name = "url"]; * @return The url. */ @@ -165,6 +204,10 @@ public java.lang.String getUrl() { } } /** + *
+     * Absolute URL to the documentation page (e.g. "https://docs.scalekit.com/...").
+     * 
+ * * string url = 2 [json_name = "url"]; * @return The bytes for url. */ @@ -350,6 +393,10 @@ protected Builder newBuilderForType( return builder; } /** + *
+     * A documentation or reference link.
+     * 
+ * * Protobuf type {@code scalekit.v1.errdetails.HelpInfo.Link} */ public static final class Builder extends @@ -535,6 +582,10 @@ public Builder mergeFrom( private java.lang.Object description_ = ""; /** + *
+       * Human-readable label for the link (e.g. "User verification flow").
+       * 
+ * * string description = 1 [json_name = "description"]; * @return The description. */ @@ -551,6 +602,10 @@ public java.lang.String getDescription() { } } /** + *
+       * Human-readable label for the link (e.g. "User verification flow").
+       * 
+ * * string description = 1 [json_name = "description"]; * @return The bytes for description. */ @@ -568,6 +623,10 @@ public java.lang.String getDescription() { } } /** + *
+       * Human-readable label for the link (e.g. "User verification flow").
+       * 
+ * * string description = 1 [json_name = "description"]; * @param value The description to set. * @return This builder for chaining. @@ -581,6 +640,10 @@ public Builder setDescription( return this; } /** + *
+       * Human-readable label for the link (e.g. "User verification flow").
+       * 
+ * * string description = 1 [json_name = "description"]; * @return This builder for chaining. */ @@ -591,6 +654,10 @@ public Builder clearDescription() { return this; } /** + *
+       * Human-readable label for the link (e.g. "User verification flow").
+       * 
+ * * string description = 1 [json_name = "description"]; * @param value The bytes for description to set. * @return This builder for chaining. @@ -607,6 +674,10 @@ public Builder setDescriptionBytes( private java.lang.Object url_ = ""; /** + *
+       * Absolute URL to the documentation page (e.g. "https://docs.scalekit.com/...").
+       * 
+ * * string url = 2 [json_name = "url"]; * @return The url. */ @@ -623,6 +694,10 @@ public java.lang.String getUrl() { } } /** + *
+       * Absolute URL to the documentation page (e.g. "https://docs.scalekit.com/...").
+       * 
+ * * string url = 2 [json_name = "url"]; * @return The bytes for url. */ @@ -640,6 +715,10 @@ public java.lang.String getUrl() { } } /** + *
+       * Absolute URL to the documentation page (e.g. "https://docs.scalekit.com/...").
+       * 
+ * * string url = 2 [json_name = "url"]; * @param value The url to set. * @return This builder for chaining. @@ -653,6 +732,10 @@ public Builder setUrl( return this; } /** + *
+       * Absolute URL to the documentation page (e.g. "https://docs.scalekit.com/...").
+       * 
+ * * string url = 2 [json_name = "url"]; * @return This builder for chaining. */ @@ -663,6 +746,10 @@ public Builder clearUrl() { return this; } /** + *
+       * Absolute URL to the documentation page (e.g. "https://docs.scalekit.com/...").
+       * 
+ * * string url = 2 [json_name = "url"]; * @param value The bytes for url to set. * @return This builder for chaining. @@ -744,6 +831,10 @@ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link getDefaultInstance @SuppressWarnings("serial") private java.util.List links_; /** + *
+   * One or more links relevant to resolving the error.
+   * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ @java.lang.Override @@ -751,6 +842,10 @@ public java.util.List ge return links_; } /** + *
+   * One or more links relevant to resolving the error.
+   * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ @java.lang.Override @@ -759,6 +854,10 @@ public java.util.List ge return links_; } /** + *
+   * One or more links relevant to resolving the error.
+   * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ @java.lang.Override @@ -766,6 +865,10 @@ public int getLinksCount() { return links_.size(); } /** + *
+   * One or more links relevant to resolving the error.
+   * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ @java.lang.Override @@ -773,6 +876,10 @@ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link getLinks(int index return links_.get(index); } /** + *
+   * One or more links relevant to resolving the error.
+   * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ @java.lang.Override @@ -941,6 +1048,13 @@ protected Builder newBuilderForType( return builder; } /** + *
+   * HelpInfo provides documentation links attached to an error response.
+   * When present in ErrorInfo, clients should surface these links to help
+   * developers resolve the error. For example, a missing required field error
+   * may include a link to the relevant guide.
+   * 
+ * * Protobuf type {@code scalekit.v1.errdetails.HelpInfo} */ public static final class Builder extends @@ -1168,6 +1282,10 @@ private void ensureLinksIsMutable() { com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link, com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link.Builder, com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.LinkOrBuilder> linksBuilder_; /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public java.util.List getLinksList() { @@ -1178,6 +1296,10 @@ public java.util.List ge } } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public int getLinksCount() { @@ -1188,6 +1310,10 @@ public int getLinksCount() { } } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link getLinks(int index) { @@ -1198,6 +1324,10 @@ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link getLinks(int index } } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public Builder setLinks( @@ -1215,6 +1345,10 @@ public Builder setLinks( return this; } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public Builder setLinks( @@ -1229,6 +1363,10 @@ public Builder setLinks( return this; } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public Builder addLinks(com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link value) { @@ -1245,6 +1383,10 @@ public Builder addLinks(com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link v return this; } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public Builder addLinks( @@ -1262,6 +1404,10 @@ public Builder addLinks( return this; } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public Builder addLinks( @@ -1276,6 +1422,10 @@ public Builder addLinks( return this; } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public Builder addLinks( @@ -1290,6 +1440,10 @@ public Builder addLinks( return this; } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public Builder addAllLinks( @@ -1305,6 +1459,10 @@ public Builder addAllLinks( return this; } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public Builder clearLinks() { @@ -1318,6 +1476,10 @@ public Builder clearLinks() { return this; } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public Builder removeLinks(int index) { @@ -1331,6 +1493,10 @@ public Builder removeLinks(int index) { return this; } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link.Builder getLinksBuilder( @@ -1338,6 +1504,10 @@ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link.Builder getLinksBu return getLinksFieldBuilder().getBuilder(index); } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.LinkOrBuilder getLinksOrBuilder( @@ -1348,6 +1518,10 @@ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.LinkOrBuilder getLinksO } } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public java.util.List @@ -1359,6 +1533,10 @@ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.LinkOrBuilder getLinksO } } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link.Builder addLinksBuilder() { @@ -1366,6 +1544,10 @@ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link.Builder addLinksBu com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link.getDefaultInstance()); } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link.Builder addLinksBuilder( @@ -1374,6 +1556,10 @@ public com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link.Builder addLinksBu index, com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link.getDefaultInstance()); } /** + *
+     * One or more links relevant to resolving the error.
+     * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ public java.util.List diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/HelpInfoOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/HelpInfoOrBuilder.java index 275bf6cd..f0a15448 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/HelpInfoOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/errdetails/HelpInfoOrBuilder.java @@ -9,24 +9,44 @@ public interface HelpInfoOrBuilder extends com.google.protobuf.MessageOrBuilder { /** + *
+   * One or more links relevant to resolving the error.
+   * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ java.util.List getLinksList(); /** + *
+   * One or more links relevant to resolving the error.
+   * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.Link getLinks(int index); /** + *
+   * One or more links relevant to resolving the error.
+   * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ int getLinksCount(); /** + *
+   * One or more links relevant to resolving the error.
+   * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ java.util.List getLinksOrBuilderList(); /** + *
+   * One or more links relevant to resolving the error.
+   * 
+ * * repeated .scalekit.v1.errdetails.HelpInfo.Link links = 1 [json_name = "links"]; */ com.scalekit.grpc.scalekit.v1.errdetails.HelpInfo.LinkOrBuilder getLinksOrBuilder( diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKRequest.java new file mode 100644 index 00000000..9730967d --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKRequest.java @@ -0,0 +1,953 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * CreateDEKRequest requests creation of a new DEK
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.CreateDEKRequest} + */ +public final class CreateDEKRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.CreateDEKRequest) + CreateDEKRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateDEKRequest.newBuilder() to construct. + private CreateDEKRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateDEKRequest() { + keyType_ = 0; + provider_ = ""; + keyRef_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateDEKRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateDEKRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateDEKRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest.class, com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest.Builder.class); + } + + private int bitField0_; + public static final int KEY_TYPE_FIELD_NUMBER = 1; + private int keyType_ = 0; + /** + *
+   * Optional: key type. If BYOK or SCALEKIT_MANAGED_KEY, provider and key_ref are required.
+   * 
+ * + * optional .scalekit.v1.keys.DEKKeyType key_type = 1 [json_name = "keyType"]; + * @return Whether the keyType field is set. + */ + @java.lang.Override public boolean hasKeyType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Optional: key type. If BYOK or SCALEKIT_MANAGED_KEY, provider and key_ref are required.
+   * 
+ * + * optional .scalekit.v1.keys.DEKKeyType key_type = 1 [json_name = "keyType"]; + * @return The enum numeric value on the wire for keyType. + */ + @java.lang.Override public int getKeyTypeValue() { + return keyType_; + } + /** + *
+   * Optional: key type. If BYOK or SCALEKIT_MANAGED_KEY, provider and key_ref are required.
+   * 
+ * + * optional .scalekit.v1.keys.DEKKeyType key_type = 1 [json_name = "keyType"]; + * @return The keyType. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.keys.DEKKeyType getKeyType() { + com.scalekit.grpc.scalekit.v1.keys.DEKKeyType result = com.scalekit.grpc.scalekit.v1.keys.DEKKeyType.forNumber(keyType_); + return result == null ? com.scalekit.grpc.scalekit.v1.keys.DEKKeyType.UNRECOGNIZED : result; + } + + public static final int PROVIDER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object provider_ = ""; + /** + *
+   * KMS provider (GCP, AWS, AZURE, LOCAL). Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+   * 
+ * + * optional string provider = 2 [json_name = "provider"]; + * @return Whether the provider field is set. + */ + @java.lang.Override + public boolean hasProvider() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * KMS provider (GCP, AWS, AZURE, LOCAL). Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+   * 
+ * + * optional string provider = 2 [json_name = "provider"]; + * @return The provider. + */ + @java.lang.Override + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + 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(); + provider_ = s; + return s; + } + } + /** + *
+   * KMS provider (GCP, AWS, AZURE, LOCAL). Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+   * 
+ * + * optional string provider = 2 [json_name = "provider"]; + * @return The bytes for provider. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_REF_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object keyRef_ = ""; + /** + *
+   * KMS key URI or identifier. Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+   * 
+ * + * optional string key_ref = 3 [json_name = "keyRef"]; + * @return Whether the keyRef field is set. + */ + @java.lang.Override + public boolean hasKeyRef() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * KMS key URI or identifier. Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+   * 
+ * + * optional string key_ref = 3 [json_name = "keyRef"]; + * @return The keyRef. + */ + @java.lang.Override + public java.lang.String getKeyRef() { + java.lang.Object ref = keyRef_; + 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(); + keyRef_ = s; + return s; + } + } + /** + *
+   * KMS key URI or identifier. Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+   * 
+ * + * optional string key_ref = 3 [json_name = "keyRef"]; + * @return The bytes for keyRef. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyRefBytes() { + java.lang.Object ref = keyRef_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + keyRef_ = 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.writeEnum(1, keyType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, provider_); + } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, keyRef_); + } + 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 + .computeEnumSize(1, keyType_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, provider_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, keyRef_); + } + 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.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest other = (com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest) obj; + + if (hasKeyType() != other.hasKeyType()) return false; + if (hasKeyType()) { + if (keyType_ != other.keyType_) return false; + } + if (hasProvider() != other.hasProvider()) return false; + if (hasProvider()) { + if (!getProvider() + .equals(other.getProvider())) return false; + } + if (hasKeyRef() != other.hasKeyRef()) return false; + if (hasKeyRef()) { + if (!getKeyRef() + .equals(other.getKeyRef())) 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 (hasKeyType()) { + hash = (37 * hash) + KEY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + keyType_; + } + if (hasProvider()) { + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + } + if (hasKeyRef()) { + hash = (37 * hash) + KEY_REF_FIELD_NUMBER; + hash = (53 * hash) + getKeyRef().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateDEKRequest requests creation of a new DEK
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.CreateDEKRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.CreateDEKRequest) + com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateDEKRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateDEKRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest.class, com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + keyType_ = 0; + provider_ = ""; + keyRef_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateDEKRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest build() { + com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest result = new com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.keyType_ = keyType_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.provider_ = provider_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.keyRef_ = keyRef_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest.getDefaultInstance()) return this; + if (other.hasKeyType()) { + setKeyType(other.getKeyType()); + } + if (other.hasProvider()) { + provider_ = other.provider_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasKeyRef()) { + keyRef_ = other.keyRef_; + 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 8: { + keyType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + provider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + keyRef_ = 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 int keyType_ = 0; + /** + *
+     * Optional: key type. If BYOK or SCALEKIT_MANAGED_KEY, provider and key_ref are required.
+     * 
+ * + * optional .scalekit.v1.keys.DEKKeyType key_type = 1 [json_name = "keyType"]; + * @return Whether the keyType field is set. + */ + @java.lang.Override public boolean hasKeyType() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Optional: key type. If BYOK or SCALEKIT_MANAGED_KEY, provider and key_ref are required.
+     * 
+ * + * optional .scalekit.v1.keys.DEKKeyType key_type = 1 [json_name = "keyType"]; + * @return The enum numeric value on the wire for keyType. + */ + @java.lang.Override public int getKeyTypeValue() { + return keyType_; + } + /** + *
+     * Optional: key type. If BYOK or SCALEKIT_MANAGED_KEY, provider and key_ref are required.
+     * 
+ * + * optional .scalekit.v1.keys.DEKKeyType key_type = 1 [json_name = "keyType"]; + * @param value The enum numeric value on the wire for keyType to set. + * @return This builder for chaining. + */ + public Builder setKeyTypeValue(int value) { + keyType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Optional: key type. If BYOK or SCALEKIT_MANAGED_KEY, provider and key_ref are required.
+     * 
+ * + * optional .scalekit.v1.keys.DEKKeyType key_type = 1 [json_name = "keyType"]; + * @return The keyType. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.DEKKeyType getKeyType() { + com.scalekit.grpc.scalekit.v1.keys.DEKKeyType result = com.scalekit.grpc.scalekit.v1.keys.DEKKeyType.forNumber(keyType_); + return result == null ? com.scalekit.grpc.scalekit.v1.keys.DEKKeyType.UNRECOGNIZED : result; + } + /** + *
+     * Optional: key type. If BYOK or SCALEKIT_MANAGED_KEY, provider and key_ref are required.
+     * 
+ * + * optional .scalekit.v1.keys.DEKKeyType key_type = 1 [json_name = "keyType"]; + * @param value The keyType to set. + * @return This builder for chaining. + */ + public Builder setKeyType(com.scalekit.grpc.scalekit.v1.keys.DEKKeyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + keyType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Optional: key type. If BYOK or SCALEKIT_MANAGED_KEY, provider and key_ref are required.
+     * 
+ * + * optional .scalekit.v1.keys.DEKKeyType key_type = 1 [json_name = "keyType"]; + * @return This builder for chaining. + */ + public Builder clearKeyType() { + bitField0_ = (bitField0_ & ~0x00000001); + keyType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object provider_ = ""; + /** + *
+     * KMS provider (GCP, AWS, AZURE, LOCAL). Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+     * 
+ * + * optional string provider = 2 [json_name = "provider"]; + * @return Whether the provider field is set. + */ + public boolean hasProvider() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * KMS provider (GCP, AWS, AZURE, LOCAL). Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+     * 
+ * + * optional string provider = 2 [json_name = "provider"]; + * @return The provider. + */ + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * KMS provider (GCP, AWS, AZURE, LOCAL). Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+     * 
+ * + * optional string provider = 2 [json_name = "provider"]; + * @return The bytes for provider. + */ + public com.google.protobuf.ByteString + getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * KMS provider (GCP, AWS, AZURE, LOCAL). Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+     * 
+ * + * optional string provider = 2 [json_name = "provider"]; + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + provider_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * KMS provider (GCP, AWS, AZURE, LOCAL). Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+     * 
+ * + * optional string provider = 2 [json_name = "provider"]; + * @return This builder for chaining. + */ + public Builder clearProvider() { + provider_ = getDefaultInstance().getProvider(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * KMS provider (GCP, AWS, AZURE, LOCAL). Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+     * 
+ * + * optional string provider = 2 [json_name = "provider"]; + * @param value The bytes for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + provider_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object keyRef_ = ""; + /** + *
+     * KMS key URI or identifier. Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+     * 
+ * + * optional string key_ref = 3 [json_name = "keyRef"]; + * @return Whether the keyRef field is set. + */ + public boolean hasKeyRef() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * KMS key URI or identifier. Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+     * 
+ * + * optional string key_ref = 3 [json_name = "keyRef"]; + * @return The keyRef. + */ + public java.lang.String getKeyRef() { + java.lang.Object ref = keyRef_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyRef_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * KMS key URI or identifier. Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+     * 
+ * + * optional string key_ref = 3 [json_name = "keyRef"]; + * @return The bytes for keyRef. + */ + public com.google.protobuf.ByteString + getKeyRefBytes() { + java.lang.Object ref = keyRef_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + keyRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * KMS key URI or identifier. Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+     * 
+ * + * optional string key_ref = 3 [json_name = "keyRef"]; + * @param value The keyRef to set. + * @return This builder for chaining. + */ + public Builder setKeyRef( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + keyRef_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * KMS key URI or identifier. Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+     * 
+ * + * optional string key_ref = 3 [json_name = "keyRef"]; + * @return This builder for chaining. + */ + public Builder clearKeyRef() { + keyRef_ = getDefaultInstance().getKeyRef(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * KMS key URI or identifier. Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+     * 
+ * + * optional string key_ref = 3 [json_name = "keyRef"]; + * @param value The bytes for keyRef to set. + * @return This builder for chaining. + */ + public Builder setKeyRefBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + keyRef_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.CreateDEKRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.CreateDEKRequest) + private static final com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDEKRequest 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.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKRequestOrBuilder.java new file mode 100644 index 00000000..ca67fbdd --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKRequestOrBuilder.java @@ -0,0 +1,96 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface CreateDEKRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.CreateDEKRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional: key type. If BYOK or SCALEKIT_MANAGED_KEY, provider and key_ref are required.
+   * 
+ * + * optional .scalekit.v1.keys.DEKKeyType key_type = 1 [json_name = "keyType"]; + * @return Whether the keyType field is set. + */ + boolean hasKeyType(); + /** + *
+   * Optional: key type. If BYOK or SCALEKIT_MANAGED_KEY, provider and key_ref are required.
+   * 
+ * + * optional .scalekit.v1.keys.DEKKeyType key_type = 1 [json_name = "keyType"]; + * @return The enum numeric value on the wire for keyType. + */ + int getKeyTypeValue(); + /** + *
+   * Optional: key type. If BYOK or SCALEKIT_MANAGED_KEY, provider and key_ref are required.
+   * 
+ * + * optional .scalekit.v1.keys.DEKKeyType key_type = 1 [json_name = "keyType"]; + * @return The keyType. + */ + com.scalekit.grpc.scalekit.v1.keys.DEKKeyType getKeyType(); + + /** + *
+   * KMS provider (GCP, AWS, AZURE, LOCAL). Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+   * 
+ * + * optional string provider = 2 [json_name = "provider"]; + * @return Whether the provider field is set. + */ + boolean hasProvider(); + /** + *
+   * KMS provider (GCP, AWS, AZURE, LOCAL). Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+   * 
+ * + * optional string provider = 2 [json_name = "provider"]; + * @return The provider. + */ + java.lang.String getProvider(); + /** + *
+   * KMS provider (GCP, AWS, AZURE, LOCAL). Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+   * 
+ * + * optional string provider = 2 [json_name = "provider"]; + * @return The bytes for provider. + */ + com.google.protobuf.ByteString + getProviderBytes(); + + /** + *
+   * KMS key URI or identifier. Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+   * 
+ * + * optional string key_ref = 3 [json_name = "keyRef"]; + * @return Whether the keyRef field is set. + */ + boolean hasKeyRef(); + /** + *
+   * KMS key URI or identifier. Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+   * 
+ * + * optional string key_ref = 3 [json_name = "keyRef"]; + * @return The keyRef. + */ + java.lang.String getKeyRef(); + /** + *
+   * KMS key URI or identifier. Required when key_type is BYOK or SCALEKIT_MANAGED_KEY.
+   * 
+ * + * optional string key_ref = 3 [json_name = "keyRef"]; + * @return The bytes for keyRef. + */ + com.google.protobuf.ByteString + getKeyRefBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKResponse.java new file mode 100644 index 00000000..dd3642be --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * CreateDEKResponse returns the created DEK information
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.CreateDEKResponse} + */ +public final class CreateDEKResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.CreateDEKResponse) + CreateDEKResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateDEKResponse.newBuilder() to construct. + private CreateDEKResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateDEKResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateDEKResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateDEKResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateDEKResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse.class, com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse.Builder.class); + } + + private int bitField0_; + public static final int DEK_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey dek_; + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return Whether the dek field is set. + */ + @java.lang.Override + public boolean hasDek() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return The dek. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDek() { + return dek_ == null ? com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance() : dek_; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder getDekOrBuilder() { + return dek_ == null ? com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance() : dek_; + } + + 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, getDek()); + } + 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, getDek()); + } + 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.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse other = (com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse) obj; + + if (hasDek() != other.hasDek()) return false; + if (hasDek()) { + if (!getDek() + .equals(other.getDek())) 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 (hasDek()) { + hash = (37 * hash) + DEK_FIELD_NUMBER; + hash = (53 * hash) + getDek().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateDEKResponse returns the created DEK information
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.CreateDEKResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.CreateDEKResponse) + com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateDEKResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateDEKResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse.class, com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDekFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dek_ = null; + if (dekBuilder_ != null) { + dekBuilder_.dispose(); + dekBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateDEKResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse build() { + com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse result = new com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dek_ = dekBuilder_ == null + ? dek_ + : dekBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse.getDefaultInstance()) return this; + if (other.hasDek()) { + mergeDek(other.getDek()); + } + 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( + getDekFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey dek_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder> dekBuilder_; + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return Whether the dek field is set. + */ + public boolean hasDek() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return The dek. + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDek() { + if (dekBuilder_ == null) { + return dek_ == null ? com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance() : dek_; + } else { + return dekBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public Builder setDek(com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey value) { + if (dekBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dek_ = value; + } else { + dekBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public Builder setDek( + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder builderForValue) { + if (dekBuilder_ == null) { + dek_ = builderForValue.build(); + } else { + dekBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public Builder mergeDek(com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey value) { + if (dekBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + dek_ != null && + dek_ != com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance()) { + getDekBuilder().mergeFrom(value); + } else { + dek_ = value; + } + } else { + dekBuilder_.mergeFrom(value); + } + if (dek_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public Builder clearDek() { + bitField0_ = (bitField0_ & ~0x00000001); + dek_ = null; + if (dekBuilder_ != null) { + dekBuilder_.dispose(); + dekBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder getDekBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDekFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder getDekOrBuilder() { + if (dekBuilder_ != null) { + return dekBuilder_.getMessageOrBuilder(); + } else { + return dek_ == null ? + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance() : dek_; + } + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder> + getDekFieldBuilder() { + if (dekBuilder_ == null) { + dekBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder>( + getDek(), + getParentForChildren(), + isClean()); + dek_ = null; + } + return dekBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.CreateDEKResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.CreateDEKResponse) + private static final com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDEKResponse 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.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKResponseOrBuilder.java new file mode 100644 index 00000000..01dc8140 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateDEKResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface CreateDEKResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.CreateDEKResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return Whether the dek field is set. + */ + boolean hasDek(); + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return The dek. + */ + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDek(); + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder getDekOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyRequest.java new file mode 100644 index 00000000..cdbc1184 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyRequest.java @@ -0,0 +1,857 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * CreateMasterKeyRequest requests creation of a new master key
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.CreateMasterKeyRequest} + */ +public final class CreateMasterKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.CreateMasterKeyRequest) + CreateMasterKeyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateMasterKeyRequest.newBuilder() to construct. + private CreateMasterKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateMasterKeyRequest() { + provider_ = ""; + keyRef_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateMasterKeyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateMasterKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateMasterKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest.class, com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest.Builder.class); + } + + private int bitField0_; + public static final int PROVIDER_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object provider_ = ""; + /** + *
+   * KMS provider (GCP, AWS, AZURE, LOCAL)
+   * 
+ * + * string provider = 1 [json_name = "provider", (.buf.validate.field) = { ... } + * @return The provider. + */ + @java.lang.Override + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + 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(); + provider_ = s; + return s; + } + } + /** + *
+   * KMS provider (GCP, AWS, AZURE, LOCAL)
+   * 
+ * + * string provider = 1 [json_name = "provider", (.buf.validate.field) = { ... } + * @return The bytes for provider. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_REF_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object keyRef_ = ""; + /** + *
+   * Key reference (KMS key URI for cloud providers, identifier for LOCAL)
+   * 
+ * + * string key_ref = 2 [json_name = "keyRef", (.buf.validate.field) = { ... } + * @return The keyRef. + */ + @java.lang.Override + public java.lang.String getKeyRef() { + java.lang.Object ref = keyRef_; + 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(); + keyRef_ = s; + return s; + } + } + /** + *
+   * Key reference (KMS key URI for cloud providers, identifier for LOCAL)
+   * 
+ * + * string key_ref = 2 [json_name = "keyRef", (.buf.validate.field) = { ... } + * @return The bytes for keyRef. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyRefBytes() { + java.lang.Object ref = keyRef_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + keyRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 3; + private int version_ = 0; + /** + *
+   * Optional: specify a custom version number (auto-incremented if not provided)
+   * 
+ * + * optional int32 version = 3 [json_name = "version"]; + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Optional: specify a custom version number (auto-incremented if not provided)
+   * 
+ * + * optional int32 version = 3 [json_name = "version"]; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, provider_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyRef_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, keyRef_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeInt32(3, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, provider_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyRef_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, keyRef_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, version_); + } + 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.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest other = (com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest) obj; + + if (!getProvider() + .equals(other.getProvider())) return false; + if (!getKeyRef() + .equals(other.getKeyRef())) return false; + if (hasVersion() != other.hasVersion()) return false; + if (hasVersion()) { + if (getVersion() + != other.getVersion()) 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) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + hash = (37 * hash) + KEY_REF_FIELD_NUMBER; + hash = (53 * hash) + getKeyRef().hashCode(); + if (hasVersion()) { + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateMasterKeyRequest requests creation of a new master key
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.CreateMasterKeyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.CreateMasterKeyRequest) + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateMasterKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateMasterKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest.class, com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + provider_ = ""; + keyRef_ = ""; + version_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateMasterKeyRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest build() { + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest result = new com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.provider_ = provider_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.keyRef_ = keyRef_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.version_ = version_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest.getDefaultInstance()) return this; + if (!other.getProvider().isEmpty()) { + provider_ = other.provider_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getKeyRef().isEmpty()) { + keyRef_ = other.keyRef_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasVersion()) { + setVersion(other.getVersion()); + } + 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: { + provider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + keyRef_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + version_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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 provider_ = ""; + /** + *
+     * KMS provider (GCP, AWS, AZURE, LOCAL)
+     * 
+ * + * string provider = 1 [json_name = "provider", (.buf.validate.field) = { ... } + * @return The provider. + */ + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * KMS provider (GCP, AWS, AZURE, LOCAL)
+     * 
+ * + * string provider = 1 [json_name = "provider", (.buf.validate.field) = { ... } + * @return The bytes for provider. + */ + public com.google.protobuf.ByteString + getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * KMS provider (GCP, AWS, AZURE, LOCAL)
+     * 
+ * + * string provider = 1 [json_name = "provider", (.buf.validate.field) = { ... } + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + provider_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * KMS provider (GCP, AWS, AZURE, LOCAL)
+     * 
+ * + * string provider = 1 [json_name = "provider", (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearProvider() { + provider_ = getDefaultInstance().getProvider(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * KMS provider (GCP, AWS, AZURE, LOCAL)
+     * 
+ * + * string provider = 1 [json_name = "provider", (.buf.validate.field) = { ... } + * @param value The bytes for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + provider_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object keyRef_ = ""; + /** + *
+     * Key reference (KMS key URI for cloud providers, identifier for LOCAL)
+     * 
+ * + * string key_ref = 2 [json_name = "keyRef", (.buf.validate.field) = { ... } + * @return The keyRef. + */ + public java.lang.String getKeyRef() { + java.lang.Object ref = keyRef_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyRef_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Key reference (KMS key URI for cloud providers, identifier for LOCAL)
+     * 
+ * + * string key_ref = 2 [json_name = "keyRef", (.buf.validate.field) = { ... } + * @return The bytes for keyRef. + */ + public com.google.protobuf.ByteString + getKeyRefBytes() { + java.lang.Object ref = keyRef_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + keyRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Key reference (KMS key URI for cloud providers, identifier for LOCAL)
+     * 
+ * + * string key_ref = 2 [json_name = "keyRef", (.buf.validate.field) = { ... } + * @param value The keyRef to set. + * @return This builder for chaining. + */ + public Builder setKeyRef( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + keyRef_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Key reference (KMS key URI for cloud providers, identifier for LOCAL)
+     * 
+ * + * string key_ref = 2 [json_name = "keyRef", (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearKeyRef() { + keyRef_ = getDefaultInstance().getKeyRef(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Key reference (KMS key URI for cloud providers, identifier for LOCAL)
+     * 
+ * + * string key_ref = 2 [json_name = "keyRef", (.buf.validate.field) = { ... } + * @param value The bytes for keyRef to set. + * @return This builder for chaining. + */ + public Builder setKeyRefBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + keyRef_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int version_ ; + /** + *
+     * Optional: specify a custom version number (auto-incremented if not provided)
+     * 
+ * + * optional int32 version = 3 [json_name = "version"]; + * @return Whether the version field is set. + */ + @java.lang.Override + public boolean hasVersion() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Optional: specify a custom version number (auto-incremented if not provided)
+     * 
+ * + * optional int32 version = 3 [json_name = "version"]; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + /** + *
+     * Optional: specify a custom version number (auto-incremented if not provided)
+     * 
+ * + * optional int32 version = 3 [json_name = "version"]; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Optional: specify a custom version number (auto-incremented if not provided)
+     * 
+ * + * optional int32 version = 3 [json_name = "version"]; + * @return This builder for chaining. + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000004); + version_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.CreateMasterKeyRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.CreateMasterKeyRequest) + private static final com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMasterKeyRequest 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.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyRequestOrBuilder.java new file mode 100644 index 00000000..8525812d --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyRequestOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface CreateMasterKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.CreateMasterKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * KMS provider (GCP, AWS, AZURE, LOCAL)
+   * 
+ * + * string provider = 1 [json_name = "provider", (.buf.validate.field) = { ... } + * @return The provider. + */ + java.lang.String getProvider(); + /** + *
+   * KMS provider (GCP, AWS, AZURE, LOCAL)
+   * 
+ * + * string provider = 1 [json_name = "provider", (.buf.validate.field) = { ... } + * @return The bytes for provider. + */ + com.google.protobuf.ByteString + getProviderBytes(); + + /** + *
+   * Key reference (KMS key URI for cloud providers, identifier for LOCAL)
+   * 
+ * + * string key_ref = 2 [json_name = "keyRef", (.buf.validate.field) = { ... } + * @return The keyRef. + */ + java.lang.String getKeyRef(); + /** + *
+   * Key reference (KMS key URI for cloud providers, identifier for LOCAL)
+   * 
+ * + * string key_ref = 2 [json_name = "keyRef", (.buf.validate.field) = { ... } + * @return The bytes for keyRef. + */ + com.google.protobuf.ByteString + getKeyRefBytes(); + + /** + *
+   * Optional: specify a custom version number (auto-incremented if not provided)
+   * 
+ * + * optional int32 version = 3 [json_name = "version"]; + * @return Whether the version field is set. + */ + boolean hasVersion(); + /** + *
+   * Optional: specify a custom version number (auto-incremented if not provided)
+   * 
+ * + * optional int32 version = 3 [json_name = "version"]; + * @return The version. + */ + int getVersion(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyResponse.java new file mode 100644 index 00000000..e6074e19 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * CreateMasterKeyResponse returns the created master key information
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.CreateMasterKeyResponse} + */ +public final class CreateMasterKeyResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.CreateMasterKeyResponse) + CreateMasterKeyResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateMasterKeyResponse.newBuilder() to construct. + private CreateMasterKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateMasterKeyResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateMasterKeyResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateMasterKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateMasterKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse.class, com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse.Builder.class); + } + + private int bitField0_; + public static final int MASTER_KEY_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.keys.MasterKey masterKey_; + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + * @return Whether the masterKey field is set. + */ + @java.lang.Override + public boolean hasMasterKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + * @return The masterKey. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.MasterKey getMasterKey() { + return masterKey_ == null ? com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance() : masterKey_; + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder getMasterKeyOrBuilder() { + return masterKey_ == null ? com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance() : masterKey_; + } + + 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, getMasterKey()); + } + 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, getMasterKey()); + } + 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.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse other = (com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse) obj; + + if (hasMasterKey() != other.hasMasterKey()) return false; + if (hasMasterKey()) { + if (!getMasterKey() + .equals(other.getMasterKey())) 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 (hasMasterKey()) { + hash = (37 * hash) + MASTER_KEY_FIELD_NUMBER; + hash = (53 * hash) + getMasterKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * CreateMasterKeyResponse returns the created master key information
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.CreateMasterKeyResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.CreateMasterKeyResponse) + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateMasterKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateMasterKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse.class, com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMasterKeyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + masterKey_ = null; + if (masterKeyBuilder_ != null) { + masterKeyBuilder_.dispose(); + masterKeyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_CreateMasterKeyResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse build() { + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse result = new com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.masterKey_ = masterKeyBuilder_ == null + ? masterKey_ + : masterKeyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse.getDefaultInstance()) return this; + if (other.hasMasterKey()) { + mergeMasterKey(other.getMasterKey()); + } + 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( + getMasterKeyFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.keys.MasterKey masterKey_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.MasterKey, com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder, com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder> masterKeyBuilder_; + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + * @return Whether the masterKey field is set. + */ + public boolean hasMasterKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + * @return The masterKey. + */ + public com.scalekit.grpc.scalekit.v1.keys.MasterKey getMasterKey() { + if (masterKeyBuilder_ == null) { + return masterKey_ == null ? com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance() : masterKey_; + } else { + return masterKeyBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + public Builder setMasterKey(com.scalekit.grpc.scalekit.v1.keys.MasterKey value) { + if (masterKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterKey_ = value; + } else { + masterKeyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + public Builder setMasterKey( + com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder builderForValue) { + if (masterKeyBuilder_ == null) { + masterKey_ = builderForValue.build(); + } else { + masterKeyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + public Builder mergeMasterKey(com.scalekit.grpc.scalekit.v1.keys.MasterKey value) { + if (masterKeyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + masterKey_ != null && + masterKey_ != com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance()) { + getMasterKeyBuilder().mergeFrom(value); + } else { + masterKey_ = value; + } + } else { + masterKeyBuilder_.mergeFrom(value); + } + if (masterKey_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + public Builder clearMasterKey() { + bitField0_ = (bitField0_ & ~0x00000001); + masterKey_ = null; + if (masterKeyBuilder_ != null) { + masterKeyBuilder_.dispose(); + masterKeyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder getMasterKeyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMasterKeyFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder getMasterKeyOrBuilder() { + if (masterKeyBuilder_ != null) { + return masterKeyBuilder_.getMessageOrBuilder(); + } else { + return masterKey_ == null ? + com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance() : masterKey_; + } + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.MasterKey, com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder, com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder> + getMasterKeyFieldBuilder() { + if (masterKeyBuilder_ == null) { + masterKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.MasterKey, com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder, com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder>( + getMasterKey(), + getParentForChildren(), + isClean()); + masterKey_ = null; + } + return masterKeyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.CreateMasterKeyResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.CreateMasterKeyResponse) + private static final com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMasterKeyResponse 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.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyResponseOrBuilder.java new file mode 100644 index 00000000..ded80d5b --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/CreateMasterKeyResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface CreateMasterKeyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.CreateMasterKeyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + * @return Whether the masterKey field is set. + */ + boolean hasMasterKey(); + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + * @return The masterKey. + */ + com.scalekit.grpc.scalekit.v1.keys.MasterKey getMasterKey(); + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder getMasterKeyOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DEKKeyType.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DEKKeyType.java new file mode 100644 index 00000000..f4bdf6e1 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DEKKeyType.java @@ -0,0 +1,160 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * DEKKeyType represents the type of Data Encryption Key
+ * 
+ * + * Protobuf enum {@code scalekit.v1.keys.DEKKeyType} + */ +public enum DEKKeyType + implements com.google.protobuf.ProtocolMessageEnum { + /** + *
+   * Default: ENVIRONMENT_KEY (envelope encryption)
+   * 
+ * + * DEK_KEY_TYPE_UNSPECIFIED = 0; + */ + DEK_KEY_TYPE_UNSPECIFIED(0), + /** + * ENVIRONMENT_KEY = 1; + */ + ENVIRONMENT_KEY(1), + /** + *
+   * Bring Your Own Key - key_ref points to customer KMS
+   * 
+ * + * BYOK = 2; + */ + BYOK(2), + /** + *
+   * Scalekit-managed KMS key
+   * 
+ * + * SCALEKIT_MANAGED_KEY = 3; + */ + SCALEKIT_MANAGED_KEY(3), + UNRECOGNIZED(-1), + ; + + /** + *
+   * Default: ENVIRONMENT_KEY (envelope encryption)
+   * 
+ * + * DEK_KEY_TYPE_UNSPECIFIED = 0; + */ + public static final int DEK_KEY_TYPE_UNSPECIFIED_VALUE = 0; + /** + * ENVIRONMENT_KEY = 1; + */ + public static final int ENVIRONMENT_KEY_VALUE = 1; + /** + *
+   * Bring Your Own Key - key_ref points to customer KMS
+   * 
+ * + * BYOK = 2; + */ + public static final int BYOK_VALUE = 2; + /** + *
+   * Scalekit-managed KMS key
+   * 
+ * + * SCALEKIT_MANAGED_KEY = 3; + */ + public static final int SCALEKIT_MANAGED_KEY_VALUE = 3; + + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DEKKeyType 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 DEKKeyType forNumber(int value) { + switch (value) { + case 0: return DEK_KEY_TYPE_UNSPECIFIED; + case 1: return ENVIRONMENT_KEY; + case 2: return BYOK; + case 3: return SCALEKIT_MANAGED_KEY; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + DEKKeyType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public DEKKeyType findValueByNumber(int number) { + return DEKKeyType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.getDescriptor().getEnumTypes().get(0); + } + + private static final DEKKeyType[] VALUES = values(); + + public static DEKKeyType 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 DEKKeyType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:scalekit.v1.keys.DEKKeyType) +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DeleteDEKRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DeleteDEKRequest.java new file mode 100644 index 00000000..5ef759ea --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DeleteDEKRequest.java @@ -0,0 +1,496 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * DeleteDEKRequest requests deletion of a DEK version
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.DeleteDEKRequest} + */ +public final class DeleteDEKRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.DeleteDEKRequest) + DeleteDEKRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteDEKRequest.newBuilder() to construct. + private DeleteDEKRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteDEKRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteDEKRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DeleteDEKRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DeleteDEKRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest.class, com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest.Builder.class); + } + + public static final int DEK_VERSION_FIELD_NUMBER = 1; + private int dekVersion_ = 0; + /** + *
+   * DEK version to delete
+   * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @return The dekVersion. + */ + @java.lang.Override + public int getDekVersion() { + return dekVersion_; + } + + 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 (dekVersion_ != 0) { + output.writeInt32(1, dekVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dekVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, dekVersion_); + } + 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.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest other = (com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest) obj; + + if (getDekVersion() + != other.getDekVersion()) 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) + DEK_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDekVersion(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DeleteDEKRequest requests deletion of a DEK version
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.DeleteDEKRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.DeleteDEKRequest) + com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DeleteDEKRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DeleteDEKRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest.class, com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dekVersion_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DeleteDEKRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest build() { + com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest result = new com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dekVersion_ = dekVersion_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest.getDefaultInstance()) return this; + if (other.getDekVersion() != 0) { + setDekVersion(other.getDekVersion()); + } + 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 8: { + dekVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 int dekVersion_ ; + /** + *
+     * DEK version to delete
+     * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @return The dekVersion. + */ + @java.lang.Override + public int getDekVersion() { + return dekVersion_; + } + /** + *
+     * DEK version to delete
+     * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @param value The dekVersion to set. + * @return This builder for chaining. + */ + public Builder setDekVersion(int value) { + + dekVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * DEK version to delete
+     * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearDekVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + dekVersion_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.DeleteDEKRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.DeleteDEKRequest) + private static final com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDEKRequest 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.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DeleteDEKRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DeleteDEKRequestOrBuilder.java new file mode 100644 index 00000000..4b562b57 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DeleteDEKRequestOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface DeleteDEKRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.DeleteDEKRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * DEK version to delete
+   * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @return The dekVersion. + */ + int getDekVersion(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyDEKRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyDEKRequest.java new file mode 100644 index 00000000..c831a3a0 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyDEKRequest.java @@ -0,0 +1,496 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * DestroyDEKRequest requests permanent deletion of a DEK version
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.DestroyDEKRequest} + */ +public final class DestroyDEKRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.DestroyDEKRequest) + DestroyDEKRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DestroyDEKRequest.newBuilder() to construct. + private DestroyDEKRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DestroyDEKRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DestroyDEKRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DestroyDEKRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DestroyDEKRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest.class, com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest.Builder.class); + } + + public static final int DEK_VERSION_FIELD_NUMBER = 1; + private int dekVersion_ = 0; + /** + *
+   * DEK version to destroy
+   * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @return The dekVersion. + */ + @java.lang.Override + public int getDekVersion() { + return dekVersion_; + } + + 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 (dekVersion_ != 0) { + output.writeInt32(1, dekVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dekVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, dekVersion_); + } + 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.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest other = (com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest) obj; + + if (getDekVersion() + != other.getDekVersion()) 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) + DEK_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDekVersion(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DestroyDEKRequest requests permanent deletion of a DEK version
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.DestroyDEKRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.DestroyDEKRequest) + com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DestroyDEKRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DestroyDEKRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest.class, com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dekVersion_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DestroyDEKRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest build() { + com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest result = new com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dekVersion_ = dekVersion_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest.getDefaultInstance()) return this; + if (other.getDekVersion() != 0) { + setDekVersion(other.getDekVersion()); + } + 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 8: { + dekVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 int dekVersion_ ; + /** + *
+     * DEK version to destroy
+     * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @return The dekVersion. + */ + @java.lang.Override + public int getDekVersion() { + return dekVersion_; + } + /** + *
+     * DEK version to destroy
+     * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @param value The dekVersion to set. + * @return This builder for chaining. + */ + public Builder setDekVersion(int value) { + + dekVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * DEK version to destroy
+     * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearDekVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + dekVersion_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.DestroyDEKRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.DestroyDEKRequest) + private static final com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestroyDEKRequest 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.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyDEKRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyDEKRequestOrBuilder.java new file mode 100644 index 00000000..37c74497 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyDEKRequestOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface DestroyDEKRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.DestroyDEKRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * DEK version to destroy
+   * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @return The dekVersion. + */ + int getDekVersion(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyMasterKeyRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyMasterKeyRequest.java new file mode 100644 index 00000000..6002a4fd --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyMasterKeyRequest.java @@ -0,0 +1,496 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * DestroyMasterKeyRequest requests permanent deletion of a master key version
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.DestroyMasterKeyRequest} + */ +public final class DestroyMasterKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.DestroyMasterKeyRequest) + DestroyMasterKeyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DestroyMasterKeyRequest.newBuilder() to construct. + private DestroyMasterKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DestroyMasterKeyRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DestroyMasterKeyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DestroyMasterKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DestroyMasterKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest.class, com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private int version_ = 0; + /** + *
+   * Master key version to destroy
+   * 
+ * + * int32 version = 1 [json_name = "version", (.buf.validate.field) = { ... } + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + 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 (version_ != 0) { + output.writeInt32(1, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, version_); + } + 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.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest other = (com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest) obj; + + if (getVersion() + != other.getVersion()) 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) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * DestroyMasterKeyRequest requests permanent deletion of a master key version
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.DestroyMasterKeyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.DestroyMasterKeyRequest) + com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DestroyMasterKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DestroyMasterKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest.class, com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_DestroyMasterKeyRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest build() { + com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest result = new com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest.getDefaultInstance()) return this; + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + 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 8: { + version_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 int version_ ; + /** + *
+     * Master key version to destroy
+     * 
+ * + * int32 version = 1 [json_name = "version", (.buf.validate.field) = { ... } + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + /** + *
+     * Master key version to destroy
+     * 
+ * + * int32 version = 1 [json_name = "version", (.buf.validate.field) = { ... } + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Master key version to destroy
+     * 
+ * + * int32 version = 1 [json_name = "version", (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + version_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.DestroyMasterKeyRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.DestroyMasterKeyRequest) + private static final com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DestroyMasterKeyRequest 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.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyMasterKeyRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyMasterKeyRequestOrBuilder.java new file mode 100644 index 00000000..4717195b --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/DestroyMasterKeyRequestOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface DestroyMasterKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.DestroyMasterKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Master key version to destroy
+   * 
+ * + * int32 version = 1 [json_name = "version", (.buf.validate.field) = { ... } + * @return The version. + */ + int getVersion(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/EnvironmentKey.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/EnvironmentKey.java new file mode 100644 index 00000000..3d48fac0 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/EnvironmentKey.java @@ -0,0 +1,1496 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * EnvironmentKey represents a Data Encryption Key (DEK) for an environment
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.EnvironmentKey} + */ +public final class EnvironmentKey extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.EnvironmentKey) + EnvironmentKeyOrBuilder { +private static final long serialVersionUID = 0L; + // Use EnvironmentKey.newBuilder() to construct. + private EnvironmentKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private EnvironmentKey() { + id_ = ""; + environmentId_ = ""; + algorithm_ = ""; + status_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new EnvironmentKey(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_EnvironmentKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_EnvironmentKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.class, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ENVIRONMENT_ID_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object environmentId_ = ""; + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return The environmentId. + */ + @java.lang.Override + public java.lang.String getEnvironmentId() { + java.lang.Object ref = environmentId_; + 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(); + environmentId_ = s; + return s; + } + } + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return The bytes for environmentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getEnvironmentIdBytes() { + java.lang.Object ref = environmentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + environmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEK_VERSION_FIELD_NUMBER = 3; + private int dekVersion_ = 0; + /** + * int32 dek_version = 3 [json_name = "dekVersion"]; + * @return The dekVersion. + */ + @java.lang.Override + public int getDekVersion() { + return dekVersion_; + } + + public static final int MASTER_VERSION_FIELD_NUMBER = 4; + private int masterVersion_ = 0; + /** + * int32 master_version = 4 [json_name = "masterVersion"]; + * @return The masterVersion. + */ + @java.lang.Override + public int getMasterVersion() { + return masterVersion_; + } + + public static final int ALGORITHM_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object algorithm_ = ""; + /** + * string algorithm = 5 [json_name = "algorithm"]; + * @return The algorithm. + */ + @java.lang.Override + public java.lang.String getAlgorithm() { + java.lang.Object ref = algorithm_; + 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(); + algorithm_ = s; + return s; + } + } + /** + * string algorithm = 5 [json_name = "algorithm"]; + * @return The bytes for algorithm. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAlgorithmBytes() { + java.lang.Object ref = algorithm_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + /** + *
+   * CREATED, ACTIVE, DEPRECATED
+   * 
+ * + * string status = 6 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + 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(); + status_ = s; + return s; + } + } + /** + *
+   * CREATED, ACTIVE, DEPRECATED
+   * 
+ * + * string status = 6 [json_name = "status"]; + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createdAt_; + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + @java.lang.Override + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + * @return The createdAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + + public static final int ROTATED_AT_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp rotatedAt_; + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + * @return Whether the rotatedAt field is set. + */ + @java.lang.Override + public boolean hasRotatedAt() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + * @return The rotatedAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRotatedAt() { + return rotatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rotatedAt_; + } + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRotatedAtOrBuilder() { + return rotatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rotatedAt_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environmentId_); + } + if (dekVersion_ != 0) { + output.writeInt32(3, dekVersion_); + } + if (masterVersion_ != 0) { + output.writeInt32(4, masterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(algorithm_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, algorithm_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(7, getCreatedAt()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(8, getRotatedAt()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentId_); + } + if (dekVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, dekVersion_); + } + if (masterVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, masterVersion_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(algorithm_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, algorithm_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getCreatedAt()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(8, getRotatedAt()); + } + 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.scalekit.grpc.scalekit.v1.keys.EnvironmentKey)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey other = (com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getEnvironmentId() + .equals(other.getEnvironmentId())) return false; + if (getDekVersion() + != other.getDekVersion()) return false; + if (getMasterVersion() + != other.getMasterVersion()) return false; + if (!getAlgorithm() + .equals(other.getAlgorithm())) return false; + if (!getStatus() + .equals(other.getStatus())) return false; + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (hasRotatedAt() != other.hasRotatedAt()) return false; + if (hasRotatedAt()) { + if (!getRotatedAt() + .equals(other.getRotatedAt())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentId().hashCode(); + hash = (37 * hash) + DEK_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDekVersion(); + hash = (37 * hash) + MASTER_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getMasterVersion(); + hash = (37 * hash) + ALGORITHM_FIELD_NUMBER; + hash = (53 * hash) + getAlgorithm().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (hasRotatedAt()) { + hash = (37 * hash) + ROTATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getRotatedAt().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * EnvironmentKey represents a Data Encryption Key (DEK) for an environment
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.EnvironmentKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.EnvironmentKey) + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_EnvironmentKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_EnvironmentKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.class, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCreatedAtFieldBuilder(); + getRotatedAtFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + environmentId_ = ""; + dekVersion_ = 0; + masterVersion_ = 0; + algorithm_ = ""; + status_ = ""; + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + rotatedAt_ = null; + if (rotatedAtBuilder_ != null) { + rotatedAtBuilder_.dispose(); + rotatedAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_EnvironmentKey_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey build() { + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey result = new com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.environmentId_ = environmentId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.dekVersion_ = dekVersion_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.masterVersion_ = masterVersion_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.algorithm_ = algorithm_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.status_ = status_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.createdAt_ = createdAtBuilder_ == null + ? createdAt_ + : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.rotatedAt_ = rotatedAtBuilder_ == null + ? rotatedAt_ + : rotatedAtBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEnvironmentId().isEmpty()) { + environmentId_ = other.environmentId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getDekVersion() != 0) { + setDekVersion(other.getDekVersion()); + } + if (other.getMasterVersion() != 0) { + setMasterVersion(other.getMasterVersion()); + } + if (!other.getAlgorithm().isEmpty()) { + algorithm_ = other.algorithm_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasRotatedAt()) { + mergeRotatedAt(other.getRotatedAt()); + } + 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: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + environmentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + dekVersion_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + masterVersion_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + algorithm_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getCreatedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + input.readMessage( + getRotatedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + 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 id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object environmentId_ = ""; + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return The environmentId. + */ + public java.lang.String getEnvironmentId() { + java.lang.Object ref = environmentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + environmentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return The bytes for environmentId. + */ + public com.google.protobuf.ByteString + getEnvironmentIdBytes() { + java.lang.Object ref = environmentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + environmentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @param value The environmentId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + environmentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return This builder for chaining. + */ + public Builder clearEnvironmentId() { + environmentId_ = getDefaultInstance().getEnvironmentId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @param value The bytes for environmentId to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + environmentId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private int dekVersion_ ; + /** + * int32 dek_version = 3 [json_name = "dekVersion"]; + * @return The dekVersion. + */ + @java.lang.Override + public int getDekVersion() { + return dekVersion_; + } + /** + * int32 dek_version = 3 [json_name = "dekVersion"]; + * @param value The dekVersion to set. + * @return This builder for chaining. + */ + public Builder setDekVersion(int value) { + + dekVersion_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int32 dek_version = 3 [json_name = "dekVersion"]; + * @return This builder for chaining. + */ + public Builder clearDekVersion() { + bitField0_ = (bitField0_ & ~0x00000004); + dekVersion_ = 0; + onChanged(); + return this; + } + + private int masterVersion_ ; + /** + * int32 master_version = 4 [json_name = "masterVersion"]; + * @return The masterVersion. + */ + @java.lang.Override + public int getMasterVersion() { + return masterVersion_; + } + /** + * int32 master_version = 4 [json_name = "masterVersion"]; + * @param value The masterVersion to set. + * @return This builder for chaining. + */ + public Builder setMasterVersion(int value) { + + masterVersion_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int32 master_version = 4 [json_name = "masterVersion"]; + * @return This builder for chaining. + */ + public Builder clearMasterVersion() { + bitField0_ = (bitField0_ & ~0x00000008); + masterVersion_ = 0; + onChanged(); + return this; + } + + private java.lang.Object algorithm_ = ""; + /** + * string algorithm = 5 [json_name = "algorithm"]; + * @return The algorithm. + */ + public java.lang.String getAlgorithm() { + java.lang.Object ref = algorithm_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + algorithm_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string algorithm = 5 [json_name = "algorithm"]; + * @return The bytes for algorithm. + */ + public com.google.protobuf.ByteString + getAlgorithmBytes() { + java.lang.Object ref = algorithm_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + algorithm_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string algorithm = 5 [json_name = "algorithm"]; + * @param value The algorithm to set. + * @return This builder for chaining. + */ + public Builder setAlgorithm( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + algorithm_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * string algorithm = 5 [json_name = "algorithm"]; + * @return This builder for chaining. + */ + public Builder clearAlgorithm() { + algorithm_ = getDefaultInstance().getAlgorithm(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * string algorithm = 5 [json_name = "algorithm"]; + * @param value The bytes for algorithm to set. + * @return This builder for chaining. + */ + public Builder setAlgorithmBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + algorithm_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + *
+     * CREATED, ACTIVE, DEPRECATED
+     * 
+ * + * string status = 6 [json_name = "status"]; + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * CREATED, ACTIVE, DEPRECATED
+     * 
+ * + * string status = 6 [json_name = "status"]; + * @return The bytes for status. + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * CREATED, ACTIVE, DEPRECATED
+     * 
+ * + * string status = 6 [json_name = "status"]; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + status_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * CREATED, ACTIVE, DEPRECATED
+     * 
+ * + * string status = 6 [json_name = "status"]; + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * CREATED, ACTIVE, DEPRECATED
+     * 
+ * + * string status = 6 [json_name = "status"]; + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + status_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + * @return The createdAt. + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + } else { + createdAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + createdAt_ != null && + createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreatedAtBuilder().mergeFrom(value); + } else { + createdAt_ = value; + } + } else { + createdAtBuilder_.mergeFrom(value); + } + if (createdAt_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + */ + public Builder clearCreatedAt() { + bitField0_ = (bitField0_ & ~0x00000040); + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp rotatedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> rotatedAtBuilder_; + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + * @return Whether the rotatedAt field is set. + */ + public boolean hasRotatedAt() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + * @return The rotatedAt. + */ + public com.google.protobuf.Timestamp getRotatedAt() { + if (rotatedAtBuilder_ == null) { + return rotatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rotatedAt_; + } else { + return rotatedAtBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + */ + public Builder setRotatedAt(com.google.protobuf.Timestamp value) { + if (rotatedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rotatedAt_ = value; + } else { + rotatedAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + */ + public Builder setRotatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (rotatedAtBuilder_ == null) { + rotatedAt_ = builderForValue.build(); + } else { + rotatedAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + */ + public Builder mergeRotatedAt(com.google.protobuf.Timestamp value) { + if (rotatedAtBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) && + rotatedAt_ != null && + rotatedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRotatedAtBuilder().mergeFrom(value); + } else { + rotatedAt_ = value; + } + } else { + rotatedAtBuilder_.mergeFrom(value); + } + if (rotatedAt_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + */ + public Builder clearRotatedAt() { + bitField0_ = (bitField0_ & ~0x00000080); + rotatedAt_ = null; + if (rotatedAtBuilder_ != null) { + rotatedAtBuilder_.dispose(); + rotatedAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + */ + public com.google.protobuf.Timestamp.Builder getRotatedAtBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return getRotatedAtFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + */ + public com.google.protobuf.TimestampOrBuilder getRotatedAtOrBuilder() { + if (rotatedAtBuilder_ != null) { + return rotatedAtBuilder_.getMessageOrBuilder(); + } else { + return rotatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : rotatedAt_; + } + } + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getRotatedAtFieldBuilder() { + if (rotatedAtBuilder_ == null) { + rotatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getRotatedAt(), + getParentForChildren(), + isClean()); + rotatedAt_ = null; + } + return rotatedAtBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.EnvironmentKey) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.EnvironmentKey) + private static final com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnvironmentKey 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.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/EnvironmentKeyOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/EnvironmentKeyOrBuilder.java new file mode 100644 index 00000000..8cd3eeb2 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/EnvironmentKeyOrBuilder.java @@ -0,0 +1,108 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface EnvironmentKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.EnvironmentKey) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return The environmentId. + */ + java.lang.String getEnvironmentId(); + /** + * string environment_id = 2 [json_name = "environmentId"]; + * @return The bytes for environmentId. + */ + com.google.protobuf.ByteString + getEnvironmentIdBytes(); + + /** + * int32 dek_version = 3 [json_name = "dekVersion"]; + * @return The dekVersion. + */ + int getDekVersion(); + + /** + * int32 master_version = 4 [json_name = "masterVersion"]; + * @return The masterVersion. + */ + int getMasterVersion(); + + /** + * string algorithm = 5 [json_name = "algorithm"]; + * @return The algorithm. + */ + java.lang.String getAlgorithm(); + /** + * string algorithm = 5 [json_name = "algorithm"]; + * @return The bytes for algorithm. + */ + com.google.protobuf.ByteString + getAlgorithmBytes(); + + /** + *
+   * CREATED, ACTIVE, DEPRECATED
+   * 
+ * + * string status = 6 [json_name = "status"]; + * @return The status. + */ + java.lang.String getStatus(); + /** + *
+   * CREATED, ACTIVE, DEPRECATED
+   * 
+ * + * string status = 6 [json_name = "status"]; + * @return The bytes for status. + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + boolean hasCreatedAt(); + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + * @return The createdAt. + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + * .google.protobuf.Timestamp created_at = 7 [json_name = "createdAt"]; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + * @return Whether the rotatedAt field is set. + */ + boolean hasRotatedAt(); + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + * @return The rotatedAt. + */ + com.google.protobuf.Timestamp getRotatedAt(); + /** + * .google.protobuf.Timestamp rotated_at = 8 [json_name = "rotatedAt"]; + */ + com.google.protobuf.TimestampOrBuilder getRotatedAtOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/KeyManagementServiceGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/KeyManagementServiceGrpc.java new file mode 100644 index 00000000..d4cabeff --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/KeyManagementServiceGrpc.java @@ -0,0 +1,1127 @@ +package com.scalekit.grpc.scalekit.v1.keys; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + *
+ * KeyManagementService provides operations for managing encryption keys
+ * including Data Encryption Keys (DEKs) and master key rotation.
+ * 
+ */ +@javax.annotation.Generated( + value = "by gRPC proto compiler (version 1.67.1)", + comments = "Source: scalekit/v1/keys/keys.proto") +@io.grpc.stub.annotations.GrpcGenerated +public final class KeyManagementServiceGrpc { + + private KeyManagementServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "scalekit.v1.keys.KeyManagementService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor getCreateDEKMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateDEK", + requestType = com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateDEKMethod() { + io.grpc.MethodDescriptor getCreateDEKMethod; + if ((getCreateDEKMethod = KeyManagementServiceGrpc.getCreateDEKMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getCreateDEKMethod = KeyManagementServiceGrpc.getCreateDEKMethod) == null) { + KeyManagementServiceGrpc.getCreateDEKMethod = getCreateDEKMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDEK")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("CreateDEK")) + .build(); + } + } + } + return getCreateDEKMethod; + } + + private static volatile io.grpc.MethodDescriptor getRotateDEKMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RotateDEK", + requestType = com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRotateDEKMethod() { + io.grpc.MethodDescriptor getRotateDEKMethod; + if ((getRotateDEKMethod = KeyManagementServiceGrpc.getRotateDEKMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getRotateDEKMethod = KeyManagementServiceGrpc.getRotateDEKMethod) == null) { + KeyManagementServiceGrpc.getRotateDEKMethod = getRotateDEKMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RotateDEK")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("RotateDEK")) + .build(); + } + } + } + return getRotateDEKMethod; + } + + private static volatile io.grpc.MethodDescriptor getListDEKsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListDEKs", + requestType = com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListDEKsMethod() { + io.grpc.MethodDescriptor getListDEKsMethod; + if ((getListDEKsMethod = KeyManagementServiceGrpc.getListDEKsMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getListDEKsMethod = KeyManagementServiceGrpc.getListDEKsMethod) == null) { + KeyManagementServiceGrpc.getListDEKsMethod = getListDEKsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListDEKs")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("ListDEKs")) + .build(); + } + } + } + return getListDEKsMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteDEKMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDEK", + requestType = com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteDEKMethod() { + io.grpc.MethodDescriptor getDeleteDEKMethod; + if ((getDeleteDEKMethod = KeyManagementServiceGrpc.getDeleteDEKMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getDeleteDEKMethod = KeyManagementServiceGrpc.getDeleteDEKMethod) == null) { + KeyManagementServiceGrpc.getDeleteDEKMethod = getDeleteDEKMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteDEK")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("DeleteDEK")) + .build(); + } + } + } + return getDeleteDEKMethod; + } + + private static volatile io.grpc.MethodDescriptor getRotateMasterKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RotateMasterKey", + requestType = com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getRotateMasterKeyMethod() { + io.grpc.MethodDescriptor getRotateMasterKeyMethod; + if ((getRotateMasterKeyMethod = KeyManagementServiceGrpc.getRotateMasterKeyMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getRotateMasterKeyMethod = KeyManagementServiceGrpc.getRotateMasterKeyMethod) == null) { + KeyManagementServiceGrpc.getRotateMasterKeyMethod = getRotateMasterKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RotateMasterKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("RotateMasterKey")) + .build(); + } + } + } + return getRotateMasterKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateMasterKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMasterKey", + requestType = com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateMasterKeyMethod() { + io.grpc.MethodDescriptor getCreateMasterKeyMethod; + if ((getCreateMasterKeyMethod = KeyManagementServiceGrpc.getCreateMasterKeyMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getCreateMasterKeyMethod = KeyManagementServiceGrpc.getCreateMasterKeyMethod) == null) { + KeyManagementServiceGrpc.getCreateMasterKeyMethod = getCreateMasterKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateMasterKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("CreateMasterKey")) + .build(); + } + } + } + return getCreateMasterKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetActiveDEKMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetActiveDEK", + requestType = com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetActiveDEKMethod() { + io.grpc.MethodDescriptor getSetActiveDEKMethod; + if ((getSetActiveDEKMethod = KeyManagementServiceGrpc.getSetActiveDEKMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getSetActiveDEKMethod = KeyManagementServiceGrpc.getSetActiveDEKMethod) == null) { + KeyManagementServiceGrpc.getSetActiveDEKMethod = getSetActiveDEKMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetActiveDEK")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("SetActiveDEK")) + .build(); + } + } + } + return getSetActiveDEKMethod; + } + + private static volatile io.grpc.MethodDescriptor getSetActiveMasterKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SetActiveMasterKey", + requestType = com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getSetActiveMasterKeyMethod() { + io.grpc.MethodDescriptor getSetActiveMasterKeyMethod; + if ((getSetActiveMasterKeyMethod = KeyManagementServiceGrpc.getSetActiveMasterKeyMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getSetActiveMasterKeyMethod = KeyManagementServiceGrpc.getSetActiveMasterKeyMethod) == null) { + KeyManagementServiceGrpc.getSetActiveMasterKeyMethod = getSetActiveMasterKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetActiveMasterKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("SetActiveMasterKey")) + .build(); + } + } + } + return getSetActiveMasterKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor getDestroyDEKMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DestroyDEK", + requestType = com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDestroyDEKMethod() { + io.grpc.MethodDescriptor getDestroyDEKMethod; + if ((getDestroyDEKMethod = KeyManagementServiceGrpc.getDestroyDEKMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getDestroyDEKMethod = KeyManagementServiceGrpc.getDestroyDEKMethod) == null) { + KeyManagementServiceGrpc.getDestroyDEKMethod = getDestroyDEKMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DestroyDEK")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("DestroyDEK")) + .build(); + } + } + } + return getDestroyDEKMethod; + } + + private static volatile io.grpc.MethodDescriptor getDestroyMasterKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DestroyMasterKey", + requestType = com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDestroyMasterKeyMethod() { + io.grpc.MethodDescriptor getDestroyMasterKeyMethod; + if ((getDestroyMasterKeyMethod = KeyManagementServiceGrpc.getDestroyMasterKeyMethod) == null) { + synchronized (KeyManagementServiceGrpc.class) { + if ((getDestroyMasterKeyMethod = KeyManagementServiceGrpc.getDestroyMasterKeyMethod) == null) { + KeyManagementServiceGrpc.getDestroyMasterKeyMethod = getDestroyMasterKeyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DestroyMasterKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new KeyManagementServiceMethodDescriptorSupplier("DestroyMasterKey")) + .build(); + } + } + } + return getDestroyMasterKeyMethod; + } + + /** + * Creates a new async stub that supports all call types for the service + */ + public static KeyManagementServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public KeyManagementServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyManagementServiceStub(channel, callOptions); + } + }; + return KeyManagementServiceStub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static KeyManagementServiceBlockingStub newBlockingStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public KeyManagementServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyManagementServiceBlockingStub(channel, callOptions); + } + }; + return KeyManagementServiceBlockingStub.newStub(factory, channel); + } + + /** + * Creates a new ListenableFuture-style stub that supports unary calls on the service + */ + public static KeyManagementServiceFutureStub newFutureStub( + io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public KeyManagementServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyManagementServiceFutureStub(channel, callOptions); + } + }; + return KeyManagementServiceFutureStub.newStub(factory, channel); + } + + /** + *
+   * KeyManagementService provides operations for managing encryption keys
+   * including Data Encryption Keys (DEKs) and master key rotation.
+   * 
+ */ + public interface AsyncService { + + /** + *
+     * CreateDEK creates a new Data Encryption Key (DEK) for an environment.
+     * If a DEK already exists, this will create a new version.
+     * 
+ */ + default void createDEK(com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDEKMethod(), responseObserver); + } + + /** + *
+     * RotateDEK creates a new DEK version for an environment.
+     * Re-encrypts existing data (oidc_client_secrets, connection client_secrets) and deprecates old DEK versions.
+     * 
+ */ + default void rotateDEK(com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRotateDEKMethod(), responseObserver); + } + + /** + *
+     * ListDEKs lists DEKs for an environment with pagination.
+     * 
+ */ + default void listDEKs(com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListDEKsMethod(), responseObserver); + } + + /** + *
+     * DeleteDEK deprecates or permanently deletes a DEK version.
+     * Deprecated DEKs can still be used for decryption but not for encryption.
+     * 
+ */ + default void deleteDEK(com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteDEKMethod(), responseObserver); + } + + /** + *
+     * RotateMasterKey rotates the master key and rewraps all DEKs.
+     * This operation is idempotent and supports zero-downtime rotation.
+     * 
+ */ + default void rotateMasterKey(com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRotateMasterKeyMethod(), responseObserver); + } + + /** + *
+     * CreateMasterKey creates a new master key version (in a non-active state).
+     * 
+ */ + default void createMasterKey(com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateMasterKeyMethod(), responseObserver); + } + + /** + *
+     * SetActiveDEK sets a specific DEK version as active for an environment.
+     * 
+ */ + default void setActiveDEK(com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetActiveDEKMethod(), responseObserver); + } + + /** + *
+     * SetActiveMasterKey sets a specific master key version as active.
+     * 
+ */ + default void setActiveMasterKey(com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetActiveMasterKeyMethod(), responseObserver); + } + + /** + *
+     * DestroyDEK permanently deletes a DEK version.
+     * WARNING: This operation is irreversible and will make data encrypted with this DEK unrecoverable.
+     * 
+ */ + default void destroyDEK(com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDestroyDEKMethod(), responseObserver); + } + + /** + *
+     * DestroyMasterKey permanently deletes a master key version.
+     * WARNING: This operation is irreversible and will make DEKs wrapped with this master key unrecoverable.
+     * 
+ */ + default void destroyMasterKey(com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDestroyMasterKeyMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service KeyManagementService. + *
+   * KeyManagementService provides operations for managing encryption keys
+   * including Data Encryption Keys (DEKs) and master key rotation.
+   * 
+ */ + public static abstract class KeyManagementServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { + return KeyManagementServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service KeyManagementService. + *
+   * KeyManagementService provides operations for managing encryption keys
+   * including Data Encryption Keys (DEKs) and master key rotation.
+   * 
+ */ + public static final class KeyManagementServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private KeyManagementServiceStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected KeyManagementServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyManagementServiceStub(channel, callOptions); + } + + /** + *
+     * CreateDEK creates a new Data Encryption Key (DEK) for an environment.
+     * If a DEK already exists, this will create a new version.
+     * 
+ */ + public void createDEK(com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateDEKMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * RotateDEK creates a new DEK version for an environment.
+     * Re-encrypts existing data (oidc_client_secrets, connection client_secrets) and deprecates old DEK versions.
+     * 
+ */ + public void rotateDEK(com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRotateDEKMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * ListDEKs lists DEKs for an environment with pagination.
+     * 
+ */ + public void listDEKs(com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListDEKsMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * DeleteDEK deprecates or permanently deletes a DEK version.
+     * Deprecated DEKs can still be used for decryption but not for encryption.
+     * 
+ */ + public void deleteDEK(com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteDEKMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * RotateMasterKey rotates the master key and rewraps all DEKs.
+     * This operation is idempotent and supports zero-downtime rotation.
+     * 
+ */ + public void rotateMasterKey(com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRotateMasterKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * CreateMasterKey creates a new master key version (in a non-active state).
+     * 
+ */ + public void createMasterKey(com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMasterKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * SetActiveDEK sets a specific DEK version as active for an environment.
+     * 
+ */ + public void setActiveDEK(com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetActiveDEKMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * SetActiveMasterKey sets a specific master key version as active.
+     * 
+ */ + public void setActiveMasterKey(com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSetActiveMasterKeyMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * DestroyDEK permanently deletes a DEK version.
+     * WARNING: This operation is irreversible and will make data encrypted with this DEK unrecoverable.
+     * 
+ */ + public void destroyDEK(com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDestroyDEKMethod(), getCallOptions()), request, responseObserver); + } + + /** + *
+     * DestroyMasterKey permanently deletes a master key version.
+     * WARNING: This operation is irreversible and will make DEKs wrapped with this master key unrecoverable.
+     * 
+ */ + public void destroyMasterKey(com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDestroyMasterKeyMethod(), getCallOptions()), request, responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service KeyManagementService. + *
+   * KeyManagementService provides operations for managing encryption keys
+   * including Data Encryption Keys (DEKs) and master key rotation.
+   * 
+ */ + public static final class KeyManagementServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private KeyManagementServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected KeyManagementServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyManagementServiceBlockingStub(channel, callOptions); + } + + /** + *
+     * CreateDEK creates a new Data Encryption Key (DEK) for an environment.
+     * If a DEK already exists, this will create a new version.
+     * 
+ */ + public com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse createDEK(com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateDEKMethod(), getCallOptions(), request); + } + + /** + *
+     * RotateDEK creates a new DEK version for an environment.
+     * Re-encrypts existing data (oidc_client_secrets, connection client_secrets) and deprecates old DEK versions.
+     * 
+ */ + public com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse rotateDEK(com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRotateDEKMethod(), getCallOptions(), request); + } + + /** + *
+     * ListDEKs lists DEKs for an environment with pagination.
+     * 
+ */ + public com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse listDEKs(com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDEKsMethod(), getCallOptions(), request); + } + + /** + *
+     * DeleteDEK deprecates or permanently deletes a DEK version.
+     * Deprecated DEKs can still be used for decryption but not for encryption.
+     * 
+ */ + public com.google.protobuf.Empty deleteDEK(com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteDEKMethod(), getCallOptions(), request); + } + + /** + *
+     * RotateMasterKey rotates the master key and rewraps all DEKs.
+     * This operation is idempotent and supports zero-downtime rotation.
+     * 
+ */ + public com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse rotateMasterKey(com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRotateMasterKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * CreateMasterKey creates a new master key version (in a non-active state).
+     * 
+ */ + public com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse createMasterKey(com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateMasterKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * SetActiveDEK sets a specific DEK version as active for an environment.
+     * 
+ */ + public com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse setActiveDEK(com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetActiveDEKMethod(), getCallOptions(), request); + } + + /** + *
+     * SetActiveMasterKey sets a specific master key version as active.
+     * 
+ */ + public com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse setActiveMasterKey(com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSetActiveMasterKeyMethod(), getCallOptions(), request); + } + + /** + *
+     * DestroyDEK permanently deletes a DEK version.
+     * WARNING: This operation is irreversible and will make data encrypted with this DEK unrecoverable.
+     * 
+ */ + public com.google.protobuf.Empty destroyDEK(com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDestroyDEKMethod(), getCallOptions(), request); + } + + /** + *
+     * DestroyMasterKey permanently deletes a master key version.
+     * WARNING: This operation is irreversible and will make DEKs wrapped with this master key unrecoverable.
+     * 
+ */ + public com.google.protobuf.Empty destroyMasterKey(com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDestroyMasterKeyMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service KeyManagementService. + *
+   * KeyManagementService provides operations for managing encryption keys
+   * including Data Encryption Keys (DEKs) and master key rotation.
+   * 
+ */ + public static final class KeyManagementServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private KeyManagementServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected KeyManagementServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new KeyManagementServiceFutureStub(channel, callOptions); + } + + /** + *
+     * CreateDEK creates a new Data Encryption Key (DEK) for an environment.
+     * If a DEK already exists, this will create a new version.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createDEK( + com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDEKMethod(), getCallOptions()), request); + } + + /** + *
+     * RotateDEK creates a new DEK version for an environment.
+     * Re-encrypts existing data (oidc_client_secrets, connection client_secrets) and deprecates old DEK versions.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture rotateDEK( + com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRotateDEKMethod(), getCallOptions()), request); + } + + /** + *
+     * ListDEKs lists DEKs for an environment with pagination.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture listDEKs( + com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDEKsMethod(), getCallOptions()), request); + } + + /** + *
+     * DeleteDEK deprecates or permanently deletes a DEK version.
+     * Deprecated DEKs can still be used for decryption but not for encryption.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture deleteDEK( + com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDEKMethod(), getCallOptions()), request); + } + + /** + *
+     * RotateMasterKey rotates the master key and rewraps all DEKs.
+     * This operation is idempotent and supports zero-downtime rotation.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture rotateMasterKey( + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRotateMasterKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * CreateMasterKey creates a new master key version (in a non-active state).
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture createMasterKey( + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateMasterKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * SetActiveDEK sets a specific DEK version as active for an environment.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setActiveDEK( + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetActiveDEKMethod(), getCallOptions()), request); + } + + /** + *
+     * SetActiveMasterKey sets a specific master key version as active.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture setActiveMasterKey( + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSetActiveMasterKeyMethod(), getCallOptions()), request); + } + + /** + *
+     * DestroyDEK permanently deletes a DEK version.
+     * WARNING: This operation is irreversible and will make data encrypted with this DEK unrecoverable.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture destroyDEK( + com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDestroyDEKMethod(), getCallOptions()), request); + } + + /** + *
+     * DestroyMasterKey permanently deletes a master key version.
+     * WARNING: This operation is irreversible and will make DEKs wrapped with this master key unrecoverable.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture destroyMasterKey( + com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDestroyMasterKeyMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_DEK = 0; + private static final int METHODID_ROTATE_DEK = 1; + private static final int METHODID_LIST_DEKS = 2; + private static final int METHODID_DELETE_DEK = 3; + private static final int METHODID_ROTATE_MASTER_KEY = 4; + private static final int METHODID_CREATE_MASTER_KEY = 5; + private static final int METHODID_SET_ACTIVE_DEK = 6; + private static final int METHODID_SET_ACTIVE_MASTER_KEY = 7; + private static final int METHODID_DESTROY_DEK = 8; + private static final int METHODID_DESTROY_MASTER_KEY = 9; + + 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_CREATE_DEK: + serviceImpl.createDEK((com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROTATE_DEK: + serviceImpl.rotateDEK((com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_DEKS: + serviceImpl.listDEKs((com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_DEK: + serviceImpl.deleteDEK((com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ROTATE_MASTER_KEY: + serviceImpl.rotateMasterKey((com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_MASTER_KEY: + serviceImpl.createMasterKey((com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_ACTIVE_DEK: + serviceImpl.setActiveDEK((com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SET_ACTIVE_MASTER_KEY: + serviceImpl.setActiveMasterKey((com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DESTROY_DEK: + serviceImpl.destroyDEK((com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DESTROY_MASTER_KEY: + serviceImpl.destroyMasterKey((com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest) 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( + getCreateDEKMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.keys.CreateDEKRequest, + com.scalekit.grpc.scalekit.v1.keys.CreateDEKResponse>( + service, METHODID_CREATE_DEK))) + .addMethod( + getRotateDEKMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest, + com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse>( + service, METHODID_ROTATE_DEK))) + .addMethod( + getListDEKsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest, + com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse>( + service, METHODID_LIST_DEKS))) + .addMethod( + getDeleteDEKMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.keys.DeleteDEKRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_DEK))) + .addMethod( + getRotateMasterKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest, + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse>( + service, METHODID_ROTATE_MASTER_KEY))) + .addMethod( + getCreateMasterKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyRequest, + com.scalekit.grpc.scalekit.v1.keys.CreateMasterKeyResponse>( + service, METHODID_CREATE_MASTER_KEY))) + .addMethod( + getSetActiveDEKMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest, + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse>( + service, METHODID_SET_ACTIVE_DEK))) + .addMethod( + getSetActiveMasterKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest, + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse>( + service, METHODID_SET_ACTIVE_MASTER_KEY))) + .addMethod( + getDestroyDEKMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.keys.DestroyDEKRequest, + com.google.protobuf.Empty>( + service, METHODID_DESTROY_DEK))) + .addMethod( + getDestroyMasterKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.keys.DestroyMasterKeyRequest, + com.google.protobuf.Empty>( + service, METHODID_DESTROY_MASTER_KEY))) + .build(); + } + + private static abstract class KeyManagementServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { + KeyManagementServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("KeyManagementService"); + } + } + + private static final class KeyManagementServiceFileDescriptorSupplier + extends KeyManagementServiceBaseDescriptorSupplier { + KeyManagementServiceFileDescriptorSupplier() {} + } + + private static final class KeyManagementServiceMethodDescriptorSupplier + extends KeyManagementServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + KeyManagementServiceMethodDescriptorSupplier(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 (KeyManagementServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new KeyManagementServiceFileDescriptorSupplier()) + .addMethod(getCreateDEKMethod()) + .addMethod(getRotateDEKMethod()) + .addMethod(getListDEKsMethod()) + .addMethod(getDeleteDEKMethod()) + .addMethod(getRotateMasterKeyMethod()) + .addMethod(getCreateMasterKeyMethod()) + .addMethod(getSetActiveDEKMethod()) + .addMethod(getSetActiveMasterKeyMethod()) + .addMethod(getDestroyDEKMethod()) + .addMethod(getDestroyMasterKeyMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/KeysProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/KeysProto.java new file mode 100644 index 00000000..840301f3 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/KeysProto.java @@ -0,0 +1,429 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public final class KeysProto { + private KeysProto() {} + 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_scalekit_v1_keys_CreateDEKRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_CreateDEKRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_CreateDEKResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_CreateDEKResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_RotateDEKRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_RotateDEKRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_RotateDEKResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_RotateDEKResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_ListDEKsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_ListDEKsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_ListDEKsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_ListDEKsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_DeleteDEKRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_DeleteDEKRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_RotateMasterKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_RotateMasterKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_RotateMasterKeyResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_RotateMasterKeyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_EnvironmentKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_EnvironmentKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_MasterKey_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_MasterKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_CreateMasterKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_CreateMasterKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_CreateMasterKeyResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_CreateMasterKeyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_SetActiveDEKRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_SetActiveDEKRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_SetActiveDEKResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_SetActiveDEKResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_SetActiveMasterKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_SetActiveMasterKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_SetActiveMasterKeyResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_SetActiveMasterKeyResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_DestroyDEKRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_DestroyDEKRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_keys_DestroyMasterKeyRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_keys_DestroyMasterKeyRequest_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\033scalekit/v1/keys/keys.proto\022\020scalekit." + + "v1.keys\032\033buf/validate/validate.proto\032\034go" + + "ogle/api/annotations.proto\032\037google/api/f" + + "ield_behavior.proto\032\033google/api/visibili" + + "ty.proto\032\033google/protobuf/empty.proto\032\037g" + + "oogle/protobuf/timestamp.proto\032.protoc-g" + + "en-openapiv2/options/annotations.proto\032!" + + "scalekit/v1/options/options.proto\"\265\001\n\020Cr" + + "eateDEKRequest\022<\n\010key_type\030\001 \001(\0162\034.scale" + + "kit.v1.keys.DEKKeyTypeH\000R\007keyType\210\001\001\022\037\n\010" + + "provider\030\002 \001(\tH\001R\010provider\210\001\001\022\034\n\007key_ref" + + "\030\003 \001(\tH\002R\006keyRef\210\001\001B\013\n\t_key_typeB\013\n\t_pro" + + "viderB\n\n\010_key_ref\"G\n\021CreateDEKResponse\0222" + + "\n\003dek\030\001 \001(\0132 .scalekit.v1.keys.Environme" + + "ntKeyR\003dek\"\022\n\020RotateDEKRequest\"G\n\021Rotate" + + "DEKResponse\0222\n\003dek\030\001 \001(\0132 .scalekit.v1.k" + + "eys.EnvironmentKeyR\003dek\"u\n\017ListDEKsReque" + + "st\022\033\n\006status\030\001 \001(\tH\000R\006status\210\001\001\022\033\n\tpage_" + + "size\030\002 \001(\rR\010pageSize\022\035\n\npage_token\030\003 \001(\t" + + "R\tpageTokenB\t\n\007_status\"\217\001\n\020ListDEKsRespo" + + "nse\0224\n\004deks\030\001 \003(\0132 .scalekit.v1.keys.Env" + + "ironmentKeyR\004deks\022&\n\017next_page_token\030\002 \001" + + "(\tR\rnextPageToken\022\035\n\ntotal_size\030\003 \001(\rR\tt" + + "otalSize\"<\n\020DeleteDEKRequest\022(\n\013dek_vers" + + "ion\030\001 \001(\005B\007\272H\004\032\002 \000R\ndekVersion\"\030\n\026Rotate" + + "MasterKeyRequest\"\\\n\027RotateMasterKeyRespo" + + "nse\022A\n\016new_master_key\030\001 \001(\0132\033.scalekit.v" + + "1.keys.MasterKeyR\014newMasterKey\"\273\002\n\016Envir" + + "onmentKey\022\016\n\002id\030\001 \001(\tR\002id\022%\n\016environment" + + "_id\030\002 \001(\tR\renvironmentId\022\037\n\013dek_version\030" + + "\003 \001(\005R\ndekVersion\022%\n\016master_version\030\004 \001(" + + "\005R\rmasterVersion\022\034\n\talgorithm\030\005 \001(\tR\talg" + + "orithm\022\026\n\006status\030\006 \001(\tR\006status\0229\n\ncreate" + + "d_at\030\007 \001(\0132\032.google.protobuf.TimestampR\t" + + "createdAt\0229\n\nrotated_at\030\010 \001(\0132\032.google.p" + + "rotobuf.TimestampR\trotatedAt\"\370\001\n\tMasterK" + + "ey\022\016\n\002id\030\001 \001(\tR\002id\022\032\n\010provider\030\002 \001(\tR\010pr" + + "ovider\022\027\n\007key_ref\030\003 \001(\tR\006keyRef\022\030\n\007versi" + + "on\030\004 \001(\005R\007version\022\026\n\006status\030\005 \001(\tR\006statu" + + "s\0229\n\ncreated_at\030\006 \001(\0132\032.google.protobuf." + + "TimestampR\tcreatedAt\0229\n\nrotated_at\030\007 \001(\013" + + "2\032.google.protobuf.TimestampR\trotatedAt\"" + + "\240\001\n\026CreateMasterKeyRequest\0229\n\010provider\030\001" + + " \001(\tB\035\272H\032r\030R\003GCPR\003AWSR\005AZURER\005LOCALR\010pro" + + "vider\022 \n\007key_ref\030\002 \001(\tB\007\272H\004r\002\020\001R\006keyRef\022" + + "\035\n\007version\030\003 \001(\005H\000R\007version\210\001\001B\n\n\010_versi" + + "on\"U\n\027CreateMasterKeyResponse\022:\n\nmaster_" + + "key\030\001 \001(\0132\033.scalekit.v1.keys.MasterKeyR\t" + + "masterKey\"?\n\023SetActiveDEKRequest\022(\n\013dek_" + + "version\030\001 \001(\005B\007\272H\004\032\002 \000R\ndekVersion\"J\n\024Se" + + "tActiveDEKResponse\0222\n\003dek\030\001 \001(\0132 .scalek" + + "it.v1.keys.EnvironmentKeyR\003dek\">\n\031SetAct" + + "iveMasterKeyRequest\022!\n\007version\030\001 \001(\005B\007\272H" + + "\004\032\002 \000R\007version\"X\n\032SetActiveMasterKeyResp" + + "onse\022:\n\nmaster_key\030\001 \001(\0132\033.scalekit.v1.k" + + "eys.MasterKeyR\tmasterKey\"=\n\021DestroyDEKRe" + + "quest\022(\n\013dek_version\030\001 \001(\005B\007\272H\004\032\002 \000R\ndek" + + "Version\"<\n\027DestroyMasterKeyRequest\022!\n\007ve" + + "rsion\030\001 \001(\005B\007\272H\004\032\002 \000R\007version*c\n\nDEKKeyT" + + "ype\022\034\n\030DEK_KEY_TYPE_UNSPECIFIED\020\000\022\023\n\017ENV" + + "IRONMENT_KEY\020\001\022\010\n\004BYOK\020\002\022\030\n\024SCALEKIT_MAN" + + "AGED_KEY\020\0032\321\034\n\024KeyManagementService\022\355\002\n\t" + + "CreateDEK\022\".scalekit.v1.keys.CreateDEKRe" + + "quest\032#.scalekit.v1.keys.CreateDEKRespon" + + "se\"\226\002\222A\360\001\n\016Key Management\022\020Create a new " + + "DEK\032\313\001Creates a new Data Encryption Key " + + "(DEK) for the current environment. If a " + + "DEK already exists, this creates a new v" + + "ersion. The DEK is automatically wrapped" + + " with the current master key and stored " + + "securely.\202\265\030\002\030D\202\323\344\223\002\026\"\021/api/v1/keys/deks" + + ":\001*\022\302\002\n\tRotateDEK\022\".scalekit.v1.keys.Rot" + + "ateDEKRequest\032#.scalekit.v1.keys.RotateD" + + "EKResponse\"\353\001\222A\276\001\n\016Key Management\022\nRotat" + + "e DEK\032\237\001Creates a new DEK version for th" + + "e environment. Re-encrypts existing data" + + " (oidc_client_secrets, connection client" + + "_secrets) and deprecates previous DEK ve" + + "rsions.\202\265\030\002\030D\202\323\344\223\002\035\"\030/api/v1/keys/deks:r" + + "otate:\001*\022\322\002\n\010ListDEKs\022!.scalekit.v1.keys" + + ".ListDEKsRequest\032\".scalekit.v1.keys.List" + + "DEKsResponse\"\376\001\222A\333\001\n\016Key Management\022\tLis" + + "t DEKs\032\275\001Lists Data Encryption Keys (DEK" + + "s) for the current environment with pagi" + + "nation. Supports optional status filter " + + "(ACTIVE, DEPRECATED). Use page_token fro" + + "m the response to fetch the next page.\202\265" + + "\030\002\030D\202\323\344\223\002\023\022\021/api/v1/keys/deks\022\236\002\n\tDelete" + + "DEK\022\".scalekit.v1.keys.DeleteDEKRequest\032" + + "\026.google.protobuf.Empty\"\324\001\222A\243\001\n\016Key Mana" + + "gement\022\nDelete DEK\032\204\001Deprecates a specif" + + "ic DEK version. Deprecated DEKs can stil" + + "l decrypt existing data but cannot be us" + + "ed for new encryption operations.\202\265\030\002\030D\202" + + "\323\344\223\002!*\037/api/v1/keys/deks/{dek_version}\022\344" + + "\002\n\017RotateMasterKey\022(.scalekit.v1.keys.Ro" + + "tateMasterKeyRequest\032).scalekit.v1.keys." + + "RotateMasterKeyResponse\"\373\001\222A\275\001\n\016Key Mana" + + "gement\022\021Rotate Master Key\032\227\001Creates a ne" + + "w master key version, promotes it to pri" + + "mary, and rewraps all DEKs with the new " + + "master key. This operation supports zero" + + "-downtime rotation.\202\265\030\002\030\004\372\322\344\223\002\t\022\007PREVIEW" + + "\202\323\344\223\002\037\"\032/api/v1/keys/master:rotate:\001*\022\237\003" + + "\n\017CreateMasterKey\022(.scalekit.v1.keys.Cre" + + "ateMasterKeyRequest\032).scalekit.v1.keys.C" + + "reateMasterKeyResponse\"\266\002\222A\377\001\n\016Key Manag" + + "ement\022\021Create Master Key\032\331\001Creates a new" + + " master key version with the specified p" + + "rovider and key reference. The new key i" + + "s created in CREATED status and is not u" + + "sed for encryption until it is explicitl" + + "y promoted to ACTIVE via SetActiveMaster" + + "Key.\202\265\030\002\030\004\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\030\"\023/api/v1" + + "/keys/master:\001*\022\327\002\n\014SetActiveDEK\022%.scale" + + "kit.v1.keys.SetActiveDEKRequest\032&.scalek" + + "it.v1.keys.SetActiveDEKResponse\"\367\001\222A\271\001\n\016" + + "Key Management\022\016Set Active DEK\032\226\001Sets a " + + "specific DEK version as active for the e" + + "nvironment and deprecates other versions" + + ". This allows switching back to an older" + + " DEK version if needed.\202\265\030\002\030D\202\323\344\223\002.\")/ap" + + "i/v1/keys/deks/{dek_version}:setactive:\001" + + "*\022\200\003\n\022SetActiveMasterKey\022+.scalekit.v1.k" + + "eys.SetActiveMasterKeyRequest\032,.scalekit" + + ".v1.keys.SetActiveMasterKeyResponse\"\216\002\222A" + + "\303\001\n\016Key Management\022\025Set Active Master Ke" + + "y\032\231\001Sets a specific master key version a" + + "s active and deprecates other versions. " + + "This promotes the specified version to p" + + "rimary for new encryption operations.\202\265\030" + + "\002\030\004\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002,\"\'/api/v1/keys/m" + + "aster/{version}:setactive:\001*\022\330\002\n\nDestroy" + + "DEK\022#.scalekit.v1.keys.DestroyDEKRequest" + + "\032\026.google.protobuf.Empty\"\214\002\222A\323\001\n\016Key Man" + + "agement\022\013Destroy DEK\032\263\001Permanently delet" + + "es a DEK version from the database. WARN" + + "ING: This operation is irreversible. Any" + + " data encrypted with this DEK will becom" + + "e unrecoverable. Use with extreme cautio" + + "n.\202\265\030\002\030D\202\323\344\223\002)*\'/api/v1/keys/deks/{dek_v" + + "ersion}:destroy\022\204\003\n\020DestroyMasterKey\022).s" + + "calekit.v1.keys.DestroyMasterKeyRequest\032" + + "\026.google.protobuf.Empty\"\254\002\222A\346\001\n\016Key Mana" + + "gement\022\022Destroy Master Key\032\277\001Permanently" + + " deletes a master key version from the d" + + "atabase. WARNING: This operation is irre" + + "versible. Any DEKs wrapped with this mas" + + "ter key will become unrecoverable. Use w" + + "ith extreme caution.\202\265\030\002\030\004\372\322\344\223\002\t\022\007PREVIE" + + "W\202\323\344\223\002\'*%/api/v1/keys/master/{version}:d" + + "estroy\032F\222AC\n\016Key Management\0221Encryption " + + "key management for envelope encryptionB\301" + + "\001\n\"com.scalekit.grpc.scalekit.v1.keysB\tK" + + "eysProtoP\001Z.github.com/scalekit-inc/scal" + + "ekit/pkg/grpc/keys\242\002\003SVK\252\002\020Scalekit.V1.K" + + "eys\312\002\020Scalekit\\V1\\Keys\342\002\034Scalekit\\V1\\Key" + + "s\\GPBMetadata\352\002\022Scalekit::V1::Keysb\006prot" + + "o3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(), + com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(), + com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(), + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(), + com.scalekit.grpc.scalekit.v1.options.OptionsProto.getDescriptor(), + }); + internal_static_scalekit_v1_keys_CreateDEKRequest_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_scalekit_v1_keys_CreateDEKRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_CreateDEKRequest_descriptor, + new java.lang.String[] { "KeyType", "Provider", "KeyRef", }); + internal_static_scalekit_v1_keys_CreateDEKResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_scalekit_v1_keys_CreateDEKResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_CreateDEKResponse_descriptor, + new java.lang.String[] { "Dek", }); + internal_static_scalekit_v1_keys_RotateDEKRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_scalekit_v1_keys_RotateDEKRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_RotateDEKRequest_descriptor, + new java.lang.String[] { }); + internal_static_scalekit_v1_keys_RotateDEKResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_scalekit_v1_keys_RotateDEKResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_RotateDEKResponse_descriptor, + new java.lang.String[] { "Dek", }); + internal_static_scalekit_v1_keys_ListDEKsRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_scalekit_v1_keys_ListDEKsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_ListDEKsRequest_descriptor, + new java.lang.String[] { "Status", "PageSize", "PageToken", }); + internal_static_scalekit_v1_keys_ListDEKsResponse_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_scalekit_v1_keys_ListDEKsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_ListDEKsResponse_descriptor, + new java.lang.String[] { "Deks", "NextPageToken", "TotalSize", }); + internal_static_scalekit_v1_keys_DeleteDEKRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_scalekit_v1_keys_DeleteDEKRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_DeleteDEKRequest_descriptor, + new java.lang.String[] { "DekVersion", }); + internal_static_scalekit_v1_keys_RotateMasterKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_scalekit_v1_keys_RotateMasterKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_RotateMasterKeyRequest_descriptor, + new java.lang.String[] { }); + internal_static_scalekit_v1_keys_RotateMasterKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_scalekit_v1_keys_RotateMasterKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_RotateMasterKeyResponse_descriptor, + new java.lang.String[] { "NewMasterKey", }); + internal_static_scalekit_v1_keys_EnvironmentKey_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_scalekit_v1_keys_EnvironmentKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_EnvironmentKey_descriptor, + new java.lang.String[] { "Id", "EnvironmentId", "DekVersion", "MasterVersion", "Algorithm", "Status", "CreatedAt", "RotatedAt", }); + internal_static_scalekit_v1_keys_MasterKey_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_scalekit_v1_keys_MasterKey_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_MasterKey_descriptor, + new java.lang.String[] { "Id", "Provider", "KeyRef", "Version", "Status", "CreatedAt", "RotatedAt", }); + internal_static_scalekit_v1_keys_CreateMasterKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_scalekit_v1_keys_CreateMasterKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_CreateMasterKeyRequest_descriptor, + new java.lang.String[] { "Provider", "KeyRef", "Version", }); + internal_static_scalekit_v1_keys_CreateMasterKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_scalekit_v1_keys_CreateMasterKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_CreateMasterKeyResponse_descriptor, + new java.lang.String[] { "MasterKey", }); + internal_static_scalekit_v1_keys_SetActiveDEKRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_scalekit_v1_keys_SetActiveDEKRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_SetActiveDEKRequest_descriptor, + new java.lang.String[] { "DekVersion", }); + internal_static_scalekit_v1_keys_SetActiveDEKResponse_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_scalekit_v1_keys_SetActiveDEKResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_SetActiveDEKResponse_descriptor, + new java.lang.String[] { "Dek", }); + internal_static_scalekit_v1_keys_SetActiveMasterKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_scalekit_v1_keys_SetActiveMasterKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_SetActiveMasterKeyRequest_descriptor, + new java.lang.String[] { "Version", }); + internal_static_scalekit_v1_keys_SetActiveMasterKeyResponse_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_scalekit_v1_keys_SetActiveMasterKeyResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_SetActiveMasterKeyResponse_descriptor, + new java.lang.String[] { "MasterKey", }); + internal_static_scalekit_v1_keys_DestroyDEKRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_scalekit_v1_keys_DestroyDEKRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_DestroyDEKRequest_descriptor, + new java.lang.String[] { "DekVersion", }); + internal_static_scalekit_v1_keys_DestroyMasterKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_scalekit_v1_keys_DestroyMasterKeyRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_keys_DestroyMasterKeyRequest_descriptor, + new java.lang.String[] { "Version", }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.scalekit.grpc.buf.validate.ValidateProto.field); + registry.add(com.scalekit.grpc.google.api.AnnotationsProto.http); + registry.add(com.scalekit.grpc.google.api.VisibilityProto.methodVisibility); + registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Operation); + registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Tag); + registry.add(com.scalekit.grpc.scalekit.v1.options.OptionsProto.authOption); + com.google.protobuf.Descriptors.FileDescriptor + .internalUpdateFileDescriptor(descriptor, registry); + com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(); + com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(); + com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(); + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(); + com.scalekit.grpc.scalekit.v1.options.OptionsProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsRequest.java new file mode 100644 index 00000000..7e9ebb28 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsRequest.java @@ -0,0 +1,856 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * ListDEKsRequest requests listing of DEKs with pagination.
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.ListDEKsRequest} + */ +public final class ListDEKsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.ListDEKsRequest) + ListDEKsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListDEKsRequest.newBuilder() to construct. + private ListDEKsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListDEKsRequest() { + status_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListDEKsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_ListDEKsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_ListDEKsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest.class, com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest.Builder.class); + } + + private int bitField0_; + public static final int STATUS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + /** + *
+   * Optional: filter by status (ACTIVE, DEPRECATED)
+   * 
+ * + * optional string status = 1 [json_name = "status"]; + * @return Whether the status field is set. + */ + @java.lang.Override + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Optional: filter by status (ACTIVE, DEPRECATED)
+   * 
+ * + * optional string status = 1 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + 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(); + status_ = s; + return s; + } + } + /** + *
+   * Optional: filter by status (ACTIVE, DEPRECATED)
+   * 
+ * + * optional string status = 1 [json_name = "status"]; + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + *
+   * Page size. Defaults to 10, max 100.
+   * 
+ * + * uint32 page_size = 2 [json_name = "pageSize"]; + * @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_ = ""; + /** + *
+   * Page token from a previous ListDEKsResponse.next_page_token. Omit for first page.
+   * 
+ * + * string page_token = 3 [json_name = "pageToken"]; + * @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; + } + } + /** + *
+   * Page token from a previous ListDEKsResponse.next_page_token. Omit for first page.
+   * 
+ * + * string page_token = 3 [json_name = "pageToken"]; + * @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 (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, status_); + } + if (pageSize_ != 0) { + output.writeUInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + 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.GeneratedMessageV3.computeStringSize(1, status_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.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.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest other = (com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest) obj; + + if (hasStatus() != other.hasStatus()) return false; + if (hasStatus()) { + if (!getStatus() + .equals(other.getStatus())) 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(); + if (hasStatus()) { + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().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.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListDEKsRequest requests listing of DEKs with pagination.
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.ListDEKsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.ListDEKsRequest) + com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_ListDEKsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_ListDEKsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest.class, com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + status_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_ListDEKsRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest build() { + com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest result = new com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.status_ = status_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest.getDefaultInstance()) return this; + if (other.hasStatus()) { + status_ = other.status_; + 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: { + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readUInt32(); + 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 status_ = ""; + /** + *
+     * Optional: filter by status (ACTIVE, DEPRECATED)
+     * 
+ * + * optional string status = 1 [json_name = "status"]; + * @return Whether the status field is set. + */ + public boolean hasStatus() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+     * Optional: filter by status (ACTIVE, DEPRECATED)
+     * 
+ * + * optional string status = 1 [json_name = "status"]; + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Optional: filter by status (ACTIVE, DEPRECATED)
+     * 
+ * + * optional string status = 1 [json_name = "status"]; + * @return The bytes for status. + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Optional: filter by status (ACTIVE, DEPRECATED)
+     * 
+ * + * optional string status = 1 [json_name = "status"]; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Optional: filter by status (ACTIVE, DEPRECATED)
+     * 
+ * + * optional string status = 1 [json_name = "status"]; + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + *
+     * Optional: filter by status (ACTIVE, DEPRECATED)
+     * 
+ * + * optional string status = 1 [json_name = "status"]; + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + status_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + *
+     * Page size. Defaults to 10, max 100.
+     * 
+ * + * uint32 page_size = 2 [json_name = "pageSize"]; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + *
+     * Page size. Defaults to 10, max 100.
+     * 
+ * + * uint32 page_size = 2 [json_name = "pageSize"]; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Page size. Defaults to 10, max 100.
+     * 
+ * + * uint32 page_size = 2 [json_name = "pageSize"]; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + *
+     * Page token from a previous ListDEKsResponse.next_page_token. Omit for first page.
+     * 
+ * + * string page_token = 3 [json_name = "pageToken"]; + * @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; + } + } + /** + *
+     * Page token from a previous ListDEKsResponse.next_page_token. Omit for first page.
+     * 
+ * + * string page_token = 3 [json_name = "pageToken"]; + * @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; + } + } + /** + *
+     * Page token from a previous ListDEKsResponse.next_page_token. Omit for first page.
+     * 
+ * + * string page_token = 3 [json_name = "pageToken"]; + * @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; + } + /** + *
+     * Page token from a previous ListDEKsResponse.next_page_token. Omit for first page.
+     * 
+ * + * string page_token = 3 [json_name = "pageToken"]; + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * Page token from a previous ListDEKsResponse.next_page_token. Omit for first page.
+     * 
+ * + * string page_token = 3 [json_name = "pageToken"]; + * @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; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.ListDEKsRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.ListDEKsRequest) + private static final com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDEKsRequest 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.scalekit.grpc.scalekit.v1.keys.ListDEKsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsRequestOrBuilder.java new file mode 100644 index 00000000..86b8bd27 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsRequestOrBuilder.java @@ -0,0 +1,69 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface ListDEKsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.ListDEKsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Optional: filter by status (ACTIVE, DEPRECATED)
+   * 
+ * + * optional string status = 1 [json_name = "status"]; + * @return Whether the status field is set. + */ + boolean hasStatus(); + /** + *
+   * Optional: filter by status (ACTIVE, DEPRECATED)
+   * 
+ * + * optional string status = 1 [json_name = "status"]; + * @return The status. + */ + java.lang.String getStatus(); + /** + *
+   * Optional: filter by status (ACTIVE, DEPRECATED)
+   * 
+ * + * optional string status = 1 [json_name = "status"]; + * @return The bytes for status. + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + *
+   * Page size. Defaults to 10, max 100.
+   * 
+ * + * uint32 page_size = 2 [json_name = "pageSize"]; + * @return The pageSize. + */ + int getPageSize(); + + /** + *
+   * Page token from a previous ListDEKsResponse.next_page_token. Omit for first page.
+   * 
+ * + * string page_token = 3 [json_name = "pageToken"]; + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + *
+   * Page token from a previous ListDEKsResponse.next_page_token. Omit for first page.
+   * 
+ * + * string page_token = 3 [json_name = "pageToken"]; + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsResponse.java new file mode 100644 index 00000000..3a30312a --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsResponse.java @@ -0,0 +1,1014 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * ListDEKsResponse returns a page of DEKs and pagination token.
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.ListDEKsResponse} + */ +public final class ListDEKsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.ListDEKsResponse) + ListDEKsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListDEKsResponse.newBuilder() to construct. + private ListDEKsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListDEKsResponse() { + deks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListDEKsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_ListDEKsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_ListDEKsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse.class, com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse.Builder.class); + } + + public static final int DEKS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private java.util.List deks_; + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + @java.lang.Override + public java.util.List getDeksList() { + return deks_; + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + @java.lang.Override + public java.util.List + getDeksOrBuilderList() { + return deks_; + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + @java.lang.Override + public int getDeksCount() { + return deks_.size(); + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDeks(int index) { + return deks_.get(index); + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder getDeksOrBuilder( + int index) { + return deks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + *
+   * Token for the next page. Empty if no more pages.
+   * 
+ * + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @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; + } + } + /** + *
+   * Token for the next page. Empty if no more pages.
+   * 
+ * + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @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 TOTAL_SIZE_FIELD_NUMBER = 3; + private int totalSize_ = 0; + /** + *
+   * Total number of DEKs matching the request (across all pages).
+   * 
+ * + * uint32 total_size = 3 [json_name = "totalSize"]; + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + 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 < deks_.size(); i++) { + output.writeMessage(1, deks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeUInt32(3, totalSize_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < deks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, deks_.get(i)); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(3, totalSize_); + } + 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.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse other = (com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse) obj; + + if (!getDeksList() + .equals(other.getDeksList())) return false; + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) 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 (getDeksCount() > 0) { + hash = (37 * hash) + DEKS_FIELD_NUMBER; + hash = (53 * hash) + getDeksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * ListDEKsResponse returns a page of DEKs and pagination token.
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.ListDEKsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.ListDEKsResponse) + com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_ListDEKsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_ListDEKsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse.class, com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (deksBuilder_ == null) { + deks_ = java.util.Collections.emptyList(); + } else { + deks_ = null; + deksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + totalSize_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_ListDEKsResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse build() { + com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse result = new com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse result) { + if (deksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + deks_ = java.util.Collections.unmodifiableList(deks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.deks_ = deks_; + } else { + result.deks_ = deksBuilder_.build(); + } + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.totalSize_ = totalSize_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse.getDefaultInstance()) return this; + if (deksBuilder_ == null) { + if (!other.deks_.isEmpty()) { + if (deks_.isEmpty()) { + deks_ = other.deks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDeksIsMutable(); + deks_.addAll(other.deks_); + } + onChanged(); + } + } else { + if (!other.deks_.isEmpty()) { + if (deksBuilder_.isEmpty()) { + deksBuilder_.dispose(); + deksBuilder_ = null; + deks_ = other.deks_; + bitField0_ = (bitField0_ & ~0x00000001); + deksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDeksFieldBuilder() : null; + } else { + deksBuilder_.addAllMessages(other.deks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + 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.scalekit.grpc.scalekit.v1.keys.EnvironmentKey m = + input.readMessage( + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.parser(), + extensionRegistry); + if (deksBuilder_ == null) { + ensureDeksIsMutable(); + deks_.add(m); + } else { + deksBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + totalSize_ = input.readUInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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 deks_ = + java.util.Collections.emptyList(); + private void ensureDeksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + deks_ = new java.util.ArrayList(deks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder> deksBuilder_; + + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public java.util.List getDeksList() { + if (deksBuilder_ == null) { + return java.util.Collections.unmodifiableList(deks_); + } else { + return deksBuilder_.getMessageList(); + } + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public int getDeksCount() { + if (deksBuilder_ == null) { + return deks_.size(); + } else { + return deksBuilder_.getCount(); + } + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDeks(int index) { + if (deksBuilder_ == null) { + return deks_.get(index); + } else { + return deksBuilder_.getMessage(index); + } + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public Builder setDeks( + int index, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey value) { + if (deksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeksIsMutable(); + deks_.set(index, value); + onChanged(); + } else { + deksBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public Builder setDeks( + int index, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder builderForValue) { + if (deksBuilder_ == null) { + ensureDeksIsMutable(); + deks_.set(index, builderForValue.build()); + onChanged(); + } else { + deksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public Builder addDeks(com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey value) { + if (deksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeksIsMutable(); + deks_.add(value); + onChanged(); + } else { + deksBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public Builder addDeks( + int index, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey value) { + if (deksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDeksIsMutable(); + deks_.add(index, value); + onChanged(); + } else { + deksBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public Builder addDeks( + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder builderForValue) { + if (deksBuilder_ == null) { + ensureDeksIsMutable(); + deks_.add(builderForValue.build()); + onChanged(); + } else { + deksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public Builder addDeks( + int index, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder builderForValue) { + if (deksBuilder_ == null) { + ensureDeksIsMutable(); + deks_.add(index, builderForValue.build()); + onChanged(); + } else { + deksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public Builder addAllDeks( + java.lang.Iterable values) { + if (deksBuilder_ == null) { + ensureDeksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, deks_); + onChanged(); + } else { + deksBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public Builder clearDeks() { + if (deksBuilder_ == null) { + deks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + deksBuilder_.clear(); + } + return this; + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public Builder removeDeks(int index) { + if (deksBuilder_ == null) { + ensureDeksIsMutable(); + deks_.remove(index); + onChanged(); + } else { + deksBuilder_.remove(index); + } + return this; + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder getDeksBuilder( + int index) { + return getDeksFieldBuilder().getBuilder(index); + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder getDeksOrBuilder( + int index) { + if (deksBuilder_ == null) { + return deks_.get(index); } else { + return deksBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public java.util.List + getDeksOrBuilderList() { + if (deksBuilder_ != null) { + return deksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(deks_); + } + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder addDeksBuilder() { + return getDeksFieldBuilder().addBuilder( + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder addDeksBuilder( + int index) { + return getDeksFieldBuilder().addBuilder( + index, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + public java.util.List + getDeksBuilderList() { + return getDeksFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder> + getDeksFieldBuilder() { + if (deksBuilder_ == null) { + deksBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder>( + deks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + deks_ = null; + } + return deksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + *
+     * Token for the next page. Empty if no more pages.
+     * 
+ * + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @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; + } + } + /** + *
+     * Token for the next page. Empty if no more pages.
+     * 
+ * + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @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; + } + } + /** + *
+     * Token for the next page. Empty if no more pages.
+     * 
+ * + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @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; + } + /** + *
+     * Token for the next page. Empty if no more pages.
+     * 
+ * + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * Token for the next page. Empty if no more pages.
+     * 
+ * + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @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 int totalSize_ ; + /** + *
+     * Total number of DEKs matching the request (across all pages).
+     * 
+ * + * uint32 total_size = 3 [json_name = "totalSize"]; + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + /** + *
+     * Total number of DEKs matching the request (across all pages).
+     * 
+ * + * uint32 total_size = 3 [json_name = "totalSize"]; + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Total number of DEKs matching the request (across all pages).
+     * 
+ * + * uint32 total_size = 3 [json_name = "totalSize"]; + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000004); + totalSize_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.ListDEKsResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.ListDEKsResponse) + private static final com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDEKsResponse 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.scalekit.grpc.scalekit.v1.keys.ListDEKsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsResponseOrBuilder.java new file mode 100644 index 00000000..391830d9 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/ListDEKsResponseOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface ListDEKsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.ListDEKsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + java.util.List + getDeksList(); + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDeks(int index); + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + int getDeksCount(); + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + java.util.List + getDeksOrBuilderList(); + /** + * repeated .scalekit.v1.keys.EnvironmentKey deks = 1 [json_name = "deks"]; + */ + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder getDeksOrBuilder( + int index); + + /** + *
+   * Token for the next page. Empty if no more pages.
+   * 
+ * + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + *
+   * Token for the next page. Empty if no more pages.
+   * 
+ * + * string next_page_token = 2 [json_name = "nextPageToken"]; + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + *
+   * Total number of DEKs matching the request (across all pages).
+   * 
+ * + * uint32 total_size = 3 [json_name = "totalSize"]; + * @return The totalSize. + */ + int getTotalSize(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/MasterKey.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/MasterKey.java new file mode 100644 index 00000000..87111e5c --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/MasterKey.java @@ -0,0 +1,1486 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * MasterKey represents a master key version
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.MasterKey} + */ +public final class MasterKey extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.MasterKey) + MasterKeyOrBuilder { +private static final long serialVersionUID = 0L; + // Use MasterKey.newBuilder() to construct. + private MasterKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MasterKey() { + id_ = ""; + provider_ = ""; + keyRef_ = ""; + status_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MasterKey(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_MasterKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_MasterKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.MasterKey.class, com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROVIDER_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object provider_ = ""; + /** + *
+   * GCP, AWS, AZURE, LOCAL
+   * 
+ * + * string provider = 2 [json_name = "provider"]; + * @return The provider. + */ + @java.lang.Override + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + 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(); + provider_ = s; + return s; + } + } + /** + *
+   * GCP, AWS, AZURE, LOCAL
+   * 
+ * + * string provider = 2 [json_name = "provider"]; + * @return The bytes for provider. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int KEY_REF_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object keyRef_ = ""; + /** + *
+   * KMS key URI
+   * 
+ * + * string key_ref = 3 [json_name = "keyRef"]; + * @return The keyRef. + */ + @java.lang.Override + public java.lang.String getKeyRef() { + java.lang.Object ref = keyRef_; + 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(); + keyRef_ = s; + return s; + } + } + /** + *
+   * KMS key URI
+   * 
+ * + * string key_ref = 3 [json_name = "keyRef"]; + * @return The bytes for keyRef. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getKeyRefBytes() { + java.lang.Object ref = keyRef_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + keyRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VERSION_FIELD_NUMBER = 4; + private int version_ = 0; + /** + * int32 version = 4 [json_name = "version"]; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + public static final int STATUS_FIELD_NUMBER = 5; + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + /** + *
+   * CREATED, ACTIVE, DEPRECATED, DISABLED
+   * 
+ * + * string status = 5 [json_name = "status"]; + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + 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(); + status_ = s; + return s; + } + } + /** + *
+   * CREATED, ACTIVE, DEPRECATED, DISABLED
+   * 
+ * + * string status = 5 [json_name = "status"]; + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATED_AT_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createdAt_; + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + @java.lang.Override + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + * @return The createdAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreatedAt() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + + public static final int ROTATED_AT_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp rotatedAt_; + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + * @return Whether the rotatedAt field is set. + */ + @java.lang.Override + public boolean hasRotatedAt() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + * @return The rotatedAt. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getRotatedAt() { + return rotatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rotatedAt_; + } + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getRotatedAtOrBuilder() { + return rotatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rotatedAt_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, provider_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyRef_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, keyRef_); + } + if (version_ != 0) { + output.writeInt32(4, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getCreatedAt()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getRotatedAt()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(provider_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, provider_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyRef_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, keyRef_); + } + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, version_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getCreatedAt()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(7, getRotatedAt()); + } + 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.scalekit.grpc.scalekit.v1.keys.MasterKey)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.MasterKey other = (com.scalekit.grpc.scalekit.v1.keys.MasterKey) obj; + + if (!getId() + .equals(other.getId())) return false; + if (!getProvider() + .equals(other.getProvider())) return false; + if (!getKeyRef() + .equals(other.getKeyRef())) return false; + if (getVersion() + != other.getVersion()) return false; + if (!getStatus() + .equals(other.getStatus())) return false; + if (hasCreatedAt() != other.hasCreatedAt()) return false; + if (hasCreatedAt()) { + if (!getCreatedAt() + .equals(other.getCreatedAt())) return false; + } + if (hasRotatedAt() != other.hasRotatedAt()) return false; + if (hasRotatedAt()) { + if (!getRotatedAt() + .equals(other.getRotatedAt())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + hash = (37 * hash) + KEY_REF_FIELD_NUMBER; + hash = (53 * hash) + getKeyRef().hashCode(); + hash = (37 * hash) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + if (hasCreatedAt()) { + hash = (37 * hash) + CREATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getCreatedAt().hashCode(); + } + if (hasRotatedAt()) { + hash = (37 * hash) + ROTATED_AT_FIELD_NUMBER; + hash = (53 * hash) + getRotatedAt().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.MasterKey prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * MasterKey represents a master key version
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.MasterKey} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.MasterKey) + com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_MasterKey_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_MasterKey_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.MasterKey.class, com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.MasterKey.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getCreatedAtFieldBuilder(); + getRotatedAtFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + provider_ = ""; + keyRef_ = ""; + version_ = 0; + status_ = ""; + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + rotatedAt_ = null; + if (rotatedAtBuilder_ != null) { + rotatedAtBuilder_.dispose(); + rotatedAtBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_MasterKey_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.MasterKey getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.MasterKey build() { + com.scalekit.grpc.scalekit.v1.keys.MasterKey result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.MasterKey buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.MasterKey result = new com.scalekit.grpc.scalekit.v1.keys.MasterKey(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.MasterKey result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.provider_ = provider_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.keyRef_ = keyRef_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.version_ = version_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.status_ = status_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createdAt_ = createdAtBuilder_ == null + ? createdAt_ + : createdAtBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.rotatedAt_ = rotatedAtBuilder_ == null + ? rotatedAt_ + : rotatedAtBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.MasterKey) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.MasterKey)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.MasterKey other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getProvider().isEmpty()) { + provider_ = other.provider_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getKeyRef().isEmpty()) { + keyRef_ = other.keyRef_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasCreatedAt()) { + mergeCreatedAt(other.getCreatedAt()); + } + if (other.hasRotatedAt()) { + mergeRotatedAt(other.getRotatedAt()); + } + 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: { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + provider_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: { + keyRef_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + version_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getCreatedAtFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + input.readMessage( + getRotatedAtFieldBuilder().getBuilder(), + extensionRegistry); + 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 id_ = ""; + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id"]; + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id"]; + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object provider_ = ""; + /** + *
+     * GCP, AWS, AZURE, LOCAL
+     * 
+ * + * string provider = 2 [json_name = "provider"]; + * @return The provider. + */ + public java.lang.String getProvider() { + java.lang.Object ref = provider_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + provider_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * GCP, AWS, AZURE, LOCAL
+     * 
+ * + * string provider = 2 [json_name = "provider"]; + * @return The bytes for provider. + */ + public com.google.protobuf.ByteString + getProviderBytes() { + java.lang.Object ref = provider_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + provider_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * GCP, AWS, AZURE, LOCAL
+     * 
+ * + * string provider = 2 [json_name = "provider"]; + * @param value The provider to set. + * @return This builder for chaining. + */ + public Builder setProvider( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + provider_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * GCP, AWS, AZURE, LOCAL
+     * 
+ * + * string provider = 2 [json_name = "provider"]; + * @return This builder for chaining. + */ + public Builder clearProvider() { + provider_ = getDefaultInstance().getProvider(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + *
+     * GCP, AWS, AZURE, LOCAL
+     * 
+ * + * string provider = 2 [json_name = "provider"]; + * @param value The bytes for provider to set. + * @return This builder for chaining. + */ + public Builder setProviderBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + provider_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object keyRef_ = ""; + /** + *
+     * KMS key URI
+     * 
+ * + * string key_ref = 3 [json_name = "keyRef"]; + * @return The keyRef. + */ + public java.lang.String getKeyRef() { + java.lang.Object ref = keyRef_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + keyRef_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * KMS key URI
+     * 
+ * + * string key_ref = 3 [json_name = "keyRef"]; + * @return The bytes for keyRef. + */ + public com.google.protobuf.ByteString + getKeyRefBytes() { + java.lang.Object ref = keyRef_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + keyRef_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * KMS key URI
+     * 
+ * + * string key_ref = 3 [json_name = "keyRef"]; + * @param value The keyRef to set. + * @return This builder for chaining. + */ + public Builder setKeyRef( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + keyRef_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * KMS key URI
+     * 
+ * + * string key_ref = 3 [json_name = "keyRef"]; + * @return This builder for chaining. + */ + public Builder clearKeyRef() { + keyRef_ = getDefaultInstance().getKeyRef(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + *
+     * KMS key URI
+     * 
+ * + * string key_ref = 3 [json_name = "keyRef"]; + * @param value The bytes for keyRef to set. + * @return This builder for chaining. + */ + public Builder setKeyRefBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + keyRef_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int version_ ; + /** + * int32 version = 4 [json_name = "version"]; + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + /** + * int32 version = 4 [json_name = "version"]; + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int32 version = 4 [json_name = "version"]; + * @return This builder for chaining. + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000008); + version_ = 0; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + /** + *
+     * CREATED, ACTIVE, DEPRECATED, DISABLED
+     * 
+ * + * string status = 5 [json_name = "status"]; + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * CREATED, ACTIVE, DEPRECATED, DISABLED
+     * 
+ * + * string status = 5 [json_name = "status"]; + * @return The bytes for status. + */ + public com.google.protobuf.ByteString + getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * CREATED, ACTIVE, DEPRECATED, DISABLED
+     * 
+ * + * string status = 5 [json_name = "status"]; + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + status_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * CREATED, ACTIVE, DEPRECATED, DISABLED
+     * 
+ * + * string status = 5 [json_name = "status"]; + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + *
+     * CREATED, ACTIVE, DEPRECATED, DISABLED
+     * 
+ * + * string status = 5 [json_name = "status"]; + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + status_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createdAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> createdAtBuilder_; + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + public boolean hasCreatedAt() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + * @return The createdAt. + */ + public com.google.protobuf.Timestamp getCreatedAt() { + if (createdAtBuilder_ == null) { + return createdAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } else { + return createdAtBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + public Builder setCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createdAt_ = value; + } else { + createdAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + public Builder setCreatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (createdAtBuilder_ == null) { + createdAt_ = builderForValue.build(); + } else { + createdAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + public Builder mergeCreatedAt(com.google.protobuf.Timestamp value) { + if (createdAtBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + createdAt_ != null && + createdAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreatedAtBuilder().mergeFrom(value); + } else { + createdAt_ = value; + } + } else { + createdAtBuilder_.mergeFrom(value); + } + if (createdAt_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + public Builder clearCreatedAt() { + bitField0_ = (bitField0_ & ~0x00000020); + createdAt_ = null; + if (createdAtBuilder_ != null) { + createdAtBuilder_.dispose(); + createdAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + public com.google.protobuf.Timestamp.Builder getCreatedAtBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getCreatedAtFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + public com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder() { + if (createdAtBuilder_ != null) { + return createdAtBuilder_.getMessageOrBuilder(); + } else { + return createdAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : createdAt_; + } + } + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getCreatedAtFieldBuilder() { + if (createdAtBuilder_ == null) { + createdAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getCreatedAt(), + getParentForChildren(), + isClean()); + createdAt_ = null; + } + return createdAtBuilder_; + } + + private com.google.protobuf.Timestamp rotatedAt_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> rotatedAtBuilder_; + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + * @return Whether the rotatedAt field is set. + */ + public boolean hasRotatedAt() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + * @return The rotatedAt. + */ + public com.google.protobuf.Timestamp getRotatedAt() { + if (rotatedAtBuilder_ == null) { + return rotatedAt_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : rotatedAt_; + } else { + return rotatedAtBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + */ + public Builder setRotatedAt(com.google.protobuf.Timestamp value) { + if (rotatedAtBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rotatedAt_ = value; + } else { + rotatedAtBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + */ + public Builder setRotatedAt( + com.google.protobuf.Timestamp.Builder builderForValue) { + if (rotatedAtBuilder_ == null) { + rotatedAt_ = builderForValue.build(); + } else { + rotatedAtBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + */ + public Builder mergeRotatedAt(com.google.protobuf.Timestamp value) { + if (rotatedAtBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) && + rotatedAt_ != null && + rotatedAt_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getRotatedAtBuilder().mergeFrom(value); + } else { + rotatedAt_ = value; + } + } else { + rotatedAtBuilder_.mergeFrom(value); + } + if (rotatedAt_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + */ + public Builder clearRotatedAt() { + bitField0_ = (bitField0_ & ~0x00000040); + rotatedAt_ = null; + if (rotatedAtBuilder_ != null) { + rotatedAtBuilder_.dispose(); + rotatedAtBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + */ + public com.google.protobuf.Timestamp.Builder getRotatedAtBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return getRotatedAtFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + */ + public com.google.protobuf.TimestampOrBuilder getRotatedAtOrBuilder() { + if (rotatedAtBuilder_ != null) { + return rotatedAtBuilder_.getMessageOrBuilder(); + } else { + return rotatedAt_ == null ? + com.google.protobuf.Timestamp.getDefaultInstance() : rotatedAt_; + } + } + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> + getRotatedAtFieldBuilder() { + if (rotatedAtBuilder_ == null) { + rotatedAtBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( + getRotatedAt(), + getParentForChildren(), + isClean()); + rotatedAt_ = null; + } + return rotatedAtBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.MasterKey) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.MasterKey) + private static final com.scalekit.grpc.scalekit.v1.keys.MasterKey DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.MasterKey(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.MasterKey getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MasterKey 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.scalekit.grpc.scalekit.v1.keys.MasterKey getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/MasterKeyOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/MasterKeyOrBuilder.java new file mode 100644 index 00000000..801a561f --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/MasterKeyOrBuilder.java @@ -0,0 +1,118 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface MasterKeyOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.MasterKey) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id"]; + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id"]; + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); + + /** + *
+   * GCP, AWS, AZURE, LOCAL
+   * 
+ * + * string provider = 2 [json_name = "provider"]; + * @return The provider. + */ + java.lang.String getProvider(); + /** + *
+   * GCP, AWS, AZURE, LOCAL
+   * 
+ * + * string provider = 2 [json_name = "provider"]; + * @return The bytes for provider. + */ + com.google.protobuf.ByteString + getProviderBytes(); + + /** + *
+   * KMS key URI
+   * 
+ * + * string key_ref = 3 [json_name = "keyRef"]; + * @return The keyRef. + */ + java.lang.String getKeyRef(); + /** + *
+   * KMS key URI
+   * 
+ * + * string key_ref = 3 [json_name = "keyRef"]; + * @return The bytes for keyRef. + */ + com.google.protobuf.ByteString + getKeyRefBytes(); + + /** + * int32 version = 4 [json_name = "version"]; + * @return The version. + */ + int getVersion(); + + /** + *
+   * CREATED, ACTIVE, DEPRECATED, DISABLED
+   * 
+ * + * string status = 5 [json_name = "status"]; + * @return The status. + */ + java.lang.String getStatus(); + /** + *
+   * CREATED, ACTIVE, DEPRECATED, DISABLED
+   * 
+ * + * string status = 5 [json_name = "status"]; + * @return The bytes for status. + */ + com.google.protobuf.ByteString + getStatusBytes(); + + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + * @return Whether the createdAt field is set. + */ + boolean hasCreatedAt(); + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + * @return The createdAt. + */ + com.google.protobuf.Timestamp getCreatedAt(); + /** + * .google.protobuf.Timestamp created_at = 6 [json_name = "createdAt"]; + */ + com.google.protobuf.TimestampOrBuilder getCreatedAtOrBuilder(); + + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + * @return Whether the rotatedAt field is set. + */ + boolean hasRotatedAt(); + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + * @return The rotatedAt. + */ + com.google.protobuf.Timestamp getRotatedAt(); + /** + * .google.protobuf.Timestamp rotated_at = 7 [json_name = "rotatedAt"]; + */ + com.google.protobuf.TimestampOrBuilder getRotatedAtOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKRequest.java new file mode 100644 index 00000000..fcb5d4e8 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKRequest.java @@ -0,0 +1,407 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * RotateDEKRequest requests DEK rotation. Empty body - uses environment from request context.
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.RotateDEKRequest} + */ +public final class RotateDEKRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.RotateDEKRequest) + RotateDEKRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use RotateDEKRequest.newBuilder() to construct. + private RotateDEKRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RotateDEKRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RotateDEKRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateDEKRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateDEKRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest.class, com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest.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.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest other = (com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest) 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.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * RotateDEKRequest requests DEK rotation. Empty body - uses environment from request context.
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.RotateDEKRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.RotateDEKRequest) + com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateDEKRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateDEKRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest.class, com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.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.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateDEKRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest build() { + com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest result = new com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest.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; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.RotateDEKRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.RotateDEKRequest) + private static final com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RotateDEKRequest 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.scalekit.grpc.scalekit.v1.keys.RotateDEKRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKRequestOrBuilder.java new file mode 100644 index 00000000..45014522 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKRequestOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface RotateDEKRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.RotateDEKRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKResponse.java new file mode 100644 index 00000000..d297410d --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * RotateDEKResponse returns the new DEK version
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.RotateDEKResponse} + */ +public final class RotateDEKResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.RotateDEKResponse) + RotateDEKResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use RotateDEKResponse.newBuilder() to construct. + private RotateDEKResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RotateDEKResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RotateDEKResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateDEKResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateDEKResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse.class, com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse.Builder.class); + } + + private int bitField0_; + public static final int DEK_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey dek_; + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return Whether the dek field is set. + */ + @java.lang.Override + public boolean hasDek() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return The dek. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDek() { + return dek_ == null ? com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance() : dek_; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder getDekOrBuilder() { + return dek_ == null ? com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance() : dek_; + } + + 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, getDek()); + } + 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, getDek()); + } + 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.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse other = (com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse) obj; + + if (hasDek() != other.hasDek()) return false; + if (hasDek()) { + if (!getDek() + .equals(other.getDek())) 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 (hasDek()) { + hash = (37 * hash) + DEK_FIELD_NUMBER; + hash = (53 * hash) + getDek().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * RotateDEKResponse returns the new DEK version
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.RotateDEKResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.RotateDEKResponse) + com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateDEKResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateDEKResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse.class, com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDekFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dek_ = null; + if (dekBuilder_ != null) { + dekBuilder_.dispose(); + dekBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateDEKResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse build() { + com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse result = new com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dek_ = dekBuilder_ == null + ? dek_ + : dekBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse.getDefaultInstance()) return this; + if (other.hasDek()) { + mergeDek(other.getDek()); + } + 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( + getDekFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey dek_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder> dekBuilder_; + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return Whether the dek field is set. + */ + public boolean hasDek() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return The dek. + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDek() { + if (dekBuilder_ == null) { + return dek_ == null ? com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance() : dek_; + } else { + return dekBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public Builder setDek(com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey value) { + if (dekBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dek_ = value; + } else { + dekBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public Builder setDek( + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder builderForValue) { + if (dekBuilder_ == null) { + dek_ = builderForValue.build(); + } else { + dekBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public Builder mergeDek(com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey value) { + if (dekBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + dek_ != null && + dek_ != com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance()) { + getDekBuilder().mergeFrom(value); + } else { + dek_ = value; + } + } else { + dekBuilder_.mergeFrom(value); + } + if (dek_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public Builder clearDek() { + bitField0_ = (bitField0_ & ~0x00000001); + dek_ = null; + if (dekBuilder_ != null) { + dekBuilder_.dispose(); + dekBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder getDekBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDekFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder getDekOrBuilder() { + if (dekBuilder_ != null) { + return dekBuilder_.getMessageOrBuilder(); + } else { + return dek_ == null ? + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance() : dek_; + } + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder> + getDekFieldBuilder() { + if (dekBuilder_ == null) { + dekBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder>( + getDek(), + getParentForChildren(), + isClean()); + dek_ = null; + } + return dekBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.RotateDEKResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.RotateDEKResponse) + private static final com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RotateDEKResponse 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.scalekit.grpc.scalekit.v1.keys.RotateDEKResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKResponseOrBuilder.java new file mode 100644 index 00000000..2c329e5a --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateDEKResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface RotateDEKResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.RotateDEKResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return Whether the dek field is set. + */ + boolean hasDek(); + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return The dek. + */ + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDek(); + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder getDekOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyRequest.java new file mode 100644 index 00000000..ee8bb0b5 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyRequest.java @@ -0,0 +1,407 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * RotateMasterKeyRequest requests master key rotation
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.RotateMasterKeyRequest} + */ +public final class RotateMasterKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.RotateMasterKeyRequest) + RotateMasterKeyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use RotateMasterKeyRequest.newBuilder() to construct. + private RotateMasterKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RotateMasterKeyRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RotateMasterKeyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateMasterKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateMasterKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest.class, com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest.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.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest other = (com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest) 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.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * RotateMasterKeyRequest requests master key rotation
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.RotateMasterKeyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.RotateMasterKeyRequest) + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateMasterKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateMasterKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest.class, com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.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.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateMasterKeyRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest build() { + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest result = new com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest.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; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.RotateMasterKeyRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.RotateMasterKeyRequest) + private static final com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RotateMasterKeyRequest 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.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyRequestOrBuilder.java new file mode 100644 index 00000000..17e67101 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyRequestOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface RotateMasterKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.RotateMasterKeyRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyResponse.java new file mode 100644 index 00000000..9faacc6a --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * RotateMasterKeyResponse returns master key rotation result
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.RotateMasterKeyResponse} + */ +public final class RotateMasterKeyResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.RotateMasterKeyResponse) + RotateMasterKeyResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use RotateMasterKeyResponse.newBuilder() to construct. + private RotateMasterKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private RotateMasterKeyResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new RotateMasterKeyResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateMasterKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateMasterKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse.class, com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse.Builder.class); + } + + private int bitField0_; + public static final int NEW_MASTER_KEY_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.keys.MasterKey newMasterKey_; + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + * @return Whether the newMasterKey field is set. + */ + @java.lang.Override + public boolean hasNewMasterKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + * @return The newMasterKey. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.MasterKey getNewMasterKey() { + return newMasterKey_ == null ? com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance() : newMasterKey_; + } + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder getNewMasterKeyOrBuilder() { + return newMasterKey_ == null ? com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance() : newMasterKey_; + } + + 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, getNewMasterKey()); + } + 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, getNewMasterKey()); + } + 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.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse other = (com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse) obj; + + if (hasNewMasterKey() != other.hasNewMasterKey()) return false; + if (hasNewMasterKey()) { + if (!getNewMasterKey() + .equals(other.getNewMasterKey())) 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 (hasNewMasterKey()) { + hash = (37 * hash) + NEW_MASTER_KEY_FIELD_NUMBER; + hash = (53 * hash) + getNewMasterKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * RotateMasterKeyResponse returns master key rotation result
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.RotateMasterKeyResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.RotateMasterKeyResponse) + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateMasterKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateMasterKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse.class, com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getNewMasterKeyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + newMasterKey_ = null; + if (newMasterKeyBuilder_ != null) { + newMasterKeyBuilder_.dispose(); + newMasterKeyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_RotateMasterKeyResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse build() { + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse result = new com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.newMasterKey_ = newMasterKeyBuilder_ == null + ? newMasterKey_ + : newMasterKeyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse.getDefaultInstance()) return this; + if (other.hasNewMasterKey()) { + mergeNewMasterKey(other.getNewMasterKey()); + } + 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( + getNewMasterKeyFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.keys.MasterKey newMasterKey_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.MasterKey, com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder, com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder> newMasterKeyBuilder_; + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + * @return Whether the newMasterKey field is set. + */ + public boolean hasNewMasterKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + * @return The newMasterKey. + */ + public com.scalekit.grpc.scalekit.v1.keys.MasterKey getNewMasterKey() { + if (newMasterKeyBuilder_ == null) { + return newMasterKey_ == null ? com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance() : newMasterKey_; + } else { + return newMasterKeyBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + */ + public Builder setNewMasterKey(com.scalekit.grpc.scalekit.v1.keys.MasterKey value) { + if (newMasterKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + newMasterKey_ = value; + } else { + newMasterKeyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + */ + public Builder setNewMasterKey( + com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder builderForValue) { + if (newMasterKeyBuilder_ == null) { + newMasterKey_ = builderForValue.build(); + } else { + newMasterKeyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + */ + public Builder mergeNewMasterKey(com.scalekit.grpc.scalekit.v1.keys.MasterKey value) { + if (newMasterKeyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + newMasterKey_ != null && + newMasterKey_ != com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance()) { + getNewMasterKeyBuilder().mergeFrom(value); + } else { + newMasterKey_ = value; + } + } else { + newMasterKeyBuilder_.mergeFrom(value); + } + if (newMasterKey_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + */ + public Builder clearNewMasterKey() { + bitField0_ = (bitField0_ & ~0x00000001); + newMasterKey_ = null; + if (newMasterKeyBuilder_ != null) { + newMasterKeyBuilder_.dispose(); + newMasterKeyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder getNewMasterKeyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getNewMasterKeyFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder getNewMasterKeyOrBuilder() { + if (newMasterKeyBuilder_ != null) { + return newMasterKeyBuilder_.getMessageOrBuilder(); + } else { + return newMasterKey_ == null ? + com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance() : newMasterKey_; + } + } + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.MasterKey, com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder, com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder> + getNewMasterKeyFieldBuilder() { + if (newMasterKeyBuilder_ == null) { + newMasterKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.MasterKey, com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder, com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder>( + getNewMasterKey(), + getParentForChildren(), + isClean()); + newMasterKey_ = null; + } + return newMasterKeyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.RotateMasterKeyResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.RotateMasterKeyResponse) + private static final com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RotateMasterKeyResponse 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.scalekit.grpc.scalekit.v1.keys.RotateMasterKeyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyResponseOrBuilder.java new file mode 100644 index 00000000..e4142687 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/RotateMasterKeyResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface RotateMasterKeyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.RotateMasterKeyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + * @return Whether the newMasterKey field is set. + */ + boolean hasNewMasterKey(); + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + * @return The newMasterKey. + */ + com.scalekit.grpc.scalekit.v1.keys.MasterKey getNewMasterKey(); + /** + * .scalekit.v1.keys.MasterKey new_master_key = 1 [json_name = "newMasterKey"]; + */ + com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder getNewMasterKeyOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKRequest.java new file mode 100644 index 00000000..e9d8ef6b --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKRequest.java @@ -0,0 +1,496 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * SetActiveDEKRequest requests setting a DEK version as active
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.SetActiveDEKRequest} + */ +public final class SetActiveDEKRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.SetActiveDEKRequest) + SetActiveDEKRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetActiveDEKRequest.newBuilder() to construct. + private SetActiveDEKRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetActiveDEKRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetActiveDEKRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveDEKRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveDEKRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest.class, com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest.Builder.class); + } + + public static final int DEK_VERSION_FIELD_NUMBER = 1; + private int dekVersion_ = 0; + /** + *
+   * DEK version to set as active
+   * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @return The dekVersion. + */ + @java.lang.Override + public int getDekVersion() { + return dekVersion_; + } + + 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 (dekVersion_ != 0) { + output.writeInt32(1, dekVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dekVersion_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, dekVersion_); + } + 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.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest other = (com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest) obj; + + if (getDekVersion() + != other.getDekVersion()) 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) + DEK_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getDekVersion(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetActiveDEKRequest requests setting a DEK version as active
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.SetActiveDEKRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.SetActiveDEKRequest) + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveDEKRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveDEKRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest.class, com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dekVersion_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveDEKRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest build() { + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest result = new com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dekVersion_ = dekVersion_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest.getDefaultInstance()) return this; + if (other.getDekVersion() != 0) { + setDekVersion(other.getDekVersion()); + } + 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 8: { + dekVersion_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 int dekVersion_ ; + /** + *
+     * DEK version to set as active
+     * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @return The dekVersion. + */ + @java.lang.Override + public int getDekVersion() { + return dekVersion_; + } + /** + *
+     * DEK version to set as active
+     * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @param value The dekVersion to set. + * @return This builder for chaining. + */ + public Builder setDekVersion(int value) { + + dekVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * DEK version to set as active
+     * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearDekVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + dekVersion_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.SetActiveDEKRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.SetActiveDEKRequest) + private static final com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetActiveDEKRequest 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.scalekit.grpc.scalekit.v1.keys.SetActiveDEKRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKRequestOrBuilder.java new file mode 100644 index 00000000..b9f77604 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKRequestOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface SetActiveDEKRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.SetActiveDEKRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * DEK version to set as active
+   * 
+ * + * int32 dek_version = 1 [json_name = "dekVersion", (.buf.validate.field) = { ... } + * @return The dekVersion. + */ + int getDekVersion(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKResponse.java new file mode 100644 index 00000000..270bfb92 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * SetActiveDEKResponse returns the updated DEK information
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.SetActiveDEKResponse} + */ +public final class SetActiveDEKResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.SetActiveDEKResponse) + SetActiveDEKResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetActiveDEKResponse.newBuilder() to construct. + private SetActiveDEKResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetActiveDEKResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetActiveDEKResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveDEKResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveDEKResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse.class, com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse.Builder.class); + } + + private int bitField0_; + public static final int DEK_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey dek_; + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return Whether the dek field is set. + */ + @java.lang.Override + public boolean hasDek() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return The dek. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDek() { + return dek_ == null ? com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance() : dek_; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder getDekOrBuilder() { + return dek_ == null ? com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance() : dek_; + } + + 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, getDek()); + } + 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, getDek()); + } + 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.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse other = (com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse) obj; + + if (hasDek() != other.hasDek()) return false; + if (hasDek()) { + if (!getDek() + .equals(other.getDek())) 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 (hasDek()) { + hash = (37 * hash) + DEK_FIELD_NUMBER; + hash = (53 * hash) + getDek().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetActiveDEKResponse returns the updated DEK information
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.SetActiveDEKResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.SetActiveDEKResponse) + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveDEKResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveDEKResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse.class, com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDekFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + dek_ = null; + if (dekBuilder_ != null) { + dekBuilder_.dispose(); + dekBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveDEKResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse build() { + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse result = new com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.dek_ = dekBuilder_ == null + ? dek_ + : dekBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse.getDefaultInstance()) return this; + if (other.hasDek()) { + mergeDek(other.getDek()); + } + 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( + getDekFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey dek_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder> dekBuilder_; + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return Whether the dek field is set. + */ + public boolean hasDek() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return The dek. + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDek() { + if (dekBuilder_ == null) { + return dek_ == null ? com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance() : dek_; + } else { + return dekBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public Builder setDek(com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey value) { + if (dekBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dek_ = value; + } else { + dekBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public Builder setDek( + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder builderForValue) { + if (dekBuilder_ == null) { + dek_ = builderForValue.build(); + } else { + dekBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public Builder mergeDek(com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey value) { + if (dekBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + dek_ != null && + dek_ != com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance()) { + getDekBuilder().mergeFrom(value); + } else { + dek_ = value; + } + } else { + dekBuilder_.mergeFrom(value); + } + if (dek_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public Builder clearDek() { + bitField0_ = (bitField0_ & ~0x00000001); + dek_ = null; + if (dekBuilder_ != null) { + dekBuilder_.dispose(); + dekBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder getDekBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDekFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder getDekOrBuilder() { + if (dekBuilder_ != null) { + return dekBuilder_.getMessageOrBuilder(); + } else { + return dek_ == null ? + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.getDefaultInstance() : dek_; + } + } + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder> + getDekFieldBuilder() { + if (dekBuilder_ == null) { + dekBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey.Builder, com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder>( + getDek(), + getParentForChildren(), + isClean()); + dek_ = null; + } + return dekBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.SetActiveDEKResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.SetActiveDEKResponse) + private static final com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetActiveDEKResponse 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.scalekit.grpc.scalekit.v1.keys.SetActiveDEKResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKResponseOrBuilder.java new file mode 100644 index 00000000..e0b085ab --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveDEKResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface SetActiveDEKResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.SetActiveDEKResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return Whether the dek field is set. + */ + boolean hasDek(); + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + * @return The dek. + */ + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKey getDek(); + /** + * .scalekit.v1.keys.EnvironmentKey dek = 1 [json_name = "dek"]; + */ + com.scalekit.grpc.scalekit.v1.keys.EnvironmentKeyOrBuilder getDekOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyRequest.java new file mode 100644 index 00000000..5e78c039 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyRequest.java @@ -0,0 +1,496 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * SetActiveMasterKeyRequest requests setting a master key version as active
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.SetActiveMasterKeyRequest} + */ +public final class SetActiveMasterKeyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.SetActiveMasterKeyRequest) + SetActiveMasterKeyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetActiveMasterKeyRequest.newBuilder() to construct. + private SetActiveMasterKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetActiveMasterKeyRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetActiveMasterKeyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveMasterKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveMasterKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest.class, com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest.Builder.class); + } + + public static final int VERSION_FIELD_NUMBER = 1; + private int version_ = 0; + /** + *
+   * Master key version to set as active
+   * 
+ * + * int32 version = 1 [json_name = "version", (.buf.validate.field) = { ... } + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + + 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 (version_ != 0) { + output.writeInt32(1, version_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (version_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, version_); + } + 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.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest other = (com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest) obj; + + if (getVersion() + != other.getVersion()) 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) + VERSION_FIELD_NUMBER; + hash = (53 * hash) + getVersion(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetActiveMasterKeyRequest requests setting a master key version as active
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.SetActiveMasterKeyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.SetActiveMasterKeyRequest) + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveMasterKeyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveMasterKeyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest.class, com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + version_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveMasterKeyRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest build() { + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest result = new com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.version_ = version_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest.getDefaultInstance()) return this; + if (other.getVersion() != 0) { + setVersion(other.getVersion()); + } + 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 8: { + version_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 int version_ ; + /** + *
+     * Master key version to set as active
+     * 
+ * + * int32 version = 1 [json_name = "version", (.buf.validate.field) = { ... } + * @return The version. + */ + @java.lang.Override + public int getVersion() { + return version_; + } + /** + *
+     * Master key version to set as active
+     * 
+ * + * int32 version = 1 [json_name = "version", (.buf.validate.field) = { ... } + * @param value The version to set. + * @return This builder for chaining. + */ + public Builder setVersion(int value) { + + version_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+     * Master key version to set as active
+     * 
+ * + * int32 version = 1 [json_name = "version", (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearVersion() { + bitField0_ = (bitField0_ & ~0x00000001); + version_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.SetActiveMasterKeyRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.SetActiveMasterKeyRequest) + private static final com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetActiveMasterKeyRequest 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.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyRequestOrBuilder.java new file mode 100644 index 00000000..e9ae87e1 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyRequestOrBuilder.java @@ -0,0 +1,20 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface SetActiveMasterKeyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.SetActiveMasterKeyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + *
+   * Master key version to set as active
+   * 
+ * + * int32 version = 1 [json_name = "version", (.buf.validate.field) = { ... } + * @return The version. + */ + int getVersion(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyResponse.java new file mode 100644 index 00000000..1e29f5e4 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyResponse.java @@ -0,0 +1,607 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +/** + *
+ * SetActiveMasterKeyResponse returns the updated master key information
+ * 
+ * + * Protobuf type {@code scalekit.v1.keys.SetActiveMasterKeyResponse} + */ +public final class SetActiveMasterKeyResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.keys.SetActiveMasterKeyResponse) + SetActiveMasterKeyResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use SetActiveMasterKeyResponse.newBuilder() to construct. + private SetActiveMasterKeyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private SetActiveMasterKeyResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new SetActiveMasterKeyResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveMasterKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveMasterKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse.class, com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse.Builder.class); + } + + private int bitField0_; + public static final int MASTER_KEY_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.keys.MasterKey masterKey_; + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + * @return Whether the masterKey field is set. + */ + @java.lang.Override + public boolean hasMasterKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + * @return The masterKey. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.MasterKey getMasterKey() { + return masterKey_ == null ? com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance() : masterKey_; + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder getMasterKeyOrBuilder() { + return masterKey_ == null ? com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance() : masterKey_; + } + + 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, getMasterKey()); + } + 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, getMasterKey()); + } + 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.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse other = (com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse) obj; + + if (hasMasterKey() != other.hasMasterKey()) return false; + if (hasMasterKey()) { + if (!getMasterKey() + .equals(other.getMasterKey())) 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 (hasMasterKey()) { + hash = (37 * hash) + MASTER_KEY_FIELD_NUMBER; + hash = (53 * hash) + getMasterKey().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + *
+   * SetActiveMasterKeyResponse returns the updated master key information
+   * 
+ * + * Protobuf type {@code scalekit.v1.keys.SetActiveMasterKeyResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.keys.SetActiveMasterKeyResponse) + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveMasterKeyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveMasterKeyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse.class, com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getMasterKeyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + masterKey_ = null; + if (masterKeyBuilder_ != null) { + masterKeyBuilder_.dispose(); + masterKeyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.keys.KeysProto.internal_static_scalekit_v1_keys_SetActiveMasterKeyResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse build() { + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse result = new com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.masterKey_ = masterKeyBuilder_ == null + ? masterKey_ + : masterKeyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse.getDefaultInstance()) return this; + if (other.hasMasterKey()) { + mergeMasterKey(other.getMasterKey()); + } + 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( + getMasterKeyFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.keys.MasterKey masterKey_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.MasterKey, com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder, com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder> masterKeyBuilder_; + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + * @return Whether the masterKey field is set. + */ + public boolean hasMasterKey() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + * @return The masterKey. + */ + public com.scalekit.grpc.scalekit.v1.keys.MasterKey getMasterKey() { + if (masterKeyBuilder_ == null) { + return masterKey_ == null ? com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance() : masterKey_; + } else { + return masterKeyBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + public Builder setMasterKey(com.scalekit.grpc.scalekit.v1.keys.MasterKey value) { + if (masterKeyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + masterKey_ = value; + } else { + masterKeyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + public Builder setMasterKey( + com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder builderForValue) { + if (masterKeyBuilder_ == null) { + masterKey_ = builderForValue.build(); + } else { + masterKeyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + public Builder mergeMasterKey(com.scalekit.grpc.scalekit.v1.keys.MasterKey value) { + if (masterKeyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + masterKey_ != null && + masterKey_ != com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance()) { + getMasterKeyBuilder().mergeFrom(value); + } else { + masterKey_ = value; + } + } else { + masterKeyBuilder_.mergeFrom(value); + } + if (masterKey_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + public Builder clearMasterKey() { + bitField0_ = (bitField0_ & ~0x00000001); + masterKey_ = null; + if (masterKeyBuilder_ != null) { + masterKeyBuilder_.dispose(); + masterKeyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder getMasterKeyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getMasterKeyFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + public com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder getMasterKeyOrBuilder() { + if (masterKeyBuilder_ != null) { + return masterKeyBuilder_.getMessageOrBuilder(); + } else { + return masterKey_ == null ? + com.scalekit.grpc.scalekit.v1.keys.MasterKey.getDefaultInstance() : masterKey_; + } + } + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.MasterKey, com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder, com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder> + getMasterKeyFieldBuilder() { + if (masterKeyBuilder_ == null) { + masterKeyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.keys.MasterKey, com.scalekit.grpc.scalekit.v1.keys.MasterKey.Builder, com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder>( + getMasterKey(), + getParentForChildren(), + isClean()); + masterKey_ = null; + } + return masterKeyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.keys.SetActiveMasterKeyResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.keys.SetActiveMasterKeyResponse) + private static final com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SetActiveMasterKeyResponse 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.scalekit.grpc.scalekit.v1.keys.SetActiveMasterKeyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyResponseOrBuilder.java new file mode 100644 index 00000000..a0ad7034 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/keys/SetActiveMasterKeyResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/keys/keys.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.keys; + +public interface SetActiveMasterKeyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.keys.SetActiveMasterKeyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + * @return Whether the masterKey field is set. + */ + boolean hasMasterKey(); + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + * @return The masterKey. + */ + com.scalekit.grpc.scalekit.v1.keys.MasterKey getMasterKey(); + /** + * .scalekit.v1.keys.MasterKey master_key = 1 [json_name = "masterKey"]; + */ + com.scalekit.grpc.scalekit.v1.keys.MasterKeyOrBuilder getMasterKeyOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/members/MembersProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/members/MembersProto.java index 36348d5c..00be3be7 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/members/MembersProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/members/MembersProto.java @@ -102,100 +102,103 @@ public static void registerAllExtensions( "\n!scalekit/v1/members/members.proto\022\023sca" + "lekit.v1.members\032\033buf/validate/validate." + "proto\032\034google/api/annotations.proto\032\037goo" + - "gle/api/field_behavior.proto\032\033google/pro" + - "tobuf/empty.proto\032\037google/protobuf/times" + - "tamp.proto\032.protoc-gen-openapiv2/options" + - "/annotations.proto\032!scalekit/v1/commons/" + - "commons.proto\032!scalekit/v1/options/optio" + - "ns.proto\032\035scalekit/v1/users/users.proto\"" + - "\272\007\n\006Member\022\016\n\002id\030\001 \001(\tR\002id\022;\n\013create_tim" + - "e\030\002 \001(\0132\032.google.protobuf.TimestampR\ncre" + - "ateTime\022;\n\013update_time\030\003 \001(\0132\032.google.pr" + - "otobuf.TimestampR\nupdateTime\022!\n\014workspac" + - "e_id\030\004 \001(\tR\013workspaceId\0223\n\004role\030\005 \001(\0162\037." + - "scalekit.v1.members.MemberRoleR\004role\022,\n\n" + - "first_name\030\006 \001(\tB\010\272H\005r\003\030\310\001H\000R\tfirstName\210" + - "\001\001\022*\n\tlast_name\030\007 \001(\tB\010\272H\005r\003\030\310\001H\001R\010lastN" + - "ame\210\001\001\022\035\n\005email\030\010 \001(\tB\007\272H\004r\002`\001R\005email\022`\n" + - "\010metadata\030\t \003(\0132).scalekit.v1.members.Me" + - "mber.MetadataEntryB\031\272H\026\232\001\023\020\024\"\006r\004\020\003\030\031*\007r\005" + - "\020\001\030\200\002R\010metadata\022V\n\rorganizations\030\n \003(\0132+" + - ".scalekit.v1.commons.OrganizationMembers" + - "hipB\003\340A\003R\rorganizations\022C\n\014user_profile\030" + - "\013 \001(\0132 .scalekit.v1.commons.UserProfileR" + - "\013userProfile\022$\n\013external_id\030\014 \001(\tB\003\340A\003R\n" + - "externalId\022#\n\rworkspace_ids\030\r \003(\tR\014works" + - "paceIds\022\217\001\n\034active_workspace_external_id" + - "\030\016 \001(\tBI\222AC2(Members session current act" + - "ive workspaceJ\027\"org_72289897007874151\"\340A" + - "\003H\002R\031activeWorkspaceExternalId\210\001\001\032;\n\rMet" + - "adataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 " + - "\001(\tR\005value:\0028\001B\r\n\013_first_nameB\014\n\n_last_n" + - "ameB\037\n\035_active_workspace_external_id\"R\n\023" + - "CreateMemberRequest\022;\n\006member\030\001 \001(\0132\033.sc" + - "alekit.v1.members.MemberB\006\272H\003\310\001\001R\006member" + - "\"K\n\024CreateMemberResponse\0223\n\006member\030\001 \001(\013" + - "2\033.scalekit.v1.members.MemberR\006member\"\203\003" + - "\n\014UpdateMember\022.\n\nfirst_name\030\006 \001(\tB\n\272H\007r" + - "\005\020\001\030\310\001H\000R\tfirstName\210\001\001\022,\n\tlast_name\030\007 \001(" + - "\tB\n\272H\007r\005\020\001\030\310\001H\001R\010lastName\210\001\001\022f\n\010metadata" + - "\030\t \003(\0132/.scalekit.v1.members.UpdateMembe" + - "r.MetadataEntryB\031\272H\026\232\001\023\020\n\"\006r\004\020\003\030\031*\007r\005\020\001\030" + - "\200\002R\010metadata\022G\n\014user_profile\030\n \001(\0132$.sca" + - "lekit.v1.users.UpdateUserProfileR\013userPr" + - "ofile\032;\n\rMetadataEntry\022\020\n\003key\030\001 \001(\tR\003key" + - "\022\024\n\005value\030\002 \001(\tR\005value:\0028\001B\r\n\013_first_nam" + - "eB\014\n\n_last_nameJ\004\010\004\020\005J\004\010\010\020\t\"W\n\032UpdateCur" + - "rentMemberRequest\0229\n\006member\030\001 \001(\0132!.scal" + - "ekit.v1.members.UpdateMemberR\006member\"k\n\023" + - "UpdateMemberRequest\022\031\n\002id\030\001 \001(\tB\t\272H\006r\004\020\023" + - "\030\031R\002id\0229\n\006member\030\002 \001(\0132!.scalekit.v1.mem" + - "bers.UpdateMemberR\006member\"K\n\024UpdateMembe" + - "rResponse\0223\n\006member\030\001 \001(\0132\033.scalekit.v1." + - "members.MemberR\006member\"\031\n\027GetCurrentMemb" + - "erRequest\"-\n\020GetMemberRequest\022\031\n\002id\030\001 \001(" + - "\tB\t\272H\006r\004\020\023\030\031R\002id\"H\n\021GetMemberResponse\0223\n" + - "\006member\030\001 \001(\0132\033.scalekit.v1.members.Memb" + - "erR\006member\"O\n\021ListMemberRequest\022\033\n\tpage_" + - "size\030\001 \001(\rR\010pageSize\022\035\n\npage_token\030\002 \001(\t" + - "R\tpageToken\"\222\001\n\022ListMemberResponse\022&\n\017ne" + - "xt_page_token\030\001 \001(\tR\rnextPageToken\022\035\n\nto" + - "tal_size\030\002 \001(\rR\ttotalSize\0225\n\007members\030\003 \003" + - "(\0132\033.scalekit.v1.members.MemberR\007members" + - "\"0\n\023DeleteMemberRequest\022\031\n\002id\030\001 \001(\tB\t\272H\006" + - "r\004\020\023\030\031R\002id*>\n\nMemberRole\022\033\n\027MEMBER_ROLE_" + - "UNSPECIFIED\020\000\022\t\n\005ADMIN\020\001\022\010\n\004USER\020\0022\323\007\n\016M" + - "embersService\022\212\001\n\014CreateMember\022(.scaleki" + - "t.v1.members.CreateMemberRequest\032).scale" + - "kit.v1.members.CreateMemberResponse\"%\202\265\030" + - "\002\030D\202\323\344\223\002\031\"\017/api/v1/members:\006member\022\235\001\n\023U" + - "pdateCurrentMember\022/.scalekit.v1.members" + - ".UpdateCurrentMemberRequest\032).scalekit.v" + - "1.members.UpdateMemberResponse\"*\202\265\030\002\030D\202\323" + - "\344\223\002\0362\024/api/v1/members:this:\006member\022\217\001\n\014U" + - "pdateMember\022(.scalekit.v1.members.Update" + - "MemberRequest\032).scalekit.v1.members.Upda" + - "teMemberResponse\"*\202\265\030\002\030D\202\323\344\223\002\0362\024/api/v1/" + - "members/{id}:\006member\022\214\001\n\020GetCurrentMembe" + - "r\022,.scalekit.v1.members.GetCurrentMember" + - "Request\032&.scalekit.v1.members.GetMemberR" + - "esponse\"\"\202\265\030\002\030D\202\323\344\223\002\026\022\024/api/v1/members:t" + - "his\022~\n\tGetMember\022%.scalekit.v1.members.G" + - "etMemberRequest\032&.scalekit.v1.members.Ge" + - "tMemberResponse\"\"\202\265\030\002\030D\202\323\344\223\002\026\022\024/api/v1/m" + - "embers/{id}\022}\n\013ListMembers\022&.scalekit.v1" + - ".members.ListMemberRequest\032\'.scalekit.v1" + - ".members.ListMemberResponse\"\035\202\265\030\002\030D\202\323\344\223\002" + - "\021\022\017/api/v1/members\022t\n\014DeleteMember\022(.sca" + - "lekit.v1.members.DeleteMemberRequest\032\026.g" + - "oogle.protobuf.Empty\"\"\202\265\030\002\030D\202\323\344\223\002\026*\024/api" + - "/v1/members/{id}B\326\001\n%com.scalekit.grpc.s" + - "calekit.v1.membersB\014MembersProtoP\001Z1gith" + - "ub.com/scalekit-inc/scalekit/pkg/grpc/me" + - "mbers\242\002\003SVM\252\002\023Scalekit.V1.Members\312\002\023Scal" + - "ekit\\V1\\Members\342\002\037Scalekit\\V1\\Members\\GP" + - "BMetadata\352\002\025Scalekit::V1::Membersb\006proto" + - "3" + "gle/api/field_behavior.proto\032\033google/api" + + "/visibility.proto\032\033google/protobuf/empty" + + ".proto\032\037google/protobuf/timestamp.proto\032" + + ".protoc-gen-openapiv2/options/annotation" + + "s.proto\032!scalekit/v1/commons/commons.pro" + + "to\032!scalekit/v1/options/options.proto\032\035s" + + "calekit/v1/users/users.proto\"\272\007\n\006Member\022" + + "\016\n\002id\030\001 \001(\tR\002id\022;\n\013create_time\030\002 \001(\0132\032.g" + + "oogle.protobuf.TimestampR\ncreateTime\022;\n\013" + + "update_time\030\003 \001(\0132\032.google.protobuf.Time" + + "stampR\nupdateTime\022!\n\014workspace_id\030\004 \001(\tR" + + "\013workspaceId\0223\n\004role\030\005 \001(\0162\037.scalekit.v1" + + ".members.MemberRoleR\004role\022,\n\nfirst_name\030" + + "\006 \001(\tB\010\272H\005r\003\030\310\001H\000R\tfirstName\210\001\001\022*\n\tlast_" + + "name\030\007 \001(\tB\010\272H\005r\003\030\310\001H\001R\010lastName\210\001\001\022\035\n\005e" + + "mail\030\010 \001(\tB\007\272H\004r\002`\001R\005email\022`\n\010metadata\030\t" + + " \003(\0132).scalekit.v1.members.Member.Metada" + + "taEntryB\031\272H\026\232\001\023\020\024\"\006r\004\020\003\030\031*\007r\005\020\001\030\200\002R\010meta" + + "data\022V\n\rorganizations\030\n \003(\0132+.scalekit.v" + + "1.commons.OrganizationMembershipB\003\340A\003R\ro" + + "rganizations\022C\n\014user_profile\030\013 \001(\0132 .sca" + + "lekit.v1.commons.UserProfileR\013userProfil" + + "e\022$\n\013external_id\030\014 \001(\tB\003\340A\003R\nexternalId\022" + + "#\n\rworkspace_ids\030\r \003(\tR\014workspaceIds\022\217\001\n" + + "\034active_workspace_external_id\030\016 \001(\tBI\222AC" + + "2(Members session current active workspa" + + "ceJ\027\"org_72289897007874151\"\340A\003H\002R\031active" + + "WorkspaceExternalId\210\001\001\032;\n\rMetadataEntry\022" + + "\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:" + + "\0028\001B\r\n\013_first_nameB\014\n\n_last_nameB\037\n\035_act" + + "ive_workspace_external_id\"R\n\023CreateMembe" + + "rRequest\022;\n\006member\030\001 \001(\0132\033.scalekit.v1.m" + + "embers.MemberB\006\272H\003\310\001\001R\006member\"K\n\024CreateM" + + "emberResponse\0223\n\006member\030\001 \001(\0132\033.scalekit" + + ".v1.members.MemberR\006member\"\203\003\n\014UpdateMem" + + "ber\022.\n\nfirst_name\030\006 \001(\tB\n\272H\007r\005\020\001\030\310\001H\000R\tf" + + "irstName\210\001\001\022,\n\tlast_name\030\007 \001(\tB\n\272H\007r\005\020\001\030" + + "\310\001H\001R\010lastName\210\001\001\022f\n\010metadata\030\t \003(\0132/.sc" + + "alekit.v1.members.UpdateMember.MetadataE" + + "ntryB\031\272H\026\232\001\023\020\n\"\006r\004\020\003\030\031*\007r\005\020\001\030\200\002R\010metadat" + + "a\022G\n\014user_profile\030\n \001(\0132$.scalekit.v1.us" + + "ers.UpdateUserProfileR\013userProfile\032;\n\rMe" + + "tadataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002" + + " \001(\tR\005value:\0028\001B\r\n\013_first_nameB\014\n\n_last_" + + "nameJ\004\010\004\020\005J\004\010\010\020\t\"W\n\032UpdateCurrentMemberR" + + "equest\0229\n\006member\030\001 \001(\0132!.scalekit.v1.mem" + + "bers.UpdateMemberR\006member\"k\n\023UpdateMembe" + + "rRequest\022\031\n\002id\030\001 \001(\tB\t\272H\006r\004\020\023\030\031R\002id\0229\n\006m" + + "ember\030\002 \001(\0132!.scalekit.v1.members.Update" + + "MemberR\006member\"K\n\024UpdateMemberResponse\0223" + + "\n\006member\030\001 \001(\0132\033.scalekit.v1.members.Mem" + + "berR\006member\"\031\n\027GetCurrentMemberRequest\"-" + + "\n\020GetMemberRequest\022\031\n\002id\030\001 \001(\tB\t\272H\006r\004\020\023\030" + + "\031R\002id\"H\n\021GetMemberResponse\0223\n\006member\030\001 \001" + + "(\0132\033.scalekit.v1.members.MemberR\006member\"" + + "O\n\021ListMemberRequest\022\033\n\tpage_size\030\001 \001(\rR" + + "\010pageSize\022\035\n\npage_token\030\002 \001(\tR\tpageToken" + + "\"\222\001\n\022ListMemberResponse\022&\n\017next_page_tok" + + "en\030\001 \001(\tR\rnextPageToken\022\035\n\ntotal_size\030\002 " + + "\001(\rR\ttotalSize\0225\n\007members\030\003 \003(\0132\033.scalek" + + "it.v1.members.MemberR\007members\"0\n\023DeleteM" + + "emberRequest\022\031\n\002id\030\001 \001(\tB\t\272H\006r\004\020\023\030\031R\002id*" + + ">\n\nMemberRole\022\033\n\027MEMBER_ROLE_UNSPECIFIED" + + "\020\000\022\t\n\005ADMIN\020\001\022\010\n\004USER\020\0022\277\010\n\016MembersServi" + + "ce\022\231\001\n\014CreateMember\022(.scalekit.v1.member" + + "s.CreateMemberRequest\032).scalekit.v1.memb" + + "ers.CreateMemberResponse\"4\202\265\030\002\030D\372\322\344\223\002\t\022\007" + + "PREVIEW\202\323\344\223\002\031\"\017/api/v1/members:\006member\022\254" + + "\001\n\023UpdateCurrentMember\022/.scalekit.v1.mem" + + "bers.UpdateCurrentMemberRequest\032).scalek" + + "it.v1.members.UpdateMemberResponse\"9\202\265\030\002" + + "\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\0362\024/api/v1/members" + + ":this:\006member\022\236\001\n\014UpdateMember\022(.scaleki" + + "t.v1.members.UpdateMemberRequest\032).scale" + + "kit.v1.members.UpdateMemberResponse\"9\202\265\030" + + "\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\0362\024/api/v1/member" + + "s/{id}:\006member\022\233\001\n\020GetCurrentMember\022,.sc" + + "alekit.v1.members.GetCurrentMemberReques" + + "t\032&.scalekit.v1.members.GetMemberRespons" + + "e\"1\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\026\022\024/api/v1/" + + "members:this\022\215\001\n\tGetMember\022%.scalekit.v1" + + ".members.GetMemberRequest\032&.scalekit.v1." + + "members.GetMemberResponse\"1\202\265\030\002\030D\372\322\344\223\002\t\022" + + "\007PREVIEW\202\323\344\223\002\026\022\024/api/v1/members/{id}\022\214\001\n" + + "\013ListMembers\022&.scalekit.v1.members.ListM" + + "emberRequest\032\'.scalekit.v1.members.ListM" + + "emberResponse\",\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223" + + "\002\021\022\017/api/v1/members\022\203\001\n\014DeleteMember\022(.s" + + "calekit.v1.members.DeleteMemberRequest\032\026" + + ".google.protobuf.Empty\"1\202\265\030\002\030D\372\322\344\223\002\t\022\007PR" + + "EVIEW\202\323\344\223\002\026*\024/api/v1/members/{id}B\326\001\n%co" + + "m.scalekit.grpc.scalekit.v1.membersB\014Mem" + + "bersProtoP\001Z1github.com/scalekit-inc/sca" + + "lekit/pkg/grpc/members\242\002\003SVM\252\002\023Scalekit." + + "V1.Members\312\002\023Scalekit\\V1\\Members\342\002\037Scale" + + "kit\\V1\\Members\\GPBMetadata\352\002\025Scalekit::V" + + "1::Membersb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -203,6 +206,7 @@ public static void registerAllExtensions( com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(), com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(), com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(), + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(), com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(), @@ -305,6 +309,7 @@ public static void registerAllExtensions( registry.add(com.scalekit.grpc.buf.validate.ValidateProto.field); registry.add(com.scalekit.grpc.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.scalekit.grpc.google.api.AnnotationsProto.http); + registry.add(com.scalekit.grpc.google.api.VisibilityProto.methodVisibility); registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Field); registry.add(com.scalekit.grpc.scalekit.v1.options.OptionsProto.authOption); com.google.protobuf.Descriptors.FileDescriptor @@ -312,6 +317,7 @@ public static void registerAllExtensions( com.scalekit.grpc.buf.validate.ValidateProto.getDescriptor(); com.scalekit.grpc.google.api.AnnotationsProto.getDescriptor(); com.scalekit.grpc.google.api.FieldBehaviorProto.getDescriptor(); + com.scalekit.grpc.google.api.VisibilityProto.getDescriptor(); com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(); diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysRequest.java new file mode 100644 index 00000000..77243010 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysRequest.java @@ -0,0 +1,595 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/migrations/migrations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.migrations; + +/** + * Protobuf type {@code scalekit.v1.migrations.MigrateEnvKeysRequest} + */ +public final class MigrateEnvKeysRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.migrations.MigrateEnvKeysRequest) + MigrateEnvKeysRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use MigrateEnvKeysRequest.newBuilder() to construct. + private MigrateEnvKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MigrateEnvKeysRequest() { + environmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MigrateEnvKeysRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.migrations.MigrationsProto.internal_static_scalekit_v1_migrations_MigrateEnvKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.migrations.MigrationsProto.internal_static_scalekit_v1_migrations_MigrateEnvKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest.class, com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest.Builder.class); + } + + public static final int ENVIRONMENT_IDS_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList environmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @return A list containing the environmentIds. + */ + public com.google.protobuf.ProtocolStringList + getEnvironmentIdsList() { + return environmentIds_; + } + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @return The count of environmentIds. + */ + public int getEnvironmentIdsCount() { + return environmentIds_.size(); + } + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @param index The index of the element to return. + * @return The environmentIds at the given index. + */ + public java.lang.String getEnvironmentIds(int index) { + return environmentIds_.get(index); + } + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @param index The index of the value to return. + * @return The bytes of the environmentIds at the given index. + */ + public com.google.protobuf.ByteString + getEnvironmentIdsBytes(int index) { + return environmentIds_.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 < environmentIds_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environmentIds_.getRaw(i)); + } + 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 < environmentIds_.size(); i++) { + dataSize += computeStringSizeNoTag(environmentIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getEnvironmentIdsList().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.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest other = (com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest) obj; + + if (!getEnvironmentIdsList() + .equals(other.getEnvironmentIdsList())) 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 (getEnvironmentIdsCount() > 0) { + hash = (37 * hash) + ENVIRONMENT_IDS_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.migrations.MigrateEnvKeysRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.migrations.MigrateEnvKeysRequest) + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.migrations.MigrationsProto.internal_static_scalekit_v1_migrations_MigrateEnvKeysRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.migrations.MigrationsProto.internal_static_scalekit_v1_migrations_MigrateEnvKeysRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest.class, com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.migrations.MigrationsProto.internal_static_scalekit_v1_migrations_MigrateEnvKeysRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest build() { + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest result = new com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + environmentIds_.makeImmutable(); + result.environmentIds_ = environmentIds_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest.getDefaultInstance()) return this; + if (!other.environmentIds_.isEmpty()) { + if (environmentIds_.isEmpty()) { + environmentIds_ = other.environmentIds_; + bitField0_ |= 0x00000001; + } else { + ensureEnvironmentIdsIsMutable(); + environmentIds_.addAll(other.environmentIds_); + } + 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(); + ensureEnvironmentIdsIsMutable(); + environmentIds_.add(s); + 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 com.google.protobuf.LazyStringArrayList environmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + private void ensureEnvironmentIdsIsMutable() { + if (!environmentIds_.isModifiable()) { + environmentIds_ = new com.google.protobuf.LazyStringArrayList(environmentIds_); + } + bitField0_ |= 0x00000001; + } + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @return A list containing the environmentIds. + */ + public com.google.protobuf.ProtocolStringList + getEnvironmentIdsList() { + environmentIds_.makeImmutable(); + return environmentIds_; + } + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @return The count of environmentIds. + */ + public int getEnvironmentIdsCount() { + return environmentIds_.size(); + } + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @param index The index of the element to return. + * @return The environmentIds at the given index. + */ + public java.lang.String getEnvironmentIds(int index) { + return environmentIds_.get(index); + } + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @param index The index of the value to return. + * @return The bytes of the environmentIds at the given index. + */ + public com.google.protobuf.ByteString + getEnvironmentIdsBytes(int index) { + return environmentIds_.getByteString(index); + } + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @param index The index to set the value at. + * @param value The environmentIds to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentIds( + int index, java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureEnvironmentIdsIsMutable(); + environmentIds_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @param value The environmentIds to add. + * @return This builder for chaining. + */ + public Builder addEnvironmentIds( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + ensureEnvironmentIdsIsMutable(); + environmentIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @param values The environmentIds to add. + * @return This builder for chaining. + */ + public Builder addAllEnvironmentIds( + java.lang.Iterable values) { + ensureEnvironmentIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, environmentIds_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @return This builder for chaining. + */ + public Builder clearEnvironmentIds() { + environmentIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001);; + onChanged(); + return this; + } + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @param value The bytes of the environmentIds to add. + * @return This builder for chaining. + */ + public Builder addEnvironmentIdsBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + ensureEnvironmentIdsIsMutable(); + environmentIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.migrations.MigrateEnvKeysRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.migrations.MigrateEnvKeysRequest) + private static final com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrateEnvKeysRequest 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.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysRequestOrBuilder.java new file mode 100644 index 00000000..70b46b36 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysRequestOrBuilder.java @@ -0,0 +1,35 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/migrations/migrations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.migrations; + +public interface MigrateEnvKeysRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.migrations.MigrateEnvKeysRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @return A list containing the environmentIds. + */ + java.util.List + getEnvironmentIdsList(); + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @return The count of environmentIds. + */ + int getEnvironmentIdsCount(); + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @param index The index of the element to return. + * @return The environmentIds at the given index. + */ + java.lang.String getEnvironmentIds(int index); + /** + * repeated string environment_ids = 1 [json_name = "environmentIds"]; + * @param index The index of the value to return. + * @return The bytes of the environmentIds at the given index. + */ + com.google.protobuf.ByteString + getEnvironmentIdsBytes(int index); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysResponse.java new file mode 100644 index 00000000..2468aaec --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysResponse.java @@ -0,0 +1,472 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/migrations/migrations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.migrations; + +/** + * Protobuf type {@code scalekit.v1.migrations.MigrateEnvKeysResponse} + */ +public final class MigrateEnvKeysResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.migrations.MigrateEnvKeysResponse) + MigrateEnvKeysResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use MigrateEnvKeysResponse.newBuilder() to construct. + private MigrateEnvKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private MigrateEnvKeysResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new MigrateEnvKeysResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.migrations.MigrationsProto.internal_static_scalekit_v1_migrations_MigrateEnvKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.migrations.MigrationsProto.internal_static_scalekit_v1_migrations_MigrateEnvKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse.class, com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse.Builder.class); + } + + public static final int ENVIRONMENTS_PROCESSED_FIELD_NUMBER = 1; + private int environmentsProcessed_ = 0; + /** + * int32 environments_processed = 1 [json_name = "environmentsProcessed"]; + * @return The environmentsProcessed. + */ + @java.lang.Override + public int getEnvironmentsProcessed() { + return environmentsProcessed_; + } + + 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 (environmentsProcessed_ != 0) { + output.writeInt32(1, environmentsProcessed_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (environmentsProcessed_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, environmentsProcessed_); + } + 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.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse other = (com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse) obj; + + if (getEnvironmentsProcessed() + != other.getEnvironmentsProcessed()) 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) + ENVIRONMENTS_PROCESSED_FIELD_NUMBER; + hash = (53 * hash) + getEnvironmentsProcessed(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.migrations.MigrateEnvKeysResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.migrations.MigrateEnvKeysResponse) + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.migrations.MigrationsProto.internal_static_scalekit_v1_migrations_MigrateEnvKeysResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.migrations.MigrationsProto.internal_static_scalekit_v1_migrations_MigrateEnvKeysResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse.class, com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + environmentsProcessed_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.migrations.MigrationsProto.internal_static_scalekit_v1_migrations_MigrateEnvKeysResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse build() { + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse result = new com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.environmentsProcessed_ = environmentsProcessed_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse.getDefaultInstance()) return this; + if (other.getEnvironmentsProcessed() != 0) { + setEnvironmentsProcessed(other.getEnvironmentsProcessed()); + } + 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 8: { + environmentsProcessed_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 int environmentsProcessed_ ; + /** + * int32 environments_processed = 1 [json_name = "environmentsProcessed"]; + * @return The environmentsProcessed. + */ + @java.lang.Override + public int getEnvironmentsProcessed() { + return environmentsProcessed_; + } + /** + * int32 environments_processed = 1 [json_name = "environmentsProcessed"]; + * @param value The environmentsProcessed to set. + * @return This builder for chaining. + */ + public Builder setEnvironmentsProcessed(int value) { + + environmentsProcessed_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int32 environments_processed = 1 [json_name = "environmentsProcessed"]; + * @return This builder for chaining. + */ + public Builder clearEnvironmentsProcessed() { + bitField0_ = (bitField0_ & ~0x00000001); + environmentsProcessed_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.migrations.MigrateEnvKeysResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.migrations.MigrateEnvKeysResponse) + private static final com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MigrateEnvKeysResponse 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.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysResponseOrBuilder.java new file mode 100644 index 00000000..b9009226 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrateEnvKeysResponseOrBuilder.java @@ -0,0 +1,16 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/migrations/migrations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.migrations; + +public interface MigrateEnvKeysResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.migrations.MigrateEnvKeysResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 environments_processed = 1 [json_name = "environmentsProcessed"]; + * @return The environmentsProcessed. + */ + int getEnvironmentsProcessed(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrationServiceGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrationServiceGrpc.java index 9d9ac163..0cf7a5c9 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrationServiceGrpc.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrationServiceGrpc.java @@ -139,6 +139,37 @@ com.scalekit.grpc.scalekit.v1.migrations.MigrateRolePermissionsResponse> getMigr return getMigrateRolePermissionsMethod; } + private static volatile io.grpc.MethodDescriptor getMigrateEnvKeysMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "MigrateEnvKeys", + requestType = com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getMigrateEnvKeysMethod() { + io.grpc.MethodDescriptor getMigrateEnvKeysMethod; + if ((getMigrateEnvKeysMethod = MigrationServiceGrpc.getMigrateEnvKeysMethod) == null) { + synchronized (MigrationServiceGrpc.class) { + if ((getMigrateEnvKeysMethod = MigrationServiceGrpc.getMigrateEnvKeysMethod) == null) { + MigrationServiceGrpc.getMigrateEnvKeysMethod = getMigrateEnvKeysMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "MigrateEnvKeys")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse.getDefaultInstance())) + .setSchemaDescriptor(new MigrationServiceMethodDescriptorSupplier("MigrateEnvKeys")) + .build(); + } + } + } + return getMigrateEnvKeysMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -214,6 +245,13 @@ default void migrateRolePermissions(com.scalekit.grpc.scalekit.v1.migrations.Mig io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMigrateRolePermissionsMethod(), responseObserver); } + + /** + */ + default void migrateEnvKeys(com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getMigrateEnvKeysMethod(), responseObserver); + } } /** @@ -274,6 +312,14 @@ public void migrateRolePermissions(com.scalekit.grpc.scalekit.v1.migrations.Migr io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getMigrateRolePermissionsMethod(), getCallOptions()), request, responseObserver); } + + /** + */ + public void migrateEnvKeys(com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getMigrateEnvKeysMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -319,6 +365,13 @@ public com.scalekit.grpc.scalekit.v1.migrations.MigrateRolePermissionsResponse m return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getMigrateRolePermissionsMethod(), getCallOptions(), request); } + + /** + */ + public com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse migrateEnvKeys(com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getMigrateEnvKeysMethod(), getCallOptions(), request); + } } /** @@ -368,12 +421,21 @@ public com.google.common.util.concurrent.ListenableFuture migrateEnvKeys( + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getMigrateEnvKeysMethod(), getCallOptions()), request); + } } private static final int METHODID_MIGRATE_FSADATA = 0; private static final int METHODID_MIGRATE_STRIPE_CUSTOMERS = 1; private static final int METHODID_MIGRATE_WORKSPACE_FGA = 2; private static final int METHODID_MIGRATE_ROLE_PERMISSIONS = 3; + private static final int METHODID_MIGRATE_ENV_KEYS = 4; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -408,6 +470,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.migrateRolePermissions((com.scalekit.grpc.scalekit.v1.migrations.MigrateRolePermissionsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_MIGRATE_ENV_KEYS: + serviceImpl.migrateEnvKeys((com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -454,6 +520,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.migrations.MigrateRolePermissionsRequest, com.scalekit.grpc.scalekit.v1.migrations.MigrateRolePermissionsResponse>( service, METHODID_MIGRATE_ROLE_PERMISSIONS))) + .addMethod( + getMigrateEnvKeysMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysRequest, + com.scalekit.grpc.scalekit.v1.migrations.MigrateEnvKeysResponse>( + service, METHODID_MIGRATE_ENV_KEYS))) .build(); } @@ -506,6 +579,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getMigrateStripeCustomersMethod()) .addMethod(getMigrateWorkspaceFGAMethod()) .addMethod(getMigrateRolePermissionsMethod()) + .addMethod(getMigrateEnvKeysMethod()) .build(); } } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrationsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrationsProto.java index e8a72f40..41c49905 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrationsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/migrations/MigrationsProto.java @@ -15,6 +15,16 @@ public static void registerAllExtensions( registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_migrations_MigrateEnvKeysRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_migrations_MigrateEnvKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_migrations_MigrateEnvKeysResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_migrations_MigrateEnvKeysResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_scalekit_v1_migrations_MigrationServiceResponse_descriptor; static final @@ -96,90 +106,107 @@ public static void registerAllExtensions( "e/protobuf/empty.proto\032.protoc-gen-opena" + "piv2/options/annotations.proto\032!scalekit" + "/v1/commons/commons.proto\032!scalekit/v1/o" + - "ptions/options.proto\"~\n\030MigrationService" + - "Response\0221\n\024success_environments\030\001 \001(\005R\023" + - "successEnvironments\022/\n\023failed_environmen" + - "ts\030\002 \001(\005R\022failedEnvironments\"f\n\024Migratio" + - "nSAMLRequest\022\'\n\017environment_ids\030\001 \003(\003R\016e" + - "nvironmentIds\022%\n\nbatch_size\030\002 \001(\005B\006\272H\003\310\001" + - "\001R\tbatchSize\"\255\001\n\021MigrateFSARequest\022\'\n\017en" + - "vironment_ids\030\001 \003(\003R\016environmentIds\022H\n\td" + - "ata_type\030\002 \001(\0162#.scalekit.v1.migrations." + - "FSADataTypeB\006\272H\003\310\001\001R\010dataType\022%\n\nbatch_s" + - "ize\030\003 \001(\005B\006\272H\003\310\001\001R\tbatchSize\"z\n\024Migratio" + - "nFSAResponse\0221\n\024success_environments\030\001 \001" + - "(\005R\023successEnvironments\022/\n\023failed_enviro" + - "nments\030\002 \001(\005R\022failedEnvironments\"\221\001\n\035Mig" + - "rateStripeCustomersRequest\022p\n\030migrate_st" + - "ripe_customers\030\001 \001(\0132..scalekit.v1.migra" + - "tions.MigrateStripeCustomersB\006\272H\003\310\001\001R\026mi" + - "grateStripeCustomers\"\255\001\n\026MigrateStripeCu" + - "stomers\022#\n\rworkspace_ids\030\001 \003(\003R\014workspac" + - "eIds\022\033\n\tplan_name\030\002 \001(\tR\010planName\022\035\n\nbat" + - "ch_size\030\003 \001(\005R\tbatchSize\0222\n\025include_test" + - "_accounts\030\004 \001(\010R\023includeTestAccounts\"\301\001\n" + - "\036MigrateStripeCustomersResponse\022#\n\rsucce" + - "ss_count\030\001 \001(\005R\014successCount\022!\n\014failed_c" + - "ount\030\002 \001(\005R\013failedCount\0220\n\024failed_worksp" + - "ace_ids\030\003 \003(\003R\022failedWorkspaceIds\022%\n\016err" + - "or_messages\030\004 \003(\tR\rerrorMessages\"{\n\025Migr" + - "ationSAMLResponse\0221\n\024success_environment" + - "s\030\001 \001(\005R\023successEnvironments\022/\n\023failed_e" + - "nvironments\030\002 \001(\005R\022failedEnvironments\"\226\002" + - "\n\032MigrateWorkspaceFGARequest\022#\n\rworkspac" + - "e_ids\030\001 \003(\003R\014workspaceIds\022\024\n\005async\030\002 \001(\010" + - "R\005async\022)\n\020organization_ids\030\003 \003(\003R\017organ" + - "izationIds\022#\n\rdirectory_ids\030\004 \003(\003R\014direc" + - "toryIds\022%\n\016connection_ids\030\005 \003(\003R\rconnect" + - "ionIds\022\035\n\nclient_ids\030\006 \003(\003R\tclientIds\022\'\n" + - "\017environment_ids\030\007 \003(\003R\016environmentIds\"2" + - "\n\016PermissionList\022 \n\013permissions\030\001 \003(\tR\013p" + - "ermissions\"\273\002\n\035MigrateRolePermissionsReq" + - "uest\022}\n\020role_permissions\030\001 \003(\0132J.scaleki" + - "t.v1.migrations.MigrateRolePermissionsRe" + - "quest.RolePermissionsEntryB\006\272H\003\310\001\001R\017role" + - "Permissions\022/\n\017environment_ids\030\002 \003(\003B\006\272H" + - "\003\310\001\001R\016environmentIds\032j\n\024RolePermissionsE" + - "ntry\022\020\n\003key\030\001 \001(\tR\003key\022<\n\005value\030\002 \001(\0132&." + - "scalekit.v1.migrations.PermissionListR\005v" + - "alue:\0028\001\"\312\002\n\036MigrateRolePermissionsRespo" + - "nse\0221\n\024success_environments\030\001 \001(\005R\023succe" + - "ssEnvironments\022/\n\023failed_environments\030\002 " + - "\001(\005R\022failedEnvironments\022%\n\016error_message" + - "s\030\003 \003(\tR\rerrorMessages\022#\n\rroles_created\030" + - "\004 \001(\005R\014rolesCreated\022/\n\023permissions_creat" + - "ed\030\005 \001(\005R\022permissionsCreated\022G\n role_per" + - "mission_mappings_created\030\006 \001(\005R\035rolePerm" + - "issionMappingsCreated*\210\001\n\013FSADataType\022\035\n" + - "\031FSA_DATA_TYPE_UNSPECIFIED\020\000\022\034\n\030FSA_DATA" + - "_TYPE_CONNECTION\020\001\022\031\n\025FSA_DATA_TYPE_SESS" + - "ION\020\002\022!\n\035FSA_DATA_TYPE_USER_MANAGEMENT\020\003" + - "2\367\005\n\020MigrationService\022\234\001\n\016MigrateFSAData" + - "\022).scalekit.v1.migrations.MigrateFSARequ" + - "est\032,.scalekit.v1.migrations.MigrationFS" + - "AResponse\"1\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\026\"\024" + - "/migrations/fsa-data\022\334\001\n\026MigrateStripeCu" + - "stomers\0225.scalekit.v1.migrations.Migrate" + - "StripeCustomersRequest\0326.scalekit.v1.mig" + - "rations.MigrateStripeCustomersResponse\"S" + - "\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0028\"\034/migrations" + - "/stripe-customers:\030migrate_stripe_custom" + - "ers\022\234\001\n\023MigrateWorkspaceFGA\0222.scalekit.v" + - "1.migrations.MigrateWorkspaceFGARequest\032" + - "\026.google.protobuf.Empty\"9\202\265\030\002\030\001\372\322\344\223\002\t\022\007P" + - "REVIEW\202\323\344\223\002\036\"\031/migrations/workspace-fga:" + - "\001*\022\305\001\n\026MigrateRolePermissions\0225.scalekit" + - ".v1.migrations.MigrateRolePermissionsReq" + - "uest\0326.scalekit.v1.migrations.MigrateRol" + - "ePermissionsResponse\"<\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREV" + - "IEW\202\323\344\223\002!\"\034/migrations/role-permissions:" + - "\001*B\353\001\n(com.scalekit.grpc.scalekit.v1.mig" + - "rationsB\017MigrationsProtoP\001Z4github.com/s" + - "calekit-inc/scalekit/pkg/grpc/migrations" + - "\242\002\003SVM\252\002\026Scalekit.V1.Migrations\312\002\026Scalek" + - "it\\V1\\Migrations\342\002\"Scalekit\\V1\\Migration" + - "s\\GPBMetadata\352\002\030Scalekit::V1::Migrations" + - "b\006proto3" + "ptions/options.proto\"@\n\025MigrateEnvKeysRe" + + "quest\022\'\n\017environment_ids\030\001 \003(\tR\016environm" + + "entIds\"O\n\026MigrateEnvKeysResponse\0225\n\026envi" + + "ronments_processed\030\001 \001(\005R\025environmentsPr" + + "ocessed\"~\n\030MigrationServiceResponse\0221\n\024s" + + "uccess_environments\030\001 \001(\005R\023successEnviro" + + "nments\022/\n\023failed_environments\030\002 \001(\005R\022fai" + + "ledEnvironments\"f\n\024MigrationSAMLRequest\022" + + "\'\n\017environment_ids\030\001 \003(\003R\016environmentIds" + + "\022%\n\nbatch_size\030\002 \001(\005B\006\272H\003\310\001\001R\tbatchSize\"" + + "\255\001\n\021MigrateFSARequest\022\'\n\017environment_ids" + + "\030\001 \003(\003R\016environmentIds\022H\n\tdata_type\030\002 \001(" + + "\0162#.scalekit.v1.migrations.FSADataTypeB\006" + + "\272H\003\310\001\001R\010dataType\022%\n\nbatch_size\030\003 \001(\005B\006\272H" + + "\003\310\001\001R\tbatchSize\"z\n\024MigrationFSAResponse\022" + + "1\n\024success_environments\030\001 \001(\005R\023successEn" + + "vironments\022/\n\023failed_environments\030\002 \001(\005R" + + "\022failedEnvironments\"\221\001\n\035MigrateStripeCus" + + "tomersRequest\022p\n\030migrate_stripe_customer" + + "s\030\001 \001(\0132..scalekit.v1.migrations.Migrate" + + "StripeCustomersB\006\272H\003\310\001\001R\026migrateStripeCu" + + "stomers\"\255\001\n\026MigrateStripeCustomers\022#\n\rwo" + + "rkspace_ids\030\001 \003(\003R\014workspaceIds\022\033\n\tplan_" + + "name\030\002 \001(\tR\010planName\022\035\n\nbatch_size\030\003 \001(\005" + + "R\tbatchSize\0222\n\025include_test_accounts\030\004 \001" + + "(\010R\023includeTestAccounts\"\301\001\n\036MigrateStrip" + + "eCustomersResponse\022#\n\rsuccess_count\030\001 \001(" + + "\005R\014successCount\022!\n\014failed_count\030\002 \001(\005R\013f" + + "ailedCount\0220\n\024failed_workspace_ids\030\003 \003(\003" + + "R\022failedWorkspaceIds\022%\n\016error_messages\030\004" + + " \003(\tR\rerrorMessages\"{\n\025MigrationSAMLResp" + + "onse\0221\n\024success_environments\030\001 \001(\005R\023succ" + + "essEnvironments\022/\n\023failed_environments\030\002" + + " \001(\005R\022failedEnvironments\"\226\002\n\032MigrateWork" + + "spaceFGARequest\022#\n\rworkspace_ids\030\001 \003(\003R\014" + + "workspaceIds\022\024\n\005async\030\002 \001(\010R\005async\022)\n\020or" + + "ganization_ids\030\003 \003(\003R\017organizationIds\022#\n" + + "\rdirectory_ids\030\004 \003(\003R\014directoryIds\022%\n\016co" + + "nnection_ids\030\005 \003(\003R\rconnectionIds\022\035\n\ncli" + + "ent_ids\030\006 \003(\003R\tclientIds\022\'\n\017environment_" + + "ids\030\007 \003(\003R\016environmentIds\"2\n\016PermissionL" + + "ist\022 \n\013permissions\030\001 \003(\tR\013permissions\"\273\002" + + "\n\035MigrateRolePermissionsRequest\022}\n\020role_" + + "permissions\030\001 \003(\0132J.scalekit.v1.migratio" + + "ns.MigrateRolePermissionsRequest.RolePer" + + "missionsEntryB\006\272H\003\310\001\001R\017rolePermissions\022/" + + "\n\017environment_ids\030\002 \003(\003B\006\272H\003\310\001\001R\016environ" + + "mentIds\032j\n\024RolePermissionsEntry\022\020\n\003key\030\001" + + " \001(\tR\003key\022<\n\005value\030\002 \001(\0132&.scalekit.v1.m" + + "igrations.PermissionListR\005value:\0028\001\"\312\002\n\036" + + "MigrateRolePermissionsResponse\0221\n\024succes" + + "s_environments\030\001 \001(\005R\023successEnvironment" + + "s\022/\n\023failed_environments\030\002 \001(\005R\022failedEn" + + "vironments\022%\n\016error_messages\030\003 \003(\tR\rerro" + + "rMessages\022#\n\rroles_created\030\004 \001(\005R\014rolesC" + + "reated\022/\n\023permissions_created\030\005 \001(\005R\022per" + + "missionsCreated\022G\n role_permission_mappi" + + "ngs_created\030\006 \001(\005R\035rolePermissionMapping" + + "sCreated*\210\001\n\013FSADataType\022\035\n\031FSA_DATA_TYP" + + "E_UNSPECIFIED\020\000\022\034\n\030FSA_DATA_TYPE_CONNECT" + + "ION\020\001\022\031\n\025FSA_DATA_TYPE_SESSION\020\002\022!\n\035FSA_" + + "DATA_TYPE_USER_MANAGEMENT\020\0032\217\n\n\020Migratio" + + "nService\022\234\001\n\016MigrateFSAData\022).scalekit.v" + + "1.migrations.MigrateFSARequest\032,.scaleki" + + "t.v1.migrations.MigrationFSAResponse\"1\202\265" + + "\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\026\"\024/migrations/f" + + "sa-data\022\334\001\n\026MigrateStripeCustomers\0225.sca" + + "lekit.v1.migrations.MigrateStripeCustome" + + "rsRequest\0326.scalekit.v1.migrations.Migra" + + "teStripeCustomersResponse\"S\202\265\030\002\030\001\372\322\344\223\002\t\022" + + "\007PREVIEW\202\323\344\223\0028\"\034/migrations/stripe-custo" + + "mers:\030migrate_stripe_customers\022\234\001\n\023Migra" + + "teWorkspaceFGA\0222.scalekit.v1.migrations." + + "MigrateWorkspaceFGARequest\032\026.google.prot" + + "obuf.Empty\"9\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\036\"" + + "\031/migrations/workspace-fga:\001*\022\305\001\n\026Migrat" + + "eRolePermissions\0225.scalekit.v1.migration" + + "s.MigrateRolePermissionsRequest\0326.scalek" + + "it.v1.migrations.MigrateRolePermissionsR" + + "esponse\"<\202\265\030\002\030\001\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002!\"\034/m" + + "igrations/role-permissions:\001*\022\225\004\n\016Migrat" + + "eEnvKeys\022-.scalekit.v1.migrations.Migrat" + + "eEnvKeysRequest\032..scalekit.v1.migrations" + + ".MigrateEnvKeysResponse\"\243\003\222A\353\002\n\016Key Mana" + + "gement\022&Ensure DEKs for specified enviro" + + "nments\032\260\002Ensures each listed environment" + + " has at least one active DEK. Only calla" + + "ble from the Scalekit platform environme" + + "nt. Provide environment_ids (e.g. env_12" + + "3) in the request. Creates a DEK only fo" + + "r environments that do not have one (ide" + + "mpotent per environment). Use to backfil" + + "l DEKs for specific environments.\202\265\030\002\030\001\372" + + "\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\031\"\024/migrations/env-ke" + + "ys:\001*B\353\001\n(com.scalekit.grpc.scalekit.v1." + + "migrationsB\017MigrationsProtoP\001Z4github.co" + + "m/scalekit-inc/scalekit/pkg/grpc/migrati" + + "ons\242\002\003SVM\252\002\026Scalekit.V1.Migrations\312\002\026Sca" + + "lekit\\V1\\Migrations\342\002\"Scalekit\\V1\\Migrat" + + "ions\\GPBMetadata\352\002\030Scalekit::V1::Migrati" + + "onsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -192,68 +219,80 @@ public static void registerAllExtensions( com.scalekit.grpc.scalekit.v1.commons.CommonsProto.getDescriptor(), com.scalekit.grpc.scalekit.v1.options.OptionsProto.getDescriptor(), }); - internal_static_scalekit_v1_migrations_MigrationServiceResponse_descriptor = + internal_static_scalekit_v1_migrations_MigrateEnvKeysRequest_descriptor = getDescriptor().getMessageTypes().get(0); + internal_static_scalekit_v1_migrations_MigrateEnvKeysRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_migrations_MigrateEnvKeysRequest_descriptor, + new java.lang.String[] { "EnvironmentIds", }); + internal_static_scalekit_v1_migrations_MigrateEnvKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_scalekit_v1_migrations_MigrateEnvKeysResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_migrations_MigrateEnvKeysResponse_descriptor, + new java.lang.String[] { "EnvironmentsProcessed", }); + internal_static_scalekit_v1_migrations_MigrationServiceResponse_descriptor = + getDescriptor().getMessageTypes().get(2); internal_static_scalekit_v1_migrations_MigrationServiceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_migrations_MigrationServiceResponse_descriptor, new java.lang.String[] { "SuccessEnvironments", "FailedEnvironments", }); internal_static_scalekit_v1_migrations_MigrationSAMLRequest_descriptor = - getDescriptor().getMessageTypes().get(1); + getDescriptor().getMessageTypes().get(3); internal_static_scalekit_v1_migrations_MigrationSAMLRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_migrations_MigrationSAMLRequest_descriptor, new java.lang.String[] { "EnvironmentIds", "BatchSize", }); internal_static_scalekit_v1_migrations_MigrateFSARequest_descriptor = - getDescriptor().getMessageTypes().get(2); + getDescriptor().getMessageTypes().get(4); internal_static_scalekit_v1_migrations_MigrateFSARequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_migrations_MigrateFSARequest_descriptor, new java.lang.String[] { "EnvironmentIds", "DataType", "BatchSize", }); internal_static_scalekit_v1_migrations_MigrationFSAResponse_descriptor = - getDescriptor().getMessageTypes().get(3); + getDescriptor().getMessageTypes().get(5); internal_static_scalekit_v1_migrations_MigrationFSAResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_migrations_MigrationFSAResponse_descriptor, new java.lang.String[] { "SuccessEnvironments", "FailedEnvironments", }); internal_static_scalekit_v1_migrations_MigrateStripeCustomersRequest_descriptor = - getDescriptor().getMessageTypes().get(4); + getDescriptor().getMessageTypes().get(6); internal_static_scalekit_v1_migrations_MigrateStripeCustomersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_migrations_MigrateStripeCustomersRequest_descriptor, new java.lang.String[] { "MigrateStripeCustomers", }); internal_static_scalekit_v1_migrations_MigrateStripeCustomers_descriptor = - getDescriptor().getMessageTypes().get(5); + getDescriptor().getMessageTypes().get(7); internal_static_scalekit_v1_migrations_MigrateStripeCustomers_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_migrations_MigrateStripeCustomers_descriptor, new java.lang.String[] { "WorkspaceIds", "PlanName", "BatchSize", "IncludeTestAccounts", }); internal_static_scalekit_v1_migrations_MigrateStripeCustomersResponse_descriptor = - getDescriptor().getMessageTypes().get(6); + getDescriptor().getMessageTypes().get(8); internal_static_scalekit_v1_migrations_MigrateStripeCustomersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_migrations_MigrateStripeCustomersResponse_descriptor, new java.lang.String[] { "SuccessCount", "FailedCount", "FailedWorkspaceIds", "ErrorMessages", }); internal_static_scalekit_v1_migrations_MigrationSAMLResponse_descriptor = - getDescriptor().getMessageTypes().get(7); + getDescriptor().getMessageTypes().get(9); internal_static_scalekit_v1_migrations_MigrationSAMLResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_migrations_MigrationSAMLResponse_descriptor, new java.lang.String[] { "SuccessEnvironments", "FailedEnvironments", }); internal_static_scalekit_v1_migrations_MigrateWorkspaceFGARequest_descriptor = - getDescriptor().getMessageTypes().get(8); + getDescriptor().getMessageTypes().get(10); internal_static_scalekit_v1_migrations_MigrateWorkspaceFGARequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_migrations_MigrateWorkspaceFGARequest_descriptor, new java.lang.String[] { "WorkspaceIds", "Async", "OrganizationIds", "DirectoryIds", "ConnectionIds", "ClientIds", "EnvironmentIds", }); internal_static_scalekit_v1_migrations_PermissionList_descriptor = - getDescriptor().getMessageTypes().get(9); + getDescriptor().getMessageTypes().get(11); internal_static_scalekit_v1_migrations_PermissionList_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_migrations_PermissionList_descriptor, new java.lang.String[] { "Permissions", }); internal_static_scalekit_v1_migrations_MigrateRolePermissionsRequest_descriptor = - getDescriptor().getMessageTypes().get(10); + getDescriptor().getMessageTypes().get(12); internal_static_scalekit_v1_migrations_MigrateRolePermissionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_migrations_MigrateRolePermissionsRequest_descriptor, @@ -265,7 +304,7 @@ public static void registerAllExtensions( internal_static_scalekit_v1_migrations_MigrateRolePermissionsRequest_RolePermissionsEntry_descriptor, new java.lang.String[] { "Key", "Value", }); internal_static_scalekit_v1_migrations_MigrateRolePermissionsResponse_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_scalekit_v1_migrations_MigrateRolePermissionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_migrations_MigrateRolePermissionsResponse_descriptor, @@ -275,6 +314,7 @@ public static void registerAllExtensions( registry.add(com.scalekit.grpc.buf.validate.ValidateProto.field); registry.add(com.scalekit.grpc.google.api.AnnotationsProto.http); registry.add(com.scalekit.grpc.google.api.VisibilityProto.methodVisibility); + registry.add(com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.openapiv2Operation); registry.add(com.scalekit.grpc.scalekit.v1.options.OptionsProto.authOption); com.google.protobuf.Descriptors.FileDescriptor .internalUpdateFileDescriptor(descriptor, registry); diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/options/AuthenticationType.java b/src/main/java/com/scalekit/grpc/scalekit/v1/options/AuthenticationType.java index 705157be..3e886e95 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/options/AuthenticationType.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/options/AuthenticationType.java @@ -125,6 +125,58 @@ public enum AuthenticationType * CUSTOMER_PORTAL_SESSION_CLIENT = 52; */ CUSTOMER_PORTAL_SESSION_CLIENT(52), + /** + * SESSION_USER = 24; + */ + SESSION_USER(24), + /** + * ACTIONS_PORTAL = 128; + */ + ACTIONS_PORTAL(128), + /** + *
+   * workspace_id,organization_id is in claims and UI in audience
+   * 
+ * + * WORKSPACE_SESSION_CUSTOMER_PORTAL_ACTIONS_PORTAL = 240; + */ + WORKSPACE_SESSION_CUSTOMER_PORTAL_ACTIONS_PORTAL(240), + /** + *
+   * workspace_id,organization_id is in claims, UI in audience and client Id is in subject
+   * 
+ * + * WORKSPACE_SESSION_CUSTOMER_PORTAL_ACTIONS_PORTAL_CLIENT = 244; + */ + WORKSPACE_SESSION_CUSTOMER_PORTAL_ACTIONS_PORTAL_CLIENT(244), + /** + *
+   * workspace_id is in claims and UI in audience
+   * 
+ * + * WORKSPACE_ACTIONS_PORTAL = 192; + */ + WORKSPACE_ACTIONS_PORTAL(192), + /** + *
+   * workspace_id is in claims, UI in audience and client Id is in subject
+   * 
+ * + * WORKSPACE_ACTIONS_PORTAL_CLIENT = 196; + */ + WORKSPACE_ACTIONS_PORTAL_CLIENT(196), + /** + * WORKSPACE_ACTIONS_PORTAL_CUSTOMER_PORTAL_CLIENT = 228; + */ + WORKSPACE_ACTIONS_PORTAL_CUSTOMER_PORTAL_CLIENT(228), + /** + *
+   * workspace_id,organization_id is in claims and UI in audience
+   * 
+ * + * WORKSPACE_CUSTOMER_PORTAL_ACTIONS_PORTAL = 224; + */ + WORKSPACE_CUSTOMER_PORTAL_ACTIONS_PORTAL(224), UNRECOGNIZED(-1), ; @@ -244,6 +296,58 @@ public enum AuthenticationType * CUSTOMER_PORTAL_SESSION_CLIENT = 52; */ public static final int CUSTOMER_PORTAL_SESSION_CLIENT_VALUE = 52; + /** + * SESSION_USER = 24; + */ + public static final int SESSION_USER_VALUE = 24; + /** + * ACTIONS_PORTAL = 128; + */ + public static final int ACTIONS_PORTAL_VALUE = 128; + /** + *
+   * workspace_id,organization_id is in claims and UI in audience
+   * 
+ * + * WORKSPACE_SESSION_CUSTOMER_PORTAL_ACTIONS_PORTAL = 240; + */ + public static final int WORKSPACE_SESSION_CUSTOMER_PORTAL_ACTIONS_PORTAL_VALUE = 240; + /** + *
+   * workspace_id,organization_id is in claims, UI in audience and client Id is in subject
+   * 
+ * + * WORKSPACE_SESSION_CUSTOMER_PORTAL_ACTIONS_PORTAL_CLIENT = 244; + */ + public static final int WORKSPACE_SESSION_CUSTOMER_PORTAL_ACTIONS_PORTAL_CLIENT_VALUE = 244; + /** + *
+   * workspace_id is in claims and UI in audience
+   * 
+ * + * WORKSPACE_ACTIONS_PORTAL = 192; + */ + public static final int WORKSPACE_ACTIONS_PORTAL_VALUE = 192; + /** + *
+   * workspace_id is in claims, UI in audience and client Id is in subject
+   * 
+ * + * WORKSPACE_ACTIONS_PORTAL_CLIENT = 196; + */ + public static final int WORKSPACE_ACTIONS_PORTAL_CLIENT_VALUE = 196; + /** + * WORKSPACE_ACTIONS_PORTAL_CUSTOMER_PORTAL_CLIENT = 228; + */ + public static final int WORKSPACE_ACTIONS_PORTAL_CUSTOMER_PORTAL_CLIENT_VALUE = 228; + /** + *
+   * workspace_id,organization_id is in claims and UI in audience
+   * 
+ * + * WORKSPACE_CUSTOMER_PORTAL_ACTIONS_PORTAL = 224; + */ + public static final int WORKSPACE_CUSTOMER_PORTAL_ACTIONS_PORTAL_VALUE = 224; public final int getNumber() { @@ -286,6 +390,14 @@ public static AuthenticationType forNumber(int value) { case 20: return SESSION_CLIENT; case 84: return WORKSPACE_SESSION_CLIENT; case 52: return CUSTOMER_PORTAL_SESSION_CLIENT; + case 24: return SESSION_USER; + case 128: return ACTIONS_PORTAL; + case 240: return WORKSPACE_SESSION_CUSTOMER_PORTAL_ACTIONS_PORTAL; + case 244: return WORKSPACE_SESSION_CUSTOMER_PORTAL_ACTIONS_PORTAL_CLIENT; + case 192: return WORKSPACE_ACTIONS_PORTAL; + case 196: return WORKSPACE_ACTIONS_PORTAL_CLIENT; + case 228: return WORKSPACE_ACTIONS_PORTAL_CUSTOMER_PORTAL_CLIENT; + case 224: return WORKSPACE_CUSTOMER_PORTAL_ACTIONS_PORTAL; default: return null; } } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/options/OptionsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/options/OptionsProto.java index 85ef2387..3dbc4358 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/options/OptionsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/options/OptionsProto.java @@ -49,7 +49,7 @@ public static void registerAllExtensions( "ermissions\030\001 \003(\tR\013permissions\0223\n\006policy\030" + "\002 \001(\0162\033.scalekit.v1.options.PolicyR\006poli" + "cy**\n\006Policy\022\010\n\004DENY\020\000\022\013\n\007PARTIAL\020\001\022\t\n\005A" + - "LLOW\020\002*\217\003\n\022AuthenticationType\022\013\n\007BLOCKED" + + "LLOW\020\002*\325\005\n\022AuthenticationType\022\013\n\007BLOCKED" + "\020\000\022\010\n\004NONE\020\001\022\r\n\tWORKSPACE\020@\022\023\n\017CUSTOMER_" + "PORTAL\020 \022\013\n\007SESSION\020\020\022\025\n\021WORKSPACE_SESSI" + "ON\020P\022\024\n\020WORKSPACE_CLIENT\020D\022%\n!WORKSPACE_" + @@ -59,15 +59,23 @@ public static void registerAllExtensions( "CE_CUSTOMER_PORTAL\020`\022\010\n\004USER\020\010\022\n\n\006CLIENT" + "\020\004\022\022\n\016SESSION_CLIENT\020\024\022\034\n\030WORKSPACE_SESS" + "ION_CLIENT\020T\022\"\n\036CUSTOMER_PORTAL_SESSION_" + - "CLIENT\0204:b\n\013auth_option\022\036.google.protobu" + - "f.MethodOptions\030\320\206\003 \001(\0132\037.scalekit.v1.op" + - "tions.AuthOptionR\nauthOptionB\331\001\n%com.sca" + - "lekit.grpc.scalekit.v1.optionsB\014OptionsP" + - "rotoP\001Z4github.com/scalekit-inc/scalekit" + - "/pkg/grpc/authoption\242\002\003SVO\252\002\023Scalekit.V1" + - ".Options\312\002\023Scalekit\\V1\\Options\342\002\037Scaleki" + - "t\\V1\\Options\\GPBMetadata\352\002\025Scalekit::V1:" + - ":Optionsb\006proto3" + "CLIENT\0204\022\020\n\014SESSION_USER\020\030\022\023\n\016ACTIONS_PO" + + "RTAL\020\200\001\0225\n0WORKSPACE_SESSION_CUSTOMER_PO" + + "RTAL_ACTIONS_PORTAL\020\360\001\022<\n7WORKSPACE_SESS" + + "ION_CUSTOMER_PORTAL_ACTIONS_PORTAL_CLIEN" + + "T\020\364\001\022\035\n\030WORKSPACE_ACTIONS_PORTAL\020\300\001\022$\n\037W" + + "ORKSPACE_ACTIONS_PORTAL_CLIENT\020\304\001\0224\n/WOR" + + "KSPACE_ACTIONS_PORTAL_CUSTOMER_PORTAL_CL" + + "IENT\020\344\001\022-\n(WORKSPACE_CUSTOMER_PORTAL_ACT" + + "IONS_PORTAL\020\340\001:b\n\013auth_option\022\036.google.p" + + "rotobuf.MethodOptions\030\320\206\003 \001(\0132\037.scalekit" + + ".v1.options.AuthOptionR\nauthOptionB\331\001\n%c" + + "om.scalekit.grpc.scalekit.v1.optionsB\014Op" + + "tionsProtoP\001Z4github.com/scalekit-inc/sc" + + "alekit/pkg/grpc/authoption\242\002\003SVO\252\002\023Scale" + + "kit.V1.Options\312\002\023Scalekit\\V1\\Options\342\002\037S" + + "calekit\\V1\\Options\\GPBMetadata\352\002\025Scaleki" + + "t::V1::Optionsb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/ApplicationSessionPolicySettings.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/ApplicationSessionPolicySettings.java new file mode 100644 index 00000000..2a75b73c --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/ApplicationSessionPolicySettings.java @@ -0,0 +1,902 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +/** + * Protobuf type {@code scalekit.v1.organizations.ApplicationSessionPolicySettings} + */ +public final class ApplicationSessionPolicySettings extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.ApplicationSessionPolicySettings) + ApplicationSessionPolicySettingsOrBuilder { +private static final long serialVersionUID = 0L; + // Use ApplicationSessionPolicySettings.newBuilder() to construct. + private ApplicationSessionPolicySettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ApplicationSessionPolicySettings() { + absoluteSessionTimeoutUnit_ = 0; + idleSessionTimeoutUnit_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ApplicationSessionPolicySettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_ApplicationSessionPolicySettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_ApplicationSessionPolicySettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.class, com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.Builder.class); + } + + private int bitField0_; + public static final int ABSOLUTE_SESSION_TIMEOUT_FIELD_NUMBER = 1; + private int absoluteSessionTimeout_ = 0; + /** + * int32 absolute_session_timeout = 1 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeout. + */ + @java.lang.Override + public int getAbsoluteSessionTimeout() { + return absoluteSessionTimeout_; + } + + public static final int IDLE_SESSION_TIMEOUT_ENABLED_FIELD_NUMBER = 2; + private boolean idleSessionTimeoutEnabled_ = false; + /** + * bool idle_session_timeout_enabled = 2 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutEnabled. + */ + @java.lang.Override + public boolean getIdleSessionTimeoutEnabled() { + return idleSessionTimeoutEnabled_; + } + + public static final int IDLE_SESSION_TIMEOUT_FIELD_NUMBER = 3; + private int idleSessionTimeout_ = 0; + /** + * int32 idle_session_timeout = 3 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeout. + */ + @java.lang.Override + public int getIdleSessionTimeout() { + return idleSessionTimeout_; + } + + public static final int ACCESS_TOKEN_EXPIRY_FIELD_NUMBER = 4; + private int accessTokenExpiry_ = 0; + /** + * int32 access_token_expiry = 4 [json_name = "accessTokenExpiry", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The accessTokenExpiry. + */ + @java.lang.Override + public int getAccessTokenExpiry() { + return accessTokenExpiry_; + } + + public static final int ABSOLUTE_SESSION_TIMEOUT_UNIT_FIELD_NUMBER = 5; + private int absoluteSessionTimeoutUnit_ = 0; + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 5 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeoutUnit field is set. + */ + @java.lang.Override public boolean hasAbsoluteSessionTimeoutUnit() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 5 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for absoluteSessionTimeoutUnit. + */ + @java.lang.Override public int getAbsoluteSessionTimeoutUnitValue() { + return absoluteSessionTimeoutUnit_; + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 5 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeoutUnit. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.commons.TimeUnit getAbsoluteSessionTimeoutUnit() { + com.scalekit.grpc.scalekit.v1.commons.TimeUnit result = com.scalekit.grpc.scalekit.v1.commons.TimeUnit.forNumber(absoluteSessionTimeoutUnit_); + return result == null ? com.scalekit.grpc.scalekit.v1.commons.TimeUnit.UNRECOGNIZED : result; + } + + public static final int IDLE_SESSION_TIMEOUT_UNIT_FIELD_NUMBER = 6; + private int idleSessionTimeoutUnit_ = 0; + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutUnit field is set. + */ + @java.lang.Override public boolean hasIdleSessionTimeoutUnit() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for idleSessionTimeoutUnit. + */ + @java.lang.Override public int getIdleSessionTimeoutUnitValue() { + return idleSessionTimeoutUnit_; + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutUnit. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.commons.TimeUnit getIdleSessionTimeoutUnit() { + com.scalekit.grpc.scalekit.v1.commons.TimeUnit result = com.scalekit.grpc.scalekit.v1.commons.TimeUnit.forNumber(idleSessionTimeoutUnit_); + return result == null ? com.scalekit.grpc.scalekit.v1.commons.TimeUnit.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 (absoluteSessionTimeout_ != 0) { + output.writeInt32(1, absoluteSessionTimeout_); + } + if (idleSessionTimeoutEnabled_ != false) { + output.writeBool(2, idleSessionTimeoutEnabled_); + } + if (idleSessionTimeout_ != 0) { + output.writeInt32(3, idleSessionTimeout_); + } + if (accessTokenExpiry_ != 0) { + output.writeInt32(4, accessTokenExpiry_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(5, absoluteSessionTimeoutUnit_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(6, idleSessionTimeoutUnit_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (absoluteSessionTimeout_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, absoluteSessionTimeout_); + } + if (idleSessionTimeoutEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(2, idleSessionTimeoutEnabled_); + } + if (idleSessionTimeout_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(3, idleSessionTimeout_); + } + if (accessTokenExpiry_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(4, accessTokenExpiry_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(5, absoluteSessionTimeoutUnit_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, idleSessionTimeoutUnit_); + } + 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.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings other = (com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings) obj; + + if (getAbsoluteSessionTimeout() + != other.getAbsoluteSessionTimeout()) return false; + if (getIdleSessionTimeoutEnabled() + != other.getIdleSessionTimeoutEnabled()) return false; + if (getIdleSessionTimeout() + != other.getIdleSessionTimeout()) return false; + if (getAccessTokenExpiry() + != other.getAccessTokenExpiry()) return false; + if (hasAbsoluteSessionTimeoutUnit() != other.hasAbsoluteSessionTimeoutUnit()) return false; + if (hasAbsoluteSessionTimeoutUnit()) { + if (absoluteSessionTimeoutUnit_ != other.absoluteSessionTimeoutUnit_) return false; + } + if (hasIdleSessionTimeoutUnit() != other.hasIdleSessionTimeoutUnit()) return false; + if (hasIdleSessionTimeoutUnit()) { + if (idleSessionTimeoutUnit_ != other.idleSessionTimeoutUnit_) 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) + ABSOLUTE_SESSION_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getAbsoluteSessionTimeout(); + hash = (37 * hash) + IDLE_SESSION_TIMEOUT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIdleSessionTimeoutEnabled()); + hash = (37 * hash) + IDLE_SESSION_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getIdleSessionTimeout(); + hash = (37 * hash) + ACCESS_TOKEN_EXPIRY_FIELD_NUMBER; + hash = (53 * hash) + getAccessTokenExpiry(); + if (hasAbsoluteSessionTimeoutUnit()) { + hash = (37 * hash) + ABSOLUTE_SESSION_TIMEOUT_UNIT_FIELD_NUMBER; + hash = (53 * hash) + absoluteSessionTimeoutUnit_; + } + if (hasIdleSessionTimeoutUnit()) { + hash = (37 * hash) + IDLE_SESSION_TIMEOUT_UNIT_FIELD_NUMBER; + hash = (53 * hash) + idleSessionTimeoutUnit_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.organizations.ApplicationSessionPolicySettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.ApplicationSessionPolicySettings) + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_ApplicationSessionPolicySettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_ApplicationSessionPolicySettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.class, com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + absoluteSessionTimeout_ = 0; + idleSessionTimeoutEnabled_ = false; + idleSessionTimeout_ = 0; + accessTokenExpiry_ = 0; + absoluteSessionTimeoutUnit_ = 0; + idleSessionTimeoutUnit_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_ApplicationSessionPolicySettings_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings build() { + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings buildPartial() { + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings result = new com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.absoluteSessionTimeout_ = absoluteSessionTimeout_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.idleSessionTimeoutEnabled_ = idleSessionTimeoutEnabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.idleSessionTimeout_ = idleSessionTimeout_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.accessTokenExpiry_ = accessTokenExpiry_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.absoluteSessionTimeoutUnit_ = absoluteSessionTimeoutUnit_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.idleSessionTimeoutUnit_ = idleSessionTimeoutUnit_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings other) { + if (other == com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.getDefaultInstance()) return this; + if (other.getAbsoluteSessionTimeout() != 0) { + setAbsoluteSessionTimeout(other.getAbsoluteSessionTimeout()); + } + if (other.getIdleSessionTimeoutEnabled() != false) { + setIdleSessionTimeoutEnabled(other.getIdleSessionTimeoutEnabled()); + } + if (other.getIdleSessionTimeout() != 0) { + setIdleSessionTimeout(other.getIdleSessionTimeout()); + } + if (other.getAccessTokenExpiry() != 0) { + setAccessTokenExpiry(other.getAccessTokenExpiry()); + } + if (other.hasAbsoluteSessionTimeoutUnit()) { + setAbsoluteSessionTimeoutUnit(other.getAbsoluteSessionTimeoutUnit()); + } + if (other.hasIdleSessionTimeoutUnit()) { + setIdleSessionTimeoutUnit(other.getIdleSessionTimeoutUnit()); + } + 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 8: { + absoluteSessionTimeout_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + idleSessionTimeoutEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: { + idleSessionTimeout_ = input.readInt32(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: { + accessTokenExpiry_ = input.readInt32(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: { + absoluteSessionTimeoutUnit_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: { + idleSessionTimeoutUnit_ = input.readEnum(); + 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 int absoluteSessionTimeout_ ; + /** + * int32 absolute_session_timeout = 1 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeout. + */ + @java.lang.Override + public int getAbsoluteSessionTimeout() { + return absoluteSessionTimeout_; + } + /** + * int32 absolute_session_timeout = 1 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The absoluteSessionTimeout to set. + * @return This builder for chaining. + */ + public Builder setAbsoluteSessionTimeout(int value) { + + absoluteSessionTimeout_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int32 absolute_session_timeout = 1 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearAbsoluteSessionTimeout() { + bitField0_ = (bitField0_ & ~0x00000001); + absoluteSessionTimeout_ = 0; + onChanged(); + return this; + } + + private boolean idleSessionTimeoutEnabled_ ; + /** + * bool idle_session_timeout_enabled = 2 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutEnabled. + */ + @java.lang.Override + public boolean getIdleSessionTimeoutEnabled() { + return idleSessionTimeoutEnabled_; + } + /** + * bool idle_session_timeout_enabled = 2 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The idleSessionTimeoutEnabled to set. + * @return This builder for chaining. + */ + public Builder setIdleSessionTimeoutEnabled(boolean value) { + + idleSessionTimeoutEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * bool idle_session_timeout_enabled = 2 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIdleSessionTimeoutEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + idleSessionTimeoutEnabled_ = false; + onChanged(); + return this; + } + + private int idleSessionTimeout_ ; + /** + * int32 idle_session_timeout = 3 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeout. + */ + @java.lang.Override + public int getIdleSessionTimeout() { + return idleSessionTimeout_; + } + /** + * int32 idle_session_timeout = 3 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The idleSessionTimeout to set. + * @return This builder for chaining. + */ + public Builder setIdleSessionTimeout(int value) { + + idleSessionTimeout_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * int32 idle_session_timeout = 3 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIdleSessionTimeout() { + bitField0_ = (bitField0_ & ~0x00000004); + idleSessionTimeout_ = 0; + onChanged(); + return this; + } + + private int accessTokenExpiry_ ; + /** + * int32 access_token_expiry = 4 [json_name = "accessTokenExpiry", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The accessTokenExpiry. + */ + @java.lang.Override + public int getAccessTokenExpiry() { + return accessTokenExpiry_; + } + /** + * int32 access_token_expiry = 4 [json_name = "accessTokenExpiry", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The accessTokenExpiry to set. + * @return This builder for chaining. + */ + public Builder setAccessTokenExpiry(int value) { + + accessTokenExpiry_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * int32 access_token_expiry = 4 [json_name = "accessTokenExpiry", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearAccessTokenExpiry() { + bitField0_ = (bitField0_ & ~0x00000008); + accessTokenExpiry_ = 0; + onChanged(); + return this; + } + + private int absoluteSessionTimeoutUnit_ = 0; + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 5 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeoutUnit field is set. + */ + @java.lang.Override public boolean hasAbsoluteSessionTimeoutUnit() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 5 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for absoluteSessionTimeoutUnit. + */ + @java.lang.Override public int getAbsoluteSessionTimeoutUnitValue() { + return absoluteSessionTimeoutUnit_; + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 5 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The enum numeric value on the wire for absoluteSessionTimeoutUnit to set. + * @return This builder for chaining. + */ + public Builder setAbsoluteSessionTimeoutUnitValue(int value) { + absoluteSessionTimeoutUnit_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 5 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeoutUnit. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.commons.TimeUnit getAbsoluteSessionTimeoutUnit() { + com.scalekit.grpc.scalekit.v1.commons.TimeUnit result = com.scalekit.grpc.scalekit.v1.commons.TimeUnit.forNumber(absoluteSessionTimeoutUnit_); + return result == null ? com.scalekit.grpc.scalekit.v1.commons.TimeUnit.UNRECOGNIZED : result; + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 5 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The absoluteSessionTimeoutUnit to set. + * @return This builder for chaining. + */ + public Builder setAbsoluteSessionTimeoutUnit(com.scalekit.grpc.scalekit.v1.commons.TimeUnit value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + absoluteSessionTimeoutUnit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 5 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearAbsoluteSessionTimeoutUnit() { + bitField0_ = (bitField0_ & ~0x00000010); + absoluteSessionTimeoutUnit_ = 0; + onChanged(); + return this; + } + + private int idleSessionTimeoutUnit_ = 0; + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutUnit field is set. + */ + @java.lang.Override public boolean hasIdleSessionTimeoutUnit() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for idleSessionTimeoutUnit. + */ + @java.lang.Override public int getIdleSessionTimeoutUnitValue() { + return idleSessionTimeoutUnit_; + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The enum numeric value on the wire for idleSessionTimeoutUnit to set. + * @return This builder for chaining. + */ + public Builder setIdleSessionTimeoutUnitValue(int value) { + idleSessionTimeoutUnit_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutUnit. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.commons.TimeUnit getIdleSessionTimeoutUnit() { + com.scalekit.grpc.scalekit.v1.commons.TimeUnit result = com.scalekit.grpc.scalekit.v1.commons.TimeUnit.forNumber(idleSessionTimeoutUnit_); + return result == null ? com.scalekit.grpc.scalekit.v1.commons.TimeUnit.UNRECOGNIZED : result; + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The idleSessionTimeoutUnit to set. + * @return This builder for chaining. + */ + public Builder setIdleSessionTimeoutUnit(com.scalekit.grpc.scalekit.v1.commons.TimeUnit value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + idleSessionTimeoutUnit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIdleSessionTimeoutUnit() { + bitField0_ = (bitField0_ & ~0x00000020); + idleSessionTimeoutUnit_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.ApplicationSessionPolicySettings) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.ApplicationSessionPolicySettings) + private static final com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings(); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ApplicationSessionPolicySettings 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.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/ApplicationSessionPolicySettingsOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/ApplicationSessionPolicySettingsOrBuilder.java new file mode 100644 index 00000000..abe43f01 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/ApplicationSessionPolicySettingsOrBuilder.java @@ -0,0 +1,66 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +public interface ApplicationSessionPolicySettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.ApplicationSessionPolicySettings) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 absolute_session_timeout = 1 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeout. + */ + int getAbsoluteSessionTimeout(); + + /** + * bool idle_session_timeout_enabled = 2 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutEnabled. + */ + boolean getIdleSessionTimeoutEnabled(); + + /** + * int32 idle_session_timeout = 3 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeout. + */ + int getIdleSessionTimeout(); + + /** + * int32 access_token_expiry = 4 [json_name = "accessTokenExpiry", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The accessTokenExpiry. + */ + int getAccessTokenExpiry(); + + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 5 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeoutUnit field is set. + */ + boolean hasAbsoluteSessionTimeoutUnit(); + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 5 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for absoluteSessionTimeoutUnit. + */ + int getAbsoluteSessionTimeoutUnitValue(); + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 5 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeoutUnit. + */ + com.scalekit.grpc.scalekit.v1.commons.TimeUnit getAbsoluteSessionTimeoutUnit(); + + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutUnit field is set. + */ + boolean hasIdleSessionTimeoutUnit(); + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for idleSessionTimeoutUnit. + */ + int getIdleSessionTimeoutUnitValue(); + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutUnit. + */ + com.scalekit.grpc.scalekit.v1.commons.TimeUnit getIdleSessionTimeoutUnit(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganization.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganization.java index 96cca758..fc574893 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganization.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganization.java @@ -20,6 +20,7 @@ private CreateOrganization() { displayName_ = ""; regionCode_ = 0; externalId_ = ""; + slug_ = ""; } @java.lang.Override @@ -238,6 +239,53 @@ public java.lang.String getMetadataOrThrow( return map.get(key); } + public static final int SLUG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object slug_ = ""; + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the slug field is set. + */ + @java.lang.Override + public boolean hasSlug() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The slug. + */ + @java.lang.Override + public java.lang.String getSlug() { + java.lang.Object ref = slug_; + 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(); + slug_ = s; + return s; + } + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for slug. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSlugBytes() { + java.lang.Object ref = slug_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + slug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -267,6 +315,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 7); + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, slug_); + } getUnknownFields().writeTo(output); } @@ -296,6 +347,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, metadata__); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, slug_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -321,6 +375,11 @@ public boolean equals(final java.lang.Object obj) { } if (!internalGetMetadata().equals( other.internalGetMetadata())) return false; + if (hasSlug() != other.hasSlug()) return false; + if (hasSlug()) { + if (!getSlug() + .equals(other.getSlug())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -344,6 +403,10 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } + if (hasSlug()) { + hash = (37 * hash) + SLUG_FIELD_NUMBER; + hash = (53 * hash) + getSlug().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -501,6 +564,7 @@ public Builder clear() { regionCode_ = 0; externalId_ = ""; internalGetMutableMetadata().clear(); + slug_ = ""; return this; } @@ -549,6 +613,10 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.CreateOrg result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.slug_ = slug_; + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -612,6 +680,11 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.CreateOrgan internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); bitField0_ |= 0x00000008; + if (other.hasSlug()) { + slug_ = other.slug_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -662,6 +735,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 58 + case 74: { + slug_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1009,6 +1087,85 @@ public Builder putAllMetadata( bitField0_ |= 0x00000008; return this; } + + private java.lang.Object slug_ = ""; + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the slug field is set. + */ + public boolean hasSlug() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The slug. + */ + public java.lang.String getSlug() { + java.lang.Object ref = slug_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + slug_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for slug. + */ + public com.google.protobuf.ByteString + getSlugBytes() { + java.lang.Object ref = slug_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + slug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The slug to set. + * @return This builder for chaining. + */ + public Builder setSlug( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + slug_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearSlug() { + slug_ = getDefaultInstance().getSlug(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for slug to set. + * @return This builder for chaining. + */ + public Builder setSlugBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + slug_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationOrBuilder.java index 70628293..90d16f62 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationOrBuilder.java @@ -81,4 +81,21 @@ java.lang.String getMetadataOrDefault( */ java.lang.String getMetadataOrThrow( java.lang.String key); + + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the slug field is set. + */ + boolean hasSlug(); + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The slug. + */ + java.lang.String getSlug(); + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for slug. + */ + com.google.protobuf.ByteString + getSlugBytes(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationSessionSettingsRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationSessionSettingsRequestOrBuilder.java deleted file mode 100644 index 8efcd906..00000000 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationSessionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: scalekit/v1/organizations/organizations.proto - -// Protobuf Java Version: 3.25.3 -package com.scalekit.grpc.scalekit.v1.organizations; - -public interface CreateOrganizationSessionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - java.lang.String getEnvironmentId(); - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - com.google.protobuf.ByteString - getEnvironmentIdBytes(); -} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationSessionSettingsResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationSessionSettingsResponseOrBuilder.java deleted file mode 100644 index 0c1ab646..00000000 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/CreateOrganizationSessionSettingsResponseOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: scalekit/v1/organizations/organizations.proto - -// Protobuf Java Version: 3.25.3 -package com.scalekit.grpc.scalekit.v1.organizations; - -public interface CreateOrganizationSessionSettingsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - java.lang.String getEnvironmentId(); - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - com.google.protobuf.ByteString - getEnvironmentIdBytes(); - - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The organizationId. - */ - java.lang.String getOrganizationId(); - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for organizationId. - */ - com.google.protobuf.ByteString - getOrganizationIdBytes(); - - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionSettings field is set. - */ - boolean hasSessionSettings(); - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionSettings. - */ - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings getSessionSettings(); - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder getSessionSettingsOrBuilder(); -} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/DeleteOrganizationSessionSettingsRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/DeleteOrganizationSessionSettingsRequestOrBuilder.java deleted file mode 100644 index 0a45f4f9..00000000 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/DeleteOrganizationSessionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: scalekit/v1/organizations/organizations.proto - -// Protobuf Java Version: 3.25.3 -package com.scalekit.grpc.scalekit.v1.organizations; - -public interface DeleteOrganizationSessionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - java.lang.String getEnvironmentId(); - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - com.google.protobuf.ByteString - getEnvironmentIdBytes(); -} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GeneratePortalLinkRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GeneratePortalLinkRequest.java index 216a4750..aa21b051 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GeneratePortalLinkRequest.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GeneratePortalLinkRequest.java @@ -90,7 +90,7 @@ public java.lang.String getId() { * * optional bool sso = 2 [json_name = "sso", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.sso is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=883 + * See scalekit/v1/organizations/organizations.proto;l=955 * @return Whether the sso field is set. */ @java.lang.Override @@ -104,7 +104,7 @@ public java.lang.String getId() { * * optional bool sso = 2 [json_name = "sso", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.sso is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=883 + * See scalekit/v1/organizations/organizations.proto;l=955 * @return The sso. */ @java.lang.Override @@ -121,7 +121,7 @@ public java.lang.String getId() { * * optional bool directory_sync = 3 [json_name = "directorySync", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.directory_sync is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=889 + * See scalekit/v1/organizations/organizations.proto;l=961 * @return Whether the directorySync field is set. */ @java.lang.Override @@ -135,7 +135,7 @@ public java.lang.String getId() { * * optional bool directory_sync = 3 [json_name = "directorySync", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.directory_sync is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=889 + * See scalekit/v1/organizations/organizations.proto;l=961 * @return The directorySync. */ @java.lang.Override @@ -732,7 +732,7 @@ public Builder setIdBytes( * * optional bool sso = 2 [json_name = "sso", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.sso is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=883 + * See scalekit/v1/organizations/organizations.proto;l=955 * @return Whether the sso field is set. */ @java.lang.Override @@ -746,7 +746,7 @@ public Builder setIdBytes( * * optional bool sso = 2 [json_name = "sso", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.sso is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=883 + * See scalekit/v1/organizations/organizations.proto;l=955 * @return The sso. */ @java.lang.Override @@ -760,7 +760,7 @@ public Builder setIdBytes( * * optional bool sso = 2 [json_name = "sso", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.sso is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=883 + * See scalekit/v1/organizations/organizations.proto;l=955 * @param value The sso to set. * @return This builder for chaining. */ @@ -778,7 +778,7 @@ public Builder setIdBytes( * * optional bool sso = 2 [json_name = "sso", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.sso is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=883 + * See scalekit/v1/organizations/organizations.proto;l=955 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearSso() { @@ -796,7 +796,7 @@ public Builder setIdBytes( * * optional bool directory_sync = 3 [json_name = "directorySync", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.directory_sync is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=889 + * See scalekit/v1/organizations/organizations.proto;l=961 * @return Whether the directorySync field is set. */ @java.lang.Override @@ -810,7 +810,7 @@ public Builder setIdBytes( * * optional bool directory_sync = 3 [json_name = "directorySync", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.directory_sync is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=889 + * See scalekit/v1/organizations/organizations.proto;l=961 * @return The directorySync. */ @java.lang.Override @@ -824,7 +824,7 @@ public Builder setIdBytes( * * optional bool directory_sync = 3 [json_name = "directorySync", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.directory_sync is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=889 + * See scalekit/v1/organizations/organizations.proto;l=961 * @param value The directorySync to set. * @return This builder for chaining. */ @@ -842,7 +842,7 @@ public Builder setIdBytes( * * optional bool directory_sync = 3 [json_name = "directorySync", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.directory_sync is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=889 + * See scalekit/v1/organizations/organizations.proto;l=961 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearDirectorySync() { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GeneratePortalLinkRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GeneratePortalLinkRequestOrBuilder.java index fc9d25a5..e6034360 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GeneratePortalLinkRequestOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GeneratePortalLinkRequestOrBuilder.java @@ -27,7 +27,7 @@ public interface GeneratePortalLinkRequestOrBuilder extends * * optional bool sso = 2 [json_name = "sso", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.sso is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=883 + * See scalekit/v1/organizations/organizations.proto;l=955 * @return Whether the sso field is set. */ @java.lang.Deprecated boolean hasSso(); @@ -38,7 +38,7 @@ public interface GeneratePortalLinkRequestOrBuilder extends * * optional bool sso = 2 [json_name = "sso", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.sso is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=883 + * See scalekit/v1/organizations/organizations.proto;l=955 * @return The sso. */ @java.lang.Deprecated boolean getSso(); @@ -50,7 +50,7 @@ public interface GeneratePortalLinkRequestOrBuilder extends * * optional bool directory_sync = 3 [json_name = "directorySync", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.directory_sync is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=889 + * See scalekit/v1/organizations/organizations.proto;l=961 * @return Whether the directorySync field is set. */ @java.lang.Deprecated boolean hasDirectorySync(); @@ -61,7 +61,7 @@ public interface GeneratePortalLinkRequestOrBuilder extends * * optional bool directory_sync = 3 [json_name = "directorySync", deprecated = true, (.google.api.field_visibility) = { ... } * @deprecated scalekit.v1.organizations.GeneratePortalLinkRequest.directory_sync is deprecated. - * See scalekit/v1/organizations/organizations.proto;l=889 + * See scalekit/v1/organizations/organizations.proto;l=961 * @return The directorySync. */ @java.lang.Deprecated boolean getDirectorySync(); diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyRequest.java new file mode 100644 index 00000000..1b1d6ac5 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyRequest.java @@ -0,0 +1,542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +/** + * Protobuf type {@code scalekit.v1.organizations.GetApplicationSessionPolicyRequest} + */ +public final class GetApplicationSessionPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.GetApplicationSessionPolicyRequest) + GetApplicationSessionPolicyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetApplicationSessionPolicyRequest.newBuilder() to construct. + private GetApplicationSessionPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetApplicationSessionPolicyRequest() { + organizationId_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetApplicationSessionPolicyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest.class, com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest.Builder.class); + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + 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(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, organizationId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, organizationId_); + } + 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.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest other = (com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) 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) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.organizations.GetApplicationSessionPolicyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.GetApplicationSessionPolicyRequest) + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest.class, com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest build() { + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest result = new com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + 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: { + organizationId_ = 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 organizationId_ = ""; + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.GetApplicationSessionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.GetApplicationSessionPolicyRequest) + private static final com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApplicationSessionPolicyRequest 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.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyRequestOrBuilder.java new file mode 100644 index 00000000..2f5739d1 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyRequestOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +public interface GetApplicationSessionPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.GetApplicationSessionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyResponse.java new file mode 100644 index 00000000..cf69f720 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyResponse.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +/** + * Protobuf type {@code scalekit.v1.organizations.GetApplicationSessionPolicyResponse} + */ +public final class GetApplicationSessionPolicyResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.GetApplicationSessionPolicyResponse) + GetApplicationSessionPolicyResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetApplicationSessionPolicyResponse.newBuilder() to construct. + private GetApplicationSessionPolicyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetApplicationSessionPolicyResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetApplicationSessionPolicyResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse.class, com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse.Builder.class); + } + + private int bitField0_; + public static final int APPLICATION_POLICY_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings applicationPolicy_; + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the applicationPolicy field is set. + */ + @java.lang.Override + public boolean hasApplicationPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The applicationPolicy. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings getApplicationPolicy() { + return applicationPolicy_ == null ? com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.getDefaultInstance() : applicationPolicy_; + } + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettingsOrBuilder getApplicationPolicyOrBuilder() { + return applicationPolicy_ == null ? com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.getDefaultInstance() : applicationPolicy_; + } + + 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, getApplicationPolicy()); + } + 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, getApplicationPolicy()); + } + 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.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse other = (com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse) obj; + + if (hasApplicationPolicy() != other.hasApplicationPolicy()) return false; + if (hasApplicationPolicy()) { + if (!getApplicationPolicy() + .equals(other.getApplicationPolicy())) 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 (hasApplicationPolicy()) { + hash = (37 * hash) + APPLICATION_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getApplicationPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.organizations.GetApplicationSessionPolicyResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.GetApplicationSessionPolicyResponse) + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse.class, com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getApplicationPolicyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + applicationPolicy_ = null; + if (applicationPolicyBuilder_ != null) { + applicationPolicyBuilder_.dispose(); + applicationPolicyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse build() { + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse result = new com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.applicationPolicy_ = applicationPolicyBuilder_ == null + ? applicationPolicy_ + : applicationPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse.getDefaultInstance()) return this; + if (other.hasApplicationPolicy()) { + mergeApplicationPolicy(other.getApplicationPolicy()); + } + 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( + getApplicationPolicyFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings applicationPolicy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings, com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettingsOrBuilder> applicationPolicyBuilder_; + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the applicationPolicy field is set. + */ + public boolean hasApplicationPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The applicationPolicy. + */ + public com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings getApplicationPolicy() { + if (applicationPolicyBuilder_ == null) { + return applicationPolicy_ == null ? com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.getDefaultInstance() : applicationPolicy_; + } else { + return applicationPolicyBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setApplicationPolicy(com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings value) { + if (applicationPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + applicationPolicy_ = value; + } else { + applicationPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setApplicationPolicy( + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.Builder builderForValue) { + if (applicationPolicyBuilder_ == null) { + applicationPolicy_ = builderForValue.build(); + } else { + applicationPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeApplicationPolicy(com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings value) { + if (applicationPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + applicationPolicy_ != null && + applicationPolicy_ != com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.getDefaultInstance()) { + getApplicationPolicyBuilder().mergeFrom(value); + } else { + applicationPolicy_ = value; + } + } else { + applicationPolicyBuilder_.mergeFrom(value); + } + if (applicationPolicy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearApplicationPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + applicationPolicy_ = null; + if (applicationPolicyBuilder_ != null) { + applicationPolicyBuilder_.dispose(); + applicationPolicyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.Builder getApplicationPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getApplicationPolicyFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettingsOrBuilder getApplicationPolicyOrBuilder() { + if (applicationPolicyBuilder_ != null) { + return applicationPolicyBuilder_.getMessageOrBuilder(); + } else { + return applicationPolicy_ == null ? + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.getDefaultInstance() : applicationPolicy_; + } + } + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings, com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettingsOrBuilder> + getApplicationPolicyFieldBuilder() { + if (applicationPolicyBuilder_ == null) { + applicationPolicyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings, com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettingsOrBuilder>( + getApplicationPolicy(), + getParentForChildren(), + isClean()); + applicationPolicy_ = null; + } + return applicationPolicyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.GetApplicationSessionPolicyResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.GetApplicationSessionPolicyResponse) + private static final com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetApplicationSessionPolicyResponse 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.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyResponseOrBuilder.java new file mode 100644 index 00000000..3a2e159f --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetApplicationSessionPolicyResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +public interface GetApplicationSessionPolicyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.GetApplicationSessionPolicyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the applicationPolicy field is set. + */ + boolean hasApplicationPolicy(); + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The applicationPolicy. + */ + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettings getApplicationPolicy(); + /** + * .scalekit.v1.organizations.ApplicationSessionPolicySettings application_policy = 1 [json_name = "applicationPolicy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.organizations.ApplicationSessionPolicySettingsOrBuilder getApplicationPolicyOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyRequest.java similarity index 60% rename from src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsRequest.java rename to src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyRequest.java index 647f2983..855e5b35 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsRequest.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyRequest.java @@ -5,114 +5,74 @@ package com.scalekit.grpc.scalekit.v1.organizations; /** - * Protobuf type {@code scalekit.v1.organizations.GetOrganizationSessionSettingsRequest} + * Protobuf type {@code scalekit.v1.organizations.GetOrganizationSessionPolicyRequest} */ -public final class GetOrganizationSessionSettingsRequest extends +public final class GetOrganizationSessionPolicyRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.GetOrganizationSessionSettingsRequest) - GetOrganizationSessionSettingsRequestOrBuilder { + // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.GetOrganizationSessionPolicyRequest) + GetOrganizationSessionPolicyRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use GetOrganizationSessionSettingsRequest.newBuilder() to construct. - private GetOrganizationSessionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use GetOrganizationSessionPolicyRequest.newBuilder() to construct. + private GetOrganizationSessionPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private GetOrganizationSessionSettingsRequest() { - id_ = ""; - environmentId_ = ""; + private GetOrganizationSessionPolicyRequest() { + organizationId_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { - return new GetOrganizationSessionSettingsRequest(); + return new GetOrganizationSessionPolicyRequest(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsRequest_descriptor; + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsRequest_fieldAccessorTable + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest.class, com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest.Builder.class); + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest.class, com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest.Builder.class); } - public static final int ID_FIELD_NUMBER = 1; + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; + private volatile java.lang.Object organizationId_ = ""; /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The id. + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationId. */ @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; 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(); - id_ = s; + organizationId_ = s; return s; } } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for id. + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationId. */ @java.lang.Override public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENVIRONMENT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object environmentId_ = ""; - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - @java.lang.Override - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; - 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(); - environmentId_ = s; - return s; - } - } - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - environmentId_ = b; + organizationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -133,11 +93,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environmentId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, organizationId_); } getUnknownFields().writeTo(output); } @@ -148,11 +105,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentId_); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, organizationId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -164,15 +118,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest)) { + if (!(obj instanceof com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest)) { return super.equals(obj); } - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest other = (com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest) obj; + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest other = (com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest) obj; - if (!getId() - .equals(other.getId())) return false; - if (!getEnvironmentId() - .equals(other.getEnvironmentId())) return false; + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -184,53 +136,51 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getEnvironmentId().hashCode(); + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest parseFrom(byte[] data) + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest parseFrom(java.io.InputStream input) + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -238,26 +188,26 @@ public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSession .parseWithIOException(PARSER, input, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest parseDelimitedFrom(java.io.InputStream input) + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest parseDelimitedFrom( + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest parseFrom( + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -270,7 +220,7 @@ public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSession public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest prototype) { + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override @@ -286,26 +236,26 @@ protected Builder newBuilderForType( return builder; } /** - * Protobuf type {@code scalekit.v1.organizations.GetOrganizationSessionSettingsRequest} + * Protobuf type {@code scalekit.v1.organizations.GetOrganizationSessionPolicyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.GetOrganizationSessionSettingsRequest) - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.GetOrganizationSessionPolicyRequest) + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsRequest_descriptor; + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsRequest_fieldAccessorTable + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest.class, com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest.Builder.class); + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest.class, com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest.Builder.class); } - // Construct using com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest.newBuilder() + // Construct using com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest.newBuilder() private Builder() { } @@ -319,25 +269,24 @@ private Builder( public Builder clear() { super.clear(); bitField0_ = 0; - id_ = ""; - environmentId_ = ""; + organizationId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsRequest_descriptor; + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyRequest_descriptor; } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest getDefaultInstanceForType() { - return com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest.getDefaultInstance(); + public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest.getDefaultInstance(); } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest build() { - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest result = buildPartial(); + public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest build() { + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -345,20 +294,17 @@ public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSetting } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest buildPartial() { - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest result = new com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest(this); + public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest result = new com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest(this); if (bitField0_ != 0) { buildPartial0(result); } onBuilt(); return result; } - private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest result) { + private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.environmentId_ = environmentId_; + result.organizationId_ = organizationId_; } } @@ -396,26 +342,21 @@ public Builder addRepeatedField( } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest) { - return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest)other); + if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest)other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest other) { - if (other == com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getEnvironmentId().isEmpty()) { - environmentId_ = other.environmentId_; - bitField0_ |= 0x00000002; - onChanged(); - } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -443,15 +384,10 @@ public Builder mergeFrom( done = true; break; case 10: { - id_ = input.readStringRequireUtf8(); + organizationId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 - case 18: { - environmentId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -469,149 +405,77 @@ public Builder mergeFrom( } private int bitField0_; - private java.lang.Object id_ = ""; + private java.lang.Object organizationId_ = ""; /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The id. + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationId. */ - public java.lang.String getId() { - java.lang.Object ref = id_; + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - id_ = s; + organizationId_ = s; return s; } else { return (java.lang.String) ref; } } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for id. + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationId. */ public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); - id_ = b; + organizationId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The id to set. + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The organizationId to set. * @return This builder for chaining. */ - public Builder setId( + public Builder setOrganizationId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } - id_ = value; + organizationId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for id to set. + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for organizationId to set. * @return This builder for chaining. */ - public Builder setIdBytes( + public Builder setOrganizationIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - id_ = value; + organizationId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - - private java.lang.Object environmentId_ = ""; - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - environmentId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - environmentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The environmentId to set. - * @return This builder for chaining. - */ - public Builder setEnvironmentId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - environmentId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return This builder for chaining. - */ - public Builder clearEnvironmentId() { - environmentId_ = getDefaultInstance().getEnvironmentId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for environmentId to set. - * @return This builder for chaining. - */ - public Builder setEnvironmentIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - environmentId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { @@ -625,23 +489,23 @@ public final Builder mergeUnknownFields( } - // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.GetOrganizationSessionSettingsRequest) + // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.GetOrganizationSessionPolicyRequest) } - // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.GetOrganizationSessionSettingsRequest) - private static final com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.GetOrganizationSessionPolicyRequest) + private static final com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest(); + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest(); } - public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest getDefaultInstance() { + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest getDefaultInstance() { return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override - public GetOrganizationSessionSettingsRequest parsePartialFrom( + public GetOrganizationSessionPolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -660,17 +524,17 @@ public GetOrganizationSessionSettingsRequest parsePartialFrom( } }; - public static com.google.protobuf.Parser parser() { + public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override - public com.google.protobuf.Parser getParserForType() { + public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest getDefaultInstanceForType() { + public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyRequestOrBuilder.java new file mode 100644 index 00000000..56832b9e --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyRequestOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +public interface GetOrganizationSessionPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.GetOrganizationSessionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyResponse.java new file mode 100644 index 00000000..0030fa11 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyResponse.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +/** + * Protobuf type {@code scalekit.v1.organizations.GetOrganizationSessionPolicyResponse} + */ +public final class GetOrganizationSessionPolicyResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.GetOrganizationSessionPolicyResponse) + GetOrganizationSessionPolicyResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use GetOrganizationSessionPolicyResponse.newBuilder() to construct. + private GetOrganizationSessionPolicyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private GetOrganizationSessionPolicyResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new GetOrganizationSessionPolicyResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse.class, com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse.Builder.class); + } + + private int bitField0_; + public static final int POLICY_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings policy_; + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the policy field is set. + */ + @java.lang.Override + public boolean hasPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policy. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings getPolicy() { + return policy_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.getDefaultInstance() : policy_; + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder getPolicyOrBuilder() { + return policy_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.getDefaultInstance() : policy_; + } + + 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, getPolicy()); + } + 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, getPolicy()); + } + 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.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse other = (com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse) obj; + + if (hasPolicy() != other.hasPolicy()) return false; + if (hasPolicy()) { + if (!getPolicy() + .equals(other.getPolicy())) 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 (hasPolicy()) { + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.organizations.GetOrganizationSessionPolicyResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.GetOrganizationSessionPolicyResponse) + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse.class, com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPolicyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); + policyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse build() { + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse result = new com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policy_ = policyBuilder_ == null + ? policy_ + : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse.getDefaultInstance()) return this; + if (other.hasPolicy()) { + mergePolicy(other.getPolicy()); + } + 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( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings policy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder> policyBuilder_; + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the policy field is set. + */ + public boolean hasPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policy. + */ + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings getPolicy() { + if (policyBuilder_ == null) { + return policy_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.getDefaultInstance() : policy_; + } else { + return policyBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setPolicy(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings value) { + if (policyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + } else { + policyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setPolicy( + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.Builder builderForValue) { + if (policyBuilder_ == null) { + policy_ = builderForValue.build(); + } else { + policyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergePolicy(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings value) { + if (policyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + policy_ != null && + policy_ != com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.getDefaultInstance()) { + getPolicyBuilder().mergeFrom(value); + } else { + policy_ = value; + } + } else { + policyBuilder_.mergeFrom(value); + } + if (policy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); + policyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.Builder getPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPolicyFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder getPolicyOrBuilder() { + if (policyBuilder_ != null) { + return policyBuilder_.getMessageOrBuilder(); + } else { + return policy_ == null ? + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.getDefaultInstance() : policy_; + } + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder> + getPolicyFieldBuilder() { + if (policyBuilder_ == null) { + policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder>( + getPolicy(), + getParentForChildren(), + isClean()); + policy_ = null; + } + return policyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.GetOrganizationSessionPolicyResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.GetOrganizationSessionPolicyResponse) + private static final com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOrganizationSessionPolicyResponse 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.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyResponseOrBuilder.java new file mode 100644 index 00000000..bd2387c0 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionPolicyResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +public interface GetOrganizationSessionPolicyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.GetOrganizationSessionPolicyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the policy field is set. + */ + boolean hasPolicy(); + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policy. + */ + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings getPolicy(); + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder getPolicyOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsRequestOrBuilder.java deleted file mode 100644 index 7a3ed590..00000000 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,34 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: scalekit/v1/organizations/organizations.proto - -// Protobuf Java Version: 3.25.3 -package com.scalekit.grpc.scalekit.v1.organizations; - -public interface GetOrganizationSessionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.GetOrganizationSessionSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - java.lang.String getEnvironmentId(); - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - com.google.protobuf.ByteString - getEnvironmentIdBytes(); -} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsResponseOrBuilder.java deleted file mode 100644 index bd4fdc95..00000000 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/GetOrganizationSessionSettingsResponseOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: scalekit/v1/organizations/organizations.proto - -// Protobuf Java Version: 3.25.3 -package com.scalekit.grpc.scalekit.v1.organizations; - -public interface GetOrganizationSessionSettingsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.GetOrganizationSessionSettingsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - java.lang.String getEnvironmentId(); - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - com.google.protobuf.ByteString - getEnvironmentIdBytes(); - - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The organizationId. - */ - java.lang.String getOrganizationId(); - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for organizationId. - */ - com.google.protobuf.ByteString - getOrganizationIdBytes(); - - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionSettings field is set. - */ - boolean hasSessionSettings(); - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionSettings. - */ - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings getSessionSettings(); - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder getSessionSettingsOrBuilder(); -} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/Organization.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/Organization.java index 5029ac3c..608fece6 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/Organization.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/Organization.java @@ -21,6 +21,7 @@ private Organization() { displayName_ = ""; regionCode_ = 0; externalId_ = ""; + slug_ = ""; } @java.lang.Override @@ -444,6 +445,53 @@ public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSettingsOrBuilder return settings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSettings.getDefaultInstance() : settings_; } + public static final int SLUG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object slug_ = ""; + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the slug field is set. + */ + @java.lang.Override + public boolean hasSlug() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The slug. + */ + @java.lang.Override + public java.lang.String getSlug() { + java.lang.Object ref = slug_; + 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(); + slug_ = s; + return s; + } + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for slug. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSlugBytes() { + java.lang.Object ref = slug_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + slug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -485,6 +533,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(8, getSettings()); } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, slug_); + } getUnknownFields().writeTo(output); } @@ -529,6 +580,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getSettings()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, slug_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -571,6 +625,11 @@ public boolean equals(final java.lang.Object obj) { if (!getSettings() .equals(other.getSettings())) return false; } + if (hasSlug() != other.hasSlug()) return false; + if (hasSlug()) { + if (!getSlug() + .equals(other.getSlug())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -608,6 +667,10 @@ public int hashCode() { hash = (37 * hash) + SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getSettings().hashCode(); } + if (hasSlug()) { + hash = (37 * hash) + SLUG_FIELD_NUMBER; + hash = (53 * hash) + getSlug().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -789,6 +852,7 @@ public Builder clear() { settingsBuilder_.dispose(); settingsBuilder_ = null; } + slug_ = ""; return this; } @@ -858,6 +922,10 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.Organizat : settingsBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.slug_ = slug_; + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -935,6 +1003,11 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.Organizatio if (other.hasSettings()) { mergeSettings(other.getSettings()); } + if (other.hasSlug()) { + slug_ = other.slug_; + bitField0_ |= 0x00000100; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1011,6 +1084,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 74: { + slug_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -2013,6 +2091,85 @@ public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSettingsOrBuilder } return settingsBuilder_; } + + private java.lang.Object slug_ = ""; + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the slug field is set. + */ + public boolean hasSlug() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The slug. + */ + public java.lang.String getSlug() { + java.lang.Object ref = slug_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + slug_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for slug. + */ + public com.google.protobuf.ByteString + getSlugBytes() { + java.lang.Object ref = slug_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + slug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The slug to set. + * @return This builder for chaining. + */ + public Builder setSlug( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + slug_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearSlug() { + slug_ = getDefaultInstance().getSlug(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for slug to set. + * @return This builder for chaining. + */ + public Builder setSlugBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + slug_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationOrBuilder.java index 554cf0ae..ec1cc112 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationOrBuilder.java @@ -230,4 +230,21 @@ java.lang.String getMetadataOrThrow( * .scalekit.v1.organizations.OrganizationSettings settings = 8 [json_name = "settings"]; */ com.scalekit.grpc.scalekit.v1.organizations.OrganizationSettingsOrBuilder getSettingsOrBuilder(); + + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the slug field is set. + */ + boolean hasSlug(); + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The slug. + */ + java.lang.String getSlug(); + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for slug. + */ + com.google.protobuf.ByteString + getSlugBytes(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationServiceGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationServiceGrpc.java index c79a73b3..974d56e6 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationServiceGrpc.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationServiceGrpc.java @@ -108,6 +108,37 @@ com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationResponse> getGetOrgan return getGetOrganizationMethod; } + private static volatile io.grpc.MethodDescriptor getGetOrganizationByExternalIdMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOrganizationByExternalId", + requestType = com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetOrganizationByExternalIdMethod() { + io.grpc.MethodDescriptor getGetOrganizationByExternalIdMethod; + if ((getGetOrganizationByExternalIdMethod = OrganizationServiceGrpc.getGetOrganizationByExternalIdMethod) == null) { + synchronized (OrganizationServiceGrpc.class) { + if ((getGetOrganizationByExternalIdMethod = OrganizationServiceGrpc.getGetOrganizationByExternalIdMethod) == null) { + OrganizationServiceGrpc.getGetOrganizationByExternalIdMethod = getGetOrganizationByExternalIdMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationByExternalId")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationResponse.getDefaultInstance())) + .setSchemaDescriptor(new OrganizationServiceMethodDescriptorSupplier("GetOrganizationByExternalId")) + .build(); + } + } + } + return getGetOrganizationByExternalIdMethod; + } + private static volatile io.grpc.MethodDescriptor getListOrganizationMethod; @@ -356,128 +387,66 @@ com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationResponse> getUpdateOr return getUpdateOrganizationSettingsMethod; } - private static volatile io.grpc.MethodDescriptor getCreateOrganizationSessionSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateOrganizationSessionSettings", - requestType = com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest.class, - responseType = com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateOrganizationSessionSettingsMethod() { - io.grpc.MethodDescriptor getCreateOrganizationSessionSettingsMethod; - if ((getCreateOrganizationSessionSettingsMethod = OrganizationServiceGrpc.getCreateOrganizationSessionSettingsMethod) == null) { - synchronized (OrganizationServiceGrpc.class) { - if ((getCreateOrganizationSessionSettingsMethod = OrganizationServiceGrpc.getCreateOrganizationSessionSettingsMethod) == null) { - OrganizationServiceGrpc.getCreateOrganizationSessionSettingsMethod = getCreateOrganizationSessionSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateOrganizationSessionSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new OrganizationServiceMethodDescriptorSupplier("CreateOrganizationSessionSettings")) - .build(); - } - } - } - return getCreateOrganizationSessionSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetOrganizationSessionSettingsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSessionSettings", - requestType = com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest.class, - responseType = com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetOrganizationSessionSettingsMethod() { - io.grpc.MethodDescriptor getGetOrganizationSessionSettingsMethod; - if ((getGetOrganizationSessionSettingsMethod = OrganizationServiceGrpc.getGetOrganizationSessionSettingsMethod) == null) { - synchronized (OrganizationServiceGrpc.class) { - if ((getGetOrganizationSessionSettingsMethod = OrganizationServiceGrpc.getGetOrganizationSessionSettingsMethod) == null) { - OrganizationServiceGrpc.getGetOrganizationSessionSettingsMethod = getGetOrganizationSessionSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationSessionSettings")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new OrganizationServiceMethodDescriptorSupplier("GetOrganizationSessionSettings")) - .build(); - } - } - } - return getGetOrganizationSessionSettingsMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateOrganizationSessionSettingsMethod; + private static volatile io.grpc.MethodDescriptor getUpdateOrganizationSessionPolicyMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSessionSettings", - requestType = com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest.class, - responseType = com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse.class, + fullMethodName = SERVICE_NAME + '/' + "UpdateOrganizationSessionPolicy", + requestType = com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateOrganizationSessionSettingsMethod() { - io.grpc.MethodDescriptor getUpdateOrganizationSessionSettingsMethod; - if ((getUpdateOrganizationSessionSettingsMethod = OrganizationServiceGrpc.getUpdateOrganizationSessionSettingsMethod) == null) { + public static io.grpc.MethodDescriptor getUpdateOrganizationSessionPolicyMethod() { + io.grpc.MethodDescriptor getUpdateOrganizationSessionPolicyMethod; + if ((getUpdateOrganizationSessionPolicyMethod = OrganizationServiceGrpc.getUpdateOrganizationSessionPolicyMethod) == null) { synchronized (OrganizationServiceGrpc.class) { - if ((getUpdateOrganizationSessionSettingsMethod = OrganizationServiceGrpc.getUpdateOrganizationSessionSettingsMethod) == null) { - OrganizationServiceGrpc.getUpdateOrganizationSessionSettingsMethod = getUpdateOrganizationSessionSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getUpdateOrganizationSessionPolicyMethod = OrganizationServiceGrpc.getUpdateOrganizationSessionPolicyMethod) == null) { + OrganizationServiceGrpc.getUpdateOrganizationSessionPolicyMethod = getUpdateOrganizationSessionPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSessionSettings")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateOrganizationSessionPolicy")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest.getDefaultInstance())) + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse.getDefaultInstance())) - .setSchemaDescriptor(new OrganizationServiceMethodDescriptorSupplier("UpdateOrganizationSessionSettings")) + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse.getDefaultInstance())) + .setSchemaDescriptor(new OrganizationServiceMethodDescriptorSupplier("UpdateOrganizationSessionPolicy")) .build(); } } } - return getUpdateOrganizationSessionSettingsMethod; + return getUpdateOrganizationSessionPolicyMethod; } - private static volatile io.grpc.MethodDescriptor getDeleteOrganizationSessionSettingsMethod; + private static volatile io.grpc.MethodDescriptor getGetOrganizationSessionPolicyMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteOrganizationSessionSettings", - requestType = com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest.class, - responseType = com.google.protobuf.Empty.class, + fullMethodName = SERVICE_NAME + '/' + "GetOrganizationSessionPolicy", + requestType = com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteOrganizationSessionSettingsMethod() { - io.grpc.MethodDescriptor getDeleteOrganizationSessionSettingsMethod; - if ((getDeleteOrganizationSessionSettingsMethod = OrganizationServiceGrpc.getDeleteOrganizationSessionSettingsMethod) == null) { + public static io.grpc.MethodDescriptor getGetOrganizationSessionPolicyMethod() { + io.grpc.MethodDescriptor getGetOrganizationSessionPolicyMethod; + if ((getGetOrganizationSessionPolicyMethod = OrganizationServiceGrpc.getGetOrganizationSessionPolicyMethod) == null) { synchronized (OrganizationServiceGrpc.class) { - if ((getDeleteOrganizationSessionSettingsMethod = OrganizationServiceGrpc.getDeleteOrganizationSessionSettingsMethod) == null) { - OrganizationServiceGrpc.getDeleteOrganizationSessionSettingsMethod = getDeleteOrganizationSessionSettingsMethod = - io.grpc.MethodDescriptor.newBuilder() + if ((getGetOrganizationSessionPolicyMethod = OrganizationServiceGrpc.getGetOrganizationSessionPolicyMethod) == null) { + OrganizationServiceGrpc.getGetOrganizationSessionPolicyMethod = getGetOrganizationSessionPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteOrganizationSessionSettings")) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOrganizationSessionPolicy")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest.getDefaultInstance())) + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new OrganizationServiceMethodDescriptorSupplier("DeleteOrganizationSessionSettings")) + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse.getDefaultInstance())) + .setSchemaDescriptor(new OrganizationServiceMethodDescriptorSupplier("GetOrganizationSessionPolicy")) .build(); } } } - return getDeleteOrganizationSessionSettingsMethod; + return getGetOrganizationSessionPolicyMethod; } private static volatile io.grpc.MethodDescriptor getGetApplicationSessionPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetApplicationSessionPolicy", + requestType = com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getGetApplicationSessionPolicyMethod() { + io.grpc.MethodDescriptor getGetApplicationSessionPolicyMethod; + if ((getGetApplicationSessionPolicyMethod = OrganizationServiceGrpc.getGetApplicationSessionPolicyMethod) == null) { + synchronized (OrganizationServiceGrpc.class) { + if ((getGetApplicationSessionPolicyMethod = OrganizationServiceGrpc.getGetApplicationSessionPolicyMethod) == null) { + OrganizationServiceGrpc.getGetApplicationSessionPolicyMethod = getGetApplicationSessionPolicyMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetApplicationSessionPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse.getDefaultInstance())) + .setSchemaDescriptor(new OrganizationServiceMethodDescriptorSupplier("GetApplicationSessionPolicy")) + .build(); + } + } + } + return getGetApplicationSessionPolicyMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -614,6 +614,13 @@ default void getOrganization(com.scalekit.grpc.scalekit.v1.organizations.GetOrga io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationMethod(), responseObserver); } + /** + */ + default void getOrganizationByExternalId(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationByExternalIdMethod(), responseObserver); + } + /** */ default void listOrganization(com.scalekit.grpc.scalekit.v1.organizations.ListOrganizationsRequest request, @@ -678,30 +685,16 @@ default void updateOrganizationSettings(com.scalekit.grpc.scalekit.v1.organizati /** */ - default void createOrganizationSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateOrganizationSessionSettingsMethod(), responseObserver); - } - - /** - */ - default void getOrganizationSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationSessionSettingsMethod(), responseObserver); + default void updateOrganizationSessionPolicy(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateOrganizationSessionPolicyMethod(), responseObserver); } /** */ - default void updateOrganizationSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateOrganizationSessionSettingsMethod(), responseObserver); - } - - /** - */ - default void deleteOrganizationSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteOrganizationSessionSettingsMethod(), responseObserver); + default void getOrganizationSessionPolicy(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationSessionPolicyMethod(), responseObserver); } /** @@ -720,6 +713,13 @@ default void getOrganizationUserManagementSetting(com.scalekit.grpc.scalekit.v1. io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOrganizationUserManagementSettingMethod(), responseObserver); } + + /** + */ + default void getApplicationSessionPolicy(com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetApplicationSessionPolicyMethod(), responseObserver); + } } /** @@ -776,6 +776,14 @@ public void getOrganization(com.scalekit.grpc.scalekit.v1.organizations.GetOrgan getChannel().newCall(getGetOrganizationMethod(), getCallOptions()), request, responseObserver); } + /** + */ + public void getOrganizationByExternalId(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOrganizationByExternalIdMethod(), getCallOptions()), request, responseObserver); + } + /** */ public void listOrganization(com.scalekit.grpc.scalekit.v1.organizations.ListOrganizationsRequest request, @@ -848,34 +856,18 @@ public void updateOrganizationSettings(com.scalekit.grpc.scalekit.v1.organizatio /** */ - public void createOrganizationSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateOrganizationSessionPolicy(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateOrganizationSessionSettingsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getUpdateOrganizationSessionPolicyMethod(), getCallOptions()), request, responseObserver); } /** */ - public void getOrganizationSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getOrganizationSessionPolicy(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetOrganizationSessionSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void updateOrganizationSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateOrganizationSessionSettingsMethod(), getCallOptions()), request, responseObserver); - } - - /** - */ - public void deleteOrganizationSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteOrganizationSessionSettingsMethod(), getCallOptions()), request, responseObserver); + getChannel().newCall(getGetOrganizationSessionPolicyMethod(), getCallOptions()), request, responseObserver); } /** @@ -896,6 +888,14 @@ public void getOrganizationUserManagementSetting(com.scalekit.grpc.scalekit.v1.o io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetOrganizationUserManagementSettingMethod(), getCallOptions()), request, responseObserver); } + + /** + */ + public void getApplicationSessionPolicy(com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetApplicationSessionPolicyMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -938,6 +938,13 @@ public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationResponse getOr getChannel(), getGetOrganizationMethod(), getCallOptions(), request); } + /** + */ + public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationResponse getOrganizationByExternalId(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOrganizationByExternalIdMethod(), getCallOptions(), request); + } + /** */ public com.scalekit.grpc.scalekit.v1.organizations.ListOrganizationsResponse listOrganization(com.scalekit.grpc.scalekit.v1.organizations.ListOrganizationsRequest request) { @@ -1002,30 +1009,16 @@ public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationResponse updat /** */ - public com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse createOrganizationSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest request) { + public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse updateOrganizationSessionPolicy(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateOrganizationSessionSettingsMethod(), getCallOptions(), request); + getChannel(), getUpdateOrganizationSessionPolicyMethod(), getCallOptions(), request); } /** */ - public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse getOrganizationSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest request) { + public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse getOrganizationSessionPolicy(com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetOrganizationSessionSettingsMethod(), getCallOptions(), request); - } - - /** - */ - public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse updateOrganizationSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateOrganizationSessionSettingsMethod(), getCallOptions(), request); - } - - /** - */ - public com.google.protobuf.Empty deleteOrganizationSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteOrganizationSessionSettingsMethod(), getCallOptions(), request); + getChannel(), getGetOrganizationSessionPolicyMethod(), getCallOptions(), request); } /** @@ -1044,6 +1037,13 @@ public com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationUserManagement return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetOrganizationUserManagementSettingMethod(), getCallOptions(), request); } + + /** + */ + public com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse getApplicationSessionPolicy(com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetApplicationSessionPolicyMethod(), getCallOptions(), request); + } } /** @@ -1089,6 +1089,14 @@ public com.google.common.util.concurrent.ListenableFuture getOrganizationByExternalId( + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOrganizationByExternalIdMethod(), getCallOptions()), request); + } + /** */ public com.google.common.util.concurrent.ListenableFuture listOrganization( @@ -1161,34 +1169,18 @@ public com.google.common.util.concurrent.ListenableFuture createOrganizationSessionSettings( - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest request) { + public com.google.common.util.concurrent.ListenableFuture updateOrganizationSessionPolicy( + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateOrganizationSessionSettingsMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateOrganizationSessionPolicyMethod(), getCallOptions()), request); } /** */ - public com.google.common.util.concurrent.ListenableFuture getOrganizationSessionSettings( - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest request) { + public com.google.common.util.concurrent.ListenableFuture getOrganizationSessionPolicy( + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetOrganizationSessionSettingsMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture updateOrganizationSessionSettings( - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateOrganizationSessionSettingsMethod(), getCallOptions()), request); - } - - /** - */ - public com.google.common.util.concurrent.ListenableFuture deleteOrganizationSessionSettings( - com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteOrganizationSessionSettingsMethod(), getCallOptions()), request); + getChannel().newCall(getGetOrganizationSessionPolicyMethod(), getCallOptions()), request); } /** @@ -1209,25 +1201,33 @@ public com.google.common.util.concurrent.ListenableFuture getApplicationSessionPolicy( + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetApplicationSessionPolicyMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_ORGANIZATION = 0; private static final int METHODID_UPDATE_ORGANIZATION = 1; private static final int METHODID_GET_ORGANIZATION = 2; - private static final int METHODID_LIST_ORGANIZATION = 3; - private static final int METHODID_SEARCH_ORGANIZATION = 4; - private static final int METHODID_DELETE_ORGANIZATION = 5; - private static final int METHODID_GENERATE_PORTAL_LINK = 6; - private static final int METHODID_DELETE_PORTAL_LINK = 7; - private static final int METHODID_DELETE_PORTAL_LINK_BY_ID = 8; - private static final int METHODID_GET_PORTAL_LINKS = 9; - private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 10; - private static final int METHODID_CREATE_ORGANIZATION_SESSION_SETTINGS = 11; - private static final int METHODID_GET_ORGANIZATION_SESSION_SETTINGS = 12; - private static final int METHODID_UPDATE_ORGANIZATION_SESSION_SETTINGS = 13; - private static final int METHODID_DELETE_ORGANIZATION_SESSION_SETTINGS = 14; - private static final int METHODID_UPSERT_USER_MANAGEMENT_SETTINGS = 15; - private static final int METHODID_GET_ORGANIZATION_USER_MANAGEMENT_SETTING = 16; + private static final int METHODID_GET_ORGANIZATION_BY_EXTERNAL_ID = 3; + private static final int METHODID_LIST_ORGANIZATION = 4; + private static final int METHODID_SEARCH_ORGANIZATION = 5; + private static final int METHODID_DELETE_ORGANIZATION = 6; + private static final int METHODID_GENERATE_PORTAL_LINK = 7; + private static final int METHODID_DELETE_PORTAL_LINK = 8; + private static final int METHODID_DELETE_PORTAL_LINK_BY_ID = 9; + private static final int METHODID_GET_PORTAL_LINKS = 10; + private static final int METHODID_UPDATE_ORGANIZATION_SETTINGS = 11; + private static final int METHODID_UPDATE_ORGANIZATION_SESSION_POLICY = 12; + private static final int METHODID_GET_ORGANIZATION_SESSION_POLICY = 13; + private static final int METHODID_UPSERT_USER_MANAGEMENT_SETTINGS = 14; + private static final int METHODID_GET_ORGANIZATION_USER_MANAGEMENT_SETTING = 15; + private static final int METHODID_GET_APPLICATION_SESSION_POLICY = 16; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1258,6 +1258,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.getOrganization((com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_ORGANIZATION_BY_EXTERNAL_ID: + serviceImpl.getOrganizationByExternalId((com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_ORGANIZATION: serviceImpl.listOrganization((com.scalekit.grpc.scalekit.v1.organizations.ListOrganizationsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -1290,21 +1294,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.updateOrganizationSettings((com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_CREATE_ORGANIZATION_SESSION_SETTINGS: - serviceImpl.createOrganizationSessionSettings((com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ORGANIZATION_SESSION_SETTINGS: - serviceImpl.getOrganizationSessionSettings((com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + case METHODID_UPDATE_ORGANIZATION_SESSION_POLICY: + serviceImpl.updateOrganizationSessionPolicy((com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_UPDATE_ORGANIZATION_SESSION_SETTINGS: - serviceImpl.updateOrganizationSessionSettings((com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ORGANIZATION_SESSION_SETTINGS: - serviceImpl.deleteOrganizationSessionSettings((com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + case METHODID_GET_ORGANIZATION_SESSION_POLICY: + serviceImpl.getOrganizationSessionPolicy((com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPSERT_USER_MANAGEMENT_SETTINGS: serviceImpl.upsertUserManagementSettings((com.scalekit.grpc.scalekit.v1.organizations.UpsertUserManagementSettingsRequest) request, @@ -1314,6 +1310,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.getOrganizationUserManagementSetting((com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationUserManagementSettingsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_APPLICATION_SESSION_POLICY: + serviceImpl.getApplicationSessionPolicy((com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1353,6 +1353,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationRequest, com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationResponse>( service, METHODID_GET_ORGANIZATION))) + .addMethod( + getGetOrganizationByExternalIdMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationRequest, + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationResponse>( + service, METHODID_GET_ORGANIZATION_BY_EXTERNAL_ID))) .addMethod( getListOrganizationMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1410,33 +1417,19 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationResponse>( service, METHODID_UPDATE_ORGANIZATION_SETTINGS))) .addMethod( - getCreateOrganizationSessionSettingsMethod(), + getUpdateOrganizationSessionPolicyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsRequest, - com.scalekit.grpc.scalekit.v1.organizations.CreateOrganizationSessionSettingsResponse>( - service, METHODID_CREATE_ORGANIZATION_SESSION_SETTINGS))) + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest, + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse>( + service, METHODID_UPDATE_ORGANIZATION_SESSION_POLICY))) .addMethod( - getGetOrganizationSessionSettingsMethod(), + getGetOrganizationSessionPolicyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsRequest, - com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionSettingsResponse>( - service, METHODID_GET_ORGANIZATION_SESSION_SETTINGS))) - .addMethod( - getUpdateOrganizationSessionSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest, - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse>( - service, METHODID_UPDATE_ORGANIZATION_SESSION_SETTINGS))) - .addMethod( - getDeleteOrganizationSessionSettingsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.scalekit.grpc.scalekit.v1.organizations.DeleteOrganizationSessionSettingsRequest, - com.google.protobuf.Empty>( - service, METHODID_DELETE_ORGANIZATION_SESSION_SETTINGS))) + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyRequest, + com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationSessionPolicyResponse>( + service, METHODID_GET_ORGANIZATION_SESSION_POLICY))) .addMethod( getUpsertUserManagementSettingsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1451,6 +1444,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationUserManagementSettingsRequest, com.scalekit.grpc.scalekit.v1.organizations.GetOrganizationUserManagementSettingsResponse>( service, METHODID_GET_ORGANIZATION_USER_MANAGEMENT_SETTING))) + .addMethod( + getGetApplicationSessionPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyRequest, + com.scalekit.grpc.scalekit.v1.organizations.GetApplicationSessionPolicyResponse>( + service, METHODID_GET_APPLICATION_SESSION_POLICY))) .build(); } @@ -1502,6 +1502,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateOrganizationMethod()) .addMethod(getUpdateOrganizationMethod()) .addMethod(getGetOrganizationMethod()) + .addMethod(getGetOrganizationByExternalIdMethod()) .addMethod(getListOrganizationMethod()) .addMethod(getSearchOrganizationMethod()) .addMethod(getDeleteOrganizationMethod()) @@ -1510,12 +1511,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeletePortalLinkByIDMethod()) .addMethod(getGetPortalLinksMethod()) .addMethod(getUpdateOrganizationSettingsMethod()) - .addMethod(getCreateOrganizationSessionSettingsMethod()) - .addMethod(getGetOrganizationSessionSettingsMethod()) - .addMethod(getUpdateOrganizationSessionSettingsMethod()) - .addMethod(getDeleteOrganizationSessionSettingsMethod()) + .addMethod(getUpdateOrganizationSessionPolicyMethod()) + .addMethod(getGetOrganizationSessionPolicyMethod()) .addMethod(getUpsertUserManagementSettingsMethod()) .addMethod(getGetOrganizationUserManagementSettingMethod()) + .addMethod(getGetApplicationSessionPolicyMethod()) .build(); } } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionPolicySettings.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionPolicySettings.java new file mode 100644 index 00000000..90c1ec45 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionPolicySettings.java @@ -0,0 +1,1459 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +/** + * Protobuf type {@code scalekit.v1.organizations.OrganizationSessionPolicySettings} + */ +public final class OrganizationSessionPolicySettings extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.OrganizationSessionPolicySettings) + OrganizationSessionPolicySettingsOrBuilder { +private static final long serialVersionUID = 0L; + // Use OrganizationSessionPolicySettings.newBuilder() to construct. + private OrganizationSessionPolicySettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private OrganizationSessionPolicySettings() { + policySource_ = 0; + absoluteSessionTimeoutUnit_ = 0; + idleSessionTimeoutUnit_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new OrganizationSessionPolicySettings(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_OrganizationSessionPolicySettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_OrganizationSessionPolicySettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.class, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.Builder.class); + } + + private int bitField0_; + public static final int POLICY_SOURCE_FIELD_NUMBER = 1; + private int policySource_ = 0; + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 1 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for policySource. + */ + @java.lang.Override public int getPolicySourceValue() { + return policySource_; + } + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 1 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policySource. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType getPolicySource() { + com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType result = com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType.forNumber(policySource_); + return result == null ? com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType.UNRECOGNIZED : result; + } + + public static final int ABSOLUTE_SESSION_TIMEOUT_FIELD_NUMBER = 2; + private com.google.protobuf.Int32Value absoluteSessionTimeout_; + /** + *
+   * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+   * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeout field is set. + */ + @java.lang.Override + public boolean hasAbsoluteSessionTimeout() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + *
+   * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+   * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeout. + */ + @java.lang.Override + public com.google.protobuf.Int32Value getAbsoluteSessionTimeout() { + return absoluteSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : absoluteSessionTimeout_; + } + /** + *
+   * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+   * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.Int32ValueOrBuilder getAbsoluteSessionTimeoutOrBuilder() { + return absoluteSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : absoluteSessionTimeout_; + } + + public static final int ABSOLUTE_SESSION_TIMEOUT_UNIT_FIELD_NUMBER = 3; + private int absoluteSessionTimeoutUnit_ = 0; + /** + *
+   * Unit for absolute_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+   * 
+ * + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 3 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeoutUnit field is set. + */ + @java.lang.Override public boolean hasAbsoluteSessionTimeoutUnit() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+   * Unit for absolute_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+   * 
+ * + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 3 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for absoluteSessionTimeoutUnit. + */ + @java.lang.Override public int getAbsoluteSessionTimeoutUnitValue() { + return absoluteSessionTimeoutUnit_; + } + /** + *
+   * Unit for absolute_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+   * 
+ * + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 3 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeoutUnit. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.commons.TimeUnit getAbsoluteSessionTimeoutUnit() { + com.scalekit.grpc.scalekit.v1.commons.TimeUnit result = com.scalekit.grpc.scalekit.v1.commons.TimeUnit.forNumber(absoluteSessionTimeoutUnit_); + return result == null ? com.scalekit.grpc.scalekit.v1.commons.TimeUnit.UNRECOGNIZED : result; + } + + public static final int IDLE_SESSION_TIMEOUT_ENABLED_FIELD_NUMBER = 4; + private com.google.protobuf.BoolValue idleSessionTimeoutEnabled_; + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutEnabled field is set. + */ + @java.lang.Override + public boolean hasIdleSessionTimeoutEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getIdleSessionTimeoutEnabled() { + return idleSessionTimeoutEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionTimeoutEnabled_; + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getIdleSessionTimeoutEnabledOrBuilder() { + return idleSessionTimeoutEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionTimeoutEnabled_; + } + + public static final int IDLE_SESSION_TIMEOUT_FIELD_NUMBER = 5; + private com.google.protobuf.Int32Value idleSessionTimeout_; + /** + *
+   * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+   * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeout field is set. + */ + @java.lang.Override + public boolean hasIdleSessionTimeout() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + *
+   * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+   * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeout. + */ + @java.lang.Override + public com.google.protobuf.Int32Value getIdleSessionTimeout() { + return idleSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : idleSessionTimeout_; + } + /** + *
+   * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+   * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.Int32ValueOrBuilder getIdleSessionTimeoutOrBuilder() { + return idleSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : idleSessionTimeout_; + } + + public static final int IDLE_SESSION_TIMEOUT_UNIT_FIELD_NUMBER = 6; + private int idleSessionTimeoutUnit_ = 0; + /** + *
+   * Unit for idle_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+   * 
+ * + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutUnit field is set. + */ + @java.lang.Override public boolean hasIdleSessionTimeoutUnit() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+   * Unit for idle_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+   * 
+ * + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for idleSessionTimeoutUnit. + */ + @java.lang.Override public int getIdleSessionTimeoutUnitValue() { + return idleSessionTimeoutUnit_; + } + /** + *
+   * Unit for idle_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+   * 
+ * + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutUnit. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.commons.TimeUnit getIdleSessionTimeoutUnit() { + com.scalekit.grpc.scalekit.v1.commons.TimeUnit result = com.scalekit.grpc.scalekit.v1.commons.TimeUnit.forNumber(idleSessionTimeoutUnit_); + return result == null ? com.scalekit.grpc.scalekit.v1.commons.TimeUnit.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 (policySource_ != com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType.SESSION_POLICY_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, policySource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getAbsoluteSessionTimeout()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(3, absoluteSessionTimeoutUnit_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getIdleSessionTimeoutEnabled()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getIdleSessionTimeout()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(6, idleSessionTimeoutUnit_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (policySource_ != com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType.SESSION_POLICY_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, policySource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getAbsoluteSessionTimeout()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, absoluteSessionTimeoutUnit_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getIdleSessionTimeoutEnabled()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getIdleSessionTimeout()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(6, idleSessionTimeoutUnit_); + } + 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.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings other = (com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings) obj; + + if (policySource_ != other.policySource_) return false; + if (hasAbsoluteSessionTimeout() != other.hasAbsoluteSessionTimeout()) return false; + if (hasAbsoluteSessionTimeout()) { + if (!getAbsoluteSessionTimeout() + .equals(other.getAbsoluteSessionTimeout())) return false; + } + if (hasAbsoluteSessionTimeoutUnit() != other.hasAbsoluteSessionTimeoutUnit()) return false; + if (hasAbsoluteSessionTimeoutUnit()) { + if (absoluteSessionTimeoutUnit_ != other.absoluteSessionTimeoutUnit_) return false; + } + if (hasIdleSessionTimeoutEnabled() != other.hasIdleSessionTimeoutEnabled()) return false; + if (hasIdleSessionTimeoutEnabled()) { + if (!getIdleSessionTimeoutEnabled() + .equals(other.getIdleSessionTimeoutEnabled())) return false; + } + if (hasIdleSessionTimeout() != other.hasIdleSessionTimeout()) return false; + if (hasIdleSessionTimeout()) { + if (!getIdleSessionTimeout() + .equals(other.getIdleSessionTimeout())) return false; + } + if (hasIdleSessionTimeoutUnit() != other.hasIdleSessionTimeoutUnit()) return false; + if (hasIdleSessionTimeoutUnit()) { + if (idleSessionTimeoutUnit_ != other.idleSessionTimeoutUnit_) 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) + POLICY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + policySource_; + if (hasAbsoluteSessionTimeout()) { + hash = (37 * hash) + ABSOLUTE_SESSION_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getAbsoluteSessionTimeout().hashCode(); + } + if (hasAbsoluteSessionTimeoutUnit()) { + hash = (37 * hash) + ABSOLUTE_SESSION_TIMEOUT_UNIT_FIELD_NUMBER; + hash = (53 * hash) + absoluteSessionTimeoutUnit_; + } + if (hasIdleSessionTimeoutEnabled()) { + hash = (37 * hash) + IDLE_SESSION_TIMEOUT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getIdleSessionTimeoutEnabled().hashCode(); + } + if (hasIdleSessionTimeout()) { + hash = (37 * hash) + IDLE_SESSION_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getIdleSessionTimeout().hashCode(); + } + if (hasIdleSessionTimeoutUnit()) { + hash = (37 * hash) + IDLE_SESSION_TIMEOUT_UNIT_FIELD_NUMBER; + hash = (53 * hash) + idleSessionTimeoutUnit_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.organizations.OrganizationSessionPolicySettings} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.OrganizationSessionPolicySettings) + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_OrganizationSessionPolicySettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_OrganizationSessionPolicySettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.class, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAbsoluteSessionTimeoutFieldBuilder(); + getIdleSessionTimeoutEnabledFieldBuilder(); + getIdleSessionTimeoutFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + policySource_ = 0; + absoluteSessionTimeout_ = null; + if (absoluteSessionTimeoutBuilder_ != null) { + absoluteSessionTimeoutBuilder_.dispose(); + absoluteSessionTimeoutBuilder_ = null; + } + absoluteSessionTimeoutUnit_ = 0; + idleSessionTimeoutEnabled_ = null; + if (idleSessionTimeoutEnabledBuilder_ != null) { + idleSessionTimeoutEnabledBuilder_.dispose(); + idleSessionTimeoutEnabledBuilder_ = null; + } + idleSessionTimeout_ = null; + if (idleSessionTimeoutBuilder_ != null) { + idleSessionTimeoutBuilder_.dispose(); + idleSessionTimeoutBuilder_ = null; + } + idleSessionTimeoutUnit_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_OrganizationSessionPolicySettings_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings build() { + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings buildPartial() { + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings result = new com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policySource_ = policySource_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.absoluteSessionTimeout_ = absoluteSessionTimeoutBuilder_ == null + ? absoluteSessionTimeout_ + : absoluteSessionTimeoutBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.absoluteSessionTimeoutUnit_ = absoluteSessionTimeoutUnit_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.idleSessionTimeoutEnabled_ = idleSessionTimeoutEnabledBuilder_ == null + ? idleSessionTimeoutEnabled_ + : idleSessionTimeoutEnabledBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.idleSessionTimeout_ = idleSessionTimeoutBuilder_ == null + ? idleSessionTimeout_ + : idleSessionTimeoutBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.idleSessionTimeoutUnit_ = idleSessionTimeoutUnit_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings other) { + if (other == com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.getDefaultInstance()) return this; + if (other.policySource_ != 0) { + setPolicySourceValue(other.getPolicySourceValue()); + } + if (other.hasAbsoluteSessionTimeout()) { + mergeAbsoluteSessionTimeout(other.getAbsoluteSessionTimeout()); + } + if (other.hasAbsoluteSessionTimeoutUnit()) { + setAbsoluteSessionTimeoutUnit(other.getAbsoluteSessionTimeoutUnit()); + } + if (other.hasIdleSessionTimeoutEnabled()) { + mergeIdleSessionTimeoutEnabled(other.getIdleSessionTimeoutEnabled()); + } + if (other.hasIdleSessionTimeout()) { + mergeIdleSessionTimeout(other.getIdleSessionTimeout()); + } + if (other.hasIdleSessionTimeoutUnit()) { + setIdleSessionTimeoutUnit(other.getIdleSessionTimeoutUnit()); + } + 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 8: { + policySource_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: { + input.readMessage( + getAbsoluteSessionTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + absoluteSessionTimeoutUnit_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: { + input.readMessage( + getIdleSessionTimeoutEnabledFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: { + input.readMessage( + getIdleSessionTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: { + idleSessionTimeoutUnit_ = input.readEnum(); + 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 int policySource_ = 0; + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 1 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for policySource. + */ + @java.lang.Override public int getPolicySourceValue() { + return policySource_; + } + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 1 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The enum numeric value on the wire for policySource to set. + * @return This builder for chaining. + */ + public Builder setPolicySourceValue(int value) { + policySource_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 1 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policySource. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType getPolicySource() { + com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType result = com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType.forNumber(policySource_); + return result == null ? com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType.UNRECOGNIZED : result; + } + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 1 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The policySource to set. + * @return This builder for chaining. + */ + public Builder setPolicySource(com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + policySource_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 1 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearPolicySource() { + bitField0_ = (bitField0_ & ~0x00000001); + policySource_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Int32Value absoluteSessionTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> absoluteSessionTimeoutBuilder_; + /** + *
+     * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeout field is set. + */ + public boolean hasAbsoluteSessionTimeout() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + *
+     * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeout. + */ + public com.google.protobuf.Int32Value getAbsoluteSessionTimeout() { + if (absoluteSessionTimeoutBuilder_ == null) { + return absoluteSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : absoluteSessionTimeout_; + } else { + return absoluteSessionTimeoutBuilder_.getMessage(); + } + } + /** + *
+     * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setAbsoluteSessionTimeout(com.google.protobuf.Int32Value value) { + if (absoluteSessionTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + absoluteSessionTimeout_ = value; + } else { + absoluteSessionTimeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setAbsoluteSessionTimeout( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (absoluteSessionTimeoutBuilder_ == null) { + absoluteSessionTimeout_ = builderForValue.build(); + } else { + absoluteSessionTimeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + *
+     * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeAbsoluteSessionTimeout(com.google.protobuf.Int32Value value) { + if (absoluteSessionTimeoutBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + absoluteSessionTimeout_ != null && + absoluteSessionTimeout_ != com.google.protobuf.Int32Value.getDefaultInstance()) { + getAbsoluteSessionTimeoutBuilder().mergeFrom(value); + } else { + absoluteSessionTimeout_ = value; + } + } else { + absoluteSessionTimeoutBuilder_.mergeFrom(value); + } + if (absoluteSessionTimeout_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + *
+     * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearAbsoluteSessionTimeout() { + bitField0_ = (bitField0_ & ~0x00000002); + absoluteSessionTimeout_ = null; + if (absoluteSessionTimeoutBuilder_ != null) { + absoluteSessionTimeoutBuilder_.dispose(); + absoluteSessionTimeoutBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.Int32Value.Builder getAbsoluteSessionTimeoutBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getAbsoluteSessionTimeoutFieldBuilder().getBuilder(); + } + /** + *
+     * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.Int32ValueOrBuilder getAbsoluteSessionTimeoutOrBuilder() { + if (absoluteSessionTimeoutBuilder_ != null) { + return absoluteSessionTimeoutBuilder_.getMessageOrBuilder(); + } else { + return absoluteSessionTimeout_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : absoluteSessionTimeout_; + } + } + /** + *
+     * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getAbsoluteSessionTimeoutFieldBuilder() { + if (absoluteSessionTimeoutBuilder_ == null) { + absoluteSessionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getAbsoluteSessionTimeout(), + getParentForChildren(), + isClean()); + absoluteSessionTimeout_ = null; + } + return absoluteSessionTimeoutBuilder_; + } + + private int absoluteSessionTimeoutUnit_ = 0; + /** + *
+     * Unit for absolute_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+     * 
+ * + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 3 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeoutUnit field is set. + */ + @java.lang.Override public boolean hasAbsoluteSessionTimeoutUnit() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+     * Unit for absolute_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+     * 
+ * + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 3 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for absoluteSessionTimeoutUnit. + */ + @java.lang.Override public int getAbsoluteSessionTimeoutUnitValue() { + return absoluteSessionTimeoutUnit_; + } + /** + *
+     * Unit for absolute_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+     * 
+ * + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 3 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The enum numeric value on the wire for absoluteSessionTimeoutUnit to set. + * @return This builder for chaining. + */ + public Builder setAbsoluteSessionTimeoutUnitValue(int value) { + absoluteSessionTimeoutUnit_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + *
+     * Unit for absolute_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+     * 
+ * + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 3 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeoutUnit. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.commons.TimeUnit getAbsoluteSessionTimeoutUnit() { + com.scalekit.grpc.scalekit.v1.commons.TimeUnit result = com.scalekit.grpc.scalekit.v1.commons.TimeUnit.forNumber(absoluteSessionTimeoutUnit_); + return result == null ? com.scalekit.grpc.scalekit.v1.commons.TimeUnit.UNRECOGNIZED : result; + } + /** + *
+     * Unit for absolute_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+     * 
+ * + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 3 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The absoluteSessionTimeoutUnit to set. + * @return This builder for chaining. + */ + public Builder setAbsoluteSessionTimeoutUnit(com.scalekit.grpc.scalekit.v1.commons.TimeUnit value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + absoluteSessionTimeoutUnit_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Unit for absolute_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+     * 
+ * + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 3 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearAbsoluteSessionTimeoutUnit() { + bitField0_ = (bitField0_ & ~0x00000004); + absoluteSessionTimeoutUnit_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue idleSessionTimeoutEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> idleSessionTimeoutEnabledBuilder_; + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutEnabled field is set. + */ + public boolean hasIdleSessionTimeoutEnabled() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutEnabled. + */ + public com.google.protobuf.BoolValue getIdleSessionTimeoutEnabled() { + if (idleSessionTimeoutEnabledBuilder_ == null) { + return idleSessionTimeoutEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionTimeoutEnabled_; + } else { + return idleSessionTimeoutEnabledBuilder_.getMessage(); + } + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setIdleSessionTimeoutEnabled(com.google.protobuf.BoolValue value) { + if (idleSessionTimeoutEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idleSessionTimeoutEnabled_ = value; + } else { + idleSessionTimeoutEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setIdleSessionTimeoutEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (idleSessionTimeoutEnabledBuilder_ == null) { + idleSessionTimeoutEnabled_ = builderForValue.build(); + } else { + idleSessionTimeoutEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeIdleSessionTimeoutEnabled(com.google.protobuf.BoolValue value) { + if (idleSessionTimeoutEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + idleSessionTimeoutEnabled_ != null && + idleSessionTimeoutEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getIdleSessionTimeoutEnabledBuilder().mergeFrom(value); + } else { + idleSessionTimeoutEnabled_ = value; + } + } else { + idleSessionTimeoutEnabledBuilder_.mergeFrom(value); + } + if (idleSessionTimeoutEnabled_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearIdleSessionTimeoutEnabled() { + bitField0_ = (bitField0_ & ~0x00000008); + idleSessionTimeoutEnabled_ = null; + if (idleSessionTimeoutEnabledBuilder_ != null) { + idleSessionTimeoutEnabledBuilder_.dispose(); + idleSessionTimeoutEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.BoolValue.Builder getIdleSessionTimeoutEnabledBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getIdleSessionTimeoutEnabledFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.BoolValueOrBuilder getIdleSessionTimeoutEnabledOrBuilder() { + if (idleSessionTimeoutEnabledBuilder_ != null) { + return idleSessionTimeoutEnabledBuilder_.getMessageOrBuilder(); + } else { + return idleSessionTimeoutEnabled_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionTimeoutEnabled_; + } + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getIdleSessionTimeoutEnabledFieldBuilder() { + if (idleSessionTimeoutEnabledBuilder_ == null) { + idleSessionTimeoutEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getIdleSessionTimeoutEnabled(), + getParentForChildren(), + isClean()); + idleSessionTimeoutEnabled_ = null; + } + return idleSessionTimeoutEnabledBuilder_; + } + + private com.google.protobuf.Int32Value idleSessionTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> idleSessionTimeoutBuilder_; + /** + *
+     * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeout field is set. + */ + public boolean hasIdleSessionTimeout() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + *
+     * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeout. + */ + public com.google.protobuf.Int32Value getIdleSessionTimeout() { + if (idleSessionTimeoutBuilder_ == null) { + return idleSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : idleSessionTimeout_; + } else { + return idleSessionTimeoutBuilder_.getMessage(); + } + } + /** + *
+     * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setIdleSessionTimeout(com.google.protobuf.Int32Value value) { + if (idleSessionTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idleSessionTimeout_ = value; + } else { + idleSessionTimeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setIdleSessionTimeout( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (idleSessionTimeoutBuilder_ == null) { + idleSessionTimeout_ = builderForValue.build(); + } else { + idleSessionTimeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + *
+     * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeIdleSessionTimeout(com.google.protobuf.Int32Value value) { + if (idleSessionTimeoutBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + idleSessionTimeout_ != null && + idleSessionTimeout_ != com.google.protobuf.Int32Value.getDefaultInstance()) { + getIdleSessionTimeoutBuilder().mergeFrom(value); + } else { + idleSessionTimeout_ = value; + } + } else { + idleSessionTimeoutBuilder_.mergeFrom(value); + } + if (idleSessionTimeout_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + *
+     * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearIdleSessionTimeout() { + bitField0_ = (bitField0_ & ~0x00000010); + idleSessionTimeout_ = null; + if (idleSessionTimeoutBuilder_ != null) { + idleSessionTimeoutBuilder_.dispose(); + idleSessionTimeoutBuilder_ = null; + } + onChanged(); + return this; + } + /** + *
+     * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.Int32Value.Builder getIdleSessionTimeoutBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getIdleSessionTimeoutFieldBuilder().getBuilder(); + } + /** + *
+     * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.Int32ValueOrBuilder getIdleSessionTimeoutOrBuilder() { + if (idleSessionTimeoutBuilder_ != null) { + return idleSessionTimeoutBuilder_.getMessageOrBuilder(); + } else { + return idleSessionTimeout_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : idleSessionTimeout_; + } + } + /** + *
+     * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+     * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getIdleSessionTimeoutFieldBuilder() { + if (idleSessionTimeoutBuilder_ == null) { + idleSessionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getIdleSessionTimeout(), + getParentForChildren(), + isClean()); + idleSessionTimeout_ = null; + } + return idleSessionTimeoutBuilder_; + } + + private int idleSessionTimeoutUnit_ = 0; + /** + *
+     * Unit for idle_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+     * 
+ * + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutUnit field is set. + */ + @java.lang.Override public boolean hasIdleSessionTimeoutUnit() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * Unit for idle_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+     * 
+ * + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for idleSessionTimeoutUnit. + */ + @java.lang.Override public int getIdleSessionTimeoutUnitValue() { + return idleSessionTimeoutUnit_; + } + /** + *
+     * Unit for idle_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+     * 
+ * + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The enum numeric value on the wire for idleSessionTimeoutUnit to set. + * @return This builder for chaining. + */ + public Builder setIdleSessionTimeoutUnitValue(int value) { + idleSessionTimeoutUnit_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Unit for idle_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+     * 
+ * + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutUnit. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.commons.TimeUnit getIdleSessionTimeoutUnit() { + com.scalekit.grpc.scalekit.v1.commons.TimeUnit result = com.scalekit.grpc.scalekit.v1.commons.TimeUnit.forNumber(idleSessionTimeoutUnit_); + return result == null ? com.scalekit.grpc.scalekit.v1.commons.TimeUnit.UNRECOGNIZED : result; + } + /** + *
+     * Unit for idle_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+     * 
+ * + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The idleSessionTimeoutUnit to set. + * @return This builder for chaining. + */ + public Builder setIdleSessionTimeoutUnit(com.scalekit.grpc.scalekit.v1.commons.TimeUnit value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + idleSessionTimeoutUnit_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+     * Unit for idle_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+     * 
+ * + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIdleSessionTimeoutUnit() { + bitField0_ = (bitField0_ & ~0x00000020); + idleSessionTimeoutUnit_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.OrganizationSessionPolicySettings) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.OrganizationSessionPolicySettings) + private static final com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings(); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OrganizationSessionPolicySettings 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.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionPolicySettingsOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionPolicySettingsOrBuilder.java new file mode 100644 index 00000000..7ceadc2e --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionPolicySettingsOrBuilder.java @@ -0,0 +1,146 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +public interface OrganizationSessionPolicySettingsOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.OrganizationSessionPolicySettings) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 1 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for policySource. + */ + int getPolicySourceValue(); + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 1 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policySource. + */ + com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType getPolicySource(); + + /** + *
+   * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+   * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeout field is set. + */ + boolean hasAbsoluteSessionTimeout(); + /** + *
+   * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+   * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeout. + */ + com.google.protobuf.Int32Value getAbsoluteSessionTimeout(); + /** + *
+   * Timeout value interpreted with absolute_session_timeout_unit on write; always returned in minutes on read.
+   * 
+ * + * .google.protobuf.Int32Value absolute_session_timeout = 2 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.Int32ValueOrBuilder getAbsoluteSessionTimeoutOrBuilder(); + + /** + *
+   * Unit for absolute_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+   * 
+ * + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 3 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeoutUnit field is set. + */ + boolean hasAbsoluteSessionTimeoutUnit(); + /** + *
+   * Unit for absolute_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+   * 
+ * + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 3 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for absoluteSessionTimeoutUnit. + */ + int getAbsoluteSessionTimeoutUnitValue(); + /** + *
+   * Unit for absolute_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+   * 
+ * + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 3 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeoutUnit. + */ + com.scalekit.grpc.scalekit.v1.commons.TimeUnit getAbsoluteSessionTimeoutUnit(); + + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutEnabled field is set. + */ + boolean hasIdleSessionTimeoutEnabled(); + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutEnabled. + */ + com.google.protobuf.BoolValue getIdleSessionTimeoutEnabled(); + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 4 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.BoolValueOrBuilder getIdleSessionTimeoutEnabledOrBuilder(); + + /** + *
+   * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+   * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeout field is set. + */ + boolean hasIdleSessionTimeout(); + /** + *
+   * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+   * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeout. + */ + com.google.protobuf.Int32Value getIdleSessionTimeout(); + /** + *
+   * Timeout value interpreted with idle_session_timeout_unit on write; always returned in minutes on read.
+   * 
+ * + * .google.protobuf.Int32Value idle_session_timeout = 5 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.Int32ValueOrBuilder getIdleSessionTimeoutOrBuilder(); + + /** + *
+   * Unit for idle_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+   * 
+ * + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutUnit field is set. + */ + boolean hasIdleSessionTimeoutUnit(); + /** + *
+   * Unit for idle_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+   * 
+ * + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for idleSessionTimeoutUnit. + */ + int getIdleSessionTimeoutUnitValue(); + /** + *
+   * Unit for idle_session_timeout: "minutes", "hours", or "days". Responses always use "minutes".
+   * 
+ * + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 6 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutUnit. + */ + com.scalekit.grpc.scalekit.v1.commons.TimeUnit getIdleSessionTimeoutUnit(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionSettings.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionSettings.java index 4b800d3d..fc3f51b1 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionSettings.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionSettings.java @@ -17,6 +17,7 @@ private OrganizationSessionSettings(com.google.protobuf.GeneratedMessageV3.Build super(builder); } private OrganizationSessionSettings() { + policySource_ = ""; } @java.lang.Override @@ -66,32 +67,6 @@ public com.google.protobuf.Int32ValueOrBuilder getAbsoluteSessionTimeoutOrBuilde return absoluteSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : absoluteSessionTimeout_; } - public static final int SESSION_MANAGEMENT_ENABLED_FIELD_NUMBER = 2; - private com.google.protobuf.BoolValue sessionManagementEnabled_; - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionManagementEnabled field is set. - */ - @java.lang.Override - public boolean hasSessionManagementEnabled() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionManagementEnabled. - */ - @java.lang.Override - public com.google.protobuf.BoolValue getSessionManagementEnabled() { - return sessionManagementEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : sessionManagementEnabled_; - } - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getSessionManagementEnabledOrBuilder() { - return sessionManagementEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : sessionManagementEnabled_; - } - public static final int IDLE_SESSION_TIMEOUT_FIELD_NUMBER = 3; private com.google.protobuf.Int32Value idleSessionTimeout_; /** @@ -100,7 +75,7 @@ public com.google.protobuf.BoolValueOrBuilder getSessionManagementEnabledOrBuild */ @java.lang.Override public boolean hasIdleSessionTimeout() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * .google.protobuf.Int32Value idle_session_timeout = 3 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -118,30 +93,92 @@ public com.google.protobuf.Int32ValueOrBuilder getIdleSessionTimeoutOrBuilder() return idleSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : idleSessionTimeout_; } - public static final int IDLE_SESSION_ENABLED_FIELD_NUMBER = 4; - private com.google.protobuf.BoolValue idleSessionEnabled_; + public static final int IDLE_SESSION_TIMEOUT_ENABLED_FIELD_NUMBER = 5; + private com.google.protobuf.BoolValue idleSessionTimeoutEnabled_; /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the idleSessionEnabled field is set. + *
+   * Whether idle session timeout is enabled for this organization.
+   * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+   * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutEnabled field is set. */ @java.lang.Override - public boolean hasIdleSessionEnabled() { - return ((bitField0_ & 0x00000008) != 0); + public boolean hasIdleSessionTimeoutEnabled() { + return ((bitField0_ & 0x00000004) != 0); } /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The idleSessionEnabled. + *
+   * Whether idle session timeout is enabled for this organization.
+   * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+   * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutEnabled. */ @java.lang.Override - public com.google.protobuf.BoolValue getIdleSessionEnabled() { - return idleSessionEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionEnabled_; + public com.google.protobuf.BoolValue getIdleSessionTimeoutEnabled() { + return idleSessionTimeoutEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionTimeoutEnabled_; } /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + *
+   * Whether idle session timeout is enabled for this organization.
+   * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+   * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ @java.lang.Override - public com.google.protobuf.BoolValueOrBuilder getIdleSessionEnabledOrBuilder() { - return idleSessionEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionEnabled_; + public com.google.protobuf.BoolValueOrBuilder getIdleSessionTimeoutEnabledOrBuilder() { + return idleSessionTimeoutEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionTimeoutEnabled_; + } + + public static final int POLICY_SOURCE_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object policySource_ = ""; + /** + *
+   * APPLICATION (default) = inherit application-level policy; CUSTOM = org-specific values are active.
+   * 
+ * + * string policy_source = 6 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policySource. + */ + @java.lang.Override + public java.lang.String getPolicySource() { + java.lang.Object ref = policySource_; + 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(); + policySource_ = s; + return s; + } + } + /** + *
+   * APPLICATION (default) = inherit application-level policy; CUSTOM = org-specific values are active.
+   * 
+ * + * string policy_source = 6 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for policySource. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPolicySourceBytes() { + java.lang.Object ref = policySource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policySource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } } private byte memoizedIsInitialized = -1; @@ -162,13 +199,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) output.writeMessage(1, getAbsoluteSessionTimeout()); } if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getSessionManagementEnabled()); + output.writeMessage(3, getIdleSessionTimeout()); } if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getIdleSessionTimeout()); + output.writeMessage(5, getIdleSessionTimeoutEnabled()); } - if (((bitField0_ & 0x00000008) != 0)) { - output.writeMessage(4, getIdleSessionEnabled()); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policySource_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, policySource_); } getUnknownFields().writeTo(output); } @@ -185,15 +222,14 @@ public int getSerializedSize() { } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getSessionManagementEnabled()); + .computeMessageSize(3, getIdleSessionTimeout()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getIdleSessionTimeout()); + .computeMessageSize(5, getIdleSessionTimeoutEnabled()); } - if (((bitField0_ & 0x00000008) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getIdleSessionEnabled()); + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(policySource_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, policySource_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -215,21 +251,18 @@ public boolean equals(final java.lang.Object obj) { if (!getAbsoluteSessionTimeout() .equals(other.getAbsoluteSessionTimeout())) return false; } - if (hasSessionManagementEnabled() != other.hasSessionManagementEnabled()) return false; - if (hasSessionManagementEnabled()) { - if (!getSessionManagementEnabled() - .equals(other.getSessionManagementEnabled())) return false; - } if (hasIdleSessionTimeout() != other.hasIdleSessionTimeout()) return false; if (hasIdleSessionTimeout()) { if (!getIdleSessionTimeout() .equals(other.getIdleSessionTimeout())) return false; } - if (hasIdleSessionEnabled() != other.hasIdleSessionEnabled()) return false; - if (hasIdleSessionEnabled()) { - if (!getIdleSessionEnabled() - .equals(other.getIdleSessionEnabled())) return false; + if (hasIdleSessionTimeoutEnabled() != other.hasIdleSessionTimeoutEnabled()) return false; + if (hasIdleSessionTimeoutEnabled()) { + if (!getIdleSessionTimeoutEnabled() + .equals(other.getIdleSessionTimeoutEnabled())) return false; } + if (!getPolicySource() + .equals(other.getPolicySource())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -245,18 +278,16 @@ public int hashCode() { hash = (37 * hash) + ABSOLUTE_SESSION_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getAbsoluteSessionTimeout().hashCode(); } - if (hasSessionManagementEnabled()) { - hash = (37 * hash) + SESSION_MANAGEMENT_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getSessionManagementEnabled().hashCode(); - } if (hasIdleSessionTimeout()) { hash = (37 * hash) + IDLE_SESSION_TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + getIdleSessionTimeout().hashCode(); } - if (hasIdleSessionEnabled()) { - hash = (37 * hash) + IDLE_SESSION_ENABLED_FIELD_NUMBER; - hash = (53 * hash) + getIdleSessionEnabled().hashCode(); + if (hasIdleSessionTimeoutEnabled()) { + hash = (37 * hash) + IDLE_SESSION_TIMEOUT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getIdleSessionTimeoutEnabled().hashCode(); } + hash = (37 * hash) + POLICY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + getPolicySource().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -388,9 +419,8 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getAbsoluteSessionTimeoutFieldBuilder(); - getSessionManagementEnabledFieldBuilder(); getIdleSessionTimeoutFieldBuilder(); - getIdleSessionEnabledFieldBuilder(); + getIdleSessionTimeoutEnabledFieldBuilder(); } } @java.lang.Override @@ -402,21 +432,17 @@ public Builder clear() { absoluteSessionTimeoutBuilder_.dispose(); absoluteSessionTimeoutBuilder_ = null; } - sessionManagementEnabled_ = null; - if (sessionManagementEnabledBuilder_ != null) { - sessionManagementEnabledBuilder_.dispose(); - sessionManagementEnabledBuilder_ = null; - } idleSessionTimeout_ = null; if (idleSessionTimeoutBuilder_ != null) { idleSessionTimeoutBuilder_.dispose(); idleSessionTimeoutBuilder_ = null; } - idleSessionEnabled_ = null; - if (idleSessionEnabledBuilder_ != null) { - idleSessionEnabledBuilder_.dispose(); - idleSessionEnabledBuilder_ = null; + idleSessionTimeoutEnabled_ = null; + if (idleSessionTimeoutEnabledBuilder_ != null) { + idleSessionTimeoutEnabledBuilder_.dispose(); + idleSessionTimeoutEnabledBuilder_ = null; } + policySource_ = ""; return this; } @@ -458,22 +484,19 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.Organizat to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.sessionManagementEnabled_ = sessionManagementEnabledBuilder_ == null - ? sessionManagementEnabled_ - : sessionManagementEnabledBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { result.idleSessionTimeout_ = idleSessionTimeoutBuilder_ == null ? idleSessionTimeout_ : idleSessionTimeoutBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.idleSessionTimeoutEnabled_ = idleSessionTimeoutEnabledBuilder_ == null + ? idleSessionTimeoutEnabled_ + : idleSessionTimeoutEnabledBuilder_.build(); to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.idleSessionEnabled_ = idleSessionEnabledBuilder_ == null - ? idleSessionEnabled_ - : idleSessionEnabledBuilder_.build(); - to_bitField0_ |= 0x00000008; + result.policySource_ = policySource_; } result.bitField0_ |= to_bitField0_; } @@ -525,14 +548,16 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.Organizatio if (other.hasAbsoluteSessionTimeout()) { mergeAbsoluteSessionTimeout(other.getAbsoluteSessionTimeout()); } - if (other.hasSessionManagementEnabled()) { - mergeSessionManagementEnabled(other.getSessionManagementEnabled()); - } if (other.hasIdleSessionTimeout()) { mergeIdleSessionTimeout(other.getIdleSessionTimeout()); } - if (other.hasIdleSessionEnabled()) { - mergeIdleSessionEnabled(other.getIdleSessionEnabled()); + if (other.hasIdleSessionTimeoutEnabled()) { + mergeIdleSessionTimeoutEnabled(other.getIdleSessionTimeoutEnabled()); + } + if (!other.getPolicySource().isEmpty()) { + policySource_ = other.policySource_; + bitField0_ |= 0x00000008; + onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -567,27 +592,25 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 - case 18: { - input.readMessage( - getSessionManagementEnabledFieldBuilder().getBuilder(), - extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 case 26: { input.readMessage( getIdleSessionTimeoutFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; break; } // case 26 - case 34: { + case 42: { input.readMessage( - getIdleSessionEnabledFieldBuilder().getBuilder(), + getIdleSessionTimeoutEnabledFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 42 + case 50: { + policySource_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000008; break; - } // case 34 + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -726,127 +749,6 @@ public com.google.protobuf.Int32ValueOrBuilder getAbsoluteSessionTimeoutOrBuilde return absoluteSessionTimeoutBuilder_; } - private com.google.protobuf.BoolValue sessionManagementEnabled_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> sessionManagementEnabledBuilder_; - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionManagementEnabled field is set. - */ - public boolean hasSessionManagementEnabled() { - return ((bitField0_ & 0x00000002) != 0); - } - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionManagementEnabled. - */ - public com.google.protobuf.BoolValue getSessionManagementEnabled() { - if (sessionManagementEnabledBuilder_ == null) { - return sessionManagementEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : sessionManagementEnabled_; - } else { - return sessionManagementEnabledBuilder_.getMessage(); - } - } - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public Builder setSessionManagementEnabled(com.google.protobuf.BoolValue value) { - if (sessionManagementEnabledBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sessionManagementEnabled_ = value; - } else { - sessionManagementEnabledBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public Builder setSessionManagementEnabled( - com.google.protobuf.BoolValue.Builder builderForValue) { - if (sessionManagementEnabledBuilder_ == null) { - sessionManagementEnabled_ = builderForValue.build(); - } else { - sessionManagementEnabledBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public Builder mergeSessionManagementEnabled(com.google.protobuf.BoolValue value) { - if (sessionManagementEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) && - sessionManagementEnabled_ != null && - sessionManagementEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getSessionManagementEnabledBuilder().mergeFrom(value); - } else { - sessionManagementEnabled_ = value; - } - } else { - sessionManagementEnabledBuilder_.mergeFrom(value); - } - if (sessionManagementEnabled_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public Builder clearSessionManagementEnabled() { - bitField0_ = (bitField0_ & ~0x00000002); - sessionManagementEnabled_ = null; - if (sessionManagementEnabledBuilder_ != null) { - sessionManagementEnabledBuilder_.dispose(); - sessionManagementEnabledBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public com.google.protobuf.BoolValue.Builder getSessionManagementEnabledBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return getSessionManagementEnabledFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public com.google.protobuf.BoolValueOrBuilder getSessionManagementEnabledOrBuilder() { - if (sessionManagementEnabledBuilder_ != null) { - return sessionManagementEnabledBuilder_.getMessageOrBuilder(); - } else { - return sessionManagementEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : sessionManagementEnabled_; - } - } - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getSessionManagementEnabledFieldBuilder() { - if (sessionManagementEnabledBuilder_ == null) { - sessionManagementEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getSessionManagementEnabled(), - getParentForChildren(), - isClean()); - sessionManagementEnabled_ = null; - } - return sessionManagementEnabledBuilder_; - } - private com.google.protobuf.Int32Value idleSessionTimeout_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> idleSessionTimeoutBuilder_; @@ -855,7 +757,7 @@ public com.google.protobuf.BoolValueOrBuilder getSessionManagementEnabledOrBuild * @return Whether the idleSessionTimeout field is set. */ public boolean hasIdleSessionTimeout() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** * .google.protobuf.Int32Value idle_session_timeout = 3 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } @@ -880,7 +782,7 @@ public Builder setIdleSessionTimeout(com.google.protobuf.Int32Value value) { } else { idleSessionTimeoutBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -894,7 +796,7 @@ public Builder setIdleSessionTimeout( } else { idleSessionTimeoutBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return this; } @@ -903,7 +805,7 @@ public Builder setIdleSessionTimeout( */ public Builder mergeIdleSessionTimeout(com.google.protobuf.Int32Value value) { if (idleSessionTimeoutBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && + if (((bitField0_ & 0x00000002) != 0) && idleSessionTimeout_ != null && idleSessionTimeout_ != com.google.protobuf.Int32Value.getDefaultInstance()) { getIdleSessionTimeoutBuilder().mergeFrom(value); @@ -914,7 +816,7 @@ public Builder mergeIdleSessionTimeout(com.google.protobuf.Int32Value value) { idleSessionTimeoutBuilder_.mergeFrom(value); } if (idleSessionTimeout_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); } return this; @@ -923,7 +825,7 @@ public Builder mergeIdleSessionTimeout(com.google.protobuf.Int32Value value) { * .google.protobuf.Int32Value idle_session_timeout = 3 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public Builder clearIdleSessionTimeout() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000002); idleSessionTimeout_ = null; if (idleSessionTimeoutBuilder_ != null) { idleSessionTimeoutBuilder_.dispose(); @@ -936,7 +838,7 @@ public Builder clearIdleSessionTimeout() { * .google.protobuf.Int32Value idle_session_timeout = 3 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ public com.google.protobuf.Int32Value.Builder getIdleSessionTimeoutBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000002; onChanged(); return getIdleSessionTimeoutFieldBuilder().getBuilder(); } @@ -968,125 +870,262 @@ public com.google.protobuf.Int32ValueOrBuilder getIdleSessionTimeoutOrBuilder() return idleSessionTimeoutBuilder_; } - private com.google.protobuf.BoolValue idleSessionEnabled_; + private com.google.protobuf.BoolValue idleSessionTimeoutEnabled_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> idleSessionEnabledBuilder_; + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> idleSessionTimeoutEnabledBuilder_; /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the idleSessionEnabled field is set. + *
+     * Whether idle session timeout is enabled for this organization.
+     * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+     * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutEnabled field is set. */ - public boolean hasIdleSessionEnabled() { - return ((bitField0_ & 0x00000008) != 0); + public boolean hasIdleSessionTimeoutEnabled() { + return ((bitField0_ & 0x00000004) != 0); } /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The idleSessionEnabled. + *
+     * Whether idle session timeout is enabled for this organization.
+     * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+     * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutEnabled. */ - public com.google.protobuf.BoolValue getIdleSessionEnabled() { - if (idleSessionEnabledBuilder_ == null) { - return idleSessionEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionEnabled_; + public com.google.protobuf.BoolValue getIdleSessionTimeoutEnabled() { + if (idleSessionTimeoutEnabledBuilder_ == null) { + return idleSessionTimeoutEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionTimeoutEnabled_; } else { - return idleSessionEnabledBuilder_.getMessage(); + return idleSessionTimeoutEnabledBuilder_.getMessage(); } } /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + *
+     * Whether idle session timeout is enabled for this organization.
+     * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+     * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ - public Builder setIdleSessionEnabled(com.google.protobuf.BoolValue value) { - if (idleSessionEnabledBuilder_ == null) { + public Builder setIdleSessionTimeoutEnabled(com.google.protobuf.BoolValue value) { + if (idleSessionTimeoutEnabledBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - idleSessionEnabled_ = value; + idleSessionTimeoutEnabled_ = value; } else { - idleSessionEnabledBuilder_.setMessage(value); + idleSessionTimeoutEnabledBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + *
+     * Whether idle session timeout is enabled for this organization.
+     * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+     * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ - public Builder setIdleSessionEnabled( + public Builder setIdleSessionTimeoutEnabled( com.google.protobuf.BoolValue.Builder builderForValue) { - if (idleSessionEnabledBuilder_ == null) { - idleSessionEnabled_ = builderForValue.build(); + if (idleSessionTimeoutEnabledBuilder_ == null) { + idleSessionTimeoutEnabled_ = builderForValue.build(); } else { - idleSessionEnabledBuilder_.setMessage(builderForValue.build()); + idleSessionTimeoutEnabledBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000004; onChanged(); return this; } /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + *
+     * Whether idle session timeout is enabled for this organization.
+     * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+     * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ - public Builder mergeIdleSessionEnabled(com.google.protobuf.BoolValue value) { - if (idleSessionEnabledBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) && - idleSessionEnabled_ != null && - idleSessionEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { - getIdleSessionEnabledBuilder().mergeFrom(value); + public Builder mergeIdleSessionTimeoutEnabled(com.google.protobuf.BoolValue value) { + if (idleSessionTimeoutEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + idleSessionTimeoutEnabled_ != null && + idleSessionTimeoutEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getIdleSessionTimeoutEnabledBuilder().mergeFrom(value); } else { - idleSessionEnabled_ = value; + idleSessionTimeoutEnabled_ = value; } } else { - idleSessionEnabledBuilder_.mergeFrom(value); + idleSessionTimeoutEnabledBuilder_.mergeFrom(value); } - if (idleSessionEnabled_ != null) { - bitField0_ |= 0x00000008; + if (idleSessionTimeoutEnabled_ != null) { + bitField0_ |= 0x00000004; onChanged(); } return this; } /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + *
+     * Whether idle session timeout is enabled for this organization.
+     * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+     * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ - public Builder clearIdleSessionEnabled() { - bitField0_ = (bitField0_ & ~0x00000008); - idleSessionEnabled_ = null; - if (idleSessionEnabledBuilder_ != null) { - idleSessionEnabledBuilder_.dispose(); - idleSessionEnabledBuilder_ = null; + public Builder clearIdleSessionTimeoutEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + idleSessionTimeoutEnabled_ = null; + if (idleSessionTimeoutEnabledBuilder_ != null) { + idleSessionTimeoutEnabledBuilder_.dispose(); + idleSessionTimeoutEnabledBuilder_ = null; } onChanged(); return this; } /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + *
+     * Whether idle session timeout is enabled for this organization.
+     * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+     * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ - public com.google.protobuf.BoolValue.Builder getIdleSessionEnabledBuilder() { - bitField0_ |= 0x00000008; + public com.google.protobuf.BoolValue.Builder getIdleSessionTimeoutEnabledBuilder() { + bitField0_ |= 0x00000004; onChanged(); - return getIdleSessionEnabledFieldBuilder().getBuilder(); + return getIdleSessionTimeoutEnabledFieldBuilder().getBuilder(); } /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + *
+     * Whether idle session timeout is enabled for this organization.
+     * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+     * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ - public com.google.protobuf.BoolValueOrBuilder getIdleSessionEnabledOrBuilder() { - if (idleSessionEnabledBuilder_ != null) { - return idleSessionEnabledBuilder_.getMessageOrBuilder(); + public com.google.protobuf.BoolValueOrBuilder getIdleSessionTimeoutEnabledOrBuilder() { + if (idleSessionTimeoutEnabledBuilder_ != null) { + return idleSessionTimeoutEnabledBuilder_.getMessageOrBuilder(); } else { - return idleSessionEnabled_ == null ? - com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionEnabled_; + return idleSessionTimeoutEnabled_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionTimeoutEnabled_; } } /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + *
+     * Whether idle session timeout is enabled for this organization.
+     * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+     * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> - getIdleSessionEnabledFieldBuilder() { - if (idleSessionEnabledBuilder_ == null) { - idleSessionEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + getIdleSessionTimeoutEnabledFieldBuilder() { + if (idleSessionTimeoutEnabledBuilder_ == null) { + idleSessionTimeoutEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( - getIdleSessionEnabled(), + getIdleSessionTimeoutEnabled(), getParentForChildren(), isClean()); - idleSessionEnabled_ = null; + idleSessionTimeoutEnabled_ = null; + } + return idleSessionTimeoutEnabledBuilder_; + } + + private java.lang.Object policySource_ = ""; + /** + *
+     * APPLICATION (default) = inherit application-level policy; CUSTOM = org-specific values are active.
+     * 
+ * + * string policy_source = 6 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policySource. + */ + public java.lang.String getPolicySource() { + java.lang.Object ref = policySource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + policySource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * APPLICATION (default) = inherit application-level policy; CUSTOM = org-specific values are active.
+     * 
+ * + * string policy_source = 6 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for policySource. + */ + public com.google.protobuf.ByteString + getPolicySourceBytes() { + java.lang.Object ref = policySource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + policySource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; } - return idleSessionEnabledBuilder_; + } + /** + *
+     * APPLICATION (default) = inherit application-level policy; CUSTOM = org-specific values are active.
+     * 
+ * + * string policy_source = 6 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The policySource to set. + * @return This builder for chaining. + */ + public Builder setPolicySource( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + policySource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + *
+     * APPLICATION (default) = inherit application-level policy; CUSTOM = org-specific values are active.
+     * 
+ * + * string policy_source = 6 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearPolicySource() { + policySource_ = getDefaultInstance().getPolicySource(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + *
+     * APPLICATION (default) = inherit application-level policy; CUSTOM = org-specific values are active.
+     * 
+ * + * string policy_source = 6 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for policySource to set. + * @return This builder for chaining. + */ + public Builder setPolicySourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + policySource_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; } @java.lang.Override public final Builder setUnknownFields( diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionSettingsOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionSettingsOrBuilder.java index 6af0379d..7adaaa7f 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionSettingsOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationSessionSettingsOrBuilder.java @@ -23,21 +23,6 @@ public interface OrganizationSessionSettingsOrBuilder extends */ com.google.protobuf.Int32ValueOrBuilder getAbsoluteSessionTimeoutOrBuilder(); - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionManagementEnabled field is set. - */ - boolean hasSessionManagementEnabled(); - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionManagementEnabled. - */ - com.google.protobuf.BoolValue getSessionManagementEnabled(); - /** - * .google.protobuf.BoolValue session_management_enabled = 2 [json_name = "sessionManagementEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - com.google.protobuf.BoolValueOrBuilder getSessionManagementEnabledOrBuilder(); - /** * .google.protobuf.Int32Value idle_session_timeout = 3 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return Whether the idleSessionTimeout field is set. @@ -54,17 +39,52 @@ public interface OrganizationSessionSettingsOrBuilder extends com.google.protobuf.Int32ValueOrBuilder getIdleSessionTimeoutOrBuilder(); /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the idleSessionEnabled field is set. + *
+   * Whether idle session timeout is enabled for this organization.
+   * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+   * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutEnabled field is set. + */ + boolean hasIdleSessionTimeoutEnabled(); + /** + *
+   * Whether idle session timeout is enabled for this organization.
+   * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+   * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutEnabled. */ - boolean hasIdleSessionEnabled(); + com.google.protobuf.BoolValue getIdleSessionTimeoutEnabled(); + /** + *
+   * Whether idle session timeout is enabled for this organization.
+   * Effective idle timeout is enabled if either the environment or any organization with SESSION_POLICY_CUSTOM has it enabled.
+   * 
+ * + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.BoolValueOrBuilder getIdleSessionTimeoutEnabledOrBuilder(); + /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The idleSessionEnabled. + *
+   * APPLICATION (default) = inherit application-level policy; CUSTOM = org-specific values are active.
+   * 
+ * + * string policy_source = 6 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policySource. */ - com.google.protobuf.BoolValue getIdleSessionEnabled(); + java.lang.String getPolicySource(); /** - * .google.protobuf.BoolValue idle_session_enabled = 4 [json_name = "idleSessionEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + *
+   * APPLICATION (default) = inherit application-level policy; CUSTOM = org-specific values are active.
+   * 
+ * + * string policy_source = 6 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for policySource. */ - com.google.protobuf.BoolValueOrBuilder getIdleSessionEnabledOrBuilder(); + com.google.protobuf.ByteString + getPolicySourceBytes(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationsProto.java index f799cf4f..228baaf4 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/OrganizationsProto.java @@ -141,50 +141,55 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_organizations_UpdateOrganizationSettingsRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsRequest_descriptor; + internal_static_scalekit_v1_organizations_OrganizationSessionPolicySettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsRequest_fieldAccessorTable; + internal_static_scalekit_v1_organizations_OrganizationSessionPolicySettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsResponse_descriptor; + internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsResponse_fieldAccessorTable; + internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_scalekit_v1_organizations_OrganizationUserManagementSettings_descriptor; + internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_scalekit_v1_organizations_OrganizationUserManagementSettings_fieldAccessorTable; + internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_scalekit_v1_organizations_OrganizationSessionSettings_descriptor; + internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_scalekit_v1_organizations_OrganizationSessionSettings_fieldAccessorTable; + internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsRequest_descriptor; + internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsRequest_fieldAccessorTable; + internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsRequest_descriptor; + internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsRequest_fieldAccessorTable; + internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsResponse_descriptor; + internal_static_scalekit_v1_organizations_ApplicationSessionPolicySettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsResponse_fieldAccessorTable; + internal_static_scalekit_v1_organizations_ApplicationSessionPolicySettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsResponse_descriptor; + internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsResponse_fieldAccessorTable; + internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_scalekit_v1_organizations_DeleteOrganizationSessionSettingsRequest_descriptor; + internal_static_scalekit_v1_organizations_OrganizationUserManagementSettings_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_scalekit_v1_organizations_DeleteOrganizationSessionSettingsRequest_fieldAccessorTable; + internal_static_scalekit_v1_organizations_OrganizationUserManagementSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_organizations_OrganizationSessionSettings_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_organizations_OrganizationSessionSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_scalekit_v1_organizations_OrganizationSettings_descriptor; static final @@ -246,7 +251,7 @@ public static void registerAllExtensions( "(\0132\'.scalekit.v1.organizations.Organizat" + "ionBM\222AJ2HThe newly created organization" + " containing its ID, settings, and metada" + - "taR\014organization\"\240\005\n\022CreateOrganization\022" + + "taR\014organization\"\370\007\n\022CreateOrganization\022" + "\204\001\n\014display_name\030\004 \001(\tBa\222AQ2?Name of the" + " organization. Must be between 1 and 200" + " characters.J\016\"Megasoft Inc\"\340A\002\272H\007r\005\020\001\030\310" + @@ -261,742 +266,834 @@ public static void registerAllExtensions( "\"H\000R\nexternalId\210\001\001\022r\n\010metadata\030\007 \003(\0132;.s" + "calekit.v1.organizations.CreateOrganizat" + "ion.MetadataEntryB\031\272H\026\232\001\023\020\n\"\006r\004\020\003\030\031*\007r\005\020" + - "\001\030\200\002R\010metadata\032;\n\rMetadataEntry\022\020\n\003key\030\001" + - " \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001B\016\n\014_" + - "external_id\"\347\010\n\014Organization\022{\n\002id\030\001 \001(\t" + - "Bk\222Ah2MUnique scalekit-generated identif" + - "ier that uniquely references an organiza" + - "tionJ\027\"org_59615193906282635\"R\002id\022\214\001\n\013cr" + - "eate_time\030\002 \001(\0132\032.google.protobuf.Timest" + - "ampBO\222AI2+Timestamp when the organizatio" + - "n was createdJ\032\"2025-02-15T06:23:44.560Z" + - "\"\340A\002R\ncreateTime\022\216\001\n\013update_time\030\003 \001(\0132\032" + - ".google.protobuf.TimestampBQ\222AN20Timesta" + - "mp when the organization was last update" + - "dJ\032\"2025-02-15T06:23:44.560Z\"R\nupdateTim" + - "e\022|\n\014display_name\030\004 \001(\tBY\222AL2>Name of th" + - "e organization. Must be between 1 and 20" + - "0 charactersJ\n\"Megasoft\"\272H\007r\005\020\001\030\310\001R\013disp" + - "layName\022\222\001\n\013region_code\030\005 \001(\0162\037.scalekit" + - ".v1.commons.RegionCodeBP\222AM2EGeographic " + - "region code for the organization. Curren" + - "tly limited to US.J\004\"US\"R\nregionCode\022\236\001\n" + - "\013external_id\030\006 \001(\tBx\222Au2cYour applicatio" + - "n\'s unique identifier for this organizat" + - "ion, used to link Scalekit with your sys" + - "tem.J\016\"my_unique_id\"H\000R\nexternalId\210\001\001\022l\n" + - "\010metadata\030\007 \003(\01325.scalekit.v1.organizati" + - "ons.Organization.MetadataEntryB\031\272H\026\232\001\023\020\n" + - "\"\006r\004\020\003\030\031*\007r\005\020\001\030\200\002R\010metadata\022K\n\010settings\030" + - "\010 \001(\0132/.scalekit.v1.organizations.Organi" + - "zationSettingsR\010settings\032;\n\rMetadataEntr" + - "y\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005valu" + - "e:\0028\001B\016\n\014_external_id\"\340\003\n\031UpdateOrganiza" + - "tionRequest\022j\n\002id\030\001 \001(\tBX\222AL23Unique ide" + - "ntifier of the organization to be update" + - "dJ\025\"org_121312434123312\"\272H\006r\004\020\001\030 H\000R\002id\022" + - "\205\001\n\013external_id\030\002 \001(\tBb\222AI2-External ID " + - "of the organization to be updatedJ\030\"tena" + - "nt_123123123123123\"\272H\004r\002\020\001\372\322\344\223\002\t\022\007PREVIE" + - "WH\000R\nexternalId\022\203\001\n\014organization\030\003 \001(\0132-" + - ".scalekit.v1.organizations.UpdateOrganiz" + - "ationB0\222A\'2%Organization Parameters to b" + - "e updated\272H\003\310\001\001R\014organization\022;\n\013update_" + - "mask\030c \001(\0132\032.google.protobuf.FieldMaskR\n" + - "updateMaskB\014\n\nidentities\"\341\005\n\022UpdateOrgan" + - "ization\022\236\001\n\014display_name\030\004 \001(\tBv\222Ai2SNam" + - "e of the organization to display in the " + - "UI. Must be between 1 and 200 characters" + - "J\022\"Acme Corporation\"\272H\007r\005\020\001\030\310\001H\000R\013displa" + - "yName\210\001\001\022\235\001\n\013external_id\030\006 \001(\tBw\222At2bYou" + - "r application\'s unique identifier for th" + - "is organization, used to link Scalekit w" + - "ith your systemJ\016\"tenant_12345\"H\001R\nexter" + - "nalId\210\001\001\022\245\002\n\010metadata\030\007 \003(\0132;.scalekit.v" + - "1.organizations.UpdateOrganization.Metad" + - "ataEntryB\313\001\222A\256\0012\217\001Custom key-value pairs" + - " to store with the organization. Keys mu" + - "st be 3-25 characters, values must be 1-" + - "256 characters. Maximum 10 pairs allowed" + - ".J\032{\"industry\": \"technology\"}\272H\026\232\001\023\020\n\"\006r" + - "\004\020\003\030\031*\007r\005\020\001\030\200\002R\010metadata\032;\n\rMetadataEntr" + - "y\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005valu" + - "e:\0028\001B\017\n\r_display_nameB\016\n\014_external_idJ\004" + - "\010\005\020\006\"\214\001\n\032UpdateOrganizationResponse\022n\n\014o" + - "rganization\030\001 \001(\0132\'.scalekit.v1.organiza" + - "tions.OrganizationB!\222A\0362\034Updated organiz" + - "ation detailsR\014organization\"\353\002\n\026GetOrgan" + - "izationRequest\022\204\001\n\002id\030\001 \001(\tBr\222Af2MUnique" + - " scalekit-generated identifier that uniq" + - "uely references an organizationJ\025\"org_12" + - "1312434123312\"\272H\006r\004\020\001\030 H\000R\002id\022\273\001\n\013extern" + - "al_id\030\002 \001(\tB\227\001\222A~2bUnique identifier tha" + - "t links an Organization Object to your a" + - "pp\'s tenant, stored as an External IDJ\030\"" + - "tenant_123123123123123\"\272H\004r\002\020\001\372\322\344\223\002\t\022\007PR" + - "EVIEWH\000R\nexternalIdB\014\n\nidentities\"\213\001\n\027Ge" + - "tOrganizationResponse\022p\n\014organization\030\001 " + - "\001(\0132\'.scalekit.v1.organizations.Organiza" + - "tionB#\222A 2\036The newly created organizatio" + - "nR\014organization\"\340\005\n\030ListOrganizationsReq" + - "uest\022t\n\tpage_size\030\001 \001(\rBW\222AT2NMaximum nu" + - "mber of organizations to return per page" + - ". Must be between 10 and 100J\00230R\010pageSi" + - "ze\022\217\001\n\npage_token\030\002 \001(\tBp\222Am2[Pagination" + - " token from the previous response. Use t" + - "o retrieve the next page of organization" + - "sJ\016\"\"R\tpageToken\022\250\001\n\013externa" + - "l_id\030\003 \001(\tB\201\001\222A~2bYour application\'s uni" + - "que identifier for this organization, us" + - "ed to link Scalekit with your systemJ\030\"<" + - "your_app_assigned_id>\"H\000R\nexternalId\210\001\001:" + - "\200\002\222A\374\001\n\253\001*\022List Organizations2\224\001Retrieve" + - "s a paginated list of all organizations " + - "within the environment. Use the `page_to" + - "ken` from the response to access subsequ" + - "ent pages of results*L\n\022List Organizatio" + - "ns\0226https://docs.scalekit.com/reference/" + - "list-organizationsB\016\n\014_external_id\"\244\004\n\031L" + - "istOrganizationsResponse\022\227\001\n\017next_page_t" + - "oken\030\001 \001(\tBo\222Al2UPagination token for th" + - "e next page of results. Use this token t" + - "o fetch the next page.J\023\"\"R\rnextPageToken\022Y\n\ntotal_size\030\002 \001(\rB:" + - "\222A721Total number of organizations in th" + - "e environment.J\00230R\ttotalSize\022p\n\rorganiz" + - "ations\030\003 \003(\0132\'.scalekit.v1.organizations" + - ".OrganizationB!\222A\0362\034List of organization" + - " objectsR\rorganizations\022\237\001\n\017prev_page_to" + - "ken\030\004 \001(\tBw\222At2]Pagination token for the" + - " previous page of results. Use this toke" + - "n to fetch the previous page.J\023\"\"R\rprevPageToken\"\247\005\n\032SearchOrga" + - "nizationsRequest\022\245\001\n\005query\030\001 \001(\tB\216\001\222A\1772w" + - "Search term to match against organizatio" + - "n names, IDs, or external IDs. Must be a" + - "t least 3 characters. Case insensitive.J" + - "\004acme\272H\tr\004\020\003\030d\310\001\001R\005query\022\200\001\n\tpage_size\030\002" + - " \001(\rBc\222AY2SMaximum number of organizatio" + - "ns to return per page. Value must be bet" + - "ween 1 and 30.J\00230\272H\004*\002\030\036R\010pageSize\022\245\001\n\n" + - "page_token\030\003 \001(\tB\205\001\222A\201\0012aToken from a pr" + - "evious response for pagination. Provide " + - "this to retrieve the next page of result" + - "s.J\034eyJwYWdlIjoyLCJsaW1pdCI6MzB9R\tpageTo" + - "ken:\265\001\222A\261\001\n\210\001*\024Search Organizations2pSea" + - "rch for organizations in your environmen" + - "t using a text query that matches agains" + - "t names, IDs, or external IDs2$query=acm" + - "e&page_size=30&page_token=1\"\333\001\n\033SearchOr" + - "ganizationsResponse\022&\n\017next_page_token\030\001" + - " \001(\tR\rnextPageToken\022\035\n\ntotal_size\030\002 \001(\rR" + - "\ttotalSize\022M\n\rorganizations\030\003 \003(\0132\'.scal" + - "ekit.v1.organizations.OrganizationR\rorga" + - "nizations\022&\n\017prev_page_token\030\004 \001(\tR\rprev" + - "PageToken\"\255\002\n\031DeleteOrganizationRequest\022" + - "~\n\002id\030\001 \001(\tBl\222A`2MUnique scalekit-genera" + - "ted identifier that uniquely references " + - "an organizationJ\017\"org_123456789\"\272H\006r\004\020\001\030" + - " H\000R\002id\022\201\001\n\013external_id\030\002 \001(\tB^\222AE2)Exte" + - "rnal ID of the organization to deleteJ\030\"" + - "tenant_123123123123123\"\272H\004r\002\020\001\372\322\344\223\002\t\022\007PR" + - "EVIEWH\000R\nexternalIdB\014\n\nidentities\"\317\004\n\031Ge" + - "neratePortalLinkRequest\022N\n\002id\030\001 \001(\tB>\222A)" + - "2\017Organization IDJ\026\"org_1231234233424344" + - "\"\272H\017r\n\020\001\030 :\004org_\310\001\001R\002id\022(\n\003sso\030\002 \001(\010B\021\030\001" + - "\372\322\344\223\002\t\022\007PREVIEWH\000R\003sso\210\001\001\022=\n\016directory_s" + - "ync\030\003 \001(\010B\021\030\001\372\322\344\223\002\t\022\007PREVIEWH\001R\rdirector" + - "ySync\210\001\001\022\335\002\n\010features\030\004 \003(\0162\".scalekit.v" + - "1.organizations.FeatureB\234\002\222A\230\0022\225\002Feature" + - "s to enable in the admin portal link. To" + - " enable features, append them as URL par" + - "ameters:\n\n- Single Sign-On: ?features=ss" + - "o\n- Directory Sync: ?features=dir_sync\n-" + - " Both features: ?features=sso&features=d" + - "ir_sync\n\nExample URL: https://scalekit.c" + - "om/portal/lnk_123?features=ssoR\010features" + - "B\006\n\004_ssoB\021\n\017_directory_sync\"f\n\024GetPortal" + - "LinkRequest\022N\n\002id\030\001 \001(\tB>\222A)2\017Organizati" + - "on IDJ\026\"org_1231234233424344\"\272H\017r\n\020\001\030 :\004" + - "org_\310\001\001R\002id\"i\n\027DeletePortalLinkRequest\022N" + - "\n\002id\030\001 \001(\tB>\222A)2\017Organization IDJ\026\"org_1" + - "231234233424344\"\272H\017r\n\020\001\030 :\004org_\310\001\001R\002id\"\276" + - "\001\n\033DeletePortalLinkByIdRequest\022N\n\002id\030\001 \001" + - "(\tB>\222A)2\017Organization IDJ\026\"org_123123423" + - "3424344\"\272H\017r\n\020\001\030 :\004org_\310\001\001R\002id\022O\n\007link_i" + - "d\030\002 \001(\tB6\222A!2\007Link IDJ\026\"lnk_123123423342" + - "4344\"\272H\017r\n\020\001\030 :\004lnk_\310\001\001R\006linkId\"\265\003\n\004Link" + - "\022J\n\002id\030\001 \001(\tB:\222A72\036Unique Identifier for" + - " the linkJ\025\"lnk_123123123123123\"R\002id\022\307\001\n" + - "\010location\030\002 \001(\tB\252\001\222A\246\0012qLocation of the " + - "link. This is the URL that can be used t" + - "o access the Admin portal. The link is v" + - "alid for 1 minuteJ1\"https://scalekit.com" + - "/portal/lnk_123123123123123\"R\010location\022\226" + - "\001\n\013expire_time\030\003 \001(\0132\032.google.protobuf.T" + - "imestampBY\222AV28Expiry time of the link. " + - "The link is valid for 1 minute.J\032\"2024-0" + - "2-06T14:48:00.000Z\"R\nexpireTime\"\226\002\n\032Gene" + - "ratePortalLinkResponse\022\367\001\n\004link\030\001 \001(\0132\037." + - "scalekit.v1.organizations.LinkB\301\001\222A\275\0012\272\001" + - "Contains the generated admin portal link" + - " details. The link URL can be shared wit" + - "h organization administrators to set up:" + - " Single Sign-On (SSO) authentication and" + - " directory synchronizationR\004link\"h\n\026GetP" + - "ortalLinksResponse\022N\n\005links\030\001 \003(\0132\037.scal" + - "ekit.v1.organizations.LinkB\027\222A\0242\022Admin P" + - "ortal LinksR\005links\"\220\004\n!UpdateOrganizatio" + - "nSettingsRequest\022\227\001\n\002id\030\001 \001(\tB\206\001\222Aq2WUni" + - "que identifier of the organization to up" + - "date settings. Must begin with \'org_\' pr" + - "efixJ\026\"org_1231234233424344\"\272H\017r\n\020\001\030 :\004o" + - "rg_\310\001\001R\002id\022\320\002\n\010settings\030\002 \001(\0132/.scalekit" + - ".v1.organizations.OrganizationSettingsB\202" + - "\002\222A\370\0012\225\001Settings configuration to apply " + - "to the organization. Contains feature to" + - "ggles for SSO, directory synchronization" + - ", and other organization capabilitiesJ^{" + - "\"features\": [{\"name\": \"sso\", \"enabled\": " + - "true}, {\"name\": \"directory_sync\", \"enabl" + - "ed\": false}]}\272H\003\310\001\001R\010settings\"\356\004\n(Update" + - "OrganizationSessionSettingsRequest\022\204\001\n\002i" + - "d\030\001 \001(\tBt\222Ac2HUnique identifier for the " + - "organization, beginning with an \'org_\' p" + - "refix.J\027\"org_59615193906282635\"\272H\013r\t\020\001\030 " + - ":\003orgR\002id\022\362\001\n\016environment_id\030\002 \001(\tB\312\001\222A\270" + - "\0012\234\001Unique identifier for the environmen" + - "t where the organization resides, prefix" + - "ed with \'env_\'. This specifies the envir" + - "onment context for the session settings." + - "J\027\"env_59615193906282635\"\272H\013r\t\020\001\030 :\003envR" + - "\renvironmentId\022\305\001\n\020session_settings\030\003 \001(" + - "\01326.scalekit.v1.organizations.Organizati" + - "onSessionSettingsBb\222AY2WThe session sett" + - "ings to be applied, including absolute a" + - "nd idle timeout configurations.\272H\003\310\001\001R\017s" + - "essionSettings\"\202\004\n)UpdateOrganizationSes" + - "sionSettingsResponse\022\217\001\n\016environment_id\030" + - "\001 \001(\tBh\222Ae2JThe environment ID where the" + - " organization\'s session settings were up" + - "dated.J\027\"env_59615193906282635\"R\renviron" + - "mentId\022\225\001\n\017organization_id\030\002 \001(\tBl\222Ai2NT" + - "he unique identifier of the organization" + - " whose session settings were updated.J\027\"" + - "org_59615193906282635\"R\016organizationId\022\252" + - "\001\n\020session_settings\030\003 \001(\01326.scalekit.v1." + - "organizations.OrganizationSessionSetting" + - "sBG\222AD2BThe updated session settings, re" + - "flecting the new timeout policies.R\017sess" + - "ionSettings\"\334\002\n\"OrganizationUserManageme" + - "ntSettings\022\265\002\n\021max_allowed_users\030\001 \001(\0132\033" + - ".google.protobuf.Int32ValueB\353\001\222A\347\0012\337\001Max" + - "imum number of users allowed in the orga" + - "nization. When nil (not set), there feat" + - "ure is not enabled. When explicitly set " + - "to zero, it also means no limit. When se" + - "t to a positive integer, it enforces the" + - " maximum user limit.J\003100R\017maxAllowedUse" + - "rs\"\255\007\n\033OrganizationSessionSettings\022\376\001\n\030a" + - "bsolute_session_timeout\030\001 \001(\0132\033.google.p" + - "rotobuf.Int32ValueB\246\001\222A\242\0012\230\001The maximum " + - "duration in seconds that a session can r" + - "emain active, regardless of activity. Af" + - "ter this time, the user will be required" + - " to re-authenticate.J\00586400R\026absoluteSes" + - "sionTimeout\022\335\001\n\032session_management_enabl" + - "ed\030\002 \001(\0132\032.google.protobuf.BoolValueB\202\001\222" + - "A\1772wEnables or disables session manageme" + - "nt features for the organization. When t" + - "rue, session timeout policies are enforc" + - "ed.J\004trueR\030sessionManagementEnabled\022\324\001\n\024" + - "idle_session_timeout\030\003 \001(\0132\033.google.prot" + - "obuf.Int32ValueB\204\001\222A\200\0012xThe duration in " + - "seconds that a session can remain idle b" + - "efore it is automatically terminated. Ac" + - "tivity resets the timer.J\0041800R\022idleSess" + - "ionTimeout\022\325\001\n\024idle_session_enabled\030\004 \001(" + - "\0132\032.google.protobuf.BoolValueB\206\001\222A\202\0012zEn" + - "ables or disables idle session timeout. " + - "If true, inactive sessions will be termi" + - "nated after the specified idle duration." + - "J\004trueR\022idleSessionEnabled\"\202\003\n%GetOrgani" + - "zationSessionSettingsRequest\022\222\001\n\002id\030\001 \001(" + - "\tB\201\001\222Ap2UThe unique identifier of the or" + - "ganization whose session settings are be" + - "ing requested.J\027\"org_59615193906282635\"\272" + - "H\013r\t\020\001\030 :\003orgR\002id\022\303\001\n\016environment_id\030\002 \001" + - "(\tB\233\001\222A\211\0012nThe environment ID to scope t" + - "he request. This ensures the settings ar" + - "e retrieved from the correct environment" + - ".J\027\"env_59615193906282635\"\272H\013r\t\020\001\030 :\003env" + - "R\renvironmentId\"\211\003\n(CreateOrganizationSe" + - "ssionSettingsRequest\022\213\001\n\002id\030\001 \001(\tB{\222Aj2O" + - "The unique identifier of the organizatio" + - "n for which to create session settings.J" + - "\027\"org_59615193906282635\"\272H\013r\t\020\001\030 :\003orgR\002" + - "id\022\316\001\n\016environment_id\030\002 \001(\tB\246\001\222A\224\0012yThe " + - "environment ID where the organization ex" + - "ists. This scopes the creation of sessio" + - "n settings to a specific environment.J\027\"" + - "env_59615193906282635\"\272H\013r\t\020\001\030 :\003envR\ren" + - "vironmentId\"\364\003\n)CreateOrganizationSessio" + - "nSettingsResponse\022\200\001\n\016environment_id\030\001 \001" + - "(\tBY\222AV2;The environment ID where the se" + - "ssion settings were created.J\027\"env_59615" + - "193906282635\"R\renvironmentId\022\231\001\n\017organiz" + - "ation_id\030\002 \001(\tBp\222Am2RThe unique identifi" + - "er of the organization for which session" + - " settings were created.J\027\"org_5961519390" + - "6282635\"R\016organizationId\022\247\001\n\020session_set" + - "tings\030\003 \001(\01326.scalekit.v1.organizations." + - "OrganizationSessionSettingsBD\222AA2?The ne" + - "wly created session settings, including " + - "timeout policies.R\017sessionSettings\"\361\003\n&G" + - "etOrganizationSessionSettingsResponse\022\207\001" + - "\n\016environment_id\030\001 \001(\tB`\222A]2BThe environ" + - "ment ID from which the session settings " + - "were retrieved.J\027\"env_59615193906282635\"" + - "R\renvironmentId\022\225\001\n\017organization_id\030\002 \001(" + - "\tBl\222Ai2NThe unique identifier of the org" + - "anization whose session settings are ret" + - "urned.J\027\"org_59615193906282635\"R\016organiz" + - "ationId\022\244\001\n\020session_settings\030\003 \001(\01326.sca" + - "lekit.v1.organizations.OrganizationSessi" + - "onSettingsBA\222A>2Name of the organization. " + + "Must be between 1 and 200 charactersJ\n\"M" + + "egasoft\"\272H\007r\005\020\001\030\310\001R\013displayName\022\222\001\n\013regi" + + "on_code\030\005 \001(\0162\037.scalekit.v1.commons.Regi" + + "onCodeBP\222AM2EGeographic region code for " + + "the organization. Currently limited to U" + + "S.J\004\"US\"R\nregionCode\022\236\001\n\013external_id\030\006 \001" + + "(\tBx\222Au2cYour application\'s unique ident" + + "ifier for this organization, used to lin" + + "k Scalekit with your system.J\016\"my_unique" + + "_id\"H\000R\nexternalId\210\001\001\022l\n\010metadata\030\007 \003(\0132" + + "5.scalekit.v1.organizations.Organization" + + ".MetadataEntryB\031\272H\026\232\001\023\020\n\"\006r\004\020\003\030\031*\007r\005\020\001\030\200" + + "\002R\010metadata\022K\n\010settings\030\010 \001(\0132/.scalekit" + + ".v1.organizations.OrganizationSettingsR\010" + + "settings\022\205\002\n\004slug\030\t \001(\tB\353\001\222A\347\0012\265\001DNS-saf" + + "e slug for dynamic redirect URI resoluti" + + "on. Must be 1-63 chars, lowercase alphan" + + "umeric and hyphens, must start and end w" + + "ith an alphanumeric character. Unique pe" + + "r environment.J\006\"acme\"x?\200\001\001\212\001\037^[a-z0-9](" + + "[a-z0-9]|-[a-z0-9])*$H\001R\004slug\210\001\001\032;\n\rMeta" + + "dataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001" + + "(\tR\005value:\0028\001B\016\n\014_external_idB\007\n\005_slug\"\340" + + "\003\n\031UpdateOrganizationRequest\022j\n\002id\030\001 \001(\t" + + "BX\222AL23Unique identifier of the organiza" + + "tion to be updatedJ\025\"org_121312434123312" + + "\"\272H\006r\004\020\001\030 H\000R\002id\022\205\001\n\013external_id\030\002 \001(\tBb" + + "\222AI2-External ID of the organization to " + + "be updatedJ\030\"tenant_123123123123123\"\272H\004r" + + "\002\020\001\372\322\344\223\002\t\022\007PREVIEWH\000R\nexternalId\022\203\001\n\014org" + + "anization\030\003 \001(\0132-.scalekit.v1.organizati" + + "ons.UpdateOrganizationB0\222A\'2%Organizatio" + + "n Parameters to be updated\272H\003\310\001\001R\014organi" + + "zation\022;\n\013update_mask\030c \001(\0132\032.google.pro" + + "tobuf.FieldMaskR\nupdateMaskB\014\n\nidentitie" + + "s\"\207\010\n\022UpdateOrganization\022\236\001\n\014display_nam" + + "e\030\004 \001(\tBv\222Ai2SName of the organization t" + + "o display in the UI. Must be between 1 a" + + "nd 200 charactersJ\022\"Acme Corporation\"\272H\007" + + "r\005\020\001\030\310\001H\000R\013displayName\210\001\001\022\235\001\n\013external_i" + + "d\030\006 \001(\tBw\222At2bYour application\'s unique " + + "identifier for this organization, used t" + + "o link Scalekit with your systemJ\016\"tenan" + + "t_12345\"H\001R\nexternalId\210\001\001\022\245\002\n\010metadata\030\007" + + " \003(\0132;.scalekit.v1.organizations.UpdateO" + + "rganization.MetadataEntryB\313\001\222A\256\0012\217\001Custo" + + "m key-value pairs to store with the orga" + + "nization. Keys must be 3-25 characters, " + + "values must be 1-256 characters. Maximum" + + " 10 pairs allowed.J\032{\"industry\": \"techno" + + "logy\"}\272H\026\232\001\023\020\n\"\006r\004\020\003\030\031*\007r\005\020\001\030\200\002R\010metadat" + + "a\022\232\002\n\004slug\030\t \001(\tB\200\002\222A\322\0012\240\001DNS-safe slug " + + "for dynamic redirect URI resolution. Low" + + "ercase alphanumeric and hyphens, 1-63 ch" + + "ars, must start and end with alphanumeri" + + "c, unique per environment.J\006\"acme\"x?\200\001\001\212" + + "\001\037^[a-z0-9]([a-z0-9]|-[a-z0-9])*$\272H\'r%\020\001" + + "\030?2\037^[a-z0-9]([a-z0-9]|-[a-z0-9])*$H\002R\004s" + + "lug\210\001\001\032;\n\rMetadataEntry\022\020\n\003key\030\001 \001(\tR\003ke" + + "y\022\024\n\005value\030\002 \001(\tR\005value:\0028\001B\017\n\r_display_" + + "nameB\016\n\014_external_idB\007\n\005_slugJ\004\010\005\020\006\"\214\001\n\032" + + "UpdateOrganizationResponse\022n\n\014organizati" + + "on\030\001 \001(\0132\'.scalekit.v1.organizations.Org" + + "anizationB!\222A\0362\034Updated organization det" + + "ailsR\014organization\"\353\002\n\026GetOrganizationRe" + + "quest\022\204\001\n\002id\030\001 \001(\tBr\222Af2MUnique scalekit" + + "-generated identifier that uniquely refe" + + "rences an organizationJ\025\"org_12131243412" + + "3312\"\272H\006r\004\020\001\030 H\000R\002id\022\273\001\n\013external_id\030\002 \001" + + "(\tB\227\001\222A~2bUnique identifier that links a" + + "n Organization Object to your app\'s tena" + + "nt, stored as an External IDJ\030\"tenant_12" + + "3123123123123\"\272H\004r\002\020\001\372\322\344\223\002\t\022\007PREVIEWH\000R\n" + + "externalIdB\014\n\nidentities\"\213\001\n\027GetOrganiza" + + "tionResponse\022p\n\014organization\030\001 \001(\0132\'.sca" + + "lekit.v1.organizations.OrganizationB#\222A " + + "2\036The newly created organizationR\014organi" + + "zation\"\340\005\n\030ListOrganizationsRequest\022t\n\tp" + + "age_size\030\001 \001(\rBW\222AT2NMaximum number of o" + + "rganizations to return per page. Must be" + + " between 10 and 100J\00230R\010pageSize\022\217\001\n\npa" + + "ge_token\030\002 \001(\tBp\222Am2[Pagination token fr" + + "om the previous response. Use to retriev" + + "e the next page of organizationsJ\016\"\"R\tpageToken\022\250\001\n\013external_id\030\003 \001(" + + "\tB\201\001\222A~2bYour application\'s unique ident" + + "ifier for this organization, used to lin" + + "k Scalekit with your systemJ\030\"\"H\000R\nexternalId\210\001\001:\200\002\222A\374\001\n\253\001" + + "*\022List Organizations2\224\001Retrieves a pagin" + + "ated list of all organizations within th" + + "e environment. Use the `page_token` from" + + " the response to access subsequent pages" + + " of results*L\n\022List Organizations\0226https" + + "://docs.scalekit.com/reference/list-orga" + + "nizationsB\016\n\014_external_id\"\244\004\n\031ListOrgani" + + "zationsResponse\022\227\001\n\017next_page_token\030\001 \001(" + + "\tBo\222Al2UPagination token for the next pa" + + "ge of results. Use this token to fetch t" + + "he next page.J\023\"\"R\rnext" + + "PageToken\022Y\n\ntotal_size\030\002 \001(\rB:\222A721Tota" + + "l number of organizations in the environ" + + "ment.J\00230R\ttotalSize\022p\n\rorganizations\030\003 " + + "\003(\0132\'.scalekit.v1.organizations.Organiza" + + "tionB!\222A\0362\034List of organization objectsR" + + "\rorganizations\022\237\001\n\017prev_page_token\030\004 \001(\t" + + "Bw\222At2]Pagination token for the previous" + + " page of results. Use this token to fetc" + + "h the previous page.J\023\"" + + "\"R\rprevPageToken\"\247\005\n\032SearchOrganizations" + + "Request\022\245\001\n\005query\030\001 \001(\tB\216\001\222A\1772wSearch te" + + "rm to match against organization names, " + + "IDs, or external IDs. Must be at least 3" + + " characters. Case insensitive.J\004acme\272H\tr" + + "\004\020\003\030d\310\001\001R\005query\022\200\001\n\tpage_size\030\002 \001(\rBc\222AY" + + "2SMaximum number of organizations to ret" + + "urn per page. Value must be between 1 an" + + "d 30.J\00230\272H\004*\002\030\036R\010pageSize\022\245\001\n\npage_toke" + + "n\030\003 \001(\tB\205\001\222A\201\0012aToken from a previous re" + + "sponse for pagination. Provide this to r" + + "etrieve the next page of results.J\034eyJwY" + + "WdlIjoyLCJsaW1pdCI6MzB9R\tpageToken:\265\001\222A\261" + + "\001\n\210\001*\024Search Organizations2pSearch for o" + + "rganizations in your environment using a" + + " text query that matches against names, " + + "IDs, or external IDs2$query=acme&page_si" + + "ze=30&page_token=1\"\333\001\n\033SearchOrganizatio" + + "nsResponse\022&\n\017next_page_token\030\001 \001(\tR\rnex" + + "tPageToken\022\035\n\ntotal_size\030\002 \001(\rR\ttotalSiz" + + "e\022M\n\rorganizations\030\003 \003(\0132\'.scalekit.v1.o" + + "rganizations.OrganizationR\rorganizations" + + "\022&\n\017prev_page_token\030\004 \001(\tR\rprevPageToken" + + "\"\255\002\n\031DeleteOrganizationRequest\022~\n\002id\030\001 \001" + + "(\tBl\222A`2MUnique scalekit-generated ident" + + "ifier that uniquely references an organi" + + "zationJ\017\"org_123456789\"\272H\006r\004\020\001\030 H\000R\002id\022\201" + + "\001\n\013external_id\030\002 \001(\tB^\222AE2)External ID o" + + "f the organization to deleteJ\030\"tenant_12" + + "3123123123123\"\272H\004r\002\020\001\372\322\344\223\002\t\022\007PREVIEWH\000R\n" + + "externalIdB\014\n\nidentities\"\317\004\n\031GeneratePor" + + "talLinkRequest\022N\n\002id\030\001 \001(\tB>\222A)2\017Organiz" + + "ation IDJ\026\"org_1231234233424344\"\272H\017r\n\020\001\030" + + " :\004org_\310\001\001R\002id\022(\n\003sso\030\002 \001(\010B\021\030\001\372\322\344\223\002\t\022\007P" + + "REVIEWH\000R\003sso\210\001\001\022=\n\016directory_sync\030\003 \001(\010" + + "B\021\030\001\372\322\344\223\002\t\022\007PREVIEWH\001R\rdirectorySync\210\001\001\022" + + "\335\002\n\010features\030\004 \003(\0162\".scalekit.v1.organiz" + + "ations.FeatureB\234\002\222A\230\0022\225\002Features to enab" + + "le in the admin portal link. To enable f" + + "eatures, append them as URL parameters:\n" + + "\n- Single Sign-On: ?features=sso\n- Direc" + + "tory Sync: ?features=dir_sync\n- Both fea" + + "tures: ?features=sso&features=dir_sync\n\n" + + "Example URL: https://scalekit.com/portal" + + "/lnk_123?features=ssoR\010featuresB\006\n\004_ssoB" + + "\021\n\017_directory_sync\"f\n\024GetPortalLinkReque" + + "st\022N\n\002id\030\001 \001(\tB>\222A)2\017Organization IDJ\026\"o" + + "rg_1231234233424344\"\272H\017r\n\020\001\030 :\004org_\310\001\001R\002" + + "id\"i\n\027DeletePortalLinkRequest\022N\n\002id\030\001 \001(" + + "\tB>\222A)2\017Organization IDJ\026\"org_1231234233" + + "424344\"\272H\017r\n\020\001\030 :\004org_\310\001\001R\002id\"\276\001\n\033Delete" + + "PortalLinkByIdRequest\022N\n\002id\030\001 \001(\tB>\222A)2\017" + + "Organization IDJ\026\"org_1231234233424344\"\272" + + "H\017r\n\020\001\030 :\004org_\310\001\001R\002id\022O\n\007link_id\030\002 \001(\tB6" + + "\222A!2\007Link IDJ\026\"lnk_1231234233424344\"\272H\017r" + + "\n\020\001\030 :\004lnk_\310\001\001R\006linkId\"\265\003\n\004Link\022J\n\002id\030\001 " + + "\001(\tB:\222A72\036Unique Identifier for the link" + + "J\025\"lnk_123123123123123\"R\002id\022\307\001\n\010location" + + "\030\002 \001(\tB\252\001\222A\246\0012qLocation of the link. Thi" + + "s is the URL that can be used to access " + + "the Admin portal. The link is valid for " + + "1 minuteJ1\"https://scalekit.com/portal/l" + + "nk_123123123123123\"R\010location\022\226\001\n\013expire" + + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + + "Y\222AV28Expiry time of the link. The link " + + "is valid for 1 minute.J\032\"2024-02-06T14:4" + + "8:00.000Z\"R\nexpireTime\"\226\002\n\032GeneratePorta" + + "lLinkResponse\022\367\001\n\004link\030\001 \001(\0132\037.scalekit." + + "v1.organizations.LinkB\301\001\222A\275\0012\272\001Contains " + + "the generated admin portal link details." + + " The link URL can be shared with organiz" + + "ation administrators to set up: Single S" + + "ign-On (SSO) authentication and director" + + "y synchronizationR\004link\"h\n\026GetPortalLink" + + "sResponse\022N\n\005links\030\001 \003(\0132\037.scalekit.v1.o" + + "rganizations.LinkB\027\222A\0242\022Admin Portal Lin" + + "ksR\005links\"\220\004\n!UpdateOrganizationSettings" + + "Request\022\227\001\n\002id\030\001 \001(\tB\206\001\222Aq2WUnique ident" + + "ifier of the organization to update sett" + + "ings. Must begin with \'org_\' prefixJ\026\"or" + + "g_1231234233424344\"\272H\017r\n\020\001\030 :\004org_\310\001\001R\002i" + + "d\022\320\002\n\010settings\030\002 \001(\0132/.scalekit.v1.organ" + + "izations.OrganizationSettingsB\202\002\222A\370\0012\225\001S" + + "ettings configuration to apply to the or" + + "ganization. Contains feature toggles for" + + " SSO, directory synchronization, and oth" + + "er organization capabilitiesJ^{\"features" + + "\": [{\"name\": \"sso\", \"enabled\": true}, {\"" + + "name\": \"directory_sync\", \"enabled\": fals" + + "e}]}\272H\003\310\001\001R\010settings\"\221\014\n!OrganizationSes" + + "sionPolicySettings\022\222\002\n\rpolicy_source\030\001 \001" + + "(\0162,.scalekit.v1.organizations.SessionPo" + + "licyTypeB\276\001\222A\257\0012\242\001Policy source. \'APPLIC" + + "ATION\' means the organization inherits t" + + "he application-level session policy. \'CU" + + "STOM\' means organization-specific timeou" + + "t values are active.J\010\"CUSTOM\"\272H\010\202\001\005\020\001\"\001" + + "\000R\014policySource\022\354\001\n\030absolute_session_tim" + + "eout\030\002 \001(\0132\033.google.protobuf.Int32ValueB" + + "\224\001\222A\220\0012\210\001The absolute session timeout va" + + "lue. The unit is specified by absolute_s" + + "ession_timeout_unit. Omitted when policy" + + "_source is \'environment\'.J\003360R\026absolute" + + "SessionTimeout\022\352\001\n\035absolute_session_time" + + "out_unit\030\003 \001(\0162\035.scalekit.v1.commons.Tim" + + "eUnitB\202\001\222A\1772rUnit for absolute_session_t" + + "imeout. Accepted values: \'minutes\', \'hou" + + "rs\', \'days\'. Responses always return \'mi" + + "nutes\'.J\t\"minutes\"H\000R\032absoluteSessionTim" + + "eoutUnit\210\001\001\022\323\001\n\034idle_session_timeout_ena" + + "bled\030\004 \001(\0132\032.google.protobuf.BoolValueBv" + + "\222As2kWhether idle session timeout is ena" + + "bled for this organization. Omitted when" + + " policy_source is \'environment\'.J\004trueR\031" + + "idleSessionTimeoutEnabled\022\204\002\n\024idle_sessi" + + "on_timeout\030\005 \001(\0132\033.google.protobuf.Int32" + + "ValueB\264\001\222A\260\0012\251\001The idle session timeout " + + "value. The unit is specified by idle_ses" + + "sion_timeout_unit. Omitted when idle_ses" + + "sion_timeout_enabled is false or policy_" + + "source is \'environment\'.J\00284R\022idleSessio" + + "nTimeout\022\335\001\n\031idle_session_timeout_unit\030\006" + + " \001(\0162\035.scalekit.v1.commons.TimeUnitB~\222A{" + + "2nUnit for idle_session_timeout. Accepte" + + "d values: \'minutes\', \'hours\', \'days\'. Re" + + "sponses always return \'minutes\'.J\t\"minut" + + "es\"H\001R\026idleSessionTimeoutUnit\210\001\001B \n\036_abs" + + "olute_session_timeout_unitB\034\n\032_idle_sess" + + "ion_timeout_unit\"\324\001\n#GetOrganizationSess" + + "ionPolicyRequest\022\254\001\n\017organization_id\030\001 \001" + + "(\tB\202\001\222Am2RThe unique identifier of the o" + + "rganization whose session policy is bein" + + "g requested.J\027\"org_59615193906282635\"\340A\002" + + "\272H\014r\n\020\001\030 :\004org_R\016organizationId\"\254\001\n$GetO" + + "rganizationSessionPolicyResponse\022\203\001\n\006pol" + + "icy\030\001 \001(\0132<.scalekit.v1.organizations.Or" + + "ganizationSessionPolicySettingsB-\222A*2(Th" + + "e session policy for the organization.R\006" + + "policy\"\267\014\n&UpdateOrganizationSessionPoli" + + "cyRequest\022\252\001\n\017organization_id\030\001 \001(\tB\200\001\222A" + + "k2PThe unique identifier of the organiza" + + "tion whose session policy is being updat" + + "ed.J\027\"org_59615193906282635\"\340A\002\272H\014r\n\020\001\030 " + + ":\004org_R\016organizationId\022\350\001\n\rpolicy_source" + + "\030\002 \001(\0162,.scalekit.v1.organizations.Sessi" + + "onPolicyTypeB\224\001\222A\220\0012\203\001Policy source. Sen" + + "d \'APPLICATION\' to revert to application" + + " defaults. Send \'CUSTOM\' with timeout va" + + "lues to activate a custom policy.J\010\"CUST" + + "OM\"R\014policySource\022\347\001\n\030absolute_session_t" + + "imeout\030\003 \001(\0132\033.google.protobuf.Int32Valu" + + "eB\217\001\222A\213\0012\203\001The absolute session timeout " + + "value. The unit is specified by absolute" + + "_session_timeout_unit. Omit when policy_" + + "source is APPLICATION.J\003360R\026absoluteSes" + + "sionTimeout\022\333\001\n\035absolute_session_timeout" + + "_unit\030\004 \001(\0162\035.scalekit.v1.commons.TimeUn" + + "itBt\222Aq2dUnit for absolute_session_timeo" + + "ut. Accepted values: \'MINUTES\', \'HOURS\'," + + " \'DAYS\'. Defaults to MINUTES.J\t\"MINUTES\"" + + "H\000R\032absoluteSessionTimeoutUnit\210\001\001\022\270\001\n\034id" + + "le_session_timeout_enabled\030\005 \001(\0132\032.googl" + + "e.protobuf.BoolValueB[\222AX2PWhether idle " + + "session timeout is enabled. Omit when po" + + "licy_source is APPLICATION.J\004trueR\031idleS" + + "essionTimeoutEnabled\022\337\001\n\024idle_session_ti" + + "meout\030\006 \001(\0132\033.google.protobuf.Int32Value" + + "B\217\001\222A\213\0012\204\001The idle session timeout value" + + ". The unit is specified by idle_session_" + + "timeout_unit. Omit when idle_session_tim" + + "eout_enabled is false.J\00284R\022idleSessionT" + + "imeout\022\317\001\n\031idle_session_timeout_unit\030\007 \001" + + "(\0162\035.scalekit.v1.commons.TimeUnitBp\222Am2`" + + "Unit for idle_session_timeout. Accepted " + + "values: \'MINUTES\', \'HOURS\', \'DAYS\'. Defa" + + "ults to MINUTES.J\t\"MINUTES\"H\001R\026idleSessi" + + "onTimeoutUnit\210\001\001B \n\036_absolute_session_ti" + + "meout_unitB\034\n\032_idle_session_timeout_unit" + + "\"\267\001\n\'UpdateOrganizationSessionPolicyResp" + + "onse\022\213\001\n\006policy\030\001 \001(\0132<.scalekit.v1.orga" + + "nizations.OrganizationSessionPolicySetti" + + "ngsB5\222A220The updated session policy for" + + " the organization.R\006policy\"\252\001\n\"GetApplic" + + "ationSessionPolicyRequest\022\203\001\n\017organizati" + + "on_id\030\001 \001(\tBZ\222AE2*The unique identifier " + + "of the organization.J\027\"org_5961519390628" + + "2635\"\340A\002\272H\014r\n\020\001\030 :\004org_R\016organizationId\"" + + "\261\t\n ApplicationSessionPolicySettings\022\232\001\n" + + "\030absolute_session_timeout\030\001 \001(\005B`\222A]2VAb" + + "solute session timeout value in the unit" + + " specified by absolute_session_timeout_u" + + "nit.J\003480R\026absoluteSessionTimeout\022\216\001\n\034id" + + "le_session_timeout_enabled\030\002 \001(\010BM\222AJ2AW" + + "hether idle session timeout is enabled a" + + "t the application level.J\005falseR\031idleSes" + + "sionTimeoutEnabled\022\255\001\n\024idle_session_time" + + "out\030\003 \001(\005B{\222Ax2rIdle session timeout val" + + "ue in the unit specified by idle_session" + + "_timeout_unit. Zero when idle timeout is" + + " disabled.J\00260R\022idleSessionTimeout\022~\n\023ac" + + "cess_token_expiry\030\004 \001(\005BN\222AK2FAccess tok" + + "en expiry in minutes. Custom policy valu" + + "es must exceed this.J\0015R\021accessTokenExpi" + + "ry\022\340\001\n\035absolute_session_timeout_unit\030\005 \001" + + "(\0162\035.scalekit.v1.commons.TimeUnitBy\222Av2i" + + "Unit for absolute_session_timeout. Refle" + + "cts the unit configured for the applicat" + + "ion-level session policy.J\t\"MINUTES\"H\000R\032" + + "absoluteSessionTimeoutUnit\210\001\001\022\213\002\n\031idle_s" + + "ession_timeout_unit\030\006 \001(\0162\035.scalekit.v1." + + "commons.TimeUnitB\253\001\222A\247\0012\231\001Unit for idle_" + + "session_timeout. Reflects the unit confi" + + "gured for the application-level session " + + "policy. Omitted when idle_session_timeou" + + "t_enabled is false.J\t\"MINUTES\"H\001R\026idleSe" + + "ssionTimeoutUnit\210\001\001B \n\036_absolute_session" + + "_timeout_unitB\034\n\032_idle_session_timeout_u" + + "nit\"\321\001\n#GetApplicationSessionPolicyRespo" + + "nse\022\251\001\n\022application_policy\030\001 \001(\0132;.scale" + + "kit.v1.organizations.ApplicationSessionP" + + "olicySettingsB=\222A:28The effective applic" + + "ation-level session policy settings.R\021ap" + + "plicationPolicy\"\334\002\n\"OrganizationUserMana" + + "gementSettings\022\265\002\n\021max_allowed_users\030\001 \001" + + "(\0132\033.google.protobuf.Int32ValueB\353\001\222A\347\0012\337" + + "\001Maximum number of users allowed in the " + + "organization. When nil (not set), there " + + "feature is not enabled. When explicitly " + + "set to zero, it also means no limit. Whe" + + "n set to a positive integer, it enforces" + + " the maximum user limit.J\003100R\017maxAllowe", + "dUsers\"\256\010\n\033OrganizationSessionSettings\022\376" + + "\001\n\030absolute_session_timeout\030\001 \001(\0132\033.goog" + + "le.protobuf.Int32ValueB\246\001\222A\242\0012\230\001The maxi" + + "mum duration in seconds that a session c" + + "an remain active, regardless of activity" + + ". After this time, the user will be requ" + + "ired to re-authenticate.J\00586400R\026absolut" + + "eSessionTimeout\022\324\001\n\024idle_session_timeout" + + "\030\003 \001(\0132\033.google.protobuf.Int32ValueB\204\001\222A" + + "\200\0012xThe duration in seconds that a sessi" + + "on can remain idle before it is automati" + + "cally terminated. Activity resets the ti" + + "mer.J\0041800R\022idleSessionTimeout\022\216\002\n\034idle_" + + "session_timeout_enabled\030\005 \001(\0132\032.google.p" + + "rotobuf.BoolValueB\260\001\222A\254\0012\243\001Whether idle " + + "session timeout is enabled for this orga" + + "nization. When enabled, sessions expire " + + "after the idle timeout duration regardle" + + "ss of the environment setting.J\004trueR\031id" + + "leSessionTimeoutEnabled\022\347\001\n\rpolicy_sourc" + + "e\030\006 \001(\tB\301\001\222A\275\0012\260\001Policy source for this " + + "organization. APPLICATION means the orga" + + "nization inherits application-level sess" + + "ion policy. CUSTOM means organization-sp" + + "ecific timeout values are active.J\010\"CUST" + + "OM\"R\014policySourceJ\004\010\002\020\003J\004\010\004\020\005R\032session_m" + + "anagement_enabledR\024idle_session_enabled\"" + + "\216\004\n\024OrganizationSettings\022\244\002\n\010features\030\001 " + + "\003(\01326.scalekit.v1.organizations.Organiza" + + "tionSettingsFeatureB\317\001\222A\313\0012wList of feat" + + "ure toggles that control organization ca" + + "pabilities such as SSO authentication an" + + "d directory synchronizationJP[{\"name\": \"" + + "sso\", \"enabled\": true}, {\"name\": \"direct" + + "ory_sync\", \"enabled\": false}]R\010features:" + + "\316\001\222A\312\001\nh*\025Organization Settings2OConfigu" + + "ration options that control organization" + + "-level features and capabilities2^{\"feat" + + "ures\": [{\"name\": \"sso\", \"enabled\": true}" + + ", {\"name\": \"directory_sync\", \"enabled\": " + + "false}]}\"\216\004\n\033OrganizationSettingsFeature" + + "\022\201\002\n\004name\030\001 \001(\tB\354\001\222A\350\0012\336\001Feature identif" + + "ier. Supported values include: \"sso\" (Si" + + "ngle Sign-On), \"directory_sync\" (Directo" + + "ry Synchronization), \"domain_verificatio" + + "n\" (Domain Verification), \"session_polic" + + "y\" (Organization-level session policy ov" + + "erride)J\005\"sso\"R\004name\022t\n\007enabled\030\002 \001(\010BZ\222" + + "AW2OWhether the feature is enabled (true" + + ") or disabled (false) for this organizat" + + "ionJ\004trueR\007enabled:u\222Ar\np*\033Organization " + + "Feature Toggle2@Controls the activation " + + "state of a specific organization feature" + + "\322\001\004name\322\001\007enabled\"\226\002\n#UpsertUserManageme" + + "ntSettingsRequest\022W\n\017organization_id\030\001 \001" + + "(\tB.\222A\0312\027ID of the organization.\272H\017r\n\020\001\030" + + " :\004org_\310\001\001R\016organizationId\022\225\001\n\010settings\030" + + "\002 \001(\0132=.scalekit.v1.organizations.Organi" + + "zationUserManagementSettingsB:\222A12/The n" + + "ew values for the setting fields to patc" + + "h.\272H\003\310\001\001R\010settings\"\234\001\n$UpsertUserManagem" + + "entSettingsResponse\022t\n\010settings\030\001 \001(\0132=." + + "scalekit.v1.organizations.OrganizationUs" + + "erManagementSettingsB\031\222A\0262\024The updated s" + + "etting.R\010settings\"\207\001\n,GetOrganizationUse" + + "rManagementSettingsRequest\022W\n\017organizati" + + "on_id\030\001 \001(\tB.\222A\0312\027ID of the organization" + + ".\272H\017r\n\020\001\030 :\004org_\310\001\001R\016organizationId\"\257\001\n-" + + "GetOrganizationUserManagementSettingsRes" + + "ponse\022~\n\010settings\030\001 \001(\0132=.scalekit.v1.or" + + "ganizations.OrganizationUserManagementSe" + + "ttingsB#\222A 2\036List of organization settin" + + "gs.R\010settings*R\n\007Feature\022\027\n\023FEATURE_UNSP" + + "ECIFIED\020\000\022\023\n\013UNSPECIFIED\020\000\032\002\010\001\022\014\n\010dir_sy" + + "nc\020\001\022\007\n\003sso\020\002\032\002\020\001*U\n\021SessionPolicyType\022#" + + "\n\037SESSION_POLICY_TYPE_UNSPECIFIED\020\000\022\017\n\013A" + + "PPLICATION\020\001\022\n\n\006CUSTOM\020\0022\252P\n\023Organizatio" + + "nService\022\210\004\n\022CreateOrganization\0224.scalek" + + "it.v1.organizations.CreateOrganizationRe" + + "quest\0325.scalekit.v1.organizations.Create" + + "OrganizationResponse\"\204\003\222A\317\002\n\rOrganizatio" + + "ns\022\026Create an organization\032\217\001Creates a n" + + "ew organization in your environment. Use" + + " this endpoint to add a new tenant that " + + "can be configured with various settings " + + "and metadataJ\223\001\n\003201\022\213\001\nNReturns the new" + + "ly created organization with its unique " + + "identifier and settings\0229\n7\0325.scalekit.v" + + "1.organizations.CreateOrganizationRespon" + + "se\202\265\030\002\030D\202\323\344\223\002%\"\025/api/v1/organizations:\014o" + + "rganization\022\277\004\n\022UpdateOrganization\0224.sca" + + "lekit.v1.organizations.UpdateOrganizatio" + + "nRequest\0325.scalekit.v1.organizations.Upd" + + "ateOrganizationResponse\"\273\003\222A\354\002\n\rOrganiza" + + "tions\022\033Update organization details\032\241\001Upd" + + "ates an organization\'s display name, ext" + + "ernal ID, or metadata. Requires a valid " + + "organization identifier. Region code can" + + "not be modified through this endpoint.J\231" + + "\001\n\003200\022\221\001\nTReturns the updated organizat" + + "ion with all current details reflected i" + + "n the response.\0229\n7\0325.scalekit.v1.organi" + + "zations.UpdateOrganizationResponse\202\265\030\027\n\023" + + "organizations_write\030T\202\323\344\223\002*2\032/api/v1/org" + + "anizations/{id}:\014organization\022\336\003\n\017GetOrg" + + "anization\0221.scalekit.v1.organizations.Ge" + + "tOrganizationRequest\0322.scalekit.v1.organ" + + "izations.GetOrganizationResponse\"\343\002\222A\243\002\n" + + "\rOrganizations\022\030Get organization details" + + "\032]Retrieves organization details by Scal" + + "ekit ID, including name, region, metadat" + + "a, and settingsJ\230\001\n\003200\022\220\001\nVReturns the " + + "complete organization object with ID, di" + + "splay name, settings, and metadata\0226\n4\0322" + ".scalekit.v1.organizations.GetOrganizati" + - "onResponse\"\343\002\222A\243\002\n\rOrganizations\022\030Get or" + - "ganization details\032]Retrieves organizati" + - "on details by Scalekit ID, including nam" + - "e, region, metadata, and settingsJ\230\001\n\00320" + - "0\022\220\001\nVReturns the complete organization " + - "object with ID, display name, settings, " + - "and metadata\0226\n4\0322.scalekit.v1.organizat" + - "ions.GetOrganizationResponse\202\265\030\026\n\022organi" + - "zations_read\030t\202\323\344\223\002\034\022\032/api/v1/organizati" + - "ons/{id}\022\302\t\n\020ListOrganization\0223.scalekit" + - ".v1.organizations.ListOrganizationsReque" + - "st\0324.scalekit.v1.organizations.ListOrgan" + - "izationsResponse\"\302\010\222A\233\010\n\rOrganizations\022\022" + - "List organizations\032\240\001Retrieve a paginate" + - "d list of organizations within your envi" + - "ronment. The response includes a `page_t" + - "oken` that can be used to access subsequ" + - "ent pages of results.Js\n\003200\022l\n0Successf" + - "ully retrieved the list of organizations" + - "\0228\n6\0324.scalekit.v1.organizations.ListOrg" + - "anizationsResponseJ\033\n\003400\022\024\n\022Invalid pag" + - "e tokenj\300\005\n\rx-codeSamples\022\256\0052\253\005\n\227\001*\224\001\n\026\n" + - "\005label\022\r\032\013Node.js SDK\n\024\n\004lang\022\014\032\njavascr" + - "ipt\nd\n\006source\022Z\032Xconst organizations = a" + - "wait scalekit.organization.listOrganizat" + - "ion({\n pageSize: 10,\n});\n\300\001*\275\001\n\025\n\005label" + - "\022\014\032\nPython SDK\n\020\n\004lang\022\010\032\006python\n\221\001\n\006sou" + - "rce\022\206\001\032\203\001options = ListOrganizationOptio" + - "ns()\noptions.page_size = 10\n\norganizatio" + - "ns = sc.organization.list_organizations(" + - "\n options=options\n)\n\257\001*\254\001\n\021\n\005label\022\010\032\006G" + - "o SDK\n\014\n\004lang\022\004\032\002go\n\210\001\n\006source\022~\032|organi" + - "zations, err := sc.Organization.ListOrga" + - "nizations(\n ctx,\n &scalekit.ListOrgani" + - "zationOptions{\n PageSize: 10,\n }\n)\n\231" + - "\001*\226\001\n\023\n\005label\022\n\032\010Java SDK\n\016\n\004lang\022\006\032\004jav" + - "a\no\n\006source\022e\032cListOrganizationsResponse" + - " organizations = scalekitClient.organiza" + - "tions().listOrganizations(10, \"\");\202\265\030\002\030D" + - "\202\323\344\223\002\027\022\025/api/v1/organizations\022\361\004\n\022Search" + - "Organization\0225.scalekit.v1.organizations" + - ".SearchOrganizationsRequest\0326.scalekit.v" + - "1.organizations.SearchOrganizationsRespo" + - "nse\"\353\003\222A\256\003\n\rOrganizations\022\024Search organi" + - "zations\032\324\001Searches for organizations in " + - "your environment using a query string. T" + - "he query matches against organization na" + - "me, ID, or external ID. Returns multiple" + - " results when more than one organization" + - " matches the criteria.J\257\001\n\003200\022\247\001\niRetur" + - "ns a list of matching organizations and " + - "a page token for pagination if there are" + - " additional results.\022:\n8\0326.scalekit.v1.o" + - "rganizations.SearchOrganizationsResponse" + - "\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\036\022\034/api/v1/org" + - "anizations:search\022\317\002\n\022DeleteOrganization" + - "\0224.scalekit.v1.organizations.DeleteOrgan" + - "izationRequest\032\026.google.protobuf.Empty\"\352" + - "\001\222A\276\001\n\rOrganizations\022\026Delete an organiza" + - "tion\032PRemove an existing organization fr" + - "om the environment using its unique iden" + - "tifierJC\n\003200\022<\n:Organization successful" + - "ly deleted and no longer accessible\202\265\030\002\030" + - "D\202\323\344\223\002\034*\032/api/v1/organizations/{id}\022\342\004\n\022" + - "GeneratePortalLink\0224.scalekit.v1.organiz" + - "ations.GeneratePortalLinkRequest\0325.scale" + - "kit.v1.organizations.GeneratePortalLinkR" + - "esponse\"\336\003\222A\245\003\n\rOrganizations\022\032Generate " + - "admin portal link\032\325\001Creates a single use" + - " Admin Portal URL valid for 1 minute. On" + - "ce the generated admin portal URL is acc" + - "essed or rendered, a temporary session o" + - "f 6 hours is created to allow the admin " + - "to update SSO/SCIM configuration.J\237\001\n\00320" + - "0\022\227\001\nZAdmin Portal link generated succes" + - "sfully. Returns the portal URL and expir" + - "ation timestamp.\0229\n7\0325.scalekit.v1.organ" + - "izations.GeneratePortalLinkResponse\202\265\030\002\030" + - "D\202\323\344\223\002)\032\'/api/v1/organizations/{id}/port" + - "al_links\022\240\002\n\020DeletePortalLink\0222.scalekit" + - ".v1.organizations.DeletePortalLinkReques" + - "t\032\026.google.protobuf.Empty\"\277\001\222Ax\n\014Admin P" + - "ortal\022\022Delete portal link\032)Revokes and d" + - "eletes an Admin portal link.J)\n\003200\022\"\n P" + - "ortal link deleted successfully\202\265\030\002\030@\372\322\344" + - "\223\002\t\022\007PREVIEW\202\323\344\223\002)*\'/api/v1/organization" + - "s/{id}/portal_links\022\237\002\n\024DeletePortalLink" + - "ByID\0226.scalekit.v1.organizations.DeleteP" + - "ortalLinkByIdRequest\032\026.google.protobuf.E" + - "mpty\"\266\001\222Ae\n\014Admin Portal\022\030Delete admin p" + - "ortal link\032)Revokes and deletes an Admin" + - " portal link.J\020\n\003200\022\t\n\007Success\202\265\030\002\030D\372\322\344" + - "\223\002\t\022\007PREVIEW\202\323\344\223\0023*1/api/v1/organization" + - "s/{id}/portal_links/{link_id}\022\210\003\n\016GetPor" + - "talLinks\022/.scalekit.v1.organizations.Get" + - "PortalLinkRequest\0321.scalekit.v1.organiza" + - "tions.GetPortalLinksResponse\"\221\002\222A\311\001\n\014Adm" + - "in Portal\022\017Get portal link\032_Returns the " + - "Admin portal link if it exists. Use Gene" + - "rate Portal link to create and fetch a l" + - "inkJG\n\003200\022@\n\007Success\0225\n3\0321.scalekit.v1." + - "organizations.GetPortalLinksResponse\202\265\030\002" + - "\030@\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002)\022\'/api/v1/organiz" + - "ations/{id}/portal_links\022\372\006\n\032UpdateOrgan" + - "izationSettings\022<.scalekit.v1.organizati" + - "ons.UpdateOrganizationSettingsRequest\0322." + - "scalekit.v1.organizations.GetOrganizatio" + - "nResponse\"\351\005\222A\252\005\n\rOrganizations\022\034Toggle " + - "organization settings\032\323\001Updates configur" + - "ation settings for an organization. Supp" + - "orts modifying SSO configuration, direct" + - "ory synchronization settings, and sessio" + - "n parameters. Requires organization ID a" + - "nd the specific settings to update.J\343\001\n\003" + - "200\022\333\001\n\240\001Returns the complete organizati" + - "on object with updated settings applied." + - " Contains all organization details inclu" + - "ding ID, display name, and the modified " + - "settings.\0226\n4\0322.scalekit.v1.organization" + - "s.GetOrganizationResponseJp\n\003400\022i\ngInva" + - "lid request - occurs when the settings p" + - "ayload contains invalid values or unsupp" + - "orted configurationJM\n\003404\022F\nDOrganizati" + - "on not found - the specified organizatio" + - "n ID doesn\'t exist\202\265\030\002\030D\202\323\344\223\002/2#/api/v1/" + - "organizations/{id}/settings:\010settings\022\332\005" + - "\n!CreateOrganizationSessionSettings\022C.sc" + - "alekit.v1.organizations.CreateOrganizati" + - "onSessionSettingsRequest\032D.scalekit.v1.o" + - "rganizations.CreateOrganizationSessionSe" + - "ttingsResponse\"\251\004\222A\335\003\n\rOrganizations\022$Cr" + - "eate organization session settings\032\371\001Def" + - "ines session timeout policies for an org" + - "anization, including absolute and idle t" + - "imeout durations. This endpoint is used " + - "to configure session lifetimes and enhan" + - "ce security by automatically logging out" + - " users after a specified period of inact" + - "ivity.J\251\001\n\003201\022\241\001\nUSession settings crea" + - "ted successfully. Returns the newly conf" + - "igured session policies.\022H\nF\032D.scalekit." + - "v1.organizations.CreateOrganizationSessi" + - "onSettingsResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202" + - "\323\344\223\002-\"+/api/v1/organizations/{id}/sessio" + - "n-settings\022\265\004\n\036GetOrganizationSessionSet" + - "tings\022@.scalekit.v1.organizations.GetOrg" + - "anizationSessionSettingsRequest\032A.scalek" + - "it.v1.organizations.GetOrganizationSessi" + - "onSettingsResponse\"\215\003\222A\301\002\n\rOrganizations" + - "\022!Get organization session settings\032\204\001Re" + - "trieves the currently configured session" + - " timeout policies for a specific organiz" + - "ation, including absolute and idle timeo" + - "ut values.J\205\001\n\003200\022~\n5Successfully retri" + - "eved organization session settings.\022E\nC\032" + - "A.scalekit.v1.organizations.GetOrganizat" + - "ionSessionSettingsResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007" + - "PREVIEW\202\323\344\223\002-\022+/api/v1/organizations/{id" + - "}/session-settings\022\216\005\n!UpdateOrganizatio" + - "nSessionSettings\022C.scalekit.v1.organizat" + - "ions.UpdateOrganizationSessionSettingsRe" + - "quest\032D.scalekit.v1.organizations.Update" + - "OrganizationSessionSettingsResponse\"\335\003\222A" + - "\377\002\n\rOrganizations\022$Update organization s" + - "ession settings\032\243\001Modifies the session t" + - "imeout policies for an organization. Use" + - " this to adjust the absolute and idle se" + - "ssion timeout durations to enforce diffe" + - "rent security levels.J\241\001\n\003200\022\231\001\nMSessio" + - "n settings updated successfully. Returns" + - " the modified session policies.\022H\nF\032D.sc" + - "alekit.v1.organizations.UpdateOrganizati" + - "onSessionSettingsResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007P" + - "REVIEW\202\323\344\223\002?2+/api/v1/organizations/{id}" + - "/session-settings:\020session_settings\022\314\003\n!" + - "DeleteOrganizationSessionSettings\022C.scal" + - "ekit.v1.organizations.DeleteOrganization" + - "SessionSettingsRequest\032\026.google.protobuf" + - ".Empty\"\311\002\222A\375\001\n\rOrganizations\022$Delete org" + - "anization session settings\032\207\001Resets an o" + - "rganization\'s session timeout policies t" + - "o the default settings, removing any cus" + - "tom absolute or idle timeout configurati" + - "ons.J<\n\003200\0225\n3Organization session sett" + - "ings deleted successfully.\202\265\030\002\030D\372\322\344\223\002\t\022\007" + - "PREVIEW\202\323\344\223\002-*+/api/v1/organizations/{id" + - "}/session-settings\022\325\003\n\034UpsertUserManagem" + - "entSettings\022>.scalekit.v1.organizations." + - "UpsertUserManagementSettingsRequest\032?.sc" + - "alekit.v1.organizations.UpsertUserManage" + - "mentSettingsResponse\"\263\002\222A\337\001\n\rOrganizatio" + - "ns\022 Upsert organization user setting\0323Up" + - "sert user management settings for an org" + - "anizationJw\n\003200\022p\n)Returns the updated " + - "organization setting.\022C\nA\032?.scalekit.v1." + + "onResponse\202\265\030\026\n\022organizations_read\030t\202\323\344\223" + + "\002\034\022\032/api/v1/organizations/{id}\022\323\005\n\033GetOr" + + "ganizationByExternalId\0221.scalekit.v1.org" + + "anizations.GetOrganizationRequest\0322.scal" + + "ekit.v1.organizations.GetOrganizationRes" + + "ponse\"\314\004\222A\372\003\n\rOrganizations\022\'Get organiz" + + "ation details by external Id\032]Retrieves " + + "organization details by External ID, inc" + + "luding name, region, metadata, and setti" + + "ngsJ\244\001\n\003200\022\234\001\nbReturns the complete org" + + "anization object with ID, display name, " + + "settings, external ID and metadata\0226\n4\0322" + + ".scalekit.v1.organizations.GetOrganizati" + + "onResponseJa\n\003400\022Z\nXInvalid request - e" + + "xternal ID is empty or the caller\'s orga" + + "nization claim does not matchJW\n\003404\022P\nN" + + "Organization not found - no organization" + + " exists with the specified external ID\202\265" + + "\030\026\n\022organizations_read\030\004\202\323\344\223\002.\022,/api/v1/" + + "organizations:external/{external_id}\022\302\t\n" + + "\020ListOrganization\0223.scalekit.v1.organiza" + + "tions.ListOrganizationsRequest\0324.scaleki" + + "t.v1.organizations.ListOrganizationsResp" + + "onse\"\302\010\222A\233\010\n\rOrganizations\022\022List organiz" + + "ations\032\240\001Retrieve a paginated list of or" + + "ganizations within your environment. The" + + " response includes a `page_token` that c" + + "an be used to access subsequent pages of" + + " results.Js\n\003200\022l\n0Successfully retriev" + + "ed the list of organizations\0228\n6\0324.scale" + + "kit.v1.organizations.ListOrganizationsRe" + + "sponseJ\033\n\003400\022\024\n\022Invalid page tokenj\300\005\n\r" + + "x-codeSamples\022\256\0052\253\005\n\227\001*\224\001\n\026\n\005label\022\r\032\013No" + + "de.js SDK\n\024\n\004lang\022\014\032\njavascript\nd\n\006sourc" + + "e\022Z\032Xconst organizations = await scaleki" + + "t.organization.listOrganization({\n page" + + "Size: 10,\n});\n\300\001*\275\001\n\025\n\005label\022\014\032\nPython S" + + "DK\n\020\n\004lang\022\010\032\006python\n\221\001\n\006source\022\206\001\032\203\001opt" + + "ions = ListOrganizationOptions()\noptions" + + ".page_size = 10\n\norganizations = sc.orga" + + "nization.list_organizations(\n options=o" + + "ptions\n)\n\257\001*\254\001\n\021\n\005label\022\010\032\006Go SDK\n\014\n\004lan" + + "g\022\004\032\002go\n\210\001\n\006source\022~\032|organizations, err" + + " := sc.Organization.ListOrganizations(\n " + + " ctx,\n &scalekit.ListOrganizationOption" + + "s{\n PageSize: 10,\n }\n)\n\231\001*\226\001\n\023\n\005labe" + + "l\022\n\032\010Java SDK\n\016\n\004lang\022\006\032\004java\no\n\006source\022" + + "e\032cListOrganizationsResponse organizatio" + + "ns = scalekitClient.organizations().list" + + "Organizations(10, \"\");\202\265\030\002\030D\202\323\344\223\002\027\022\025/api" + + "/v1/organizations\022\361\004\n\022SearchOrganization" + + "\0225.scalekit.v1.organizations.SearchOrgan" + + "izationsRequest\0326.scalekit.v1.organizati" + + "ons.SearchOrganizationsResponse\"\353\003\222A\256\003\n\r" + + "Organizations\022\024Search organizations\032\324\001Se" + + "arches for organizations in your environ" + + "ment using a query string. The query mat" + + "ches against organization name, ID, or e" + + "xternal ID. Returns multiple results whe" + + "n more than one organization matches the" + + " criteria.J\257\001\n\003200\022\247\001\niReturns a list of" + + " matching organizations and a page token" + + " for pagination if there are additional " + + "results.\022:\n8\0326.scalekit.v1.organizations" + + ".SearchOrganizationsResponse\202\265\030\002\030D\372\322\344\223\002\t" + + "\022\007PREVIEW\202\323\344\223\002\036\022\034/api/v1/organizations:s" + + "earch\022\317\002\n\022DeleteOrganization\0224.scalekit." + + "v1.organizations.DeleteOrganizationReque" + + "st\032\026.google.protobuf.Empty\"\352\001\222A\276\001\n\rOrgan" + + "izations\022\026Delete an organization\032PRemove" + + " an existing organization from the envir" + + "onment using its unique identifierJC\n\00320" + + "0\022<\n:Organization successfully deleted a" + + "nd no longer accessible\202\265\030\002\030D\202\323\344\223\002\034*\032/ap" + + "i/v1/organizations/{id}\022\342\004\n\022GeneratePort" + + "alLink\0224.scalekit.v1.organizations.Gener" + + "atePortalLinkRequest\0325.scalekit.v1.organ" + + "izations.GeneratePortalLinkResponse\"\336\003\222A" + + "\245\003\n\rOrganizations\022\032Generate admin portal" + + " link\032\325\001Creates a single use Admin Porta" + + "l URL valid for 1 minute. Once the gener" + + "ated admin portal URL is accessed or ren" + + "dered, a temporary session of 6 hours is" + + " created to allow the admin to update SS" + + "O/SCIM configuration.J\237\001\n\003200\022\227\001\nZAdmin " + + "Portal link generated successfully. Retu" + + "rns the portal URL and expiration timest" + + "amp.\0229\n7\0325.scalekit.v1.organizations.Gen" + + "eratePortalLinkResponse\202\265\030\002\030D\202\323\344\223\002)\032\'/ap" + + "i/v1/organizations/{id}/portal_links\022\240\002\n" + + "\020DeletePortalLink\0222.scalekit.v1.organiza" + + "tions.DeletePortalLinkRequest\032\026.google.p" + + "rotobuf.Empty\"\277\001\222Ax\n\014Admin Portal\022\022Delet" + + "e portal link\032)Revokes and deletes an Ad" + + "min portal link.J)\n\003200\022\"\n Portal link d" + + "eleted successfully\202\265\030\002\030@\372\322\344\223\002\t\022\007PREVIEW" + + "\202\323\344\223\002)*\'/api/v1/organizations/{id}/porta" + + "l_links\022\237\002\n\024DeletePortalLinkByID\0226.scale" + + "kit.v1.organizations.DeletePortalLinkByI" + + "dRequest\032\026.google.protobuf.Empty\"\266\001\222Ae\n\014" + + "Admin Portal\022\030Delete admin portal link\032)" + + "Revokes and deletes an Admin portal link" + + ".J\020\n\003200\022\t\n\007Success\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW" + + "\202\323\344\223\0023*1/api/v1/organizations/{id}/porta" + + "l_links/{link_id}\022\210\003\n\016GetPortalLinks\022/.s" + + "calekit.v1.organizations.GetPortalLinkRe" + + "quest\0321.scalekit.v1.organizations.GetPor" + + "talLinksResponse\"\221\002\222A\311\001\n\014Admin Portal\022\017G" + + "et portal link\032_Returns the Admin portal" + + " link if it exists. Use Generate Portal " + + "link to create and fetch a linkJG\n\003200\022@" + + "\n\007Success\0225\n3\0321.scalekit.v1.organization" + + "s.GetPortalLinksResponse\202\265\030\002\030@\372\322\344\223\002\t\022\007PR" + + "EVIEW\202\323\344\223\002)\022\'/api/v1/organizations/{id}/" + + "portal_links\022\372\006\n\032UpdateOrganizationSetti" + + "ngs\022<.scalekit.v1.organizations.UpdateOr" + + "ganizationSettingsRequest\0322.scalekit.v1." + + "organizations.GetOrganizationResponse\"\351\005" + + "\222A\252\005\n\rOrganizations\022\034Toggle organization" + + " settings\032\323\001Updates configuration settin" + + "gs for an organization. Supports modifyi" + + "ng SSO configuration, directory synchron" + + "ization settings, and session parameters" + + ". Requires organization ID and the speci" + + "fic settings to update.J\343\001\n\003200\022\333\001\n\240\001Ret" + + "urns the complete organization object wi" + + "th updated settings applied. Contains al" + + "l organization details including ID, dis" + + "play name, and the modified settings.\0226\n" + + "4\0322.scalekit.v1.organizations.GetOrganiz" + + "ationResponseJp\n\003400\022i\ngInvalid request " + + "- occurs when the settings payload conta" + + "ins invalid values or unsupported config" + + "urationJM\n\003404\022F\nDOrganization not found" + + " - the specified organization ID doesn\'t" + + " exist\202\265\030\002\030D\202\323\344\223\002/2#/api/v1/organization" + + "s/{id}/settings:\010settings\022\320\005\n\037UpdateOrga" + + "nizationSessionPolicy\022A.scalekit.v1.orga" + + "nizations.UpdateOrganizationSessionPolic" + + "yRequest\032B.scalekit.v1.organizations.Upd" + + "ateOrganizationSessionPolicyResponse\"\245\004\222" + + "A\274\003\n\rOrganizations\022\"Update organization " + + "session policy\032\355\001Sets a custom session p" + + "olicy for an organization or reverts to " + + "application-level settings. Send session" + + "_policy=\'APPLICATION\' to revert to appli" + + "cation defaults. Send session_policy=\'CU" + + "STOM\' with timeout values to activate a " + + "custom policy.Ju\n\003200\022n\n$Session policy " + + "updated successfully.\022F\nD\032B.scalekit.v1." + + "organizations.UpdateOrganizationSessionP" + + "olicyResponseJ \n\003404\022\031\n\027Organization not" + + " found.\202\265\030 \n\034organizations_sessions_writ" + + "e\030T\202\323\344\223\002;26/api/v1/organizations/{organi" + + "zation_id}/session-policy:\001*\022\271\005\n\034GetOrga" + + "nizationSessionPolicy\022>.scalekit.v1.orga" + + "nizations.GetOrganizationSessionPolicyRe" + + "quest\032?.scalekit.v1.organizations.GetOrg" + + "anizationSessionPolicyResponse\"\227\004\222A\262\003\n\rO" + + "rganizations\022\037Get organization session p" + + "olicy\032\347\001Retrieves the session policy for" + + " an organization. Returns session_policy" + + "=\'APPLICATION\' if the organization inher" + + "its the application-level defaults, or s" + + "ession_policy=\'CUSTOM\' with the configur" + + "ed values if a custom policy is active.J" + + "t\n\003200\022m\n&Session policy retrieved succe" + + "ssfully.\022C\nA\032?.scalekit.v1.organizations" + + ".GetOrganizationSessionPolicyResponseJ \n" + + "\003404\022\031\n\027Organization not found.\202\265\030\037\n\033org" + + "anizations_sessions_read\030T\202\323\344\223\0028\0226/api/v" + + "1/organizations/{organization_id}/sessio" + + "n-policy\022\325\003\n\034UpsertUserManagementSetting" + + "s\022>.scalekit.v1.organizations.UpsertUser" + + "ManagementSettingsRequest\032?.scalekit.v1." + "organizations.UpsertUserManagementSettin" + - "gsResponse\202\265\030\002\030d\202\323\344\223\002D2?/api/v1/organiza" + - "tions/{organization_id}/settings/userman" + - "agement:\001*\022\237\004\n$GetOrganizationUserManage" + - "mentSetting\022G.scalekit.v1.organizations." + - "GetOrganizationUserManagementSettingsReq" + - "uest\032H.scalekit.v1.organizations.GetOrga" + - "nizationUserManagementSettingsResponse\"\343" + - "\002\222A\203\002\n\rOrganizations\022(Get organization u" + - "ser management setting\032CRetrieves the us" + - "er management settings for a specific or" + - "ganization.J\202\001\n\003200\022{\n+Returns the reque" + - "sted organization setting.\022L\nJ\032H.scaleki" + - "t.v1.organizations.GetOrganizationUserMa" + - "nagementSettingsResponse\202\265\030\002\030d\372\322\344\223\002\t\022\007PR" + - "EVIEW\202\323\344\223\002A\022?/api/v1/organizations/{orga" + - "nization_id}/settings/usermanagement\032X\222A" + - "U\n\rOrganizations\022D{{import \"proto/scalek" + - "it/v1/organizations/organization_details" + - ".md\"}}B\360(\n+com.scalekit.grpc.scalekit.v1" + - ".organizationsB\022OrganizationsProtoP\001Z7gi" + - "thub.com/scalekit-inc/scalekit/pkg/grpc/" + - "organizations\242\002\003SVO\252\002\031Scalekit.V1.Organi" + - "zations\312\002\031Scalekit\\V1\\Organizations\342\002%Sc" + - "alekit\\V1\\Organizations\\GPBMetadata\352\002\033Sc" + - "alekit::V1::Organizations\222A\354&\022\222\"\n\rScalek" + - "it APIs\022\203!# Introduction\n\nThe Scalekit A" + - "PI is a RESTful API that enables you to " + - "manage organizations, users, and authent" + - "ication settings. All requests must use " + - "HTTPS.\nAll API requests use the followin" + - "g base URLs:\n\n```\nhttps://{environment}." + - "scalekit.dev (Development)\nhttps://{envi" + - "ronment}.scalekit.com (Production)\nhttps" + - "://auth.example.com (Custom domain)\n```\n" + - "\nScalekit operates two separate environm" + - "ents: Development and Production. Resour" + - "ces cannot be moved between environments" + - ".\n\n# Authentication\n\nThe Scalekit API us" + - "es OAuth 2.0 Client Credentials for auth" + - "entication.\n\nCopy your API credentials f" + - "rom the Scalekit dashboard\'s API Config " + - "section and set them as environment vari" + - "ables.\n\n```sh\nSCALEKIT_ENVIRONMENT_URL=\'" + - "\'\nSCALEKIT_CLIENT_" + - "ID=\'\'\nSCALEKIT_CL" + - "IENT_SECRET=\'" + - "\'\n```\n\nGetting an access token\n\n1. Get y" + - "our credentials from the [Scalekit Dashb" + - "oard](https://app.scalekit.com)\n2. Reque" + - "st an access token:\n\n```sh\ncurl https://" + - "{SCALEKIT_ENVIRONMENT_URL}/oauth/token \\" + - "\n -X POST \\\n -H \'Content-Type: applica" + - "tion/x-www-form-urlencoded\' \\\n -d \'clie" + - "nt_id={client_id}\' \\\n -d \'client_secret" + - "={client_secret}\' \\\n -d \'grant_type=cli" + - "ent_credentials\'\n```\n\n3. Use the access " + - "token in API requests:\n\n```sh\ncurl https" + - "://{SCALEKIT_ENVIRONMENT_URL}/api/v1/org" + - "anizations \\\n -H \'Content-Type: applica" + - "tion/json\' \\\n -H \'Authorization: Bearer" + - " {access_token}\'\n```\n\nThe response inclu" + - "des an access token:\n\n```json\n{\n\t\"access" + - "_token\": \"eyJhbGciOiJSUzI1NiIsImtpZCI6In" + - "Nua181Ok4OTEyMjU2NiIsInR5cCI6IkpXVCJ9..." + - "\",\n\t\"token_type\": \"Bearer\",\n\t\"expires_in" + - "\": 86399,\n\t\"scope\": \"openid\"\n}\n```\n\n# SD" + - "Ks\n\nScalekit provides official SDKs for " + - "multiple programming languages. Check th" + - "e changelog at GitHub repositories for t" + - "he latest updates.\n\n### Node.js\n\n```sh\nn" + - "pm install @scalekit-sdk/node\n```\n\nCreat" + - "e a new Scalekit client instance after i" + - "nitializing the environment variables\n\n`" + - "``js\nimport { Scalekit } from \"@scalekit" + - "-sdk/node\";\n\nexport let scalekit = new S" + - "calekit(\n\tprocess.env.SCALEKIT_ENVIRONME" + - "NT_URL,\n\tprocess.env.SCALEKIT_CLIENT_ID," + - "\n\tprocess.env.SCALEKIT_CLIENT_SECRET\n);\n" + - "```\n\n[See the Node SDK changelog](https:" + - "//github.com/scalekit-inc/scalekit-sdk-n" + - "ode/releases)\n\n### Python\n\n```sh\npip ins" + - "tall scalekit-sdk-python\n```\n\nCreate a n" + - "ew Scalekit client instance after initia" + - "lizing the environment variables.\n\n```py" + - "\nfrom scalekit import ScalekitClient\nimp" + - "ort os\n\nscalekit_client = ScalekitClient" + - "(\n os.environ.get(\'SCALEKIT_ENVIRONME" + - "NT_URL\'),\n os.environ.get(\'SCALEKIT_C" + - "LIENT_ID\'),\n os.environ.get(\'SCALEKIT" + - "_CLIENT_SECRET\')\n)\n```\n\n[See the Python " + - "SDK changelog](https://github.com/scalek" + - "it-inc/scalekit-sdk-python/releases)\n\n##" + - "# Go\n\n```sh\ngo get -u github.com/scaleki" + - "t-inc/scalekit-sdk-go\n```\n\nCreate a new " + - "Scalekit client instance after initializ" + - "ing the environment variables.\n\n```go\npa" + - "ckage main\n\nimport (\n \"os\"\n \"githu" + - "b.com/scalekit-inc/scalekit-sdk-go\"\n)\n\ns" + - "calekitClient := scalekit.NewScalekitCli" + - "ent(\n os.Getenv(\"SCALEKIT_ENVIRONMENT" + - "_URL\"),\n os.Getenv(\"SCALEKIT_CLIENT_I" + - "D\"),\n os.Getenv(\"SCALEKIT_CLIENT_SECR" + - "ET\"),\n)\n```\n\n[See the Go SDK changelog](" + - "https://github.com/scalekit-inc/scalekit" + - "-sdk-go/releases)\n\n### Java\n\n```gradle\n/" + - "* Gradle users - add the following to yo" + - "ur dependencies in build file */\nimpleme" + - "ntation \"com.scalekit:scalekit-sdk-java:" + - "2.0.6\"\n```\n\n```xml\n\n\n com.scalekit\n scalekit-sdk-java" + - "\n 2.0.6\n\n```\n\n[See the Java SDK " + - "changelog](https://github.com/scalekit-i" + - "nc/scalekit-sdk-java/releases)\n\n# Error " + - "handling\n\nThe API uses standard HTTP sta" + - "tus codes:\n\n| Code | Description " + - " |\n| ----------- | -------------" + - "------- |\n| 200/201 | Success " + - " |\n| 400 | Invalid request" + - " |\n| 401 | Authentication e" + - "rror |\n| 404 | Resource not foun" + - "d |\n| 429 | Rate limit exceede" + - "d |\n| 500/501/504 | Server error " + - " |\n\nError responses include detailed in" + - "formation:\n\n```json\n{\n\t\"code\": 16,\n\t\"mes" + - "sage\": \"Token empty\",\n\t\"details\": [\n\t\t{\n" + - "\t\t\t\"@type\": \"type.googleapis.com/scaleki" + - "t.v1.errdetails.ErrorInfo\",\n\t\t\t\"error_co" + - "de\": \"UNAUTHENTICATED\"\n\t\t}\n\t]\n}\n```\n\n\":\n" + - "\014Scalekit Inc\022\024https://scalekit.com\032\024sup" + - "port@scalekit.com*8\n\nApache 2.0\022*http://" + - "www.apache.org/licenses/LICENSE-2.02\0051.0" + - ".0\032\031$SCALEKIT_ENVIRONMENT_URL*\001\0022\020applic" + - "ation/json:\020application/jsonj\017\n\rOrganiza" + - "tionsj\324\003\n\013Permissions\022\304\003Permission manag" + - "ement for defining and controlling acces" + - "s to system resources. Create, retrieve," + - " update, and delete granular permissions" + - " that represent specific actions users c" + - "an perform. Permissions are the building" + - " blocks of role-based access control (RB" + - "AC) and can be assigned to roles to gran" + - "t users the ability to perform specific " + - "operations. Use this service to define c" + - "ustom permissions for your application\'s" + - " unique access control requirements.r+\n\r" + - "Scalekit Docs\022\032https://docs.scalekit.com" + - "/b\006proto3" + "gsResponse\"\263\002\222A\337\001\n\rOrganizations\022 Upsert" + + " organization user setting\0323Upsert user " + + "management settings for an organizationJ" + + "w\n\003200\022p\n)Returns the updated organizati" + + "on setting.\022C\nA\032?.scalekit.v1.organizati" + + "ons.UpsertUserManagementSettingsResponse" + + "\202\265\030\002\030d\202\323\344\223\002D2?/api/v1/organizations/{org" + + "anization_id}/settings/usermanagement:\001*" + + "\022\237\004\n$GetOrganizationUserManagementSettin" + + "g\022G.scalekit.v1.organizations.GetOrganiz" + + "ationUserManagementSettingsRequest\032H.sca" + + "lekit.v1.organizations.GetOrganizationUs" + + "erManagementSettingsResponse\"\343\002\222A\203\002\n\rOrg" + + "anizations\022(Get organization user manage" + + "ment setting\032CRetrieves the user managem" + + "ent settings for a specific organization" + + ".J\202\001\n\003200\022{\n+Returns the requested organ" + + "ization setting.\022L\nJ\032H.scalekit.v1.organ" + + "izations.GetOrganizationUserManagementSe" + + "ttingsResponse\202\265\030\002\030d\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002" + + "A\022?/api/v1/organizations/{organization_i" + + "d}/settings/usermanagement\022\356\005\n\033GetApplic" + + "ationSessionPolicy\022=.scalekit.v1.organiz" + + "ations.GetApplicationSessionPolicyReques" + + "t\032>.scalekit.v1.organizations.GetApplica" + + "tionSessionPolicyResponse\"\317\004\222A\317\003\n\rOrgani" + + "zations\022/Get application session policy " + + "for organization\032\246\001Returns the applicati" + + "on-level session settings for display in" + + " hosted pages. Includes absolute timeout" + + ", idle timeout configuration, and access" + + " token expiry in minutes.J\177\n\003200\022x\n2Appl" + + "ication session policy retrieved success" + + "fully.\022B\n@\032>.scalekit.v1.organizations.G" + + "etApplicationSessionPolicyResponseJA\n\00340" + + "3\022:\n8Session policy feature not enabled " + + "for this environment.J \n\003404\022\031\n\027Organiza" + + "tion not found.\202\265\030\037\n\033organizations_sessi" + + "ons_read\030T\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002D\022B/api/v1" + + "/organizations/{organization_id}/applica" + + "tion-session-policy\032X\222AU\n\rOrganizations\022" + + "D{{import \"proto/scalekit/v1/organizatio" + + "ns/organization_details.md\"}}B\360(\n+com.sc" + + "alekit.grpc.scalekit.v1.organizationsB\022O" + + "rganizationsProtoP\001Z7github.com/scalekit" + + "-inc/scalekit/pkg/grpc/organizations\242\002\003S" + + "VO\252\002\031Scalekit.V1.Organizations\312\002\031Scaleki" + + "t\\V1\\Organizations\342\002%Scalekit\\V1\\Organiz" + + "ations\\GPBMetadata\352\002\033Scalekit::V1::Organ" + + "izations\222A\354&\022\222\"\n\rScalekit APIs\022\203!# Intro" + + "duction\n\nThe Scalekit API is a RESTful A" + + "PI that enables you to manage organizati" + + "ons, users, and authentication settings." + + " All requests must use HTTPS.\nAll API re" + + "quests use the following base URLs:\n\n```" + + "\nhttps://{environment}.scalekit.dev (Dev" + + "elopment)\nhttps://{environment}.scalekit" + + ".com (Production)\nhttps://auth.example.c" + + "om (Custom domain)\n```\n\nScalekit operate" + + "s two separate environments: Development" + + " and Production. Resources cannot be mov" + + "ed between environments.\n\n# Authenticati" + + "on\n\nThe Scalekit API uses OAuth 2.0 Clie" + + "nt Credentials for authentication.\n\nCopy" + + " your API credentials from the Scalekit " + + "dashboard\'s API Config section and set t" + + "hem as environment variables.\n\n```sh\nSCA" + + "LEKIT_ENVIRONMENT_URL=\'\'\nSCALEKIT_CLIENT_ID=\'\'\nSCALEKIT_CLIENT_SECRET=\'\'\n```\n\nGetting an" + + " access token\n\n1. Get your credentials f" + + "rom the [Scalekit Dashboard](https://app" + + ".scalekit.com)\n2. Request an access toke" + + "n:\n\n```sh\ncurl https://{SCALEKIT_ENVIRON" + + "MENT_URL}/oauth/token \\\n -X POST \\\n -H" + + " \'Content-Type: application/x-www-form-u" + + "rlencoded\' \\\n -d \'client_id={client_id}" + + "\' \\\n -d \'client_secret={client_secret}\'" + + " \\\n -d \'grant_type=client_credentials\'\n" + + "```\n\n3. Use the access token in API requ" + + "ests:\n\n```sh\ncurl https://{SCALEKIT_ENVI" + + "RONMENT_URL}/api/v1/organizations \\\n -H" + + " \'Content-Type: application/json\' \\\n -H" + + " \'Authorization: Bearer {access_token}\'\n" + + "```\n\nThe response includes an access tok" + + "en:\n\n```json\n{\n\t\"access_token\": \"eyJhbGc" + + "iOiJSUzI1NiIsImtpZCI6InNua181Ok4OTEyMjU2" + + "NiIsInR5cCI6IkpXVCJ9...\",\n\t\"token_type\":" + + " \"Bearer\",\n\t\"expires_in\": 86399,\n\t\"scope" + + "\": \"openid\"\n}\n```\n\n# SDKs\n\nScalekit prov" + + "ides official SDKs for multiple programm" + + "ing languages. Check the changelog at Gi" + + "tHub repositories for the latest updates" + + ".\n\n### Node.js\n\n```sh\nnpm install @scale" + + "kit-sdk/node\n```\n\nCreate a new Scalekit " + + "client instance after initializing the e" + + "nvironment variables\n\n```js\nimport { Sca" + + "lekit } from \"@scalekit-sdk/node\";\n\nexpo" + + "rt let scalekit = new Scalekit(\n\tprocess" + + ".env.SCALEKIT_ENVIRONMENT_URL,\n\tprocess." + + "env.SCALEKIT_CLIENT_ID,\n\tprocess.env.SCA" + + "LEKIT_CLIENT_SECRET\n);\n```\n\n[See the Nod" + + "e SDK changelog](https://github.com/scal" + + "ekit-inc/scalekit-sdk-node/releases)\n\n##" + + "# Python\n\n```sh\npip install scalekit-sdk" + + "-python\n```\n\nCreate a new Scalekit clien" + + "t instance after initializing the enviro" + + "nment variables.\n\n```py\nfrom scalekit im", + "port ScalekitClient\nimport os\n\nscalekit_" + + "client = ScalekitClient(\n os.environ." + + "get(\'SCALEKIT_ENVIRONMENT_URL\'),\n os." + + "environ.get(\'SCALEKIT_CLIENT_ID\'),\n o" + + "s.environ.get(\'SCALEKIT_CLIENT_SECRET\')\n" + + ")\n```\n\n[See the Python SDK changelog](ht" + + "tps://github.com/scalekit-inc/scalekit-s" + + "dk-python/releases)\n\n### Go\n\n```sh\ngo ge" + + "t -u github.com/scalekit-inc/scalekit-sd" + + "k-go\n```\n\nCreate a new Scalekit client i" + + "nstance after initializing the environme" + + "nt variables.\n\n```go\npackage main\n\nimpor" + + "t (\n \"os\"\n \"github.com/scalekit-in" + + "c/scalekit-sdk-go\"\n)\n\nscalekitClient := " + + "scalekit.NewScalekitClient(\n os.Geten" + + "v(\"SCALEKIT_ENVIRONMENT_URL\"),\n os.Ge" + + "tenv(\"SCALEKIT_CLIENT_ID\"),\n os.Geten" + + "v(\"SCALEKIT_CLIENT_SECRET\"),\n)\n```\n\n[See" + + " the Go SDK changelog](https://github.co" + + "m/scalekit-inc/scalekit-sdk-go/releases)" + + "\n\n### Java\n\n```gradle\n/* Gradle users - " + + "add the following to your dependencies i" + + "n build file */\nimplementation \"com.scal" + + "ekit:scalekit-sdk-java:2.0.6\"\n```\n\n```xm" + + "l\n\n\n com.scalekit\n scalekit-sdk-java\n " + + " 2.0.6\n\n" + + "```\n\n[See the Java SDK changelog](https:" + + "//github.com/scalekit-inc/scalekit-sdk-j" + + "ava/releases)\n\n# Error handling\n\nThe API" + + " uses standard HTTP status codes:\n\n| Cod" + + "e | Description |\n| ----" + + "------- | -------------------- |\n| 200/2" + + "01 | Success |\n| 400 " + + " | Invalid request |\n| 401 " + + " | Authentication error |\n| 404 " + + " | Resource not found |\n| 429 " + + " | Rate limit exceeded |\n| 500/501/50" + + "4 | Server error |\n\nError respon" + + "ses include detailed information:\n\n```js" + + "on\n{\n\t\"code\": 16,\n\t\"message\": \"Token emp" + + "ty\",\n\t\"details\": [\n\t\t{\n\t\t\t\"@type\": \"type" + + ".googleapis.com/scalekit.v1.errdetails.E" + + "rrorInfo\",\n\t\t\t\"error_code\": \"UNAUTHENTIC" + + "ATED\"\n\t\t}\n\t]\n}\n```\n\n\":\n\014Scalekit Inc\022\024ht" + + "tps://scalekit.com\032\024support@scalekit.com" + + "*8\n\nApache 2.0\022*http://www.apache.org/li" + + "censes/LICENSE-2.02\0051.0.0\032\031$SCALEKIT_ENV" + + "IRONMENT_URL*\001\0022\020application/json:\020appli" + + "cation/jsonj\017\n\rOrganizationsj\324\003\n\013Permiss" + + "ions\022\304\003Permission management for definin" + + "g and controlling access to system resou" + + "rces. Create, retrieve, update, and dele" + + "te granular permissions that represent s" + + "pecific actions users can perform. Permi" + + "ssions are the building blocks of role-b" + + "ased access control (RBAC) and can be as" + + "signed to roles to grant users the abili" + + "ty to perform specific operations. Use t" + + "his service to define custom permissions" + + " for your application\'s unique access co" + + "ntrol requirements.r+\n\rScalekit Docs\022\032ht" + + "tps://docs.scalekit.com/b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -1033,7 +1130,7 @@ public static void registerAllExtensions( internal_static_scalekit_v1_organizations_CreateOrganization_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_organizations_CreateOrganization_descriptor, - new java.lang.String[] { "DisplayName", "RegionCode", "ExternalId", "Metadata", }); + new java.lang.String[] { "DisplayName", "RegionCode", "ExternalId", "Metadata", "Slug", }); internal_static_scalekit_v1_organizations_CreateOrganization_MetadataEntry_descriptor = internal_static_scalekit_v1_organizations_CreateOrganization_descriptor.getNestedTypes().get(0); internal_static_scalekit_v1_organizations_CreateOrganization_MetadataEntry_fieldAccessorTable = new @@ -1045,7 +1142,7 @@ public static void registerAllExtensions( internal_static_scalekit_v1_organizations_Organization_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_organizations_Organization_descriptor, - new java.lang.String[] { "Id", "CreateTime", "UpdateTime", "DisplayName", "RegionCode", "ExternalId", "Metadata", "Settings", }); + new java.lang.String[] { "Id", "CreateTime", "UpdateTime", "DisplayName", "RegionCode", "ExternalId", "Metadata", "Settings", "Slug", }); internal_static_scalekit_v1_organizations_Organization_MetadataEntry_descriptor = internal_static_scalekit_v1_organizations_Organization_descriptor.getNestedTypes().get(0); internal_static_scalekit_v1_organizations_Organization_MetadataEntry_fieldAccessorTable = new @@ -1063,7 +1160,7 @@ public static void registerAllExtensions( internal_static_scalekit_v1_organizations_UpdateOrganization_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_organizations_UpdateOrganization_descriptor, - new java.lang.String[] { "DisplayName", "ExternalId", "Metadata", }); + new java.lang.String[] { "DisplayName", "ExternalId", "Metadata", "Slug", }); internal_static_scalekit_v1_organizations_UpdateOrganization_MetadataEntry_descriptor = internal_static_scalekit_v1_organizations_UpdateOrganization_descriptor.getNestedTypes().get(0); internal_static_scalekit_v1_organizations_UpdateOrganization_MetadataEntry_fieldAccessorTable = new @@ -1166,92 +1263,98 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_organizations_UpdateOrganizationSettingsRequest_descriptor, new java.lang.String[] { "Id", "Settings", }); - internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsRequest_descriptor = + internal_static_scalekit_v1_organizations_OrganizationSessionPolicySettings_descriptor = getDescriptor().getMessageTypes().get(22); - internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsRequest_fieldAccessorTable = new + internal_static_scalekit_v1_organizations_OrganizationSessionPolicySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsRequest_descriptor, - new java.lang.String[] { "Id", "EnvironmentId", "SessionSettings", }); - internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsResponse_descriptor = + internal_static_scalekit_v1_organizations_OrganizationSessionPolicySettings_descriptor, + new java.lang.String[] { "PolicySource", "AbsoluteSessionTimeout", "AbsoluteSessionTimeoutUnit", "IdleSessionTimeoutEnabled", "IdleSessionTimeout", "IdleSessionTimeoutUnit", }); + internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyRequest_descriptor = getDescriptor().getMessageTypes().get(23); - internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsResponse_fieldAccessorTable = new + internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsResponse_descriptor, - new java.lang.String[] { "EnvironmentId", "OrganizationId", "SessionSettings", }); - internal_static_scalekit_v1_organizations_OrganizationUserManagementSettings_descriptor = + internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyRequest_descriptor, + new java.lang.String[] { "OrganizationId", }); + internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyResponse_descriptor = getDescriptor().getMessageTypes().get(24); - internal_static_scalekit_v1_organizations_OrganizationUserManagementSettings_fieldAccessorTable = new + internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_scalekit_v1_organizations_OrganizationUserManagementSettings_descriptor, - new java.lang.String[] { "MaxAllowedUsers", }); - internal_static_scalekit_v1_organizations_OrganizationSessionSettings_descriptor = + internal_static_scalekit_v1_organizations_GetOrganizationSessionPolicyResponse_descriptor, + new java.lang.String[] { "Policy", }); + internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyRequest_descriptor = getDescriptor().getMessageTypes().get(25); - internal_static_scalekit_v1_organizations_OrganizationSessionSettings_fieldAccessorTable = new + internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_scalekit_v1_organizations_OrganizationSessionSettings_descriptor, - new java.lang.String[] { "AbsoluteSessionTimeout", "SessionManagementEnabled", "IdleSessionTimeout", "IdleSessionEnabled", }); - internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsRequest_descriptor = + internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyRequest_descriptor, + new java.lang.String[] { "OrganizationId", "PolicySource", "AbsoluteSessionTimeout", "AbsoluteSessionTimeoutUnit", "IdleSessionTimeoutEnabled", "IdleSessionTimeout", "IdleSessionTimeoutUnit", }); + internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyResponse_descriptor = getDescriptor().getMessageTypes().get(26); - internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsRequest_fieldAccessorTable = new + internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsRequest_descriptor, - new java.lang.String[] { "Id", "EnvironmentId", }); - internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsRequest_descriptor = + internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyResponse_descriptor, + new java.lang.String[] { "Policy", }); + internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyRequest_descriptor = getDescriptor().getMessageTypes().get(27); - internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsRequest_fieldAccessorTable = new + internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsRequest_descriptor, - new java.lang.String[] { "Id", "EnvironmentId", }); - internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsResponse_descriptor = + internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyRequest_descriptor, + new java.lang.String[] { "OrganizationId", }); + internal_static_scalekit_v1_organizations_ApplicationSessionPolicySettings_descriptor = getDescriptor().getMessageTypes().get(28); - internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsResponse_fieldAccessorTable = new + internal_static_scalekit_v1_organizations_ApplicationSessionPolicySettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_scalekit_v1_organizations_CreateOrganizationSessionSettingsResponse_descriptor, - new java.lang.String[] { "EnvironmentId", "OrganizationId", "SessionSettings", }); - internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsResponse_descriptor = + internal_static_scalekit_v1_organizations_ApplicationSessionPolicySettings_descriptor, + new java.lang.String[] { "AbsoluteSessionTimeout", "IdleSessionTimeoutEnabled", "IdleSessionTimeout", "AccessTokenExpiry", "AbsoluteSessionTimeoutUnit", "IdleSessionTimeoutUnit", }); + internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyResponse_descriptor = getDescriptor().getMessageTypes().get(29); - internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsResponse_fieldAccessorTable = new + internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_scalekit_v1_organizations_GetOrganizationSessionSettingsResponse_descriptor, - new java.lang.String[] { "EnvironmentId", "OrganizationId", "SessionSettings", }); - internal_static_scalekit_v1_organizations_DeleteOrganizationSessionSettingsRequest_descriptor = + internal_static_scalekit_v1_organizations_GetApplicationSessionPolicyResponse_descriptor, + new java.lang.String[] { "ApplicationPolicy", }); + internal_static_scalekit_v1_organizations_OrganizationUserManagementSettings_descriptor = getDescriptor().getMessageTypes().get(30); - internal_static_scalekit_v1_organizations_DeleteOrganizationSessionSettingsRequest_fieldAccessorTable = new + internal_static_scalekit_v1_organizations_OrganizationUserManagementSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_scalekit_v1_organizations_DeleteOrganizationSessionSettingsRequest_descriptor, - new java.lang.String[] { "Id", "EnvironmentId", }); - internal_static_scalekit_v1_organizations_OrganizationSettings_descriptor = + internal_static_scalekit_v1_organizations_OrganizationUserManagementSettings_descriptor, + new java.lang.String[] { "MaxAllowedUsers", }); + internal_static_scalekit_v1_organizations_OrganizationSessionSettings_descriptor = getDescriptor().getMessageTypes().get(31); + internal_static_scalekit_v1_organizations_OrganizationSessionSettings_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_organizations_OrganizationSessionSettings_descriptor, + new java.lang.String[] { "AbsoluteSessionTimeout", "IdleSessionTimeout", "IdleSessionTimeoutEnabled", "PolicySource", }); + internal_static_scalekit_v1_organizations_OrganizationSettings_descriptor = + getDescriptor().getMessageTypes().get(32); internal_static_scalekit_v1_organizations_OrganizationSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_organizations_OrganizationSettings_descriptor, new java.lang.String[] { "Features", }); internal_static_scalekit_v1_organizations_OrganizationSettingsFeature_descriptor = - getDescriptor().getMessageTypes().get(32); + getDescriptor().getMessageTypes().get(33); internal_static_scalekit_v1_organizations_OrganizationSettingsFeature_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_organizations_OrganizationSettingsFeature_descriptor, new java.lang.String[] { "Name", "Enabled", }); internal_static_scalekit_v1_organizations_UpsertUserManagementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(33); + getDescriptor().getMessageTypes().get(34); internal_static_scalekit_v1_organizations_UpsertUserManagementSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_organizations_UpsertUserManagementSettingsRequest_descriptor, new java.lang.String[] { "OrganizationId", "Settings", }); internal_static_scalekit_v1_organizations_UpsertUserManagementSettingsResponse_descriptor = - getDescriptor().getMessageTypes().get(34); + getDescriptor().getMessageTypes().get(35); internal_static_scalekit_v1_organizations_UpsertUserManagementSettingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_organizations_UpsertUserManagementSettingsResponse_descriptor, new java.lang.String[] { "Settings", }); internal_static_scalekit_v1_organizations_GetOrganizationUserManagementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(35); + getDescriptor().getMessageTypes().get(36); internal_static_scalekit_v1_organizations_GetOrganizationUserManagementSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_organizations_GetOrganizationUserManagementSettingsRequest_descriptor, new java.lang.String[] { "OrganizationId", }); internal_static_scalekit_v1_organizations_GetOrganizationUserManagementSettingsResponse_descriptor = - getDescriptor().getMessageTypes().get(36); + getDescriptor().getMessageTypes().get(37); internal_static_scalekit_v1_organizations_GetOrganizationUserManagementSettingsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_organizations_GetOrganizationUserManagementSettingsResponse_descriptor, diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/SessionPolicyType.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/SessionPolicyType.java new file mode 100644 index 00000000..5c9a6a71 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/SessionPolicyType.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +/** + * Protobuf enum {@code scalekit.v1.organizations.SessionPolicyType} + */ +public enum SessionPolicyType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * SESSION_POLICY_TYPE_UNSPECIFIED = 0; + */ + SESSION_POLICY_TYPE_UNSPECIFIED(0), + /** + * APPLICATION = 1; + */ + APPLICATION(1), + /** + * CUSTOM = 2; + */ + CUSTOM(2), + UNRECOGNIZED(-1), + ; + + /** + * SESSION_POLICY_TYPE_UNSPECIFIED = 0; + */ + public static final int SESSION_POLICY_TYPE_UNSPECIFIED_VALUE = 0; + /** + * APPLICATION = 1; + */ + public static final int APPLICATION_VALUE = 1; + /** + * CUSTOM = 2; + */ + public static final int CUSTOM_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 SessionPolicyType 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 SessionPolicyType forNumber(int value) { + switch (value) { + case 0: return SESSION_POLICY_TYPE_UNSPECIFIED; + case 1: return APPLICATION; + case 2: return CUSTOM; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + SessionPolicyType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SessionPolicyType findValueByNumber(int number) { + return SessionPolicyType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.getDescriptor().getEnumTypes().get(1); + } + + private static final SessionPolicyType[] VALUES = values(); + + public static SessionPolicyType 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 SessionPolicyType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:scalekit.v1.organizations.SessionPolicyType) +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganization.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganization.java index e9c67e03..b607019f 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganization.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganization.java @@ -23,6 +23,7 @@ private UpdateOrganization(com.google.protobuf.GeneratedMessageV3.Builder bui private UpdateOrganization() { displayName_ = ""; externalId_ = ""; + slug_ = ""; } @java.lang.Override @@ -231,6 +232,53 @@ public java.lang.String getMetadataOrThrow( return map.get(key); } + public static final int SLUG_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object slug_ = ""; + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the slug field is set. + */ + @java.lang.Override + public boolean hasSlug() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The slug. + */ + @java.lang.Override + public java.lang.String getSlug() { + java.lang.Object ref = slug_; + 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(); + slug_ = s; + return s; + } + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for slug. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getSlugBytes() { + java.lang.Object ref = slug_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + slug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -257,6 +305,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) internalGetMetadata(), MetadataDefaultEntryHolder.defaultEntry, 7); + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, slug_); + } getUnknownFields().writeTo(output); } @@ -282,6 +333,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, metadata__); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, slug_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -309,6 +363,11 @@ public boolean equals(final java.lang.Object obj) { } if (!internalGetMetadata().equals( other.internalGetMetadata())) return false; + if (hasSlug() != other.hasSlug()) return false; + if (hasSlug()) { + if (!getSlug() + .equals(other.getSlug())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -332,6 +391,10 @@ public int hashCode() { hash = (37 * hash) + METADATA_FIELD_NUMBER; hash = (53 * hash) + internalGetMetadata().hashCode(); } + if (hasSlug()) { + hash = (37 * hash) + SLUG_FIELD_NUMBER; + hash = (53 * hash) + getSlug().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -492,6 +555,7 @@ public Builder clear() { displayName_ = ""; externalId_ = ""; internalGetMutableMetadata().clear(); + slug_ = ""; return this; } @@ -538,6 +602,10 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrg result.metadata_ = internalGetMetadata(); result.metadata_.makeImmutable(); } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.slug_ = slug_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -598,6 +666,11 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrgan internalGetMutableMetadata().mergeFrom( other.internalGetMetadata()); bitField0_ |= 0x00000004; + if (other.hasSlug()) { + slug_ = other.slug_; + bitField0_ |= 0x00000008; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -643,6 +716,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 58 + case 74: { + slug_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -944,6 +1022,85 @@ public Builder putAllMetadata( bitField0_ |= 0x00000004; return this; } + + private java.lang.Object slug_ = ""; + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the slug field is set. + */ + public boolean hasSlug() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The slug. + */ + public java.lang.String getSlug() { + java.lang.Object ref = slug_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + slug_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for slug. + */ + public com.google.protobuf.ByteString + getSlugBytes() { + java.lang.Object ref = slug_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + slug_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The slug to set. + * @return This builder for chaining. + */ + public Builder setSlug( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + slug_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearSlug() { + slug_ = getDefaultInstance().getSlug(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for slug to set. + * @return This builder for chaining. + */ + public Builder setSlugBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + slug_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationOrBuilder.java index df7ebbce..6aad0d6c 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationOrBuilder.java @@ -75,4 +75,21 @@ java.lang.String getMetadataOrDefault( */ java.lang.String getMetadataOrThrow( java.lang.String key); + + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the slug field is set. + */ + boolean hasSlug(); + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The slug. + */ + java.lang.String getSlug(); + /** + * optional string slug = 9 [json_name = "slug", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for slug. + */ + com.google.protobuf.ByteString + getSlugBytes(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyRequest.java new file mode 100644 index 00000000..a0e9bf0d --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyRequest.java @@ -0,0 +1,1427 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +/** + * Protobuf type {@code scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest} + */ +public final class UpdateOrganizationSessionPolicyRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest) + UpdateOrganizationSessionPolicyRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateOrganizationSessionPolicyRequest.newBuilder() to construct. + private UpdateOrganizationSessionPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateOrganizationSessionPolicyRequest() { + organizationId_ = ""; + policySource_ = 0; + absoluteSessionTimeoutUnit_ = 0; + idleSessionTimeoutUnit_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateOrganizationSessionPolicyRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest.class, com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int ORGANIZATION_ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + 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(); + organizationId_ = s; + return s; + } + } + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POLICY_SOURCE_FIELD_NUMBER = 2; + private int policySource_ = 0; + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 2 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for policySource. + */ + @java.lang.Override public int getPolicySourceValue() { + return policySource_; + } + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 2 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policySource. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType getPolicySource() { + com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType result = com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType.forNumber(policySource_); + return result == null ? com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType.UNRECOGNIZED : result; + } + + public static final int ABSOLUTE_SESSION_TIMEOUT_FIELD_NUMBER = 3; + private com.google.protobuf.Int32Value absoluteSessionTimeout_; + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeout field is set. + */ + @java.lang.Override + public boolean hasAbsoluteSessionTimeout() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeout. + */ + @java.lang.Override + public com.google.protobuf.Int32Value getAbsoluteSessionTimeout() { + return absoluteSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : absoluteSessionTimeout_; + } + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.Int32ValueOrBuilder getAbsoluteSessionTimeoutOrBuilder() { + return absoluteSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : absoluteSessionTimeout_; + } + + public static final int ABSOLUTE_SESSION_TIMEOUT_UNIT_FIELD_NUMBER = 4; + private int absoluteSessionTimeoutUnit_ = 0; + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 4 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeoutUnit field is set. + */ + @java.lang.Override public boolean hasAbsoluteSessionTimeoutUnit() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 4 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for absoluteSessionTimeoutUnit. + */ + @java.lang.Override public int getAbsoluteSessionTimeoutUnitValue() { + return absoluteSessionTimeoutUnit_; + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 4 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeoutUnit. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.commons.TimeUnit getAbsoluteSessionTimeoutUnit() { + com.scalekit.grpc.scalekit.v1.commons.TimeUnit result = com.scalekit.grpc.scalekit.v1.commons.TimeUnit.forNumber(absoluteSessionTimeoutUnit_); + return result == null ? com.scalekit.grpc.scalekit.v1.commons.TimeUnit.UNRECOGNIZED : result; + } + + public static final int IDLE_SESSION_TIMEOUT_ENABLED_FIELD_NUMBER = 5; + private com.google.protobuf.BoolValue idleSessionTimeoutEnabled_; + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutEnabled field is set. + */ + @java.lang.Override + public boolean hasIdleSessionTimeoutEnabled() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getIdleSessionTimeoutEnabled() { + return idleSessionTimeoutEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionTimeoutEnabled_; + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getIdleSessionTimeoutEnabledOrBuilder() { + return idleSessionTimeoutEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionTimeoutEnabled_; + } + + public static final int IDLE_SESSION_TIMEOUT_FIELD_NUMBER = 6; + private com.google.protobuf.Int32Value idleSessionTimeout_; + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeout field is set. + */ + @java.lang.Override + public boolean hasIdleSessionTimeout() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeout. + */ + @java.lang.Override + public com.google.protobuf.Int32Value getIdleSessionTimeout() { + return idleSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : idleSessionTimeout_; + } + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.Int32ValueOrBuilder getIdleSessionTimeoutOrBuilder() { + return idleSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : idleSessionTimeout_; + } + + public static final int IDLE_SESSION_TIMEOUT_UNIT_FIELD_NUMBER = 7; + private int idleSessionTimeoutUnit_ = 0; + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 7 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutUnit field is set. + */ + @java.lang.Override public boolean hasIdleSessionTimeoutUnit() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 7 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for idleSessionTimeoutUnit. + */ + @java.lang.Override public int getIdleSessionTimeoutUnitValue() { + return idleSessionTimeoutUnit_; + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 7 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutUnit. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.commons.TimeUnit getIdleSessionTimeoutUnit() { + com.scalekit.grpc.scalekit.v1.commons.TimeUnit result = com.scalekit.grpc.scalekit.v1.commons.TimeUnit.forNumber(idleSessionTimeoutUnit_); + return result == null ? com.scalekit.grpc.scalekit.v1.commons.TimeUnit.UNRECOGNIZED : result; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, organizationId_); + } + if (policySource_ != com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType.SESSION_POLICY_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, policySource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAbsoluteSessionTimeout()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(4, absoluteSessionTimeoutUnit_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getIdleSessionTimeoutEnabled()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(6, getIdleSessionTimeout()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeEnum(7, idleSessionTimeoutUnit_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, organizationId_); + } + if (policySource_ != com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType.SESSION_POLICY_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(2, policySource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, getAbsoluteSessionTimeout()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(4, absoluteSessionTimeoutUnit_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, getIdleSessionTimeoutEnabled()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(6, getIdleSessionTimeout()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(7, idleSessionTimeoutUnit_); + } + 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.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest other = (com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest) obj; + + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + if (policySource_ != other.policySource_) return false; + if (hasAbsoluteSessionTimeout() != other.hasAbsoluteSessionTimeout()) return false; + if (hasAbsoluteSessionTimeout()) { + if (!getAbsoluteSessionTimeout() + .equals(other.getAbsoluteSessionTimeout())) return false; + } + if (hasAbsoluteSessionTimeoutUnit() != other.hasAbsoluteSessionTimeoutUnit()) return false; + if (hasAbsoluteSessionTimeoutUnit()) { + if (absoluteSessionTimeoutUnit_ != other.absoluteSessionTimeoutUnit_) return false; + } + if (hasIdleSessionTimeoutEnabled() != other.hasIdleSessionTimeoutEnabled()) return false; + if (hasIdleSessionTimeoutEnabled()) { + if (!getIdleSessionTimeoutEnabled() + .equals(other.getIdleSessionTimeoutEnabled())) return false; + } + if (hasIdleSessionTimeout() != other.hasIdleSessionTimeout()) return false; + if (hasIdleSessionTimeout()) { + if (!getIdleSessionTimeout() + .equals(other.getIdleSessionTimeout())) return false; + } + if (hasIdleSessionTimeoutUnit() != other.hasIdleSessionTimeoutUnit()) return false; + if (hasIdleSessionTimeoutUnit()) { + if (idleSessionTimeoutUnit_ != other.idleSessionTimeoutUnit_) 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) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + hash = (37 * hash) + POLICY_SOURCE_FIELD_NUMBER; + hash = (53 * hash) + policySource_; + if (hasAbsoluteSessionTimeout()) { + hash = (37 * hash) + ABSOLUTE_SESSION_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getAbsoluteSessionTimeout().hashCode(); + } + if (hasAbsoluteSessionTimeoutUnit()) { + hash = (37 * hash) + ABSOLUTE_SESSION_TIMEOUT_UNIT_FIELD_NUMBER; + hash = (53 * hash) + absoluteSessionTimeoutUnit_; + } + if (hasIdleSessionTimeoutEnabled()) { + hash = (37 * hash) + IDLE_SESSION_TIMEOUT_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getIdleSessionTimeoutEnabled().hashCode(); + } + if (hasIdleSessionTimeout()) { + hash = (37 * hash) + IDLE_SESSION_TIMEOUT_FIELD_NUMBER; + hash = (53 * hash) + getIdleSessionTimeout().hashCode(); + } + if (hasIdleSessionTimeoutUnit()) { + hash = (37 * hash) + IDLE_SESSION_TIMEOUT_UNIT_FIELD_NUMBER; + hash = (53 * hash) + idleSessionTimeoutUnit_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest) + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest.class, com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAbsoluteSessionTimeoutFieldBuilder(); + getIdleSessionTimeoutEnabledFieldBuilder(); + getIdleSessionTimeoutFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + organizationId_ = ""; + policySource_ = 0; + absoluteSessionTimeout_ = null; + if (absoluteSessionTimeoutBuilder_ != null) { + absoluteSessionTimeoutBuilder_.dispose(); + absoluteSessionTimeoutBuilder_ = null; + } + absoluteSessionTimeoutUnit_ = 0; + idleSessionTimeoutEnabled_ = null; + if (idleSessionTimeoutEnabledBuilder_ != null) { + idleSessionTimeoutEnabledBuilder_.dispose(); + idleSessionTimeoutEnabledBuilder_ = null; + } + idleSessionTimeout_ = null; + if (idleSessionTimeoutBuilder_ != null) { + idleSessionTimeoutBuilder_.dispose(); + idleSessionTimeoutBuilder_ = null; + } + idleSessionTimeoutUnit_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest build() { + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest result = new com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.organizationId_ = organizationId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.policySource_ = policySource_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.absoluteSessionTimeout_ = absoluteSessionTimeoutBuilder_ == null + ? absoluteSessionTimeout_ + : absoluteSessionTimeoutBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.absoluteSessionTimeoutUnit_ = absoluteSessionTimeoutUnit_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.idleSessionTimeoutEnabled_ = idleSessionTimeoutEnabledBuilder_ == null + ? idleSessionTimeoutEnabled_ + : idleSessionTimeoutEnabledBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.idleSessionTimeout_ = idleSessionTimeoutBuilder_ == null + ? idleSessionTimeout_ + : idleSessionTimeoutBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.idleSessionTimeoutUnit_ = idleSessionTimeoutUnit_; + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest.getDefaultInstance()) return this; + if (!other.getOrganizationId().isEmpty()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.policySource_ != 0) { + setPolicySourceValue(other.getPolicySourceValue()); + } + if (other.hasAbsoluteSessionTimeout()) { + mergeAbsoluteSessionTimeout(other.getAbsoluteSessionTimeout()); + } + if (other.hasAbsoluteSessionTimeoutUnit()) { + setAbsoluteSessionTimeoutUnit(other.getAbsoluteSessionTimeoutUnit()); + } + if (other.hasIdleSessionTimeoutEnabled()) { + mergeIdleSessionTimeoutEnabled(other.getIdleSessionTimeoutEnabled()); + } + if (other.hasIdleSessionTimeout()) { + mergeIdleSessionTimeout(other.getIdleSessionTimeout()); + } + if (other.hasIdleSessionTimeoutUnit()) { + setIdleSessionTimeoutUnit(other.getIdleSessionTimeoutUnit()); + } + 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: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + policySource_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + input.readMessage( + getAbsoluteSessionTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: { + absoluteSessionTimeoutUnit_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: { + input.readMessage( + getIdleSessionTimeoutEnabledFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: { + input.readMessage( + getIdleSessionTimeoutFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 56: { + idleSessionTimeoutUnit_ = input.readEnum(); + bitField0_ |= 0x00000040; + 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 organizationId_ = ""; + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int policySource_ = 0; + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 2 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for policySource. + */ + @java.lang.Override public int getPolicySourceValue() { + return policySource_; + } + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 2 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The enum numeric value on the wire for policySource to set. + * @return This builder for chaining. + */ + public Builder setPolicySourceValue(int value) { + policySource_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 2 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policySource. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType getPolicySource() { + com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType result = com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType.forNumber(policySource_); + return result == null ? com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType.UNRECOGNIZED : result; + } + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 2 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The policySource to set. + * @return This builder for chaining. + */ + public Builder setPolicySource(com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + policySource_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 2 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearPolicySource() { + bitField0_ = (bitField0_ & ~0x00000002); + policySource_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Int32Value absoluteSessionTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> absoluteSessionTimeoutBuilder_; + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeout field is set. + */ + public boolean hasAbsoluteSessionTimeout() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeout. + */ + public com.google.protobuf.Int32Value getAbsoluteSessionTimeout() { + if (absoluteSessionTimeoutBuilder_ == null) { + return absoluteSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : absoluteSessionTimeout_; + } else { + return absoluteSessionTimeoutBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setAbsoluteSessionTimeout(com.google.protobuf.Int32Value value) { + if (absoluteSessionTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + absoluteSessionTimeout_ = value; + } else { + absoluteSessionTimeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setAbsoluteSessionTimeout( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (absoluteSessionTimeoutBuilder_ == null) { + absoluteSessionTimeout_ = builderForValue.build(); + } else { + absoluteSessionTimeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeAbsoluteSessionTimeout(com.google.protobuf.Int32Value value) { + if (absoluteSessionTimeoutBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + absoluteSessionTimeout_ != null && + absoluteSessionTimeout_ != com.google.protobuf.Int32Value.getDefaultInstance()) { + getAbsoluteSessionTimeoutBuilder().mergeFrom(value); + } else { + absoluteSessionTimeout_ = value; + } + } else { + absoluteSessionTimeoutBuilder_.mergeFrom(value); + } + if (absoluteSessionTimeout_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearAbsoluteSessionTimeout() { + bitField0_ = (bitField0_ & ~0x00000004); + absoluteSessionTimeout_ = null; + if (absoluteSessionTimeoutBuilder_ != null) { + absoluteSessionTimeoutBuilder_.dispose(); + absoluteSessionTimeoutBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.Int32Value.Builder getAbsoluteSessionTimeoutBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAbsoluteSessionTimeoutFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.Int32ValueOrBuilder getAbsoluteSessionTimeoutOrBuilder() { + if (absoluteSessionTimeoutBuilder_ != null) { + return absoluteSessionTimeoutBuilder_.getMessageOrBuilder(); + } else { + return absoluteSessionTimeout_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : absoluteSessionTimeout_; + } + } + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getAbsoluteSessionTimeoutFieldBuilder() { + if (absoluteSessionTimeoutBuilder_ == null) { + absoluteSessionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getAbsoluteSessionTimeout(), + getParentForChildren(), + isClean()); + absoluteSessionTimeout_ = null; + } + return absoluteSessionTimeoutBuilder_; + } + + private int absoluteSessionTimeoutUnit_ = 0; + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 4 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeoutUnit field is set. + */ + @java.lang.Override public boolean hasAbsoluteSessionTimeoutUnit() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 4 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for absoluteSessionTimeoutUnit. + */ + @java.lang.Override public int getAbsoluteSessionTimeoutUnitValue() { + return absoluteSessionTimeoutUnit_; + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 4 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The enum numeric value on the wire for absoluteSessionTimeoutUnit to set. + * @return This builder for chaining. + */ + public Builder setAbsoluteSessionTimeoutUnitValue(int value) { + absoluteSessionTimeoutUnit_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 4 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeoutUnit. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.commons.TimeUnit getAbsoluteSessionTimeoutUnit() { + com.scalekit.grpc.scalekit.v1.commons.TimeUnit result = com.scalekit.grpc.scalekit.v1.commons.TimeUnit.forNumber(absoluteSessionTimeoutUnit_); + return result == null ? com.scalekit.grpc.scalekit.v1.commons.TimeUnit.UNRECOGNIZED : result; + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 4 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The absoluteSessionTimeoutUnit to set. + * @return This builder for chaining. + */ + public Builder setAbsoluteSessionTimeoutUnit(com.scalekit.grpc.scalekit.v1.commons.TimeUnit value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + absoluteSessionTimeoutUnit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 4 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearAbsoluteSessionTimeoutUnit() { + bitField0_ = (bitField0_ & ~0x00000008); + absoluteSessionTimeoutUnit_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue idleSessionTimeoutEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> idleSessionTimeoutEnabledBuilder_; + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutEnabled field is set. + */ + public boolean hasIdleSessionTimeoutEnabled() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutEnabled. + */ + public com.google.protobuf.BoolValue getIdleSessionTimeoutEnabled() { + if (idleSessionTimeoutEnabledBuilder_ == null) { + return idleSessionTimeoutEnabled_ == null ? com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionTimeoutEnabled_; + } else { + return idleSessionTimeoutEnabledBuilder_.getMessage(); + } + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setIdleSessionTimeoutEnabled(com.google.protobuf.BoolValue value) { + if (idleSessionTimeoutEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idleSessionTimeoutEnabled_ = value; + } else { + idleSessionTimeoutEnabledBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setIdleSessionTimeoutEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (idleSessionTimeoutEnabledBuilder_ == null) { + idleSessionTimeoutEnabled_ = builderForValue.build(); + } else { + idleSessionTimeoutEnabledBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeIdleSessionTimeoutEnabled(com.google.protobuf.BoolValue value) { + if (idleSessionTimeoutEnabledBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) && + idleSessionTimeoutEnabled_ != null && + idleSessionTimeoutEnabled_ != com.google.protobuf.BoolValue.getDefaultInstance()) { + getIdleSessionTimeoutEnabledBuilder().mergeFrom(value); + } else { + idleSessionTimeoutEnabled_ = value; + } + } else { + idleSessionTimeoutEnabledBuilder_.mergeFrom(value); + } + if (idleSessionTimeoutEnabled_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearIdleSessionTimeoutEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + idleSessionTimeoutEnabled_ = null; + if (idleSessionTimeoutEnabledBuilder_ != null) { + idleSessionTimeoutEnabledBuilder_.dispose(); + idleSessionTimeoutEnabledBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.BoolValue.Builder getIdleSessionTimeoutEnabledBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return getIdleSessionTimeoutEnabledFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.BoolValueOrBuilder getIdleSessionTimeoutEnabledOrBuilder() { + if (idleSessionTimeoutEnabledBuilder_ != null) { + return idleSessionTimeoutEnabledBuilder_.getMessageOrBuilder(); + } else { + return idleSessionTimeoutEnabled_ == null ? + com.google.protobuf.BoolValue.getDefaultInstance() : idleSessionTimeoutEnabled_; + } + } + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder> + getIdleSessionTimeoutEnabledFieldBuilder() { + if (idleSessionTimeoutEnabledBuilder_ == null) { + idleSessionTimeoutEnabledBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, com.google.protobuf.BoolValue.Builder, com.google.protobuf.BoolValueOrBuilder>( + getIdleSessionTimeoutEnabled(), + getParentForChildren(), + isClean()); + idleSessionTimeoutEnabled_ = null; + } + return idleSessionTimeoutEnabledBuilder_; + } + + private com.google.protobuf.Int32Value idleSessionTimeout_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> idleSessionTimeoutBuilder_; + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeout field is set. + */ + public boolean hasIdleSessionTimeout() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeout. + */ + public com.google.protobuf.Int32Value getIdleSessionTimeout() { + if (idleSessionTimeoutBuilder_ == null) { + return idleSessionTimeout_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : idleSessionTimeout_; + } else { + return idleSessionTimeoutBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setIdleSessionTimeout(com.google.protobuf.Int32Value value) { + if (idleSessionTimeoutBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + idleSessionTimeout_ = value; + } else { + idleSessionTimeoutBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setIdleSessionTimeout( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (idleSessionTimeoutBuilder_ == null) { + idleSessionTimeout_ = builderForValue.build(); + } else { + idleSessionTimeoutBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeIdleSessionTimeout(com.google.protobuf.Int32Value value) { + if (idleSessionTimeoutBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) && + idleSessionTimeout_ != null && + idleSessionTimeout_ != com.google.protobuf.Int32Value.getDefaultInstance()) { + getIdleSessionTimeoutBuilder().mergeFrom(value); + } else { + idleSessionTimeout_ = value; + } + } else { + idleSessionTimeoutBuilder_.mergeFrom(value); + } + if (idleSessionTimeout_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearIdleSessionTimeout() { + bitField0_ = (bitField0_ & ~0x00000020); + idleSessionTimeout_ = null; + if (idleSessionTimeoutBuilder_ != null) { + idleSessionTimeoutBuilder_.dispose(); + idleSessionTimeoutBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.Int32Value.Builder getIdleSessionTimeoutBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return getIdleSessionTimeoutFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.Int32ValueOrBuilder getIdleSessionTimeoutOrBuilder() { + if (idleSessionTimeoutBuilder_ != null) { + return idleSessionTimeoutBuilder_.getMessageOrBuilder(); + } else { + return idleSessionTimeout_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : idleSessionTimeout_; + } + } + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getIdleSessionTimeoutFieldBuilder() { + if (idleSessionTimeoutBuilder_ == null) { + idleSessionTimeoutBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getIdleSessionTimeout(), + getParentForChildren(), + isClean()); + idleSessionTimeout_ = null; + } + return idleSessionTimeoutBuilder_; + } + + private int idleSessionTimeoutUnit_ = 0; + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 7 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutUnit field is set. + */ + @java.lang.Override public boolean hasIdleSessionTimeoutUnit() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 7 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for idleSessionTimeoutUnit. + */ + @java.lang.Override public int getIdleSessionTimeoutUnitValue() { + return idleSessionTimeoutUnit_; + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 7 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The enum numeric value on the wire for idleSessionTimeoutUnit to set. + * @return This builder for chaining. + */ + public Builder setIdleSessionTimeoutUnitValue(int value) { + idleSessionTimeoutUnit_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 7 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutUnit. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.commons.TimeUnit getIdleSessionTimeoutUnit() { + com.scalekit.grpc.scalekit.v1.commons.TimeUnit result = com.scalekit.grpc.scalekit.v1.commons.TimeUnit.forNumber(idleSessionTimeoutUnit_); + return result == null ? com.scalekit.grpc.scalekit.v1.commons.TimeUnit.UNRECOGNIZED : result; + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 7 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The idleSessionTimeoutUnit to set. + * @return This builder for chaining. + */ + public Builder setIdleSessionTimeoutUnit(com.scalekit.grpc.scalekit.v1.commons.TimeUnit value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + idleSessionTimeoutUnit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 7 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIdleSessionTimeoutUnit() { + bitField0_ = (bitField0_ & ~0x00000040); + idleSessionTimeoutUnit_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest) + private static final com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOrganizationSessionPolicyRequest 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.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyRequestOrBuilder.java new file mode 100644 index 00000000..d56ad860 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyRequestOrBuilder.java @@ -0,0 +1,110 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +public interface UpdateOrganizationSessionPolicyRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.UpdateOrganizationSessionPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * string organization_id = 1 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 2 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for policySource. + */ + int getPolicySourceValue(); + /** + * .scalekit.v1.organizations.SessionPolicyType policy_source = 2 [json_name = "policySource", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policySource. + */ + com.scalekit.grpc.scalekit.v1.organizations.SessionPolicyType getPolicySource(); + + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeout field is set. + */ + boolean hasAbsoluteSessionTimeout(); + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeout. + */ + com.google.protobuf.Int32Value getAbsoluteSessionTimeout(); + /** + * .google.protobuf.Int32Value absolute_session_timeout = 3 [json_name = "absoluteSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.Int32ValueOrBuilder getAbsoluteSessionTimeoutOrBuilder(); + + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 4 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the absoluteSessionTimeoutUnit field is set. + */ + boolean hasAbsoluteSessionTimeoutUnit(); + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 4 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for absoluteSessionTimeoutUnit. + */ + int getAbsoluteSessionTimeoutUnitValue(); + /** + * optional .scalekit.v1.commons.TimeUnit absolute_session_timeout_unit = 4 [json_name = "absoluteSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The absoluteSessionTimeoutUnit. + */ + com.scalekit.grpc.scalekit.v1.commons.TimeUnit getAbsoluteSessionTimeoutUnit(); + + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutEnabled field is set. + */ + boolean hasIdleSessionTimeoutEnabled(); + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutEnabled. + */ + com.google.protobuf.BoolValue getIdleSessionTimeoutEnabled(); + /** + * .google.protobuf.BoolValue idle_session_timeout_enabled = 5 [json_name = "idleSessionTimeoutEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.BoolValueOrBuilder getIdleSessionTimeoutEnabledOrBuilder(); + + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeout field is set. + */ + boolean hasIdleSessionTimeout(); + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeout. + */ + com.google.protobuf.Int32Value getIdleSessionTimeout(); + /** + * .google.protobuf.Int32Value idle_session_timeout = 6 [json_name = "idleSessionTimeout", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.Int32ValueOrBuilder getIdleSessionTimeoutOrBuilder(); + + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 7 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the idleSessionTimeoutUnit field is set. + */ + boolean hasIdleSessionTimeoutUnit(); + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 7 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for idleSessionTimeoutUnit. + */ + int getIdleSessionTimeoutUnitValue(); + /** + * optional .scalekit.v1.commons.TimeUnit idle_session_timeout_unit = 7 [json_name = "idleSessionTimeoutUnit", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The idleSessionTimeoutUnit. + */ + com.scalekit.grpc.scalekit.v1.commons.TimeUnit getIdleSessionTimeoutUnit(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyResponse.java new file mode 100644 index 00000000..6b719493 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyResponse.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +/** + * Protobuf type {@code scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse} + */ +public final class UpdateOrganizationSessionPolicyResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse) + UpdateOrganizationSessionPolicyResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateOrganizationSessionPolicyResponse.newBuilder() to construct. + private UpdateOrganizationSessionPolicyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateOrganizationSessionPolicyResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateOrganizationSessionPolicyResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse.class, com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse.Builder.class); + } + + private int bitField0_; + public static final int POLICY_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings policy_; + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the policy field is set. + */ + @java.lang.Override + public boolean hasPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policy. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings getPolicy() { + return policy_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.getDefaultInstance() : policy_; + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder getPolicyOrBuilder() { + return policy_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.getDefaultInstance() : policy_; + } + + 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, getPolicy()); + } + 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, getPolicy()); + } + 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.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse other = (com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse) obj; + + if (hasPolicy() != other.hasPolicy()) return false; + if (hasPolicy()) { + if (!getPolicy() + .equals(other.getPolicy())) 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 (hasPolicy()) { + hash = (37 * hash) + POLICY_FIELD_NUMBER; + hash = (53 * hash) + getPolicy().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse) + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse.class, com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPolicyFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); + policyBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionPolicyResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse build() { + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse result = new com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.policy_ = policyBuilder_ == null + ? policy_ + : policyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse.getDefaultInstance()) return this; + if (other.hasPolicy()) { + mergePolicy(other.getPolicy()); + } + 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( + getPolicyFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings policy_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder> policyBuilder_; + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the policy field is set. + */ + public boolean hasPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policy. + */ + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings getPolicy() { + if (policyBuilder_ == null) { + return policy_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.getDefaultInstance() : policy_; + } else { + return policyBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setPolicy(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings value) { + if (policyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + policy_ = value; + } else { + policyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setPolicy( + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.Builder builderForValue) { + if (policyBuilder_ == null) { + policy_ = builderForValue.build(); + } else { + policyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergePolicy(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings value) { + if (policyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + policy_ != null && + policy_ != com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.getDefaultInstance()) { + getPolicyBuilder().mergeFrom(value); + } else { + policy_ = value; + } + } else { + policyBuilder_.mergeFrom(value); + } + if (policy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + policy_ = null; + if (policyBuilder_ != null) { + policyBuilder_.dispose(); + policyBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.Builder getPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPolicyFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder getPolicyOrBuilder() { + if (policyBuilder_ != null) { + return policyBuilder_.getMessageOrBuilder(); + } else { + return policy_ == null ? + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.getDefaultInstance() : policy_; + } + } + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder> + getPolicyFieldBuilder() { + if (policyBuilder_ == null) { + policyBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder>( + getPolicy(), + getParentForChildren(), + isClean()); + policy_ = null; + } + return policyBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse) + private static final com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOrganizationSessionPolicyResponse 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.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyResponseOrBuilder.java new file mode 100644 index 00000000..1c4cd670 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionPolicyResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/organizations/organizations.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.organizations; + +public interface UpdateOrganizationSessionPolicyResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.UpdateOrganizationSessionPolicyResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the policy field is set. + */ + boolean hasPolicy(); + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The policy. + */ + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettings getPolicy(); + /** + * .scalekit.v1.organizations.OrganizationSessionPolicySettings policy = 1 [json_name = "policy", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionPolicySettingsOrBuilder getPolicyOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsRequest.java deleted file mode 100644 index f41db539..00000000 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsRequest.java +++ /dev/null @@ -1,871 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: scalekit/v1/organizations/organizations.proto - -// Protobuf Java Version: 3.25.3 -package com.scalekit.grpc.scalekit.v1.organizations; - -/** - * Protobuf type {@code scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest} - */ -public final class UpdateOrganizationSessionSettingsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest) - UpdateOrganizationSessionSettingsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateOrganizationSessionSettingsRequest.newBuilder() to construct. - private UpdateOrganizationSessionSettingsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateOrganizationSessionSettingsRequest() { - id_ = ""; - environmentId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateOrganizationSessionSettingsRequest(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest.class, com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The id. - */ - @java.lang.Override - public java.lang.String getId() { - java.lang.Object ref = id_; - 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(); - id_ = s; - return s; - } - } - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for id. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ENVIRONMENT_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object environmentId_ = ""; - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - @java.lang.Override - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; - 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(); - environmentId_ = s; - return s; - } - } - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - environmentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SESSION_SETTINGS_FIELD_NUMBER = 3; - private com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings sessionSettings_; - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionSettings field is set. - */ - @java.lang.Override - public boolean hasSessionSettings() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionSettings. - */ - @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings getSessionSettings() { - return sessionSettings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder getSessionSettingsOrBuilder() { - return sessionSettings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, environmentId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getSessionSettings()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, environmentId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSessionSettings()); - } - 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.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest)) { - return super.equals(obj); - } - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest other = (com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest) obj; - - if (!getId() - .equals(other.getId())) return false; - if (!getEnvironmentId() - .equals(other.getEnvironmentId())) return false; - if (hasSessionSettings() != other.hasSessionSettings()) return false; - if (hasSessionSettings()) { - if (!getSessionSettings() - .equals(other.getSessionSettings())) 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) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + ENVIRONMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getEnvironmentId().hashCode(); - if (hasSessionSettings()) { - hash = (37 * hash) + SESSION_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getSessionSettings().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest) - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest.class, com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest.Builder.class); - } - - // Construct using com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSessionSettingsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - environmentId_ = ""; - sessionSettings_ = null; - if (sessionSettingsBuilder_ != null) { - sessionSettingsBuilder_.dispose(); - sessionSettingsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsRequest_descriptor; - } - - @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest getDefaultInstanceForType() { - return com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest build() { - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest buildPartial() { - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest result = new com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.environmentId_ = environmentId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.sessionSettings_ = sessionSettingsBuilder_ == null - ? sessionSettings_ - : sessionSettingsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest) { - return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest other) { - if (other == com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest.getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getEnvironmentId().isEmpty()) { - environmentId_ = other.environmentId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasSessionSettings()) { - mergeSessionSettings(other.getSessionSettings()); - } - 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: { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - environmentId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getSessionSettingsFieldBuilder().getBuilder(), - extensionRegistry); - 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 id_ = ""; - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The id. - */ - public java.lang.String getId() { - java.lang.Object ref = id_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - id_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for id. - */ - public com.google.protobuf.ByteString - getIdBytes() { - java.lang.Object ref = id_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - id_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for id to set. - * @return This builder for chaining. - */ - public Builder setIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - id_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object environmentId_ = ""; - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - environmentId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - environmentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The environmentId to set. - * @return This builder for chaining. - */ - public Builder setEnvironmentId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - environmentId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return This builder for chaining. - */ - public Builder clearEnvironmentId() { - environmentId_ = getDefaultInstance().getEnvironmentId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for environmentId to set. - * @return This builder for chaining. - */ - public Builder setEnvironmentIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - environmentId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings sessionSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder> sessionSettingsBuilder_; - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionSettings field is set. - */ - public boolean hasSessionSettings() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionSettings. - */ - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings getSessionSettings() { - if (sessionSettingsBuilder_ == null) { - return sessionSettings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; - } else { - return sessionSettingsBuilder_.getMessage(); - } - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public Builder setSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings value) { - if (sessionSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sessionSettings_ = value; - } else { - sessionSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public Builder setSessionSettings( - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder builderForValue) { - if (sessionSettingsBuilder_ == null) { - sessionSettings_ = builderForValue.build(); - } else { - sessionSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public Builder mergeSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings value) { - if (sessionSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - sessionSettings_ != null && - sessionSettings_ != com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance()) { - getSessionSettingsBuilder().mergeFrom(value); - } else { - sessionSettings_ = value; - } - } else { - sessionSettingsBuilder_.mergeFrom(value); - } - if (sessionSettings_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public Builder clearSessionSettings() { - bitField0_ = (bitField0_ & ~0x00000004); - sessionSettings_ = null; - if (sessionSettingsBuilder_ != null) { - sessionSettingsBuilder_.dispose(); - sessionSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder getSessionSettingsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getSessionSettingsFieldBuilder().getBuilder(); - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder getSessionSettingsOrBuilder() { - if (sessionSettingsBuilder_ != null) { - return sessionSettingsBuilder_.getMessageOrBuilder(); - } else { - return sessionSettings_ == null ? - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; - } - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder> - getSessionSettingsFieldBuilder() { - if (sessionSettingsBuilder_ == null) { - sessionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder>( - getSessionSettings(), - getParentForChildren(), - isClean()); - sessionSettings_ = null; - } - return sessionSettingsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest) - } - - // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest) - private static final com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest(); - } - - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateOrganizationSessionSettingsRequest 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.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsRequestOrBuilder.java deleted file mode 100644 index f7ae776f..00000000 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsRequestOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: scalekit/v1/organizations/organizations.proto - -// Protobuf Java Version: 3.25.3 -package com.scalekit.grpc.scalekit.v1.organizations; - -public interface UpdateOrganizationSessionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.UpdateOrganizationSessionSettingsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The id. - */ - java.lang.String getId(); - /** - * string id = 1 [json_name = "id", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for id. - */ - com.google.protobuf.ByteString - getIdBytes(); - - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - java.lang.String getEnvironmentId(); - /** - * string environment_id = 2 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - com.google.protobuf.ByteString - getEnvironmentIdBytes(); - - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionSettings field is set. - */ - boolean hasSessionSettings(); - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionSettings. - */ - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings getSessionSettings(); - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder getSessionSettingsOrBuilder(); -} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsResponse.java deleted file mode 100644 index c391e99f..00000000 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsResponse.java +++ /dev/null @@ -1,871 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: scalekit/v1/organizations/organizations.proto - -// Protobuf Java Version: 3.25.3 -package com.scalekit.grpc.scalekit.v1.organizations; - -/** - * Protobuf type {@code scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse} - */ -public final class UpdateOrganizationSessionSettingsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse) - UpdateOrganizationSessionSettingsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateOrganizationSessionSettingsResponse.newBuilder() to construct. - private UpdateOrganizationSessionSettingsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateOrganizationSessionSettingsResponse() { - environmentId_ = ""; - organizationId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateOrganizationSessionSettingsResponse(); - } - - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse.class, com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse.Builder.class); - } - - private int bitField0_; - public static final int ENVIRONMENT_ID_FIELD_NUMBER = 1; - @SuppressWarnings("serial") - private volatile java.lang.Object environmentId_ = ""; - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - @java.lang.Override - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; - 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(); - environmentId_ = s; - return s; - } - } - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - environmentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ORGANIZATION_ID_FIELD_NUMBER = 2; - @SuppressWarnings("serial") - private volatile java.lang.Object organizationId_ = ""; - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The organizationId. - */ - @java.lang.Override - public java.lang.String getOrganizationId() { - java.lang.Object ref = organizationId_; - 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(); - organizationId_ = s; - return s; - } - } - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for organizationId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOrganizationIdBytes() { - java.lang.Object ref = organizationId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - organizationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SESSION_SETTINGS_FIELD_NUMBER = 3; - private com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings sessionSettings_; - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionSettings field is set. - */ - @java.lang.Override - public boolean hasSessionSettings() { - return ((bitField0_ & 0x00000001) != 0); - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionSettings. - */ - @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings getSessionSettings() { - return sessionSettings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder getSessionSettingsOrBuilder() { - return sessionSettings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, environmentId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, organizationId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getSessionSettings()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(environmentId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, environmentId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(organizationId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, organizationId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getSessionSettings()); - } - 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.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse)) { - return super.equals(obj); - } - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse other = (com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse) obj; - - if (!getEnvironmentId() - .equals(other.getEnvironmentId())) return false; - if (!getOrganizationId() - .equals(other.getOrganizationId())) return false; - if (hasSessionSettings() != other.hasSessionSettings()) return false; - if (hasSessionSettings()) { - if (!getSessionSettings() - .equals(other.getSessionSettings())) 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) + ENVIRONMENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getEnvironmentId().hashCode(); - hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; - hash = (53 * hash) + getOrganizationId().hashCode(); - if (hasSessionSettings()) { - hash = (37 * hash) + SESSION_SETTINGS_FIELD_NUMBER; - hash = (53 * hash) + getSessionSettings().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse) - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse.class, com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse.Builder.class); - } - - // Construct using com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getSessionSettingsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - environmentId_ = ""; - organizationId_ = ""; - sessionSettings_ = null; - if (sessionSettingsBuilder_ != null) { - sessionSettingsBuilder_.dispose(); - sessionSettingsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.scalekit.grpc.scalekit.v1.organizations.OrganizationsProto.internal_static_scalekit_v1_organizations_UpdateOrganizationSessionSettingsResponse_descriptor; - } - - @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse getDefaultInstanceForType() { - return com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse build() { - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse buildPartial() { - com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse result = new com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse(this); - if (bitField0_ != 0) { buildPartial0(result); } - onBuilt(); - return result; - } - - private void buildPartial0(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.environmentId_ = environmentId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.organizationId_ = organizationId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.sessionSettings_ = sessionSettingsBuilder_ == null - ? sessionSettings_ - : sessionSettingsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse) { - return mergeFrom((com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse other) { - if (other == com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse.getDefaultInstance()) return this; - if (!other.getEnvironmentId().isEmpty()) { - environmentId_ = other.environmentId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getOrganizationId().isEmpty()) { - organizationId_ = other.organizationId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasSessionSettings()) { - mergeSessionSettings(other.getSessionSettings()); - } - 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: { - environmentId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: { - organizationId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: { - input.readMessage( - getSessionSettingsFieldBuilder().getBuilder(), - extensionRegistry); - 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 environmentId_ = ""; - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - public java.lang.String getEnvironmentId() { - java.lang.Object ref = environmentId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - environmentId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - public com.google.protobuf.ByteString - getEnvironmentIdBytes() { - java.lang.Object ref = environmentId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - environmentId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The environmentId to set. - * @return This builder for chaining. - */ - public Builder setEnvironmentId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - environmentId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return This builder for chaining. - */ - public Builder clearEnvironmentId() { - environmentId_ = getDefaultInstance().getEnvironmentId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for environmentId to set. - * @return This builder for chaining. - */ - public Builder setEnvironmentIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - environmentId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object organizationId_ = ""; - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The organizationId. - */ - public java.lang.String getOrganizationId() { - java.lang.Object ref = organizationId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - organizationId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for organizationId. - */ - public com.google.protobuf.ByteString - getOrganizationIdBytes() { - java.lang.Object ref = organizationId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - organizationId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The organizationId to set. - * @return This builder for chaining. - */ - public Builder setOrganizationId( - java.lang.String value) { - if (value == null) { throw new NullPointerException(); } - organizationId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return This builder for chaining. - */ - public Builder clearOrganizationId() { - organizationId_ = getDefaultInstance().getOrganizationId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @param value The bytes for organizationId to set. - * @return This builder for chaining. - */ - public Builder setOrganizationIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { throw new NullPointerException(); } - checkByteStringIsUtf8(value); - organizationId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings sessionSettings_; - private com.google.protobuf.SingleFieldBuilderV3< - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder> sessionSettingsBuilder_; - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionSettings field is set. - */ - public boolean hasSessionSettings() { - return ((bitField0_ & 0x00000004) != 0); - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionSettings. - */ - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings getSessionSettings() { - if (sessionSettingsBuilder_ == null) { - return sessionSettings_ == null ? com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; - } else { - return sessionSettingsBuilder_.getMessage(); - } - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public Builder setSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings value) { - if (sessionSettingsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - sessionSettings_ = value; - } else { - sessionSettingsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public Builder setSessionSettings( - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder builderForValue) { - if (sessionSettingsBuilder_ == null) { - sessionSettings_ = builderForValue.build(); - } else { - sessionSettingsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public Builder mergeSessionSettings(com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings value) { - if (sessionSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) && - sessionSettings_ != null && - sessionSettings_ != com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance()) { - getSessionSettingsBuilder().mergeFrom(value); - } else { - sessionSettings_ = value; - } - } else { - sessionSettingsBuilder_.mergeFrom(value); - } - if (sessionSettings_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public Builder clearSessionSettings() { - bitField0_ = (bitField0_ & ~0x00000004); - sessionSettings_ = null; - if (sessionSettingsBuilder_ != null) { - sessionSettingsBuilder_.dispose(); - sessionSettingsBuilder_ = null; - } - onChanged(); - return this; - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder getSessionSettingsBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return getSessionSettingsFieldBuilder().getBuilder(); - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - public com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder getSessionSettingsOrBuilder() { - if (sessionSettingsBuilder_ != null) { - return sessionSettingsBuilder_.getMessageOrBuilder(); - } else { - return sessionSettings_ == null ? - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.getDefaultInstance() : sessionSettings_; - } - } - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder> - getSessionSettingsFieldBuilder() { - if (sessionSettingsBuilder_ == null) { - sessionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings.Builder, com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder>( - getSessionSettings(), - getParentForChildren(), - isClean()); - sessionSettings_ = null; - } - return sessionSettingsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse) - } - - // @@protoc_insertion_point(class_scope:scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse) - private static final com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse(); - } - - public static com.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateOrganizationSessionSettingsResponse 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.scalekit.grpc.scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsResponseOrBuilder.java deleted file mode 100644 index 012ec882..00000000 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/organizations/UpdateOrganizationSessionSettingsResponseOrBuilder.java +++ /dev/null @@ -1,49 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: scalekit/v1/organizations/organizations.proto - -// Protobuf Java Version: 3.25.3 -package com.scalekit.grpc.scalekit.v1.organizations; - -public interface UpdateOrganizationSessionSettingsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:scalekit.v1.organizations.UpdateOrganizationSessionSettingsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The environmentId. - */ - java.lang.String getEnvironmentId(); - /** - * string environment_id = 1 [json_name = "environmentId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for environmentId. - */ - com.google.protobuf.ByteString - getEnvironmentIdBytes(); - - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The organizationId. - */ - java.lang.String getOrganizationId(); - /** - * string organization_id = 2 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The bytes for organizationId. - */ - com.google.protobuf.ByteString - getOrganizationIdBytes(); - - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return Whether the sessionSettings field is set. - */ - boolean hasSessionSettings(); - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - * @return The sessionSettings. - */ - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettings getSessionSettings(); - /** - * .scalekit.v1.organizations.OrganizationSessionSettings session_settings = 3 [json_name = "sessionSettings", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } - */ - com.scalekit.grpc.scalekit.v1.organizations.OrganizationSessionSettingsOrBuilder getSessionSettingsOrBuilder(); -} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProvider.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProvider.java new file mode 100644 index 00000000..19265254 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProvider.java @@ -0,0 +1,1489 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/providers/providers.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.providers; + +/** + * Protobuf type {@code scalekit.v1.providers.CreateCustomProvider} + */ +public final class CreateCustomProvider extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.providers.CreateCustomProvider) + CreateCustomProviderOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateCustomProvider.newBuilder() to construct. + private CreateCustomProvider(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateCustomProvider() { + displayName_ = ""; + description_ = ""; + proxyUrl_ = ""; + iconSrc_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateCustomProvider(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_CreateCustomProvider_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_CreateCustomProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.class, com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.Builder.class); + } + + private int bitField0_; + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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 AUTH_PATTERNS_FIELD_NUMBER = 4; + private com.google.protobuf.ListValue authPatterns_; + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the authPatterns field is set. + */ + @java.lang.Override + public boolean hasAuthPatterns() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The authPatterns. + */ + @java.lang.Override + public com.google.protobuf.ListValue getAuthPatterns() { + return authPatterns_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : authPatterns_; + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.ListValueOrBuilder getAuthPatternsOrBuilder() { + return authPatterns_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : authPatterns_; + } + + public static final int PROXY_URL_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object proxyUrl_ = ""; + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The proxyUrl. + */ + @java.lang.Override + public java.lang.String getProxyUrl() { + java.lang.Object ref = proxyUrl_; + 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(); + proxyUrl_ = s; + return s; + } + } + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for proxyUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProxyUrlBytes() { + java.lang.Object ref = proxyUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + proxyUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROXY_ENABLED_FIELD_NUMBER = 8; + private boolean proxyEnabled_ = false; + /** + * bool proxy_enabled = 8 [json_name = "proxyEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The proxyEnabled. + */ + @java.lang.Override + public boolean getProxyEnabled() { + return proxyEnabled_; + } + + public static final int ICON_SRC_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object iconSrc_ = ""; + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The iconSrc. + */ + @java.lang.Override + public java.lang.String getIconSrc() { + java.lang.Object ref = iconSrc_; + 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(); + iconSrc_ = s; + return s; + } + } + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for iconSrc. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIconSrcBytes() { + java.lang.Object ref = iconSrc_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iconSrc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 10; + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_CreateCustomProvider_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getAuthPatterns()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, proxyUrl_); + } + if (proxyEnabled_ != false) { + output.writeBool(8, proxyEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconSrc_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, iconSrc_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 10); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAuthPatterns()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, proxyUrl_); + } + if (proxyEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, proxyEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconSrc_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, iconSrc_); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, metadata__); + } + 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.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider other = (com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider) obj; + + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (hasAuthPatterns() != other.hasAuthPatterns()) return false; + if (hasAuthPatterns()) { + if (!getAuthPatterns() + .equals(other.getAuthPatterns())) return false; + } + if (!getProxyUrl() + .equals(other.getProxyUrl())) return false; + if (getProxyEnabled() + != other.getProxyEnabled()) return false; + if (!getIconSrc() + .equals(other.getIconSrc())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasAuthPatterns()) { + hash = (37 * hash) + AUTH_PATTERNS_FIELD_NUMBER; + hash = (53 * hash) + getAuthPatterns().hashCode(); + } + hash = (37 * hash) + PROXY_URL_FIELD_NUMBER; + hash = (53 * hash) + getProxyUrl().hashCode(); + hash = (37 * hash) + PROXY_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getProxyEnabled()); + hash = (37 * hash) + ICON_SRC_FIELD_NUMBER; + hash = (53 * hash) + getIconSrc().hashCode(); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.providers.CreateCustomProvider} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.providers.CreateCustomProvider) + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_CreateCustomProvider_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_CreateCustomProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.class, com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAuthPatternsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + description_ = ""; + authPatterns_ = null; + if (authPatternsBuilder_ != null) { + authPatternsBuilder_.dispose(); + authPatternsBuilder_ = null; + } + proxyUrl_ = ""; + proxyEnabled_ = false; + iconSrc_ = ""; + internalGetMutableMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_CreateCustomProvider_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider build() { + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider buildPartial() { + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider result = new com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authPatterns_ = authPatternsBuilder_ == null + ? authPatterns_ + : authPatternsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.proxyUrl_ = proxyUrl_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.proxyEnabled_ = proxyEnabled_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.iconSrc_ = iconSrc_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider other) { + if (other == com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAuthPatterns()) { + mergeAuthPatterns(other.getAuthPatterns()); + } + if (!other.getProxyUrl().isEmpty()) { + proxyUrl_ = other.proxyUrl_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getProxyEnabled() != false) { + setProxyEnabled(other.getProxyEnabled()); + } + if (!other.getIconSrc().isEmpty()) { + iconSrc_ = other.iconSrc_; + bitField0_ |= 0x00000020; + onChanged(); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + bitField0_ |= 0x00000040; + 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: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + input.readMessage( + getAuthPatternsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 58: { + proxyUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 64: { + proxyEnabled_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 64 + case 74: { + iconSrc_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 74 + case 82: { + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMetadata().getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 82 + 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 displayName_ = ""; + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.ListValue authPatterns_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> authPatternsBuilder_; + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the authPatterns field is set. + */ + public boolean hasAuthPatterns() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The authPatterns. + */ + public com.google.protobuf.ListValue getAuthPatterns() { + if (authPatternsBuilder_ == null) { + return authPatterns_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : authPatterns_; + } else { + return authPatternsBuilder_.getMessage(); + } + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setAuthPatterns(com.google.protobuf.ListValue value) { + if (authPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authPatterns_ = value; + } else { + authPatternsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setAuthPatterns( + com.google.protobuf.ListValue.Builder builderForValue) { + if (authPatternsBuilder_ == null) { + authPatterns_ = builderForValue.build(); + } else { + authPatternsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeAuthPatterns(com.google.protobuf.ListValue value) { + if (authPatternsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + authPatterns_ != null && + authPatterns_ != com.google.protobuf.ListValue.getDefaultInstance()) { + getAuthPatternsBuilder().mergeFrom(value); + } else { + authPatterns_ = value; + } + } else { + authPatternsBuilder_.mergeFrom(value); + } + if (authPatterns_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearAuthPatterns() { + bitField0_ = (bitField0_ & ~0x00000004); + authPatterns_ = null; + if (authPatternsBuilder_ != null) { + authPatternsBuilder_.dispose(); + authPatternsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.ListValue.Builder getAuthPatternsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAuthPatternsFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.ListValueOrBuilder getAuthPatternsOrBuilder() { + if (authPatternsBuilder_ != null) { + return authPatternsBuilder_.getMessageOrBuilder(); + } else { + return authPatterns_ == null ? + com.google.protobuf.ListValue.getDefaultInstance() : authPatterns_; + } + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> + getAuthPatternsFieldBuilder() { + if (authPatternsBuilder_ == null) { + authPatternsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( + getAuthPatterns(), + getParentForChildren(), + isClean()); + authPatterns_ = null; + } + return authPatternsBuilder_; + } + + private java.lang.Object proxyUrl_ = ""; + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The proxyUrl. + */ + public java.lang.String getProxyUrl() { + java.lang.Object ref = proxyUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proxyUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for proxyUrl. + */ + public com.google.protobuf.ByteString + getProxyUrlBytes() { + java.lang.Object ref = proxyUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + proxyUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The proxyUrl to set. + * @return This builder for chaining. + */ + public Builder setProxyUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + proxyUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearProxyUrl() { + proxyUrl_ = getDefaultInstance().getProxyUrl(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for proxyUrl to set. + * @return This builder for chaining. + */ + public Builder setProxyUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + proxyUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean proxyEnabled_ ; + /** + * bool proxy_enabled = 8 [json_name = "proxyEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The proxyEnabled. + */ + @java.lang.Override + public boolean getProxyEnabled() { + return proxyEnabled_; + } + /** + * bool proxy_enabled = 8 [json_name = "proxyEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The proxyEnabled to set. + * @return This builder for chaining. + */ + public Builder setProxyEnabled(boolean value) { + + proxyEnabled_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * bool proxy_enabled = 8 [json_name = "proxyEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearProxyEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + proxyEnabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object iconSrc_ = ""; + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The iconSrc. + */ + public java.lang.String getIconSrc() { + java.lang.Object ref = iconSrc_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconSrc_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for iconSrc. + */ + public com.google.protobuf.ByteString + getIconSrcBytes() { + java.lang.Object ref = iconSrc_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iconSrc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The iconSrc to set. + * @return This builder for chaining. + */ + public Builder setIconSrc( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + iconSrc_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIconSrc() { + iconSrc_ = getDefaultInstance().getIconSrc(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for iconSrc to set. + * @return This builder for chaining. + */ + public Builder setIconSrcBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + iconSrc_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return metadata_; + } + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder removeMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableMetadata() { + bitField0_ |= 0x00000040; + return internalGetMutableMetadata().getMutableMap(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder putMetadata( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000040; + return this; + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder putAllMetadata( + java.util.Map values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000040; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.providers.CreateCustomProvider) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.providers.CreateCustomProvider) + private static final com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider(); + } + + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomProvider 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.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProviderOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProviderOrBuilder.java new file mode 100644 index 00000000..e2d2a6e5 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProviderOrBuilder.java @@ -0,0 +1,113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/providers/providers.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.providers; + +public interface CreateCustomProviderOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.providers.CreateCustomProvider) + com.google.protobuf.MessageOrBuilder { + + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The description. + */ + java.lang.String getDescription(); + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the authPatterns field is set. + */ + boolean hasAuthPatterns(); + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The authPatterns. + */ + com.google.protobuf.ListValue getAuthPatterns(); + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.ListValueOrBuilder getAuthPatternsOrBuilder(); + + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The proxyUrl. + */ + java.lang.String getProxyUrl(); + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for proxyUrl. + */ + com.google.protobuf.ByteString + getProxyUrlBytes(); + + /** + * bool proxy_enabled = 8 [json_name = "proxyEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The proxyEnabled. + */ + boolean getProxyEnabled(); + + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The iconSrc. + */ + java.lang.String getIconSrc(); + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for iconSrc. + */ + com.google.protobuf.ByteString + getIconSrcBytes(); + + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + int getMetadataCount(); + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getMetadata(); + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + java.util.Map + getMetadataMap(); + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + java.lang.String getMetadataOrThrow( + java.lang.String key); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProviderRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProviderRequest.java new file mode 100644 index 00000000..e02ffa30 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProviderRequest.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/providers/providers.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.providers; + +/** + * Protobuf type {@code scalekit.v1.providers.CreateCustomProviderRequest} + */ +public final class CreateCustomProviderRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.providers.CreateCustomProviderRequest) + CreateCustomProviderRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateCustomProviderRequest.newBuilder() to construct. + private CreateCustomProviderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateCustomProviderRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateCustomProviderRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_CreateCustomProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_CreateCustomProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest.class, com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest.Builder.class); + } + + private int bitField0_; + public static final int PROVIDER_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider provider_; + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the provider field is set. + */ + @java.lang.Override + public boolean hasProvider() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The provider. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider getProvider() { + return provider_ == null ? com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.getDefaultInstance() : provider_; + } + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderOrBuilder getProviderOrBuilder() { + return provider_ == null ? com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.getDefaultInstance() : provider_; + } + + 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, getProvider()); + } + 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, getProvider()); + } + 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.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest other = (com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest) obj; + + if (hasProvider() != other.hasProvider()) return false; + if (hasProvider()) { + if (!getProvider() + .equals(other.getProvider())) 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 (hasProvider()) { + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.providers.CreateCustomProviderRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.providers.CreateCustomProviderRequest) + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_CreateCustomProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_CreateCustomProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest.class, com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getProviderFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + provider_ = null; + if (providerBuilder_ != null) { + providerBuilder_.dispose(); + providerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_CreateCustomProviderRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest build() { + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest result = new com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.provider_ = providerBuilder_ == null + ? provider_ + : providerBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest.getDefaultInstance()) return this; + if (other.hasProvider()) { + mergeProvider(other.getProvider()); + } + 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( + getProviderFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider provider_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider, com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.Builder, com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderOrBuilder> providerBuilder_; + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the provider field is set. + */ + public boolean hasProvider() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The provider. + */ + public com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider getProvider() { + if (providerBuilder_ == null) { + return provider_ == null ? com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.getDefaultInstance() : provider_; + } else { + return providerBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setProvider(com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider value) { + if (providerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + provider_ = value; + } else { + providerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setProvider( + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.Builder builderForValue) { + if (providerBuilder_ == null) { + provider_ = builderForValue.build(); + } else { + providerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeProvider(com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider value) { + if (providerBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + provider_ != null && + provider_ != com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.getDefaultInstance()) { + getProviderBuilder().mergeFrom(value); + } else { + provider_ = value; + } + } else { + providerBuilder_.mergeFrom(value); + } + if (provider_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearProvider() { + bitField0_ = (bitField0_ & ~0x00000001); + provider_ = null; + if (providerBuilder_ != null) { + providerBuilder_.dispose(); + providerBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.Builder getProviderBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getProviderFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderOrBuilder getProviderOrBuilder() { + if (providerBuilder_ != null) { + return providerBuilder_.getMessageOrBuilder(); + } else { + return provider_ == null ? + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.getDefaultInstance() : provider_; + } + } + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider, com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.Builder, com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderOrBuilder> + getProviderFieldBuilder() { + if (providerBuilder_ == null) { + providerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider, com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider.Builder, com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderOrBuilder>( + getProvider(), + getParentForChildren(), + isClean()); + provider_ = null; + } + return providerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.providers.CreateCustomProviderRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.providers.CreateCustomProviderRequest) + private static final com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomProviderRequest 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.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProviderRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProviderRequestOrBuilder.java new file mode 100644 index 00000000..e88223ee --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/CreateCustomProviderRequestOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/providers/providers.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.providers; + +public interface CreateCustomProviderRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.providers.CreateCustomProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the provider field is set. + */ + boolean hasProvider(); + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The provider. + */ + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProvider getProvider(); + /** + * .scalekit.v1.providers.CreateCustomProvider provider = 1 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderOrBuilder getProviderOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ListProvidersRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ListProvidersRequest.java index aa600c8a..bfc817fe 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ListProvidersRequest.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ListProvidersRequest.java @@ -45,6 +45,552 @@ protected java.lang.Object newInstance( com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.class, com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Builder.class); } + public interface FilterOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.providers.ListProvidersRequest.Filter) + com.google.protobuf.MessageOrBuilder { + + /** + *
+     * DEFAULT, CUSTOM, ALL
+     * 
+ * + * .scalekit.v1.providers.ProviderType provider_type = 1 [json_name = "providerType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for providerType. + */ + int getProviderTypeValue(); + /** + *
+     * DEFAULT, CUSTOM, ALL
+     * 
+ * + * .scalekit.v1.providers.ProviderType provider_type = 1 [json_name = "providerType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The providerType. + */ + com.scalekit.grpc.scalekit.v1.providers.ProviderType getProviderType(); + } + /** + * Protobuf type {@code scalekit.v1.providers.ListProvidersRequest.Filter} + */ + public static final class Filter extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.providers.ListProvidersRequest.Filter) + FilterOrBuilder { + private static final long serialVersionUID = 0L; + // Use Filter.newBuilder() to construct. + private Filter(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private Filter() { + providerType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Filter(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_ListProvidersRequest_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_ListProvidersRequest_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.class, com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.Builder.class); + } + + public static final int PROVIDER_TYPE_FIELD_NUMBER = 1; + private int providerType_ = 0; + /** + *
+     * DEFAULT, CUSTOM, ALL
+     * 
+ * + * .scalekit.v1.providers.ProviderType provider_type = 1 [json_name = "providerType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for providerType. + */ + @java.lang.Override public int getProviderTypeValue() { + return providerType_; + } + /** + *
+     * DEFAULT, CUSTOM, ALL
+     * 
+ * + * .scalekit.v1.providers.ProviderType provider_type = 1 [json_name = "providerType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The providerType. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.providers.ProviderType getProviderType() { + com.scalekit.grpc.scalekit.v1.providers.ProviderType result = com.scalekit.grpc.scalekit.v1.providers.ProviderType.forNumber(providerType_); + return result == null ? com.scalekit.grpc.scalekit.v1.providers.ProviderType.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 (providerType_ != com.scalekit.grpc.scalekit.v1.providers.ProviderType.DEFAULT.getNumber()) { + output.writeEnum(1, providerType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (providerType_ != com.scalekit.grpc.scalekit.v1.providers.ProviderType.DEFAULT.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(1, providerType_); + } + 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.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter other = (com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter) obj; + + if (providerType_ != other.providerType_) 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) + PROVIDER_TYPE_FIELD_NUMBER; + hash = (53 * hash) + providerType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.providers.ListProvidersRequest.Filter} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.providers.ListProvidersRequest.Filter) + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.FilterOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_ListProvidersRequest_Filter_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_ListProvidersRequest_Filter_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.class, com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + providerType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_ListProvidersRequest_Filter_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter build() { + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter buildPartial() { + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter result = new com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.providerType_ = providerType_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter other) { + if (other == com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.getDefaultInstance()) return this; + if (other.providerType_ != 0) { + setProviderTypeValue(other.getProviderTypeValue()); + } + 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 8: { + providerType_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 int providerType_ = 0; + /** + *
+       * DEFAULT, CUSTOM, ALL
+       * 
+ * + * .scalekit.v1.providers.ProviderType provider_type = 1 [json_name = "providerType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The enum numeric value on the wire for providerType. + */ + @java.lang.Override public int getProviderTypeValue() { + return providerType_; + } + /** + *
+       * DEFAULT, CUSTOM, ALL
+       * 
+ * + * .scalekit.v1.providers.ProviderType provider_type = 1 [json_name = "providerType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The enum numeric value on the wire for providerType to set. + * @return This builder for chaining. + */ + public Builder setProviderTypeValue(int value) { + providerType_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + *
+       * DEFAULT, CUSTOM, ALL
+       * 
+ * + * .scalekit.v1.providers.ProviderType provider_type = 1 [json_name = "providerType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The providerType. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.ProviderType getProviderType() { + com.scalekit.grpc.scalekit.v1.providers.ProviderType result = com.scalekit.grpc.scalekit.v1.providers.ProviderType.forNumber(providerType_); + return result == null ? com.scalekit.grpc.scalekit.v1.providers.ProviderType.UNRECOGNIZED : result; + } + /** + *
+       * DEFAULT, CUSTOM, ALL
+       * 
+ * + * .scalekit.v1.providers.ProviderType provider_type = 1 [json_name = "providerType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The providerType to set. + * @return This builder for chaining. + */ + public Builder setProviderType(com.scalekit.grpc.scalekit.v1.providers.ProviderType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + providerType_ = value.getNumber(); + onChanged(); + return this; + } + /** + *
+       * DEFAULT, CUSTOM, ALL
+       * 
+ * + * .scalekit.v1.providers.ProviderType provider_type = 1 [json_name = "providerType", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearProviderType() { + bitField0_ = (bitField0_ & ~0x00000001); + providerType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.providers.ListProvidersRequest.Filter) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.providers.ListProvidersRequest.Filter) + private static final com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter(); + } + + public static com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Filter 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.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + + } + + private int bitField0_; public static final int IDENTIFIER_FIELD_NUMBER = 1; @SuppressWarnings("serial") private volatile java.lang.Object identifier_ = ""; @@ -134,6 +680,32 @@ public java.lang.String getPageToken() { } } + public static final int FILTER_FIELD_NUMBER = 4; + private com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter filter_; + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the filter field is set. + */ + @java.lang.Override + public boolean hasFilter() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The filter. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter getFilter() { + return filter_ == null ? com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.getDefaultInstance() : filter_; + } + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.FilterOrBuilder getFilterOrBuilder() { + return filter_ == null ? com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.getDefaultInstance() : filter_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -157,6 +729,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getFilter()); + } getUnknownFields().writeTo(output); } @@ -176,6 +751,10 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getFilter()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -197,6 +776,11 @@ public boolean equals(final java.lang.Object obj) { != other.getPageSize()) return false; if (!getPageToken() .equals(other.getPageToken())) return false; + if (hasFilter() != other.hasFilter()) return false; + if (hasFilter()) { + if (!getFilter() + .equals(other.getFilter())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -214,6 +798,10 @@ public int hashCode() { hash = (53 * hash) + getPageSize(); hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; hash = (53 * hash) + getPageToken().hashCode(); + if (hasFilter()) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -337,13 +925,19 @@ public static final class Builder extends // Construct using com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.newBuilder() private Builder() { - + maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); - + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getFilterFieldBuilder(); + } } @java.lang.Override public Builder clear() { @@ -352,6 +946,11 @@ public Builder clear() { identifier_ = ""; pageSize_ = 0; pageToken_ = ""; + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } return this; } @@ -394,6 +993,14 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.providers.ListProviders if (((from_bitField0_ & 0x00000004) != 0)) { result.pageToken_ = pageToken_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filterBuilder_ == null + ? filter_ + : filterBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -453,6 +1060,9 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.providers.ListProvidersRe bitField0_ |= 0x00000004; onChanged(); } + if (other.hasFilter()) { + mergeFilter(other.getFilter()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -494,6 +1104,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: { + input.readMessage( + getFilterFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -686,6 +1303,127 @@ public Builder setPageTokenBytes( onChanged(); return this; } + + private com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter filter_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter, com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.Builder, com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.FilterOrBuilder> filterBuilder_; + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the filter field is set. + */ + public boolean hasFilter() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The filter. + */ + public com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter getFilter() { + if (filterBuilder_ == null) { + return filter_ == null ? com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.getDefaultInstance() : filter_; + } else { + return filterBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setFilter(com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + } else { + filterBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setFilter( + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.Builder builderForValue) { + if (filterBuilder_ == null) { + filter_ = builderForValue.build(); + } else { + filterBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeFilter(com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter value) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) && + filter_ != null && + filter_ != com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.getDefaultInstance()) { + getFilterBuilder().mergeFrom(value); + } else { + filter_ = value; + } + } else { + filterBuilder_.mergeFrom(value); + } + if (filter_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearFilter() { + bitField0_ = (bitField0_ & ~0x00000008); + filter_ = null; + if (filterBuilder_ != null) { + filterBuilder_.dispose(); + filterBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.Builder getFilterBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getFilterFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.FilterOrBuilder getFilterOrBuilder() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilder(); + } else { + return filter_ == null ? + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.getDefaultInstance() : filter_; + } + } + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter, com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.Builder, com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.FilterOrBuilder> + getFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter, com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter.Builder, com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.FilterOrBuilder>( + getFilter(), + getParentForChildren(), + isClean()); + filter_ = null; + } + return filterBuilder_; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ListProvidersRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ListProvidersRequestOrBuilder.java index 371050dc..6f3dc456 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ListProvidersRequestOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ListProvidersRequestOrBuilder.java @@ -37,4 +37,19 @@ public interface ListProvidersRequestOrBuilder extends */ com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the filter field is set. + */ + boolean hasFilter(); + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The filter. + */ + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.Filter getFilter(); + /** + * .scalekit.v1.providers.ListProvidersRequest.Filter filter = 4 [json_name = "filter", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest.FilterOrBuilder getFilterOrBuilder(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/Provider.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/Provider.java index 482d00a4..349b0b2b 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/Provider.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/Provider.java @@ -43,6 +43,18 @@ protected java.lang.Object newInstance( return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_Provider_descriptor; } + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 14: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -382,6 +394,107 @@ public boolean getProxyEnabled() { return proxyEnabled_; } + public static final int IS_CUSTOM_FIELD_NUMBER = 12; + private boolean isCustom_ = false; + /** + * bool is_custom = 12 [json_name = "isCustom", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The isCustom. + */ + @java.lang.Override + public boolean getIsCustom() { + return isCustom_; + } + + public static final int IS_CUSTOM_MCP_FIELD_NUMBER = 13; + private boolean isCustomMcp_ = false; + /** + * bool is_custom_mcp = 13 [json_name = "isCustomMcp", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The isCustomMcp. + */ + @java.lang.Override + public boolean getIsCustomMcp() { + return isCustomMcp_; + } + + public static final int METADATA_FIELD_NUMBER = 14; + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_Provider_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -429,6 +542,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (proxyEnabled_ != false) { output.writeBool(11, proxyEnabled_); } + if (isCustom_ != false) { + output.writeBool(12, isCustom_); + } + if (isCustomMcp_ != false) { + output.writeBool(13, isCustomMcp_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 14); getUnknownFields().writeTo(output); } @@ -480,6 +605,24 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, proxyEnabled_); } + if (isCustom_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(12, isCustom_); + } + if (isCustomMcp_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(13, isCustomMcp_); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(14, metadata__); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -520,6 +663,12 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getProxyUrl())) return false; if (getProxyEnabled() != other.getProxyEnabled()) return false; + if (getIsCustom() + != other.getIsCustom()) return false; + if (getIsCustomMcp() + != other.getIsCustomMcp()) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -559,6 +708,16 @@ public int hashCode() { hash = (37 * hash) + PROXY_ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getProxyEnabled()); + hash = (37 * hash) + IS_CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsCustom()); + hash = (37 * hash) + IS_CUSTOM_MCP_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getIsCustomMcp()); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -672,6 +831,28 @@ public static final class Builder extends return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_Provider_descriptor; } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 14: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 14: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { @@ -716,6 +897,9 @@ public Builder clear() { comingSoon_ = false; proxyUrl_ = ""; proxyEnabled_ = false; + isCustom_ = false; + isCustomMcp_ = false; + internalGetMutableMetadata().clear(); return this; } @@ -787,6 +971,16 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.providers.Provider resu if (((from_bitField0_ & 0x00000400) != 0)) { result.proxyEnabled_ = proxyEnabled_; } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.isCustom_ = isCustom_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.isCustomMcp_ = isCustomMcp_; + } + if (((from_bitField0_ & 0x00002000) != 0)) { + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + } result.bitField0_ |= to_bitField0_; } @@ -886,6 +1080,15 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.providers.Provider other) if (other.getProxyEnabled() != false) { setProxyEnabled(other.getProxyEnabled()); } + if (other.getIsCustom() != false) { + setIsCustom(other.getIsCustom()); + } + if (other.getIsCustomMcp() != false) { + setIsCustomMcp(other.getIsCustomMcp()); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + bitField0_ |= 0x00002000; this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -970,6 +1173,25 @@ public Builder mergeFrom( bitField0_ |= 0x00000400; break; } // case 88 + case 96: { + isCustom_ = input.readBool(); + bitField0_ |= 0x00000800; + break; + } // case 96 + case 104: { + isCustomMcp_ = input.readBool(); + bitField0_ |= 0x00001000; + break; + } // case 104 + case 114: { + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMetadata().getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00002000; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1746,6 +1968,197 @@ public Builder clearProxyEnabled() { onChanged(); return this; } + + private boolean isCustom_ ; + /** + * bool is_custom = 12 [json_name = "isCustom", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The isCustom. + */ + @java.lang.Override + public boolean getIsCustom() { + return isCustom_; + } + /** + * bool is_custom = 12 [json_name = "isCustom", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The isCustom to set. + * @return This builder for chaining. + */ + public Builder setIsCustom(boolean value) { + + isCustom_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + /** + * bool is_custom = 12 [json_name = "isCustom", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIsCustom() { + bitField0_ = (bitField0_ & ~0x00000800); + isCustom_ = false; + onChanged(); + return this; + } + + private boolean isCustomMcp_ ; + /** + * bool is_custom_mcp = 13 [json_name = "isCustomMcp", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The isCustomMcp. + */ + @java.lang.Override + public boolean getIsCustomMcp() { + return isCustomMcp_; + } + /** + * bool is_custom_mcp = 13 [json_name = "isCustomMcp", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The isCustomMcp to set. + * @return This builder for chaining. + */ + public Builder setIsCustomMcp(boolean value) { + + isCustomMcp_ = value; + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + /** + * bool is_custom_mcp = 13 [json_name = "isCustomMcp", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIsCustomMcp() { + bitField0_ = (bitField0_ & ~0x00001000); + isCustomMcp_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + bitField0_ |= 0x00002000; + onChanged(); + return metadata_; + } + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00002000); + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder removeMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableMetadata() { + bitField0_ |= 0x00002000; + return internalGetMutableMetadata().getMutableMap(); + } + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder putMetadata( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); + bitField0_ |= 0x00002000; + return this; + } + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder putAllMetadata( + java.util.Map values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + bitField0_ |= 0x00002000; + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProviderOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProviderOrBuilder.java index a8e6dc04..76b34ab9 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProviderOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProviderOrBuilder.java @@ -137,4 +137,50 @@ public interface ProviderOrBuilder extends * @return The proxyEnabled. */ boolean getProxyEnabled(); + + /** + * bool is_custom = 12 [json_name = "isCustom", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The isCustom. + */ + boolean getIsCustom(); + + /** + * bool is_custom_mcp = 13 [json_name = "isCustomMcp", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The isCustomMcp. + */ + boolean getIsCustomMcp(); + + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + int getMetadataCount(); + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getMetadata(); + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + java.util.Map + getMetadataMap(); + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + * map<string, string> metadata = 14 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + java.lang.String getMetadataOrThrow( + java.lang.String key); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProviderServiceGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProviderServiceGrpc.java index 76426683..4669d951 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProviderServiceGrpc.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProviderServiceGrpc.java @@ -49,6 +49,37 @@ com.scalekit.grpc.scalekit.v1.providers.CreateProviderResponse> getCreateProvide return getCreateProviderMethod; } + private static volatile io.grpc.MethodDescriptor getCreateCustomProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomProvider", + requestType = com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.providers.CreateProviderResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateCustomProviderMethod() { + io.grpc.MethodDescriptor getCreateCustomProviderMethod; + if ((getCreateCustomProviderMethod = ProviderServiceGrpc.getCreateCustomProviderMethod) == null) { + synchronized (ProviderServiceGrpc.class) { + if ((getCreateCustomProviderMethod = ProviderServiceGrpc.getCreateCustomProviderMethod) == null) { + ProviderServiceGrpc.getCreateCustomProviderMethod = getCreateCustomProviderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.providers.CreateProviderResponse.getDefaultInstance())) + .setSchemaDescriptor(new ProviderServiceMethodDescriptorSupplier("CreateCustomProvider")) + .build(); + } + } + } + return getCreateCustomProviderMethod; + } + private static volatile io.grpc.MethodDescriptor getUpdateProviderMethod; @@ -80,6 +111,37 @@ com.scalekit.grpc.scalekit.v1.providers.UpdateProviderResponse> getUpdateProvide return getUpdateProviderMethod; } + private static volatile io.grpc.MethodDescriptor getUpdateCustomProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomProvider", + requestType = com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.providers.UpdateProviderResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getUpdateCustomProviderMethod() { + io.grpc.MethodDescriptor getUpdateCustomProviderMethod; + if ((getUpdateCustomProviderMethod = ProviderServiceGrpc.getUpdateCustomProviderMethod) == null) { + synchronized (ProviderServiceGrpc.class) { + if ((getUpdateCustomProviderMethod = ProviderServiceGrpc.getUpdateCustomProviderMethod) == null) { + ProviderServiceGrpc.getUpdateCustomProviderMethod = getUpdateCustomProviderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.providers.UpdateProviderResponse.getDefaultInstance())) + .setSchemaDescriptor(new ProviderServiceMethodDescriptorSupplier("UpdateCustomProvider")) + .build(); + } + } + } + return getUpdateCustomProviderMethod; + } + private static volatile io.grpc.MethodDescriptor getDeleteProviderMethod; @@ -111,6 +173,37 @@ com.scalekit.grpc.scalekit.v1.providers.DeleteProviderResponse> getDeleteProvide return getDeleteProviderMethod; } + private static volatile io.grpc.MethodDescriptor getDeleteCustomProviderMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteCustomProvider", + requestType = com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.providers.DeleteProviderResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteCustomProviderMethod() { + io.grpc.MethodDescriptor getDeleteCustomProviderMethod; + if ((getDeleteCustomProviderMethod = ProviderServiceGrpc.getDeleteCustomProviderMethod) == null) { + synchronized (ProviderServiceGrpc.class) { + if ((getDeleteCustomProviderMethod = ProviderServiceGrpc.getDeleteCustomProviderMethod) == null) { + ProviderServiceGrpc.getDeleteCustomProviderMethod = getDeleteCustomProviderMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteCustomProvider")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.providers.DeleteProviderResponse.getDefaultInstance())) + .setSchemaDescriptor(new ProviderServiceMethodDescriptorSupplier("DeleteCustomProvider")) + .build(); + } + } + } + return getDeleteCustomProviderMethod; + } + private static volatile io.grpc.MethodDescriptor getListProvidersMethod; @@ -200,6 +293,13 @@ default void createProvider(com.scalekit.grpc.scalekit.v1.providers.CreateProvid io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateProviderMethod(), responseObserver); } + /** + */ + default void createCustomProvider(com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateCustomProviderMethod(), responseObserver); + } + /** */ default void updateProvider(com.scalekit.grpc.scalekit.v1.providers.UpdateProviderRequest request, @@ -207,6 +307,13 @@ default void updateProvider(com.scalekit.grpc.scalekit.v1.providers.UpdateProvid io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateProviderMethod(), responseObserver); } + /** + */ + default void updateCustomProvider(com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateCustomProviderMethod(), responseObserver); + } + /** */ default void deleteProvider(com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest request, @@ -214,6 +321,13 @@ default void deleteProvider(com.scalekit.grpc.scalekit.v1.providers.DeleteProvid io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteProviderMethod(), responseObserver); } + /** + */ + default void deleteCustomProvider(com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteCustomProviderMethod(), responseObserver); + } + /** */ default void listProviders(com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest request, @@ -263,6 +377,14 @@ public void createProvider(com.scalekit.grpc.scalekit.v1.providers.CreateProvide getChannel().newCall(getCreateProviderMethod(), getCallOptions()), request, responseObserver); } + /** + */ + public void createCustomProvider(com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomProviderMethod(), getCallOptions()), request, responseObserver); + } + /** */ public void updateProvider(com.scalekit.grpc.scalekit.v1.providers.UpdateProviderRequest request, @@ -271,6 +393,14 @@ public void updateProvider(com.scalekit.grpc.scalekit.v1.providers.UpdateProvide getChannel().newCall(getUpdateProviderMethod(), getCallOptions()), request, responseObserver); } + /** + */ + public void updateCustomProvider(com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomProviderMethod(), getCallOptions()), request, responseObserver); + } + /** */ public void deleteProvider(com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest request, @@ -279,6 +409,14 @@ public void deleteProvider(com.scalekit.grpc.scalekit.v1.providers.DeleteProvide getChannel().newCall(getDeleteProviderMethod(), getCallOptions()), request, responseObserver); } + /** + */ + public void deleteCustomProvider(com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteCustomProviderMethod(), getCallOptions()), request, responseObserver); + } + /** */ public void listProviders(com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest request, @@ -314,6 +452,13 @@ public com.scalekit.grpc.scalekit.v1.providers.CreateProviderResponse createProv getChannel(), getCreateProviderMethod(), getCallOptions(), request); } + /** + */ + public com.scalekit.grpc.scalekit.v1.providers.CreateProviderResponse createCustomProvider(com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateCustomProviderMethod(), getCallOptions(), request); + } + /** */ public com.scalekit.grpc.scalekit.v1.providers.UpdateProviderResponse updateProvider(com.scalekit.grpc.scalekit.v1.providers.UpdateProviderRequest request) { @@ -321,6 +466,13 @@ public com.scalekit.grpc.scalekit.v1.providers.UpdateProviderResponse updateProv getChannel(), getUpdateProviderMethod(), getCallOptions(), request); } + /** + */ + public com.scalekit.grpc.scalekit.v1.providers.UpdateProviderResponse updateCustomProvider(com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateCustomProviderMethod(), getCallOptions(), request); + } + /** */ public com.scalekit.grpc.scalekit.v1.providers.DeleteProviderResponse deleteProvider(com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest request) { @@ -328,6 +480,13 @@ public com.scalekit.grpc.scalekit.v1.providers.DeleteProviderResponse deleteProv getChannel(), getDeleteProviderMethod(), getCallOptions(), request); } + /** + */ + public com.scalekit.grpc.scalekit.v1.providers.DeleteProviderResponse deleteCustomProvider(com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteCustomProviderMethod(), getCallOptions(), request); + } + /** */ public com.scalekit.grpc.scalekit.v1.providers.ListProvidersResponse listProviders(com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest request) { @@ -363,6 +522,14 @@ public com.google.common.util.concurrent.ListenableFuture createCustomProvider( + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateCustomProviderMethod(), getCallOptions()), request); + } + /** */ public com.google.common.util.concurrent.ListenableFuture updateProvider( @@ -371,6 +538,14 @@ public com.google.common.util.concurrent.ListenableFuture updateCustomProvider( + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateCustomProviderMethod(), getCallOptions()), request); + } + /** */ public com.google.common.util.concurrent.ListenableFuture deleteProvider( @@ -379,6 +554,14 @@ public com.google.common.util.concurrent.ListenableFuture deleteCustomProvider( + com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteCustomProviderMethod(), getCallOptions()), request); + } + /** */ public com.google.common.util.concurrent.ListenableFuture listProviders( @@ -389,9 +572,12 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -414,14 +600,26 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.createProvider((com.scalekit.grpc.scalekit.v1.providers.CreateProviderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_CUSTOM_PROVIDER: + serviceImpl.createCustomProvider((com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_UPDATE_PROVIDER: serviceImpl.updateProvider((com.scalekit.grpc.scalekit.v1.providers.UpdateProviderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_CUSTOM_PROVIDER: + serviceImpl.updateCustomProvider((com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_DELETE_PROVIDER: serviceImpl.deleteProvider((com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_CUSTOM_PROVIDER: + serviceImpl.deleteCustomProvider((com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_LIST_PROVIDERS: serviceImpl.listProviders((com.scalekit.grpc.scalekit.v1.providers.ListProvidersRequest) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -451,6 +649,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.providers.CreateProviderRequest, com.scalekit.grpc.scalekit.v1.providers.CreateProviderResponse>( service, METHODID_CREATE_PROVIDER))) + .addMethod( + getCreateCustomProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.providers.CreateCustomProviderRequest, + com.scalekit.grpc.scalekit.v1.providers.CreateProviderResponse>( + service, METHODID_CREATE_CUSTOM_PROVIDER))) .addMethod( getUpdateProviderMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -458,6 +663,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.providers.UpdateProviderRequest, com.scalekit.grpc.scalekit.v1.providers.UpdateProviderResponse>( service, METHODID_UPDATE_PROVIDER))) + .addMethod( + getUpdateCustomProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest, + com.scalekit.grpc.scalekit.v1.providers.UpdateProviderResponse>( + service, METHODID_UPDATE_CUSTOM_PROVIDER))) .addMethod( getDeleteProviderMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -465,6 +677,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest, com.scalekit.grpc.scalekit.v1.providers.DeleteProviderResponse>( service, METHODID_DELETE_PROVIDER))) + .addMethod( + getDeleteCustomProviderMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.providers.DeleteProviderRequest, + com.scalekit.grpc.scalekit.v1.providers.DeleteProviderResponse>( + service, METHODID_DELETE_CUSTOM_PROVIDER))) .addMethod( getListProvidersMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -521,8 +740,11 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ProviderServiceFileDescriptorSupplier()) .addMethod(getCreateProviderMethod()) + .addMethod(getCreateCustomProviderMethod()) .addMethod(getUpdateProviderMethod()) + .addMethod(getUpdateCustomProviderMethod()) .addMethod(getDeleteProviderMethod()) + .addMethod(getDeleteCustomProviderMethod()) .addMethod(getListProvidersMethod()) .build(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProviderType.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProviderType.java new file mode 100644 index 00000000..380fc909 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProviderType.java @@ -0,0 +1,123 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/providers/providers.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.providers; + +/** + * Protobuf enum {@code scalekit.v1.providers.ProviderType} + */ +public enum ProviderType + implements com.google.protobuf.ProtocolMessageEnum { + /** + * DEFAULT = 0; + */ + DEFAULT(0), + /** + * CUSTOM = 1; + */ + CUSTOM(1), + /** + * ALL = 2; + */ + ALL(2), + UNRECOGNIZED(-1), + ; + + /** + * DEFAULT = 0; + */ + public static final int DEFAULT_VALUE = 0; + /** + * CUSTOM = 1; + */ + public static final int CUSTOM_VALUE = 1; + /** + * ALL = 2; + */ + public static final int ALL_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 ProviderType 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 ProviderType forNumber(int value) { + switch (value) { + case 0: return DEFAULT; + case 1: return CUSTOM; + case 2: return ALL; + default: return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + private static final com.google.protobuf.Internal.EnumLiteMap< + ProviderType> internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ProviderType findValueByNumber(int number) { + return ProviderType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor + getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + public final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptorForType() { + return getDescriptor(); + } + public static final com.google.protobuf.Descriptors.EnumDescriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.getDescriptor().getEnumTypes().get(0); + } + + private static final ProviderType[] VALUES = values(); + + public static ProviderType 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 ProviderType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:scalekit.v1.providers.ProviderType) +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProvidersProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProvidersProto.java index 8322b3e4..c76d4294 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProvidersProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/ProvidersProto.java @@ -20,6 +20,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_providers_Provider_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_providers_Provider_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_providers_Provider_MetadataEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_scalekit_v1_providers_CreateProvider_descriptor; static final @@ -30,6 +35,21 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_providers_CreateProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_providers_CreateCustomProvider_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_providers_CreateCustomProvider_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_providers_CreateCustomProvider_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_providers_CreateCustomProvider_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_providers_CreateCustomProviderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_providers_CreateCustomProviderRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_scalekit_v1_providers_CreateProviderResponse_descriptor; static final @@ -45,6 +65,21 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_providers_UpdateProviderRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_providers_UpdateCustomProvider_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_providers_UpdateCustomProvider_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_providers_UpdateCustomProvider_MetadataEntry_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_providers_UpdateCustomProvider_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_providers_UpdateCustomProviderRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_providers_UpdateCustomProviderRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_scalekit_v1_providers_UpdateProviderResponse_descriptor; static final @@ -55,6 +90,11 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_providers_ListProvidersRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_providers_ListProvidersRequest_Filter_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_providers_ListProvidersRequest_Filter_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_scalekit_v1_providers_ListProvidersResponse_descriptor; static final @@ -88,7 +128,7 @@ public static void registerAllExtensions( ".proto\032\036google/protobuf/wrappers.proto\032." + "protoc-gen-openapiv2/options/annotations" + ".proto\032!scalekit/v1/options/options.prot" + - "o\"\211\003\n\010Provider\022\016\n\002id\030\001 \001(\tR\002id\022\036\n\nidenti" + + "o\"\262\007\n\010Provider\022\016\n\002id\030\001 \001(\tR\002id\022\036\n\nidenti" + "fier\030\002 \001(\tR\nidentifier\022!\n\014display_name\030\003" + " \001(\tR\013displayName\022 \n\013description\030\004 \001(\tR\013" + "description\022\036\n\ncategories\030\005 \003(\tR\ncategor" + @@ -97,115 +137,278 @@ public static void registerAllExtensions( "\030\007 \001(\tR\007iconSrc\022)\n\020display_priority\030\010 \001(" + "\005R\017displayPriority\022\037\n\013coming_soon\030\t \001(\010R" + "\ncomingSoon\022\033\n\tproxy_url\030\n \001(\tR\010proxyUrl" + - "\022#\n\rproxy_enabled\030\013 \001(\010R\014proxyEnabled\"\201\n" + - "\n\016CreateProvider\022\207\001\n\nidentifier\030\002 \001(\tBg\222" + - "AF20Unique identifier for the connected " + - "app providerJ\022\"google_workspace\"\272H\033r\026\020\001\030" + - "d2\020^[a-zA-Z0-9_-]*$\310\001\001R\nidentifier\022t\n\014di" + - "splay_name\030\003 \001(\tBQ\222AA2+Display name for " + - "the connected app providerJ\022\"Google Work" + - "space\"\272H\nr\005\020\001\030\310\001\310\001\001R\013displayName\022\222\001\n\013des" + - "cription\030\004 \001(\tBp\222Am2)Description of the " + - "connected app providerJ@\"Connect to Goog" + - "le Workspace for email and calendar inte" + - "gration\"R\013description\022i\n\ncategories\030\005 \003(" + - "\tBI\222AF2)Categories for the connected app" + - " providerJ\031[\"productivity\", \"email\"]R\nca" + - "tegories\022\202\001\n\rauth_patterns\030\006 \001(\0132\032.googl" + - "e.protobuf.ListValueBA\222A826Authenticatio" + - "n patterns for the connected app provide" + - "r\272H\003\310\001\001R\014authPatterns\022\202\001\n\010icon_src\030\007 \001(\t" + - "Bg\222Ad2/Image source URL for the connecte" + - "d app providerJ1\"https://example.com/ima" + - "ges/google_workspace.png\"R\007iconSrc\022)\n\020di" + - "splay_priority\030\010 \001(\005R\017displayPriority\022c\n" + - "\013coming_soon\030\t \001(\010BB\222A?26Indicates if th" + - "e connected app provider is coming soonJ" + - "\005falseR\ncomingSoon\022k\n\tproxy_url\030\n \001(\tBN\222" + - "AK2(Proxy URL for the connected app prov" + - "iderJ\037\"https://workspace.google.com/\"R\010p" + - "roxyUrl\022\341\001\n\rproxy_enabled\030\013 \001(\010B\273\001\222A\267\0012\256" + - "\001This flag indicates whether proxying is" + - " turned on for the connected app provide" + - "r. When enabled, requests are routed thr" + - "ough the provider proxy instead of being" + - " sent directly.J\004trueR\014proxyEnabledJ\004\010\001\020" + - "\002\"\226\001\n\025CreateProviderRequest\022}\n\010provider\030" + - "\001 \001(\0132%.scalekit.v1.providers.CreateProv" + - "iderB:\222A12/Details of the connected app " + - "provider to create\272H\003\310\001\001R\010provider\"U\n\026Cr" + - "eateProviderResponse\022;\n\010provider\030\001 \001(\0132\037" + - ".scalekit.v1.providers.ProviderR\010provide" + - "r\"\271\010\n\016UpdateProvider\022t\n\014display_name\030\003 \001" + - "(\tBQ\222AA2+Display name for the connected " + - "app providerJ\022\"Google Workspace\"\272H\nr\005\020\001\030" + - "\310\001\310\001\001R\013displayName\022\222\001\n\013description\030\004 \001(\t" + - "Bp\222Am2)Description of the connected app " + - "providerJ@\"Connect to Google Workspace f" + - "or email and calendar integration\"R\013desc" + - "ription\022i\n\ncategories\030\005 \003(\tBI\222AF2)Catego" + - "ries for the connected app providerJ\031[\"p" + - "roductivity\", \"email\"]R\ncategories\022|\n\rau" + + "\022#\n\rproxy_enabled\030\013 \001(\010R\014proxyEnabled\022o\n" + + "\tis_custom\030\014 \001(\010BR\222AO2FIndicates whether" + + " the provider is environment-scoped (cus" + + "tom provider)J\005falseR\010isCustom\022y\n\ris_cus" + + "tom_mcp\030\r \001(\010BU\222AR2IIndicates whether th" + + "is is an environment-scoped MCP-based cu" + + "stom providerJ\005falseR\013isCustomMcp\022\375\001\n\010me" + + "tadata\030\016 \003(\0132-.scalekit.v1.providers.Pro" + + "vider.MetadataEntryB\261\001\222A\255\0012}Custom key-v" + + "alue metadata stored for this provider. " + + "Returned for all providers; defaults to " + + "{} when no metadata has been set.J,{\"api" + + "_version\": \"v2\", \"region\": \"us-east-1\"}R" + + "\010metadata\032;\n\rMetadataEntry\022\020\n\003key\030\001 \001(\tR" + + "\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\"\361\n\n\016Creat" + + "eProvider\022\367\001\n\nidentifier\030\002 \001(\tB\326\001\222A\264\0012\235\001" + + "Unique identifier for the connected app " + + "provider. Spaces are not allowed, and th" + + "e character : is reserved for internal s" + + "uffixing and cannot be used in input.J\022\"" + + "google_workspace\"\272H\033r\026\020\001\030d2\020^[a-zA-Z0-9_" + + "-]*$\310\001\001R\nidentifier\022t\n\014display_name\030\003 \001(" + + "\tBQ\222AA2+Display name for the connected a" + + "pp providerJ\022\"Google Workspace\"\272H\nr\005\020\001\030\310" + + "\001\310\001\001R\013displayName\022\222\001\n\013description\030\004 \001(\tB" + + "p\222Am2)Description of the connected app p" + + "roviderJ@\"Connect to Google Workspace fo" + + "r email and calendar integration\"R\013descr" + + "iption\022i\n\ncategories\030\005 \003(\tBI\222AF2)Categor" + + "ies for the connected app providerJ\031[\"pr" + + "oductivity\", \"email\"]R\ncategories\022\202\001\n\rau" + "th_patterns\030\006 \001(\0132\032.google.protobuf.List" + - "ValueB;\222A826Authentication patterns for " + - "the connected app providerR\014authPatterns" + - "\022\202\001\n\010icon_src\030\007 \001(\tBg\222Ad2/Image source U" + - "RL for the connected app providerJ1\"http" + - "s://example.com/images/google_workspace." + - "png\"R\007iconSrc\022)\n\020display_priority\030\010 \001(\005R" + - "\017displayPriority\022\177\n\013coming_soon\030\t \001(\0132\032." + - "google.protobuf.BoolValueBB\222A?26Indicate" + - "s if the connected app provider is comin" + - "g soonJ\005falseR\ncomingSoon\022k\n\tproxy_url\030\n" + - " \001(\tBN\222AK2(Proxy URL for the connected a" + - "pp providerJ\037\"https://workspace.google.c" + - "om/\"R\010proxyUrl\022\210\001\n\rproxy_enabled\030\013 \001(\0132\032" + - ".google.protobuf.BoolValueBG\222AD2 builder) { + super(builder); + } + private UpdateCustomProvider() { + displayName_ = ""; + description_ = ""; + proxyUrl_ = ""; + iconSrc_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateCustomProvider(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_UpdateCustomProvider_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_UpdateCustomProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.class, com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.Builder.class); + } + + private int bitField0_; + public static final int DISPLAY_NAME_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 2; + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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 AUTH_PATTERNS_FIELD_NUMBER = 4; + private com.google.protobuf.ListValue authPatterns_; + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the authPatterns field is set. + */ + @java.lang.Override + public boolean hasAuthPatterns() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The authPatterns. + */ + @java.lang.Override + public com.google.protobuf.ListValue getAuthPatterns() { + return authPatterns_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : authPatterns_; + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.google.protobuf.ListValueOrBuilder getAuthPatternsOrBuilder() { + return authPatterns_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : authPatterns_; + } + + public static final int PROXY_URL_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object proxyUrl_ = ""; + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The proxyUrl. + */ + @java.lang.Override + public java.lang.String getProxyUrl() { + java.lang.Object ref = proxyUrl_; + 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(); + proxyUrl_ = s; + return s; + } + } + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for proxyUrl. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getProxyUrlBytes() { + java.lang.Object ref = proxyUrl_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + proxyUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROXY_ENABLED_FIELD_NUMBER = 8; + private boolean proxyEnabled_ = false; + /** + * bool proxy_enabled = 8 [json_name = "proxyEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The proxyEnabled. + */ + @java.lang.Override + public boolean getProxyEnabled() { + return proxyEnabled_; + } + + public static final int ICON_SRC_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object iconSrc_ = ""; + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The iconSrc. + */ + @java.lang.Override + public java.lang.String getIconSrc() { + java.lang.Object ref = iconSrc_; + 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(); + iconSrc_ = s; + return s; + } + } + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for iconSrc. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIconSrcBytes() { + java.lang.Object ref = iconSrc_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iconSrc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METADATA_FIELD_NUMBER = 10; + private static final class MetadataDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, java.lang.String> defaultEntry = + com.google.protobuf.MapEntry + .newDefaultInstance( + com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_UpdateCustomProvider_MetadataEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getAuthPatterns()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUrl_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, proxyUrl_); + } + if (proxyEnabled_ != false) { + output.writeBool(8, proxyEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconSrc_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, iconSrc_); + } + com.google.protobuf.GeneratedMessageV3 + .serializeStringMapTo( + output, + internalGetMetadata(), + MetadataDefaultEntryHolder.defaultEntry, + 10); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, displayName_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, description_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, getAuthPatterns()); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(proxyUrl_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, proxyUrl_); + } + if (proxyEnabled_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(8, proxyEnabled_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(iconSrc_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, iconSrc_); + } + for (java.util.Map.Entry entry + : internalGetMetadata().getMap().entrySet()) { + com.google.protobuf.MapEntry + metadata__ = MetadataDefaultEntryHolder.defaultEntry.newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(10, metadata__); + } + 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.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider other = (com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider) obj; + + if (!getDisplayName() + .equals(other.getDisplayName())) return false; + if (!getDescription() + .equals(other.getDescription())) return false; + if (hasAuthPatterns() != other.hasAuthPatterns()) return false; + if (hasAuthPatterns()) { + if (!getAuthPatterns() + .equals(other.getAuthPatterns())) return false; + } + if (!getProxyUrl() + .equals(other.getProxyUrl())) return false; + if (getProxyEnabled() + != other.getProxyEnabled()) return false; + if (!getIconSrc() + .equals(other.getIconSrc())) return false; + if (!internalGetMetadata().equals( + other.internalGetMetadata())) 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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (hasAuthPatterns()) { + hash = (37 * hash) + AUTH_PATTERNS_FIELD_NUMBER; + hash = (53 * hash) + getAuthPatterns().hashCode(); + } + hash = (37 * hash) + PROXY_URL_FIELD_NUMBER; + hash = (53 * hash) + getProxyUrl().hashCode(); + hash = (37 * hash) + PROXY_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getProxyEnabled()); + hash = (37 * hash) + ICON_SRC_FIELD_NUMBER; + hash = (53 * hash) + getIconSrc().hashCode(); + if (!internalGetMetadata().getMap().isEmpty()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + internalGetMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.providers.UpdateCustomProvider} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.providers.UpdateCustomProvider) + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_UpdateCustomProvider_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 10: + return internalGetMutableMetadata(); + default: + throw new RuntimeException( + "Invalid map field number: " + number); + } + } + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_UpdateCustomProvider_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.class, com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getAuthPatternsFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + displayName_ = ""; + description_ = ""; + authPatterns_ = null; + if (authPatternsBuilder_ != null) { + authPatternsBuilder_.dispose(); + authPatternsBuilder_ = null; + } + proxyUrl_ = ""; + proxyEnabled_ = false; + iconSrc_ = ""; + internalGetMutableMetadata().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_UpdateCustomProvider_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider build() { + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider buildPartial() { + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider result = new com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.description_ = description_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.authPatterns_ = authPatternsBuilder_ == null + ? authPatterns_ + : authPatternsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.proxyUrl_ = proxyUrl_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.proxyEnabled_ = proxyEnabled_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.iconSrc_ = iconSrc_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.metadata_ = internalGetMetadata(); + result.metadata_.makeImmutable(); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider other) { + if (other == com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.getDefaultInstance()) return this; + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAuthPatterns()) { + mergeAuthPatterns(other.getAuthPatterns()); + } + if (!other.getProxyUrl().isEmpty()) { + proxyUrl_ = other.proxyUrl_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.getProxyEnabled() != false) { + setProxyEnabled(other.getProxyEnabled()); + } + if (!other.getIconSrc().isEmpty()) { + iconSrc_ = other.iconSrc_; + bitField0_ |= 0x00000020; + onChanged(); + } + internalGetMutableMetadata().mergeFrom( + other.internalGetMetadata()); + bitField0_ |= 0x00000040; + 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: { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 34: { + input.readMessage( + getAuthPatternsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 58: { + proxyUrl_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 64: { + proxyEnabled_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 64 + case 74: { + iconSrc_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 74 + case 82: { + com.google.protobuf.MapEntry + metadata__ = input.readMessage( + MetadataDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry); + internalGetMutableMetadata().getMutableMap().put( + metadata__.getKey(), metadata__.getValue()); + bitField0_ |= 0x00000040; + break; + } // case 82 + 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 displayName_ = ""; + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString + getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000002; + onChanged(); + return this; + } + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.protobuf.ListValue authPatterns_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> authPatternsBuilder_; + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the authPatterns field is set. + */ + public boolean hasAuthPatterns() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The authPatterns. + */ + public com.google.protobuf.ListValue getAuthPatterns() { + if (authPatternsBuilder_ == null) { + return authPatterns_ == null ? com.google.protobuf.ListValue.getDefaultInstance() : authPatterns_; + } else { + return authPatternsBuilder_.getMessage(); + } + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setAuthPatterns(com.google.protobuf.ListValue value) { + if (authPatternsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + authPatterns_ = value; + } else { + authPatternsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setAuthPatterns( + com.google.protobuf.ListValue.Builder builderForValue) { + if (authPatternsBuilder_ == null) { + authPatterns_ = builderForValue.build(); + } else { + authPatternsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeAuthPatterns(com.google.protobuf.ListValue value) { + if (authPatternsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) && + authPatterns_ != null && + authPatterns_ != com.google.protobuf.ListValue.getDefaultInstance()) { + getAuthPatternsBuilder().mergeFrom(value); + } else { + authPatterns_ = value; + } + } else { + authPatternsBuilder_.mergeFrom(value); + } + if (authPatterns_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearAuthPatterns() { + bitField0_ = (bitField0_ & ~0x00000004); + authPatterns_ = null; + if (authPatternsBuilder_ != null) { + authPatternsBuilder_.dispose(); + authPatternsBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.ListValue.Builder getAuthPatternsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getAuthPatternsFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.google.protobuf.ListValueOrBuilder getAuthPatternsOrBuilder() { + if (authPatternsBuilder_ != null) { + return authPatternsBuilder_.getMessageOrBuilder(); + } else { + return authPatterns_ == null ? + com.google.protobuf.ListValue.getDefaultInstance() : authPatterns_; + } + } + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder> + getAuthPatternsFieldBuilder() { + if (authPatternsBuilder_ == null) { + authPatternsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.ListValue, com.google.protobuf.ListValue.Builder, com.google.protobuf.ListValueOrBuilder>( + getAuthPatterns(), + getParentForChildren(), + isClean()); + authPatterns_ = null; + } + return authPatternsBuilder_; + } + + private java.lang.Object proxyUrl_ = ""; + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The proxyUrl. + */ + public java.lang.String getProxyUrl() { + java.lang.Object ref = proxyUrl_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + proxyUrl_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for proxyUrl. + */ + public com.google.protobuf.ByteString + getProxyUrlBytes() { + java.lang.Object ref = proxyUrl_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + proxyUrl_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The proxyUrl to set. + * @return This builder for chaining. + */ + public Builder setProxyUrl( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + proxyUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearProxyUrl() { + proxyUrl_ = getDefaultInstance().getProxyUrl(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for proxyUrl to set. + * @return This builder for chaining. + */ + public Builder setProxyUrlBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + proxyUrl_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private boolean proxyEnabled_ ; + /** + * bool proxy_enabled = 8 [json_name = "proxyEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The proxyEnabled. + */ + @java.lang.Override + public boolean getProxyEnabled() { + return proxyEnabled_; + } + /** + * bool proxy_enabled = 8 [json_name = "proxyEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The proxyEnabled to set. + * @return This builder for chaining. + */ + public Builder setProxyEnabled(boolean value) { + + proxyEnabled_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * bool proxy_enabled = 8 [json_name = "proxyEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearProxyEnabled() { + bitField0_ = (bitField0_ & ~0x00000010); + proxyEnabled_ = false; + onChanged(); + return this; + } + + private java.lang.Object iconSrc_ = ""; + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The iconSrc. + */ + public java.lang.String getIconSrc() { + java.lang.Object ref = iconSrc_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + iconSrc_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for iconSrc. + */ + public com.google.protobuf.ByteString + getIconSrcBytes() { + java.lang.Object ref = iconSrc_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + iconSrc_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The iconSrc to set. + * @return This builder for chaining. + */ + public Builder setIconSrc( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + iconSrc_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIconSrc() { + iconSrc_ = getDefaultInstance().getIconSrc(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for iconSrc to set. + * @return This builder for chaining. + */ + public Builder setIconSrcBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + iconSrc_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.protobuf.MapField< + java.lang.String, java.lang.String> metadata_; + private com.google.protobuf.MapField + internalGetMetadata() { + if (metadata_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + return metadata_; + } + private com.google.protobuf.MapField + internalGetMutableMetadata() { + if (metadata_ == null) { + metadata_ = com.google.protobuf.MapField.newMapField( + MetadataDefaultEntryHolder.defaultEntry); + } + if (!metadata_.isMutable()) { + metadata_ = metadata_.copy(); + } + bitField0_ |= 0x00000040; + onChanged(); + return metadata_; + } + public int getMetadataCount() { + return internalGetMetadata().getMap().size(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public boolean containsMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + return internalGetMetadata().getMap().containsKey(key); + } + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getMetadata() { + return getMetadataMap(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.util.Map getMetadataMap() { + return internalGetMetadata().getMap(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.lang.String getMetadataOrThrow( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + java.util.Map map = + internalGetMetadata().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000040); + internalGetMutableMetadata().getMutableMap() + .clear(); + return this; + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder removeMetadata( + java.lang.String key) { + if (key == null) { throw new NullPointerException("map key"); } + internalGetMutableMetadata().getMutableMap() + .remove(key); + return this; + } + /** + * Use alternate mutation accessors instead. + */ + @java.lang.Deprecated + public java.util.Map + getMutableMetadata() { + bitField0_ |= 0x00000040; + return internalGetMutableMetadata().getMutableMap(); + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder putMetadata( + java.lang.String key, + java.lang.String value) { + if (key == null) { throw new NullPointerException("map key"); } + if (value == null) { throw new NullPointerException("map value"); } + internalGetMutableMetadata().getMutableMap() + .put(key, value); + bitField0_ |= 0x00000040; + return this; + } + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder putAllMetadata( + java.util.Map values) { + internalGetMutableMetadata().getMutableMap() + .putAll(values); + bitField0_ |= 0x00000040; + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.providers.UpdateCustomProvider) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.providers.UpdateCustomProvider) + private static final com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider(); + } + + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomProvider 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.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProviderOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProviderOrBuilder.java new file mode 100644 index 00000000..d9ccf15c --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProviderOrBuilder.java @@ -0,0 +1,113 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/providers/providers.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.providers; + +public interface UpdateCustomProviderOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.providers.UpdateCustomProvider) + com.google.protobuf.MessageOrBuilder { + + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * string display_name = 1 [json_name = "displayName", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString + getDisplayNameBytes(); + + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The description. + */ + java.lang.String getDescription(); + /** + * string description = 2 [json_name = "description", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for description. + */ + com.google.protobuf.ByteString + getDescriptionBytes(); + + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the authPatterns field is set. + */ + boolean hasAuthPatterns(); + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The authPatterns. + */ + com.google.protobuf.ListValue getAuthPatterns(); + /** + * .google.protobuf.ListValue auth_patterns = 4 [json_name = "authPatterns", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.google.protobuf.ListValueOrBuilder getAuthPatternsOrBuilder(); + + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The proxyUrl. + */ + java.lang.String getProxyUrl(); + /** + * string proxy_url = 7 [json_name = "proxyUrl", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for proxyUrl. + */ + com.google.protobuf.ByteString + getProxyUrlBytes(); + + /** + * bool proxy_enabled = 8 [json_name = "proxyEnabled", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The proxyEnabled. + */ + boolean getProxyEnabled(); + + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The iconSrc. + */ + java.lang.String getIconSrc(); + /** + * string icon_src = 9 [json_name = "iconSrc", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for iconSrc. + */ + com.google.protobuf.ByteString + getIconSrcBytes(); + + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + int getMetadataCount(); + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + boolean containsMetadata( + java.lang.String key); + /** + * Use {@link #getMetadataMap()} instead. + */ + @java.lang.Deprecated + java.util.Map + getMetadata(); + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + java.util.Map + getMetadataMap(); + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + /* nullable */ +java.lang.String getMetadataOrDefault( + java.lang.String key, + /* nullable */ +java.lang.String defaultValue); + /** + * map<string, string> metadata = 10 [json_name = "metadata", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + java.lang.String getMetadataOrThrow( + java.lang.String key); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProviderRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProviderRequest.java new file mode 100644 index 00000000..30c0e7d7 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProviderRequest.java @@ -0,0 +1,735 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/providers/providers.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.providers; + +/** + * Protobuf type {@code scalekit.v1.providers.UpdateCustomProviderRequest} + */ +public final class UpdateCustomProviderRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.providers.UpdateCustomProviderRequest) + UpdateCustomProviderRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use UpdateCustomProviderRequest.newBuilder() to construct. + private UpdateCustomProviderRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private UpdateCustomProviderRequest() { + identifier_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new UpdateCustomProviderRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_UpdateCustomProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_UpdateCustomProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest.class, com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest.Builder.class); + } + + private int bitField0_; + public static final int IDENTIFIER_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object identifier_ = ""; + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The identifier. + */ + @java.lang.Override + public java.lang.String getIdentifier() { + java.lang.Object ref = identifier_; + 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(); + identifier_ = s; + return s; + } + } + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for identifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdentifierBytes() { + java.lang.Object ref = identifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROVIDER_FIELD_NUMBER = 2; + private com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider provider_; + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the provider field is set. + */ + @java.lang.Override + public boolean hasProvider() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The provider. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider getProvider() { + return provider_ == null ? com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.getDefaultInstance() : provider_; + } + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderOrBuilder getProviderOrBuilder() { + return provider_ == null ? com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.getDefaultInstance() : provider_; + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identifier_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getProvider()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identifier_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identifier_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getProvider()); + } + 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.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest other = (com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest) obj; + + if (!getIdentifier() + .equals(other.getIdentifier())) return false; + if (hasProvider() != other.hasProvider()) return false; + if (hasProvider()) { + if (!getProvider() + .equals(other.getProvider())) 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) + IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getIdentifier().hashCode(); + if (hasProvider()) { + hash = (37 * hash) + PROVIDER_FIELD_NUMBER; + hash = (53 * hash) + getProvider().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.providers.UpdateCustomProviderRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.providers.UpdateCustomProviderRequest) + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_UpdateCustomProviderRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_UpdateCustomProviderRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest.class, com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getProviderFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + identifier_ = ""; + provider_ = null; + if (providerBuilder_ != null) { + providerBuilder_.dispose(); + providerBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.providers.ProvidersProto.internal_static_scalekit_v1_providers_UpdateCustomProviderRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest build() { + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest result = new com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.identifier_ = identifier_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.provider_ = providerBuilder_ == null + ? provider_ + : providerBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest.getDefaultInstance()) return this; + if (!other.getIdentifier().isEmpty()) { + identifier_ = other.identifier_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasProvider()) { + mergeProvider(other.getProvider()); + } + 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: { + identifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getProviderFieldBuilder().getBuilder(), + extensionRegistry); + 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 identifier_ = ""; + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The identifier. + */ + public java.lang.String getIdentifier() { + java.lang.Object ref = identifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for identifier. + */ + public com.google.protobuf.ByteString + getIdentifierBytes() { + java.lang.Object ref = identifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifier( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + identifier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIdentifier() { + identifier_ = getDefaultInstance().getIdentifier(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifierBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + identifier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider provider_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider, com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.Builder, com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderOrBuilder> providerBuilder_; + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the provider field is set. + */ + public boolean hasProvider() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The provider. + */ + public com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider getProvider() { + if (providerBuilder_ == null) { + return provider_ == null ? com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.getDefaultInstance() : provider_; + } else { + return providerBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setProvider(com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider value) { + if (providerBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + provider_ = value; + } else { + providerBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setProvider( + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.Builder builderForValue) { + if (providerBuilder_ == null) { + provider_ = builderForValue.build(); + } else { + providerBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder mergeProvider(com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider value) { + if (providerBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + provider_ != null && + provider_ != com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.getDefaultInstance()) { + getProviderBuilder().mergeFrom(value); + } else { + provider_ = value; + } + } else { + providerBuilder_.mergeFrom(value); + } + if (provider_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearProvider() { + bitField0_ = (bitField0_ & ~0x00000002); + provider_ = null; + if (providerBuilder_ != null) { + providerBuilder_.dispose(); + providerBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.Builder getProviderBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getProviderFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderOrBuilder getProviderOrBuilder() { + if (providerBuilder_ != null) { + return providerBuilder_.getMessageOrBuilder(); + } else { + return provider_ == null ? + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.getDefaultInstance() : provider_; + } + } + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider, com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.Builder, com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderOrBuilder> + getProviderFieldBuilder() { + if (providerBuilder_ == null) { + providerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider, com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider.Builder, com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderOrBuilder>( + getProvider(), + getParentForChildren(), + isClean()); + provider_ = null; + } + return providerBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.providers.UpdateCustomProviderRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.providers.UpdateCustomProviderRequest) + private static final com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomProviderRequest 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.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProviderRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProviderRequestOrBuilder.java new file mode 100644 index 00000000..af3cdb3f --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateCustomProviderRequestOrBuilder.java @@ -0,0 +1,37 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/providers/providers.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.providers; + +public interface UpdateCustomProviderRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.providers.UpdateCustomProviderRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The identifier. + */ + java.lang.String getIdentifier(); + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for identifier. + */ + com.google.protobuf.ByteString + getIdentifierBytes(); + + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the provider field is set. + */ + boolean hasProvider(); + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The provider. + */ + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProvider getProvider(); + /** + * .scalekit.v1.providers.UpdateCustomProvider provider = 2 [json_name = "provider", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.providers.UpdateCustomProviderOrBuilder getProviderOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateProviderRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateProviderRequest.java index f8a1396b..3c33b634 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateProviderRequest.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateProviderRequest.java @@ -49,7 +49,7 @@ protected java.lang.Object newInstance( @SuppressWarnings("serial") private volatile java.lang.Object identifier_ = ""; /** - * string identifier = 1 [json_name = "identifier", (.buf.validate.field) = { ... } + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The identifier. */ @java.lang.Override @@ -66,7 +66,7 @@ public java.lang.String getIdentifier() { } } /** - * string identifier = 1 [json_name = "identifier", (.buf.validate.field) = { ... } + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for identifier. */ @java.lang.Override @@ -487,7 +487,7 @@ public Builder mergeFrom( private java.lang.Object identifier_ = ""; /** - * string identifier = 1 [json_name = "identifier", (.buf.validate.field) = { ... } + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The identifier. */ public java.lang.String getIdentifier() { @@ -503,7 +503,7 @@ public java.lang.String getIdentifier() { } } /** - * string identifier = 1 [json_name = "identifier", (.buf.validate.field) = { ... } + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for identifier. */ public com.google.protobuf.ByteString @@ -520,7 +520,7 @@ public java.lang.String getIdentifier() { } } /** - * string identifier = 1 [json_name = "identifier", (.buf.validate.field) = { ... } + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The identifier to set. * @return This builder for chaining. */ @@ -533,7 +533,7 @@ public Builder setIdentifier( return this; } /** - * string identifier = 1 [json_name = "identifier", (.buf.validate.field) = { ... } + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return This builder for chaining. */ public Builder clearIdentifier() { @@ -543,7 +543,7 @@ public Builder clearIdentifier() { return this; } /** - * string identifier = 1 [json_name = "identifier", (.buf.validate.field) = { ... } + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @param value The bytes for identifier to set. * @return This builder for chaining. */ diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateProviderRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateProviderRequestOrBuilder.java index 3eb77501..40942091 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateProviderRequestOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/providers/UpdateProviderRequestOrBuilder.java @@ -9,12 +9,12 @@ public interface UpdateProviderRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { /** - * string identifier = 1 [json_name = "identifier", (.buf.validate.field) = { ... } + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The identifier. */ java.lang.String getIdentifier(); /** - * string identifier = 1 [json_name = "identifier", (.buf.validate.field) = { ... } + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @return The bytes for identifier. */ com.google.protobuf.ByteString diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/roles/RolesProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/roles/RolesProto.java index 1637c3b9..74d7c7c3 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/roles/RolesProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/roles/RolesProto.java @@ -777,7 +777,7 @@ public static void registerAllExtensions( " remove base fromJ\005admin\272H\037r\032\020\001\030d2\024^[a-z" + "A-Z0-9_]{1,64}$\310\001\001R\010roleName*8\n\016Permissi" + "onType\022\007\n\003ALL\020\000\022\014\n\010SCALEKIT\020\001\022\017\n\013ENVIRON" + - "MENT\020\0022\223\274\001\n\014RolesService\022\317\005\n\nCreateRole\022" + + "MENT\020\0022\204\274\001\n\014RolesService\022\317\005\n\nCreateRole\022" + "$.scalekit.v1.roles.CreateRoleRequest\032%." + "scalekit.v1.roles.CreateRoleResponse\"\363\004\222" + "A\316\004\n\005Roles\022\036Create new role in environme" + @@ -1115,9 +1115,9 @@ public static void registerAllExtensions( "p successfully removed. The role now has" + " only its directly assigned permissions." + "\202\265\030\002\030D\202\323\344\223\002 *\036/api/v1/roles/{role_name}/" + - "base\022\346\006\n\032DeleteOrganizationRoleBase\0224.sc" + + "base\022\327\006\n\032DeleteOrganizationRoleBase\0224.sc" + "alekit.v1.roles.DeleteOrganizationRoleBa" + - "seRequest\032\026.google.protobuf.Empty\"\371\005\222A\243\005" + + "seRequest\032\026.google.protobuf.Empty\"\352\005\222A\243\005" + "\n\005Roles\022$Remove organization role inheri" + "tance\032\350\003Removes the base role inheritanc" + "e relationship for a specified organizat" + @@ -1135,256 +1135,256 @@ public static void registerAllExtensions( "n role base inheritance relationship suc" + "cessfully removed. The role now has only" + " its directly assigned permissions.\202\265\030\002\030" + - "D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0027*5/api/v1/organiza" + - "tions/{org_id}/roles/{role_name}/base\022\317\007" + - "\n\020CreatePermission\022*.scalekit.v1.roles.C" + - "reatePermissionRequest\032+.scalekit.v1.rol" + - "es.CreatePermissionResponse\"\341\006\222A\260\006\n\013Perm" + - "issions\022\025Create new permission\032\306\004Creates" + - " a new permission that represents a spec" + - "ific action users can perform within the" + - " environment. Use this endpoint to defin" + - "e granular access controls for your RBAC" + - " system. You can provide a unique permis" + - "sion name following the format \'action:r" + - "esource\' (for example, \'read:documents\'," + - " \'write:users\') and an optional descript" + - "ion explaining the permission\'s purpose." + - " The permission name must be unique acro" + - "ss the environment and follows alphanume" + - "ric naming conventions with colons and u" + - "nderscores. Returns the created permissi" + - "on object including system-generated ID " + - "and timestamps.J\300\001\n\003201\022\270\001\n\204\001Permission " + - "created successfully. Returns the comple" + - "te permission object with system-generat" + - "ed ID, name, description, and timestamps" + - ".\022/\n-\032+.scalekit.v1.roles.CreatePermissi" + - "onResponse\202\265\030\002\030D\202\323\344\223\002!\"\023/api/v1/permissi" + - "ons:\npermission\022\275\007\n\rGetPermission\022\'.scal" + - "ekit.v1.roles.GetPermissionRequest\032(.sca" + - "lekit.v1.roles.GetPermissionResponse\"\330\006\222" + - "A\241\006\n\013Permissions\022\033Retrieve permission de" + - "tails\032\252\004Retrieves complete information f" + - "or a specific permission by its unique n" + - "ame identifier. Use this endpoint to vie" + - "w permission details including descripti" + - "on, creation time, and last update time." + - " Provide the permission name in the path" + - " parameter following the format \'action:" + - "resource\' (for example, \'read:documents\'" + - "). This operation is useful for auditing" + - " permission definitions, understanding p" + - "ermission purposes, or verifying permiss" + - "ion existence before assignment. Returns" + - " the complete permission object with all" + - " metadata and system-generated timestamp" + - "s.J\307\001\n\003200\022\277\001\n\216\001Successfully retrieved p" + - "ermission details. Returns the complete " + - "permission object including name, descri" + - "ption, creation time, and update time.\022," + - "\n*\032(.scalekit.v1.roles.GetPermissionResp" + - "onse\202\265\030\002\030D\202\323\344\223\002\'\022%/api/v1/permissions/{p" + - "ermission_name}\022\203\010\n\020UpdatePermission\022*.s" + - "calekit.v1.roles.UpdatePermissionRequest" + - "\032+.scalekit.v1.roles.UpdatePermissionRes" + - "ponse\"\225\007\222A\322\006\n\013Permissions\022\031Update permis" + - "sion details\032\371\004Modifies an existing perm" + - "ission\'s attributes including descriptio" + - "n and metadata. Use this endpoint to upd" + - "ate permission descriptions or clarify p" + - "ermission purposes after creation. The p" + - "ermission is identified by its unique na" + - "me in the path parameter, and only the f" + - "ields you specify in the request body wi" + - "ll be updated. Note that the permission " + - "name itself cannot be changed as it serv" + - "es as the immutable identifier. This ope" + - "ration is useful for maintaining clear d" + - "ocumentation of permission purposes or u" + - "pdating descriptions to reflect changes " + - "in system functionality. Returns the upd" + - "ated permission object with modified tim" + - "estamps.J\253\001\n\003200\022\243\001\npPermission updated " + - "successfully. Returns the modified permi" + - "ssion object with updated description an" + - "d timestamps.\022/\n-\032+.scalekit.v1.roles.Up" + - "datePermissionResponse\202\265\030\002\030D\202\323\344\223\0023\032%/api" + - "/v1/permissions/{permission_name}:\npermi" + - "ssion\022\361\007\n\017ListPermissions\022).scalekit.v1." + - "roles.ListPermissionsRequest\032*.scalekit." + - "v1.roles.ListPermissionsResponse\"\206\007\222A\341\006\n" + - "\013Permissions\022\024List all permissions\032\353\004Ret" + - "rieves a comprehensive, paginated list o" + - "f all permissions available within the e" + - "nvironment. Use this endpoint to view al" + - "l permission definitions for auditing, r" + - "ole management, or understanding the com" + - "plete set of available access controls. " + - "The response includes pagination tokens " + - "to navigate through large sets of permis" + - "sions efficiently. Each permission objec" + - "t contains the permission name, descript" + - "ion, creation time, and last update time" + - ". This operation is useful for building " + - "permission selection interfaces, auditin" + - "g permission usage, or understanding the" + - " scope of available access controls in y" + - "our RBAC system.J\315\001\n\003200\022\305\001\n\222\001Successful" + - "ly retrieved the list of permissions. Re" + - "turns a paginated list of permission obj" + - "ects with metadata and pagination tokens" + - " for navigation.\022.\n,\032*.scalekit.v1.roles" + - ".ListPermissionsResponse\202\265\030\002\030D\202\323\344\223\002\025\022\023/a" + - "pi/v1/permissions\022\320\006\n\020DeletePermission\022*" + - ".scalekit.v1.roles.DeletePermissionReque" + - "st\032\026.google.protobuf.Empty\"\367\005\222A\300\005\n\013Permi" + - "ssions\022\021Delete permission\032\335\004Permanently " + - "removes a permission from the environmen" + - "t using its unique name identifier. Use " + - "this endpoint when you need to clean up " + - "unused permissions or remove access cont" + - "rols that are no longer relevant. The pe" + - "rmission is identified by its name in th" + - "e path parameter following the format \'a" + - "ction:resource\'. This operation cannot b" + - "e undone, so ensure no active roles depe" + - "nd on the permission before deletion. If" + - " the permission is currently assigned to" + - " any roles, you may need to remove those" + - " assignments first or update the roles t" + - "o use alternative permissions. Returns n" + - "o content on successful deletion.J>\n\003200" + - "\0227\n5Permission successfully deleted. No " + - "content returned.\202\265\030\002\030D\202\323\344\223\002\'*%/api/v1/p" + - "ermissions/{permission_name}\022\200\t\n\023ListRol" + - "ePermissions\022-.scalekit.v1.roles.ListRol" + - "ePermissionsRequest\032..scalekit.v1.roles." + - "ListRolePermissionsResponse\"\211\010\222A\322\007\n\005Role" + - "s\022\031List permissions for role\032\327\005Retrieves" + - " all permissions directly assigned to th" + - "e specified role, excluding permissions " + - "inherited from base roles. Use this endp" + - "oint to view the explicit permission ass" + - "ignments for a role, which is useful for" + - " understanding direct role capabilities," + - " auditing permission assignments, or man" + - "aging role-permission relationships. Pro" + - "vide the role name as a path parameter, " + - "and the response will include only the p" + - "ermissions that are directly assigned to" + - " that role. This operation does not incl" + - "ude inherited permissions from role hier" + - "archies - use ListEffectiveRolePermissio" + - "ns to see the complete set of permission" + - "s including inheritance. Returns a list " + - "of permission objects with their names, " + - "descriptions, and assignment metadata.J\323" + - "\001\n\003200\022\313\001\n\224\001Successfully retrieved role " + - "permissions. Returns a list of all permi" + - "ssions directly assigned to the specifie" + - "d role, excluding inherited permissions." + - "\0222\n0\032..scalekit.v1.roles.ListRolePermiss" + - "ionsResponse\202\265\030\002\030D\202\323\344\223\002\'\022%/api/v1/roles/" + - "{role_name}/permissions\022\372\010\n\024AddPermissio" + - "nsToRole\022..scalekit.v1.roles.AddPermissi" + - "onsToRoleRequest\032/.scalekit.v1.roles.Add" + - "PermissionsToRoleResponse\"\200\010\222A\306\007\n\005Roles\022" + - "\027Add permissions to role\032\275\005Adds one or m" + - "ore permissions to the specified role wh" + - "ile preserving existing permission assig" + - "nments. Use this endpoint to grant addit" + - "ional capabilities to a role without aff" + - "ecting its current permission set. Provi" + - "de the role name as a path parameter and" + - " a list of permission names in the reque" + - "st body. The system will validate that a" + - "ll specified permissions exist in the en" + - "vironment and add them to the role. Exis" + - "ting permission assignments remain uncha" + - "nged, making this operation safe for inc" + - "remental permission management. This is " + - "useful for gradually expanding role capa" + - "bilities or adding new permissions as yo" + - "ur system evolves. Returns the updated l" + - "ist of all permissions now assigned to t" + - "he role.J\343\001\n\003200\022\333\001\n\243\001Permissions added " + - "to role successfully. Returns the comple" + - "te list of all permissions now assigned " + - "to the role, including both existing and" + - " newly added permissions.\0223\n1\032/.scalekit" + - ".v1.roles.AddPermissionsToRoleResponse\202\265" + - "\030\002\030D\202\323\344\223\002*\"%/api/v1/roles/{role_name}/pe" + - "rmissions:\001*\022\267\007\n\030RemovePermissionFromRol" + - "e\0222.scalekit.v1.roles.RemovePermissionFr" + - "omRoleRequest\032\026.google.protobuf.Empty\"\316\006" + - "\222A\205\006\n\005Roles\022\033Remove permission from role" + - "\032\224\005Removes a specific permission from th" + - "e specified role, revoking that capabili" + - "ty from all users assigned to the role. " + - "Use this endpoint to restrict role capab" + - "ilities or remove unnecessary permission" + - "s. Provide both the role name and permis" + - "sion name as path parameters. This opera" + - "tion only affects the direct permission " + - "assignment and does not impact permissio" + - "ns inherited from base roles. If the per" + - "mission is inherited through role hierar" + - "chy, you may need to modify the base rol" + - "e instead. This is useful for fine-tunin" + - "g role permissions, implementing least-p" + - "rivilege access controls, or removing de" + - "precated permissions. Returns no content" + - " on successful removal.JH\n\003200\022A\n?Permis" + - "sion removed from role successfully. No " + - "content returned.\202\265\030\002\030D\202\323\344\223\0029*7/api/v1/r" + - "oles/{role_name}/permissions/{permission" + - "_name}\022\337\t\n\034ListEffectiveRolePermissions\022" + - "6.scalekit.v1.roles.ListEffectiveRolePer" + - "missionsRequest\0327.scalekit.v1.roles.List" + - "EffectiveRolePermissionsResponse\"\315\010\222A\222\010\n" + - "\005Roles\022#List effective permissions for r" + - "ole\032\331\005Retrieves the complete set of effe" + - "ctive permissions for a role, including " + - "both directly assigned permissions and p" + - "ermissions inherited from base roles thr" + - "ough the role hierarchy. Use this endpoi" + - "nt to understand the full scope of capab" + - "ilities available to users assigned to a" + - " specific role. Provide the role name as" + - " a path parameter, and the response will" + - " include all permissions that apply to t" + - "he role, accounting for inheritance rela" + - "tionships. This operation is essential f" + - "or auditing role capabilities, understan" + - "ding permission inheritance, or verifyin" + - "g the complete access scope before role " + - "assignment. Returns a comprehensive list" + - " of permission names representing the fu" + - "ll set of effective permissions for the " + - "specified role.J\207\002\n\003200\022\377\001\n\277\001Successfull" + - "y retrieved effective permissions. Retur" + - "ns the complete list of all permissions " + - "that apply to the role, including both d" + - "irect assignments and inherited permissi" + - "ons from base roles.\022;\n9\0327.scalekit.v1.r" + - "oles.ListEffectiveRolePermissionsRespons" + - "e\202\265\030\002\030D\202\323\344\223\002+\022)/api/v1/roles/{role_name}" + - "/permissions:all\032\342\002\222A\336\002\n\005Roles\022\324\002Role-ba" + - "sed access control (RBAC) for defining a" + - "nd managing permissions in an environmen" + - "t. Create and update custom roles with e" + - "xplicit permissions, model role hierarch" + - "ies through inheritance, view dependent " + - "roles, manage role-permission assignment" + - "s, and list roles and permissions. Also " + - "provides a utility to count users assign" + - "ed to a role.B\310\001\n#com.scalekit.grpc.scal" + - "ekit.v1.rolesB\nRolesProtoP\001Z/github.com/" + - "scalekit-inc/scalekit/pkg/grpc/roles\242\002\003S" + - "VR\252\002\021Scalekit.V1.Roles\312\002\021Scalekit\\V1\\Rol" + - "es\342\002\035Scalekit\\V1\\Roles\\GPBMetadata\352\002\023Sca" + - "lekit::V1::Rolesb\006proto3" + "D\202\323\344\223\0027*5/api/v1/organizations/{org_id}/" + + "roles/{role_name}/base\022\317\007\n\020CreatePermiss" + + "ion\022*.scalekit.v1.roles.CreatePermission" + + "Request\032+.scalekit.v1.roles.CreatePermis" + + "sionResponse\"\341\006\222A\260\006\n\013Permissions\022\025Create" + + " new permission\032\306\004Creates a new permissi" + + "on that represents a specific action use" + + "rs can perform within the environment. U" + + "se this endpoint to define granular acce" + + "ss controls for your RBAC system. You ca" + + "n provide a unique permission name follo" + + "wing the format \'action:resource\' (for e" + + "xample, \'read:documents\', \'write:users\')" + + " and an optional description explaining " + + "the permission\'s purpose. The permission" + + " name must be unique across the environm" + + "ent and follows alphanumeric naming conv" + + "entions with colons and underscores. Ret" + + "urns the created permission object inclu" + + "ding system-generated ID and timestamps." + + "J\300\001\n\003201\022\270\001\n\204\001Permission created success" + + "fully. Returns the complete permission o" + + "bject with system-generated ID, name, de" + + "scription, and timestamps.\022/\n-\032+.scaleki" + + "t.v1.roles.CreatePermissionResponse\202\265\030\002\030" + + "D\202\323\344\223\002!\"\023/api/v1/permissions:\npermission" + + "\022\275\007\n\rGetPermission\022\'.scalekit.v1.roles.G" + + "etPermissionRequest\032(.scalekit.v1.roles." + + "GetPermissionResponse\"\330\006\222A\241\006\n\013Permission" + + "s\022\033Retrieve permission details\032\252\004Retriev" + + "es complete information for a specific p" + + "ermission by its unique name identifier." + + " Use this endpoint to view permission de" + + "tails including description, creation ti" + + "me, and last update time. Provide the pe" + + "rmission name in the path parameter foll" + + "owing the format \'action:resource\' (for " + + "example, \'read:documents\'). This operati" + + "on is useful for auditing permission def" + + "initions, understanding permission purpo" + + "ses, or verifying permission existence b" + + "efore assignment. Returns the complete p" + + "ermission object with all metadata and s" + + "ystem-generated timestamps.J\307\001\n\003200\022\277\001\n\216" + + "\001Successfully retrieved permission detai" + + "ls. Returns the complete permission obje" + + "ct including name, description, creation" + + " time, and update time.\022,\n*\032(.scalekit.v" + + "1.roles.GetPermissionResponse\202\265\030\002\030D\202\323\344\223\002" + + "\'\022%/api/v1/permissions/{permission_name}" + + "\022\203\010\n\020UpdatePermission\022*.scalekit.v1.role" + + "s.UpdatePermissionRequest\032+.scalekit.v1." + + "roles.UpdatePermissionResponse\"\225\007\222A\322\006\n\013P" + + "ermissions\022\031Update permission details\032\371\004" + + "Modifies an existing permission\'s attrib" + + "utes including description and metadata." + + " Use this endpoint to update permission " + + "descriptions or clarify permission purpo" + + "ses after creation. The permission is id" + + "entified by its unique name in the path " + + "parameter, and only the fields you speci" + + "fy in the request body will be updated. " + + "Note that the permission name itself can" + + "not be changed as it serves as the immut" + + "able identifier. This operation is usefu" + + "l for maintaining clear documentation of" + + " permission purposes or updating descrip" + + "tions to reflect changes in system funct" + + "ionality. Returns the updated permission" + + " object with modified timestamps.J\253\001\n\00320" + + "0\022\243\001\npPermission updated successfully. R" + + "eturns the modified permission object wi" + + "th updated description and timestamps.\022/" + + "\n-\032+.scalekit.v1.roles.UpdatePermissionR" + + "esponse\202\265\030\002\030D\202\323\344\223\0023\032%/api/v1/permissions" + + "/{permission_name}:\npermission\022\361\007\n\017ListP" + + "ermissions\022).scalekit.v1.roles.ListPermi" + + "ssionsRequest\032*.scalekit.v1.roles.ListPe" + + "rmissionsResponse\"\206\007\222A\341\006\n\013Permissions\022\024L" + + "ist all permissions\032\353\004Retrieves a compre" + + "hensive, paginated list of all permissio" + + "ns available within the environment. Use" + + " this endpoint to view all permission de" + + "finitions for auditing, role management," + + " or understanding the complete set of av" + + "ailable access controls. The response in" + + "cludes pagination tokens to navigate thr" + + "ough large sets of permissions efficient" + + "ly. Each permission object contains the " + + "permission name, description, creation t" + + "ime, and last update time. This operatio" + + "n is useful for building permission sele" + + "ction interfaces, auditing permission us" + + "age, or understanding the scope of avail" + + "able access controls in your RBAC system" + + ".J\315\001\n\003200\022\305\001\n\222\001Successfully retrieved th" + + "e list of permissions. Returns a paginat" + + "ed list of permission objects with metad" + + "ata and pagination tokens for navigation" + + ".\022.\n,\032*.scalekit.v1.roles.ListPermission" + + "sResponse\202\265\030\002\030D\202\323\344\223\002\025\022\023/api/v1/permissio" + + "ns\022\320\006\n\020DeletePermission\022*.scalekit.v1.ro" + + "les.DeletePermissionRequest\032\026.google.pro" + + "tobuf.Empty\"\367\005\222A\300\005\n\013Permissions\022\021Delete " + + "permission\032\335\004Permanently removes a permi" + + "ssion from the environment using its uni" + + "que name identifier. Use this endpoint w" + + "hen you need to clean up unused permissi" + + "ons or remove access controls that are n" + + "o longer relevant. The permission is ide" + + "ntified by its name in the path paramete" + + "r following the format \'action:resource\'" + + ". This operation cannot be undone, so en" + + "sure no active roles depend on the permi" + + "ssion before deletion. If the permission" + + " is currently assigned to any roles, you" + + " may need to remove those assignments fi" + + "rst or update the roles to use alternati" + + "ve permissions. Returns no content on su" + + "ccessful deletion.J>\n\003200\0227\n5Permission " + + "successfully deleted. No content returne" + + "d.\202\265\030\002\030D\202\323\344\223\002\'*%/api/v1/permissions/{per" + + "mission_name}\022\200\t\n\023ListRolePermissions\022-." + + "scalekit.v1.roles.ListRolePermissionsReq" + + "uest\032..scalekit.v1.roles.ListRolePermiss" + + "ionsResponse\"\211\010\222A\322\007\n\005Roles\022\031List permiss" + + "ions for role\032\327\005Retrieves all permission" + + "s directly assigned to the specified rol" + + "e, excluding permissions inherited from " + + "base roles. Use this endpoint to view th" + + "e explicit permission assignments for a " + + "role, which is useful for understanding " + + "direct role capabilities, auditing permi" + + "ssion assignments, or managing role-perm" + + "ission relationships. Provide the role n" + + "ame as a path parameter, and the respons" + + "e will include only the permissions that" + + " are directly assigned to that role. Thi" + + "s operation does not include inherited p" + + "ermissions from role hierarchies - use L" + + "istEffectiveRolePermissions to see the c" + + "omplete set of permissions including inh" + + "eritance. Returns a list of permission o" + + "bjects with their names, descriptions, a" + + "nd assignment metadata.J\323\001\n\003200\022\313\001\n\224\001Suc" + + "cessfully retrieved role permissions. Re" + + "turns a list of all permissions directly" + + " assigned to the specified role, excludi" + + "ng inherited permissions.\0222\n0\032..scalekit" + + ".v1.roles.ListRolePermissionsResponse\202\265\030" + + "\002\030D\202\323\344\223\002\'\022%/api/v1/roles/{role_name}/per" + + "missions\022\372\010\n\024AddPermissionsToRole\022..scal" + + "ekit.v1.roles.AddPermissionsToRoleReques" + + "t\032/.scalekit.v1.roles.AddPermissionsToRo" + + "leResponse\"\200\010\222A\306\007\n\005Roles\022\027Add permission" + + "s to role\032\275\005Adds one or more permissions" + + " to the specified role while preserving " + + "existing permission assignments. Use thi" + + "s endpoint to grant additional capabilit" + + "ies to a role without affecting its curr" + + "ent permission set. Provide the role nam" + + "e as a path parameter and a list of perm" + + "ission names in the request body. The sy" + + "stem will validate that all specified pe" + + "rmissions exist in the environment and a" + + "dd them to the role. Existing permission" + + " assignments remain unchanged, making th" + + "is operation safe for incremental permis" + + "sion management. This is useful for grad" + + "ually expanding role capabilities or add" + + "ing new permissions as your system evolv" + + "es. Returns the updated list of all perm" + + "issions now assigned to the role.J\343\001\n\00320" + + "0\022\333\001\n\243\001Permissions added to role success" + + "fully. Returns the complete list of all " + + "permissions now assigned to the role, in" + + "cluding both existing and newly added pe" + + "rmissions.\0223\n1\032/.scalekit.v1.roles.AddPe" + + "rmissionsToRoleResponse\202\265\030\002\030D\202\323\344\223\002*\"%/ap" + + "i/v1/roles/{role_name}/permissions:\001*\022\267\007" + + "\n\030RemovePermissionFromRole\0222.scalekit.v1" + + ".roles.RemovePermissionFromRoleRequest\032\026" + + ".google.protobuf.Empty\"\316\006\222A\205\006\n\005Roles\022\033Re" + + "move permission from role\032\224\005Removes a sp" + + "ecific permission from the specified rol" + + "e, revoking that capability from all use" + + "rs assigned to the role. Use this endpoi" + + "nt to restrict role capabilities or remo" + + "ve unnecessary permissions. Provide both" + + " the role name and permission name as pa" + + "th parameters. This operation only affec" + + "ts the direct permission assignment and " + + "does not impact permissions inherited fr" + + "om base roles. If the permission is inhe" + + "rited through role hierarchy, you may ne" + + "ed to modify the base role instead. This" + + " is useful for fine-tuning role permissi" + + "ons, implementing least-privilege access" + + " controls, or removing deprecated permis" + + "sions. Returns no content on successful " + + "removal.JH\n\003200\022A\n?Permission removed fr" + + "om role successfully. No content returne" + + "d.\202\265\030\002\030D\202\323\344\223\0029*7/api/v1/roles/{role_name" + + "}/permissions/{permission_name}\022\337\t\n\034List" + + "EffectiveRolePermissions\0226.scalekit.v1.r" + + "oles.ListEffectiveRolePermissionsRequest" + + "\0327.scalekit.v1.roles.ListEffectiveRolePe" + + "rmissionsResponse\"\315\010\222A\222\010\n\005Roles\022#List ef" + + "fective permissions for role\032\331\005Retrieves" + + " the complete set of effective permissio" + + "ns for a role, including both directly a" + + "ssigned permissions and permissions inhe" + + "rited from base roles through the role h" + + "ierarchy. Use this endpoint to understan" + + "d the full scope of capabilities availab" + + "le to users assigned to a specific role." + + " Provide the role name as a path paramet" + + "er, and the response will include all pe" + + "rmissions that apply to the role, accoun" + + "ting for inheritance relationships. This" + + " operation is essential for auditing rol" + + "e capabilities, understanding permission" + + " inheritance, or verifying the complete " + + "access scope before role assignment. Ret" + + "urns a comprehensive list of permission " + + "names representing the full set of effec" + + "tive permissions for the specified role." + + "J\207\002\n\003200\022\377\001\n\277\001Successfully retrieved eff" + + "ective permissions. Returns the complete" + + " list of all permissions that apply to t" + + "he role, including both direct assignmen" + + "ts and inherited permissions from base r" + + "oles.\022;\n9\0327.scalekit.v1.roles.ListEffect" + + "iveRolePermissionsResponse\202\265\030\002\030D\202\323\344\223\002+\022)" + + "/api/v1/roles/{role_name}/permissions:al" + + "l\032\342\002\222A\336\002\n\005Roles\022\324\002Role-based access cont" + + "rol (RBAC) for defining and managing per" + + "missions in an environment. Create and u" + + "pdate custom roles with explicit permiss" + + "ions, model role hierarchies through inh" + + "eritance, view dependent roles, manage r" + + "ole-permission assignments, and list rol" + + "es and permissions. Also provides a util" + + "ity to count users assigned to a role.B\310" + + "\001\n#com.scalekit.grpc.scalekit.v1.rolesB\n" + + "RolesProtoP\001Z/github.com/scalekit-inc/sc" + + "alekit/pkg/grpc/roles\242\002\003SVR\252\002\021Scalekit.V" + + "1.Roles\312\002\021Scalekit\\V1\\Roles\342\002\035Scalekit\\V" + + "1\\Roles\\GPBMetadata\352\002\023Scalekit::V1::Role" + + "sb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ExecuteToolRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ExecuteToolRequest.java index 8d4ac6e9..d74341e2 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ExecuteToolRequest.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ExecuteToolRequest.java @@ -23,6 +23,7 @@ private ExecuteToolRequest() { connector_ = ""; organizationId_ = ""; userId_ = ""; + agentRunId_ = ""; } @java.lang.Override @@ -346,6 +347,53 @@ public java.lang.String getUserId() { } } + public static final int AGENT_RUN_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object agentRunId_ = ""; + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the agentRunId field is set. + */ + @java.lang.Override + public boolean hasAgentRunId() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The agentRunId. + */ + @java.lang.Override + public java.lang.String getAgentRunId() { + java.lang.Object ref = agentRunId_; + 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(); + agentRunId_ = s; + return s; + } + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for agentRunId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getAgentRunIdBytes() { + java.lang.Object ref = agentRunId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + agentRunId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -381,6 +429,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, userId_); } + if (((bitField0_ & 0x00000040) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, agentRunId_); + } getUnknownFields().writeTo(output); } @@ -412,6 +463,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, userId_); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, agentRunId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -459,6 +513,11 @@ public boolean equals(final java.lang.Object obj) { if (!getUserId() .equals(other.getUserId())) return false; } + if (hasAgentRunId() != other.hasAgentRunId()) return false; + if (hasAgentRunId()) { + if (!getAgentRunId() + .equals(other.getAgentRunId())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -496,6 +555,10 @@ public int hashCode() { hash = (37 * hash) + USER_ID_FIELD_NUMBER; hash = (53 * hash) + getUserId().hashCode(); } + if (hasAgentRunId()) { + hash = (37 * hash) + AGENT_RUN_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentRunId().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -644,6 +707,7 @@ public Builder clear() { connector_ = ""; organizationId_ = ""; userId_ = ""; + agentRunId_ = ""; return this; } @@ -707,6 +771,10 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.tools.ExecuteToolReques result.userId_ = userId_; to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.agentRunId_ = agentRunId_; + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -787,6 +855,11 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.tools.ExecuteToolRequest bitField0_ |= 0x00000040; onChanged(); } + if (other.hasAgentRunId()) { + agentRunId_ = other.agentRunId_; + bitField0_ |= 0x00000080; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -850,6 +923,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000040; break; } // case 58 + case 66: { + agentRunId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1454,6 +1532,85 @@ public Builder setUserIdBytes( onChanged(); return this; } + + private java.lang.Object agentRunId_ = ""; + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the agentRunId field is set. + */ + public boolean hasAgentRunId() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The agentRunId. + */ + public java.lang.String getAgentRunId() { + java.lang.Object ref = agentRunId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentRunId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for agentRunId. + */ + public com.google.protobuf.ByteString + getAgentRunIdBytes() { + java.lang.Object ref = agentRunId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + agentRunId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The agentRunId to set. + * @return This builder for chaining. + */ + public Builder setAgentRunId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + agentRunId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearAgentRunId() { + agentRunId_ = getDefaultInstance().getAgentRunId(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for agentRunId to set. + * @return This builder for chaining. + */ + public Builder setAgentRunIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + agentRunId_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ExecuteToolRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ExecuteToolRequestOrBuilder.java index b03ca882..1ee41ebd 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ExecuteToolRequestOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ExecuteToolRequestOrBuilder.java @@ -119,4 +119,21 @@ public interface ExecuteToolRequestOrBuilder extends */ com.google.protobuf.ByteString getUserIdBytes(); + + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the agentRunId field is set. + */ + boolean hasAgentRunId(); + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The agentRunId. + */ + java.lang.String getAgentRunId(); + /** + * optional string agent_run_id = 8 [json_name = "agentRunId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for agentRunId. + */ + com.google.protobuf.ByteString + getAgentRunIdBytes(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/Filter.java b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/Filter.java index 8f7d637b..eaa9fb4c 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/Filter.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/Filter.java @@ -22,6 +22,10 @@ private Filter() { toolName_ = com.google.protobuf.LazyStringArrayList.emptyList(); query_ = ""; + connector_ = ""; + organizationId_ = ""; + userId_ = ""; + connectedAccountId_ = ""; } @java.lang.Override @@ -233,6 +237,212 @@ public java.lang.String getQuery() { } } + public static final int CONNECTOR_FIELD_NUMBER = 6; + @SuppressWarnings("serial") + private volatile java.lang.Object connector_ = ""; + /** + *
+   * Fields 6-9 mirror GetConnectedAccountByIdentifierRequest, enabling ListTools to
+   * resolve a specific connected account and include its custom MCP tools alongside
+   * global tools. When connector or connected_account_id is set, a CA lookup is performed.
+   * 
+ * + * optional string connector = 6 [json_name = "connector", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connector field is set. + */ + @java.lang.Override + public boolean hasConnector() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + *
+   * Fields 6-9 mirror GetConnectedAccountByIdentifierRequest, enabling ListTools to
+   * resolve a specific connected account and include its custom MCP tools alongside
+   * global tools. When connector or connected_account_id is set, a CA lookup is performed.
+   * 
+ * + * optional string connector = 6 [json_name = "connector", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connector. + */ + @java.lang.Override + public java.lang.String getConnector() { + java.lang.Object ref = connector_; + 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(); + connector_ = s; + return s; + } + } + /** + *
+   * Fields 6-9 mirror GetConnectedAccountByIdentifierRequest, enabling ListTools to
+   * resolve a specific connected account and include its custom MCP tools alongside
+   * global tools. When connector or connected_account_id is set, a CA lookup is performed.
+   * 
+ * + * optional string connector = 6 [json_name = "connector", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connector. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConnectorBytes() { + java.lang.Object ref = connector_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORGANIZATION_ID_FIELD_NUMBER = 7; + @SuppressWarnings("serial") + private volatile java.lang.Object organizationId_ = ""; + /** + * optional string organization_id = 7 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the organizationId field is set. + */ + @java.lang.Override + public boolean hasOrganizationId() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * optional string organization_id = 7 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationId. + */ + @java.lang.Override + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + 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(); + organizationId_ = s; + return s; + } + } + /** + * optional string organization_id = 7 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_ID_FIELD_NUMBER = 8; + @SuppressWarnings("serial") + private volatile java.lang.Object userId_ = ""; + /** + * optional string user_id = 8 [json_name = "userId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the userId field is set. + */ + @java.lang.Override + public boolean hasUserId() { + return ((bitField0_ & 0x00000010) != 0); + } + /** + * optional string user_id = 8 [json_name = "userId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * optional string user_id = 8 [json_name = "userId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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 CONNECTED_ACCOUNT_ID_FIELD_NUMBER = 9; + @SuppressWarnings("serial") + private volatile java.lang.Object connectedAccountId_ = ""; + /** + * optional string connected_account_id = 9 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectedAccountId field is set. + */ + @java.lang.Override + public boolean hasConnectedAccountId() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + * optional string connected_account_id = 9 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectedAccountId. + */ + @java.lang.Override + public java.lang.String getConnectedAccountId() { + java.lang.Object ref = connectedAccountId_; + 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(); + connectedAccountId_ = s; + return s; + } + } + /** + * optional string connected_account_id = 9 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectedAccountId. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getConnectedAccountIdBytes() { + java.lang.Object ref = connectedAccountId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectedAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -262,6 +472,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, query_); } + if (((bitField0_ & 0x00000004) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 6, connector_); + } + if (((bitField0_ & 0x00000008) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 7, organizationId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 8, userId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, connectedAccountId_); + } getUnknownFields().writeTo(output); } @@ -292,6 +514,18 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, query_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, connector_); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, organizationId_); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, userId_); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, connectedAccountId_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -323,6 +557,26 @@ public boolean equals(final java.lang.Object obj) { if (!getQuery() .equals(other.getQuery())) return false; } + if (hasConnector() != other.hasConnector()) return false; + if (hasConnector()) { + if (!getConnector() + .equals(other.getConnector())) return false; + } + if (hasOrganizationId() != other.hasOrganizationId()) return false; + if (hasOrganizationId()) { + if (!getOrganizationId() + .equals(other.getOrganizationId())) return false; + } + if (hasUserId() != other.hasUserId()) return false; + if (hasUserId()) { + if (!getUserId() + .equals(other.getUserId())) return false; + } + if (hasConnectedAccountId() != other.hasConnectedAccountId()) return false; + if (hasConnectedAccountId()) { + if (!getConnectedAccountId() + .equals(other.getConnectedAccountId())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,6 +604,22 @@ public int hashCode() { hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); } + if (hasConnector()) { + hash = (37 * hash) + CONNECTOR_FIELD_NUMBER; + hash = (53 * hash) + getConnector().hashCode(); + } + if (hasOrganizationId()) { + hash = (37 * hash) + ORGANIZATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getOrganizationId().hashCode(); + } + if (hasUserId()) { + hash = (37 * hash) + USER_ID_FIELD_NUMBER; + hash = (53 * hash) + getUserId().hashCode(); + } + if (hasConnectedAccountId()) { + hash = (37 * hash) + CONNECTED_ACCOUNT_ID_FIELD_NUMBER; + hash = (53 * hash) + getConnectedAccountId().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -497,6 +767,10 @@ public Builder clear() { toolName_ = com.google.protobuf.LazyStringArrayList.emptyList(); query_ = ""; + connector_ = ""; + organizationId_ = ""; + userId_ = ""; + connectedAccountId_ = ""; return this; } @@ -551,6 +825,22 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.tools.Filter result) { result.query_ = query_; to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.connector_ = connector_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.organizationId_ = organizationId_; + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.userId_ = userId_; + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.connectedAccountId_ = connectedAccountId_; + to_bitField0_ |= 0x00000020; + } result.bitField0_ |= to_bitField0_; } @@ -626,6 +916,26 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.tools.Filter other) { bitField0_ |= 0x00000010; onChanged(); } + if (other.hasConnector()) { + connector_ = other.connector_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.hasOrganizationId()) { + organizationId_ = other.organizationId_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasUserId()) { + userId_ = other.userId_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (other.hasConnectedAccountId()) { + connectedAccountId_ = other.connectedAccountId_; + bitField0_ |= 0x00000100; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -680,6 +990,26 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 42 + case 50: { + connector_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: { + organizationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: { + userId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: { + connectedAccountId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -1151,6 +1481,358 @@ public Builder setQueryBytes( onChanged(); return this; } + + private java.lang.Object connector_ = ""; + /** + *
+     * Fields 6-9 mirror GetConnectedAccountByIdentifierRequest, enabling ListTools to
+     * resolve a specific connected account and include its custom MCP tools alongside
+     * global tools. When connector or connected_account_id is set, a CA lookup is performed.
+     * 
+ * + * optional string connector = 6 [json_name = "connector", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connector field is set. + */ + public boolean hasConnector() { + return ((bitField0_ & 0x00000020) != 0); + } + /** + *
+     * Fields 6-9 mirror GetConnectedAccountByIdentifierRequest, enabling ListTools to
+     * resolve a specific connected account and include its custom MCP tools alongside
+     * global tools. When connector or connected_account_id is set, a CA lookup is performed.
+     * 
+ * + * optional string connector = 6 [json_name = "connector", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connector. + */ + public java.lang.String getConnector() { + java.lang.Object ref = connector_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connector_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + *
+     * Fields 6-9 mirror GetConnectedAccountByIdentifierRequest, enabling ListTools to
+     * resolve a specific connected account and include its custom MCP tools alongside
+     * global tools. When connector or connected_account_id is set, a CA lookup is performed.
+     * 
+ * + * optional string connector = 6 [json_name = "connector", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connector. + */ + public com.google.protobuf.ByteString + getConnectorBytes() { + java.lang.Object ref = connector_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connector_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + *
+     * Fields 6-9 mirror GetConnectedAccountByIdentifierRequest, enabling ListTools to
+     * resolve a specific connected account and include its custom MCP tools alongside
+     * global tools. When connector or connected_account_id is set, a CA lookup is performed.
+     * 
+ * + * optional string connector = 6 [json_name = "connector", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The connector to set. + * @return This builder for chaining. + */ + public Builder setConnector( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + connector_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + /** + *
+     * Fields 6-9 mirror GetConnectedAccountByIdentifierRequest, enabling ListTools to
+     * resolve a specific connected account and include its custom MCP tools alongside
+     * global tools. When connector or connected_account_id is set, a CA lookup is performed.
+     * 
+ * + * optional string connector = 6 [json_name = "connector", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearConnector() { + connector_ = getDefaultInstance().getConnector(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + /** + *
+     * Fields 6-9 mirror GetConnectedAccountByIdentifierRequest, enabling ListTools to
+     * resolve a specific connected account and include its custom MCP tools alongside
+     * global tools. When connector or connected_account_id is set, a CA lookup is performed.
+     * 
+ * + * optional string connector = 6 [json_name = "connector", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for connector to set. + * @return This builder for chaining. + */ + public Builder setConnectorBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + connector_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object organizationId_ = ""; + /** + * optional string organization_id = 7 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the organizationId field is set. + */ + public boolean hasOrganizationId() { + return ((bitField0_ & 0x00000040) != 0); + } + /** + * optional string organization_id = 7 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationId. + */ + public java.lang.String getOrganizationId() { + java.lang.Object ref = organizationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + organizationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string organization_id = 7 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationId. + */ + public com.google.protobuf.ByteString + getOrganizationIdBytes() { + java.lang.Object ref = organizationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + organizationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string organization_id = 7 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + organizationId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + /** + * optional string organization_id = 7 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearOrganizationId() { + organizationId_ = getDefaultInstance().getOrganizationId(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + /** + * optional string organization_id = 7 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for organizationId to set. + * @return This builder for chaining. + */ + public Builder setOrganizationIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + organizationId_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object userId_ = ""; + /** + * optional string user_id = 8 [json_name = "userId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the userId field is set. + */ + public boolean hasUserId() { + return ((bitField0_ & 0x00000080) != 0); + } + /** + * optional string user_id = 8 [json_name = "userId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * optional string user_id = 8 [json_name = "userId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * optional string user_id = 8 [json_name = "userId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000080; + onChanged(); + return this; + } + /** + * optional string user_id = 8 [json_name = "userId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearUserId() { + userId_ = getDefaultInstance().getUserId(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + /** + * optional string user_id = 8 [json_name = "userId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object connectedAccountId_ = ""; + /** + * optional string connected_account_id = 9 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectedAccountId field is set. + */ + public boolean hasConnectedAccountId() { + return ((bitField0_ & 0x00000100) != 0); + } + /** + * optional string connected_account_id = 9 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectedAccountId. + */ + public java.lang.String getConnectedAccountId() { + java.lang.Object ref = connectedAccountId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + connectedAccountId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * optional string connected_account_id = 9 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectedAccountId. + */ + public com.google.protobuf.ByteString + getConnectedAccountIdBytes() { + java.lang.Object ref = connectedAccountId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + connectedAccountId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string connected_account_id = 9 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The connectedAccountId to set. + * @return This builder for chaining. + */ + public Builder setConnectedAccountId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + connectedAccountId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + /** + * optional string connected_account_id = 9 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearConnectedAccountId() { + connectedAccountId_ = getDefaultInstance().getConnectedAccountId(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + /** + * optional string connected_account_id = 9 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for connectedAccountId to set. + * @return This builder for chaining. + */ + public Builder setConnectedAccountIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + connectedAccountId_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/FilterOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/FilterOrBuilder.java index 99d71f98..6096fa2d 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/FilterOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/FilterOrBuilder.java @@ -88,4 +88,90 @@ public interface FilterOrBuilder extends */ com.google.protobuf.ByteString getQueryBytes(); + + /** + *
+   * Fields 6-9 mirror GetConnectedAccountByIdentifierRequest, enabling ListTools to
+   * resolve a specific connected account and include its custom MCP tools alongside
+   * global tools. When connector or connected_account_id is set, a CA lookup is performed.
+   * 
+ * + * optional string connector = 6 [json_name = "connector", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connector field is set. + */ + boolean hasConnector(); + /** + *
+   * Fields 6-9 mirror GetConnectedAccountByIdentifierRequest, enabling ListTools to
+   * resolve a specific connected account and include its custom MCP tools alongside
+   * global tools. When connector or connected_account_id is set, a CA lookup is performed.
+   * 
+ * + * optional string connector = 6 [json_name = "connector", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connector. + */ + java.lang.String getConnector(); + /** + *
+   * Fields 6-9 mirror GetConnectedAccountByIdentifierRequest, enabling ListTools to
+   * resolve a specific connected account and include its custom MCP tools alongside
+   * global tools. When connector or connected_account_id is set, a CA lookup is performed.
+   * 
+ * + * optional string connector = 6 [json_name = "connector", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connector. + */ + com.google.protobuf.ByteString + getConnectorBytes(); + + /** + * optional string organization_id = 7 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the organizationId field is set. + */ + boolean hasOrganizationId(); + /** + * optional string organization_id = 7 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The organizationId. + */ + java.lang.String getOrganizationId(); + /** + * optional string organization_id = 7 [json_name = "organizationId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for organizationId. + */ + com.google.protobuf.ByteString + getOrganizationIdBytes(); + + /** + * optional string user_id = 8 [json_name = "userId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the userId field is set. + */ + boolean hasUserId(); + /** + * optional string user_id = 8 [json_name = "userId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The userId. + */ + java.lang.String getUserId(); + /** + * optional string user_id = 8 [json_name = "userId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for userId. + */ + com.google.protobuf.ByteString + getUserIdBytes(); + + /** + * optional string connected_account_id = 9 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return Whether the connectedAccountId field is set. + */ + boolean hasConnectedAccountId(); + /** + * optional string connected_account_id = 9 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The connectedAccountId. + */ + java.lang.String getConnectedAccountId(); + /** + * optional string connected_account_id = 9 [json_name = "connectedAccountId", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for connectedAccountId. + */ + com.google.protobuf.ByteString + getConnectedAccountIdBytes(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsRequest.java new file mode 100644 index 00000000..9ce7d257 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsRequest.java @@ -0,0 +1,744 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/tools/tools.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.tools; + +/** + * Protobuf type {@code scalekit.v1.tools.ListAvailableToolsRequest} + */ +public final class ListAvailableToolsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.tools.ListAvailableToolsRequest) + ListAvailableToolsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListAvailableToolsRequest.newBuilder() to construct. + private ListAvailableToolsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListAvailableToolsRequest() { + identifier_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListAvailableToolsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.tools.ToolsProto.internal_static_scalekit_v1_tools_ListAvailableToolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.tools.ToolsProto.internal_static_scalekit_v1_tools_ListAvailableToolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest.class, com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest.Builder.class); + } + + public static final int IDENTIFIER_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object identifier_ = ""; + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The identifier. + */ + @java.lang.Override + public java.lang.String getIdentifier() { + java.lang.Object ref = identifier_; + 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(); + identifier_ = s; + return s; + } + } + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for identifier. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdentifierBytes() { + java.lang.Object ref = identifier_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + /** + * uint32 page_size = 2 [json_name = "pageSize"]; + * @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_ = ""; + /** + * string page_token = 3 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string page_token = 3 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(identifier_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, identifier_); + } + if (pageSize_ != 0) { + output.writeUInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.isStringEmpty(identifier_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, identifier_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.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.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest other = (com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest) obj; + + if (!getIdentifier() + .equals(other.getIdentifier())) 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) + IDENTIFIER_FIELD_NUMBER; + hash = (53 * hash) + getIdentifier().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.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.tools.ListAvailableToolsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.tools.ListAvailableToolsRequest) + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.tools.ToolsProto.internal_static_scalekit_v1_tools_ListAvailableToolsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.tools.ToolsProto.internal_static_scalekit_v1_tools_ListAvailableToolsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest.class, com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + identifier_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.tools.ToolsProto.internal_static_scalekit_v1_tools_ListAvailableToolsRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest build() { + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest result = new com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.identifier_ = identifier_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest.getDefaultInstance()) return this; + if (!other.getIdentifier().isEmpty()) { + identifier_ = other.identifier_; + 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: { + identifier_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + pageSize_ = input.readUInt32(); + 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 identifier_ = ""; + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The identifier. + */ + public java.lang.String getIdentifier() { + java.lang.Object ref = identifier_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + identifier_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for identifier. + */ + public com.google.protobuf.ByteString + getIdentifierBytes() { + java.lang.Object ref = identifier_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + identifier_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifier( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + identifier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearIdentifier() { + identifier_ = getDefaultInstance().getIdentifier(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for identifier to set. + * @return This builder for chaining. + */ + public Builder setIdentifierBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + identifier_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_ ; + /** + * uint32 page_size = 2 [json_name = "pageSize"]; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * uint32 page_size = 2 [json_name = "pageSize"]; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 page_size = 2 [json_name = "pageSize"]; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * string page_token = 3 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string page_token = 3 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string page_token = 3 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + /** + * string page_token = 3 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string page_token = 3 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.tools.ListAvailableToolsRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.tools.ListAvailableToolsRequest) + private static final com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAvailableToolsRequest 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.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsRequestOrBuilder.java new file mode 100644 index 00000000..5ca59654 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsRequestOrBuilder.java @@ -0,0 +1,40 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/tools/tools.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.tools; + +public interface ListAvailableToolsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.tools.ListAvailableToolsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The identifier. + */ + java.lang.String getIdentifier(); + /** + * string identifier = 1 [json_name = "identifier", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for identifier. + */ + com.google.protobuf.ByteString + getIdentifierBytes(); + + /** + * uint32 page_size = 2 [json_name = "pageSize"]; + * @return The pageSize. + */ + int getPageSize(); + + /** + * string page_token = 3 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * string page_token = 3 [json_name = "pageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString + getPageTokenBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsResponse.java new file mode 100644 index 00000000..51f4e294 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsResponse.java @@ -0,0 +1,1098 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/tools/tools.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.tools; + +/** + * Protobuf type {@code scalekit.v1.tools.ListAvailableToolsResponse} + */ +public final class ListAvailableToolsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.tools.ListAvailableToolsResponse) + ListAvailableToolsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListAvailableToolsResponse.newBuilder() to construct. + private ListAvailableToolsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListAvailableToolsResponse() { + nextPageToken_ = ""; + prevPageToken_ = ""; + tools_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListAvailableToolsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.tools.ToolsProto.internal_static_scalekit_v1_tools_ListAvailableToolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.tools.ToolsProto.internal_static_scalekit_v1_tools_ListAvailableToolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse.class, com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse.Builder.class); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + /** + * string next_page_token = 1 [json_name = "nextPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string next_page_token = 1 [json_name = "nextPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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 TOTAL_SIZE_FIELD_NUMBER = 2; + private int totalSize_ = 0; + /** + * uint32 total_size = 2 [json_name = "totalSize", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + + public static final int PREV_PAGE_TOKEN_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private volatile java.lang.Object prevPageToken_ = ""; + /** + * string prev_page_token = 3 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The prevPageToken. + */ + @java.lang.Override + public java.lang.String getPrevPageToken() { + java.lang.Object ref = prevPageToken_; + 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(); + prevPageToken_ = s; + return s; + } + } + /** + * string prev_page_token = 3 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for prevPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getPrevPageTokenBytes() { + java.lang.Object ref = prevPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prevPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLS_FIELD_NUMBER = 4; + @SuppressWarnings("serial") + private java.util.List tools_; + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.util.List getToolsList() { + return tools_; + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public java.util.List + getToolsOrBuilderList() { + return tools_; + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public int getToolsCount() { + return tools_.size(); + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.tools.Tool getTools(int index) { + return tools_.get(index); + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.tools.ToolOrBuilder getToolsOrBuilder( + int index) { + return tools_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, nextPageToken_); + } + if (totalSize_ != 0) { + output.writeUInt32(2, totalSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prevPageToken_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, prevPageToken_); + } + for (int i = 0; i < tools_.size(); i++) { + output.writeMessage(4, tools_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, nextPageToken_); + } + if (totalSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeUInt32Size(2, totalSize_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(prevPageToken_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, prevPageToken_); + } + for (int i = 0; i < tools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(4, tools_.get(i)); + } + 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.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse other = (com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse) obj; + + if (!getNextPageToken() + .equals(other.getNextPageToken())) return false; + if (getTotalSize() + != other.getTotalSize()) return false; + if (!getPrevPageToken() + .equals(other.getPrevPageToken())) return false; + if (!getToolsList() + .equals(other.getToolsList())) 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) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (37 * hash) + TOTAL_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getTotalSize(); + hash = (37 * hash) + PREV_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPrevPageToken().hashCode(); + if (getToolsCount() > 0) { + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.tools.ListAvailableToolsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.tools.ListAvailableToolsResponse) + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.tools.ToolsProto.internal_static_scalekit_v1_tools_ListAvailableToolsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.tools.ToolsProto.internal_static_scalekit_v1_tools_ListAvailableToolsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse.class, com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + nextPageToken_ = ""; + totalSize_ = 0; + prevPageToken_ = ""; + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + } else { + tools_ = null; + toolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.tools.ToolsProto.internal_static_scalekit_v1_tools_ListAvailableToolsResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse build() { + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse result = new com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse result) { + if (toolsBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + tools_ = java.util.Collections.unmodifiableList(tools_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.tools_ = tools_; + } else { + result.tools_ = toolsBuilder_.build(); + } + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.totalSize_ = totalSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.prevPageToken_ = prevPageToken_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse.getDefaultInstance()) return this; + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getTotalSize() != 0) { + setTotalSize(other.getTotalSize()); + } + if (!other.getPrevPageToken().isEmpty()) { + prevPageToken_ = other.prevPageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (toolsBuilder_ == null) { + if (!other.tools_.isEmpty()) { + if (tools_.isEmpty()) { + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureToolsIsMutable(); + tools_.addAll(other.tools_); + } + onChanged(); + } + } else { + if (!other.tools_.isEmpty()) { + if (toolsBuilder_.isEmpty()) { + toolsBuilder_.dispose(); + toolsBuilder_ = null; + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000008); + toolsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getToolsFieldBuilder() : null; + } else { + toolsBuilder_.addAllMessages(other.tools_); + } + } + } + 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: { + nextPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: { + totalSize_ = input.readUInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + prevPageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: { + com.scalekit.grpc.scalekit.v1.tools.Tool m = + input.readMessage( + com.scalekit.grpc.scalekit.v1.tools.Tool.parser(), + extensionRegistry); + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(m); + } else { + toolsBuilder_.addMessage(m); + } + 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 nextPageToken_ = ""; + /** + * string next_page_token = 1 [json_name = "nextPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string next_page_token = 1 [json_name = "nextPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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; + } + } + /** + * string next_page_token = 1 [json_name = "nextPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string next_page_token = 1 [json_name = "nextPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string next_page_token = 1 [json_name = "nextPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private int totalSize_ ; + /** + * uint32 total_size = 2 [json_name = "totalSize", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The totalSize. + */ + @java.lang.Override + public int getTotalSize() { + return totalSize_; + } + /** + * uint32 total_size = 2 [json_name = "totalSize", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The totalSize to set. + * @return This builder for chaining. + */ + public Builder setTotalSize(int value) { + + totalSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * uint32 total_size = 2 [json_name = "totalSize", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearTotalSize() { + bitField0_ = (bitField0_ & ~0x00000002); + totalSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object prevPageToken_ = ""; + /** + * string prev_page_token = 3 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The prevPageToken. + */ + public java.lang.String getPrevPageToken() { + java.lang.Object ref = prevPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + prevPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string prev_page_token = 3 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for prevPageToken. + */ + public com.google.protobuf.ByteString + getPrevPageTokenBytes() { + java.lang.Object ref = prevPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + prevPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string prev_page_token = 3 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The prevPageToken to set. + * @return This builder for chaining. + */ + public Builder setPrevPageToken( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + prevPageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * string prev_page_token = 3 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return This builder for chaining. + */ + public Builder clearPrevPageToken() { + prevPageToken_ = getDefaultInstance().getPrevPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * string prev_page_token = 3 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @param value The bytes for prevPageToken to set. + * @return This builder for chaining. + */ + public Builder setPrevPageTokenBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + prevPageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List tools_ = + java.util.Collections.emptyList(); + private void ensureToolsIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + tools_ = new java.util.ArrayList(tools_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.tools.Tool, com.scalekit.grpc.scalekit.v1.tools.Tool.Builder, com.scalekit.grpc.scalekit.v1.tools.ToolOrBuilder> toolsBuilder_; + + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public java.util.List getToolsList() { + if (toolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tools_); + } else { + return toolsBuilder_.getMessageList(); + } + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public int getToolsCount() { + if (toolsBuilder_ == null) { + return tools_.size(); + } else { + return toolsBuilder_.getCount(); + } + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.tools.Tool getTools(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessage(index); + } + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setTools( + int index, com.scalekit.grpc.scalekit.v1.tools.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + onChanged(); + } else { + toolsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder setTools( + int index, com.scalekit.grpc.scalekit.v1.tools.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder addTools(com.scalekit.grpc.scalekit.v1.tools.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + onChanged(); + } else { + toolsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder addTools( + int index, com.scalekit.grpc.scalekit.v1.tools.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(index, value); + onChanged(); + } else { + toolsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder addTools( + com.scalekit.grpc.scalekit.v1.tools.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder addTools( + int index, com.scalekit.grpc.scalekit.v1.tools.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder addAllTools( + java.lang.Iterable values) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, tools_); + onChanged(); + } else { + toolsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + toolsBuilder_.clear(); + } + return this; + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public Builder removeTools(int index) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.remove(index); + onChanged(); + } else { + toolsBuilder_.remove(index); + } + return this; + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.tools.Tool.Builder getToolsBuilder( + int index) { + return getToolsFieldBuilder().getBuilder(index); + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.tools.ToolOrBuilder getToolsOrBuilder( + int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); } else { + return toolsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public java.util.List + getToolsOrBuilderList() { + if (toolsBuilder_ != null) { + return toolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tools_); + } + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.tools.Tool.Builder addToolsBuilder() { + return getToolsFieldBuilder().addBuilder( + com.scalekit.grpc.scalekit.v1.tools.Tool.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.tools.Tool.Builder addToolsBuilder( + int index) { + return getToolsFieldBuilder().addBuilder( + index, com.scalekit.grpc.scalekit.v1.tools.Tool.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + public java.util.List + getToolsBuilderList() { + return getToolsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.tools.Tool, com.scalekit.grpc.scalekit.v1.tools.Tool.Builder, com.scalekit.grpc.scalekit.v1.tools.ToolOrBuilder> + getToolsFieldBuilder() { + if (toolsBuilder_ == null) { + toolsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.tools.Tool, com.scalekit.grpc.scalekit.v1.tools.Tool.Builder, com.scalekit.grpc.scalekit.v1.tools.ToolOrBuilder>( + tools_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + tools_ = null; + } + return toolsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.tools.ListAvailableToolsResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.tools.ListAvailableToolsResponse) + private static final com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAvailableToolsResponse 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.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsResponseOrBuilder.java new file mode 100644 index 00000000..3732b863 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ListAvailableToolsResponseOrBuilder.java @@ -0,0 +1,64 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/tools/tools.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.tools; + +public interface ListAvailableToolsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.tools.ListAvailableToolsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * string next_page_token = 1 [json_name = "nextPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * string next_page_token = 1 [json_name = "nextPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString + getNextPageTokenBytes(); + + /** + * uint32 total_size = 2 [json_name = "totalSize", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The totalSize. + */ + int getTotalSize(); + + /** + * string prev_page_token = 3 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The prevPageToken. + */ + java.lang.String getPrevPageToken(); + /** + * string prev_page_token = 3 [json_name = "prevPageToken", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + * @return The bytes for prevPageToken. + */ + com.google.protobuf.ByteString + getPrevPageTokenBytes(); + + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + java.util.List + getToolsList(); + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.tools.Tool getTools(int index); + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + int getToolsCount(); + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + java.util.List + getToolsOrBuilderList(); + /** + * repeated .scalekit.v1.tools.Tool tools = 4 [json_name = "tools", (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.tools.ToolOrBuilder getToolsOrBuilder( + int index); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ToolServiceGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ToolServiceGrpc.java index de8bf7b1..948c071a 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ToolServiceGrpc.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ToolServiceGrpc.java @@ -108,6 +108,37 @@ com.scalekit.grpc.scalekit.v1.tools.ListScopedToolsResponse> getListScopedToolsM return getListScopedToolsMethod; } + private static volatile io.grpc.MethodDescriptor getListAvailableToolsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAvailableTools", + requestType = com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListAvailableToolsMethod() { + io.grpc.MethodDescriptor getListAvailableToolsMethod; + if ((getListAvailableToolsMethod = ToolServiceGrpc.getListAvailableToolsMethod) == null) { + synchronized (ToolServiceGrpc.class) { + if ((getListAvailableToolsMethod = ToolServiceGrpc.getListAvailableToolsMethod) == null) { + ToolServiceGrpc.getListAvailableToolsMethod = getListAvailableToolsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAvailableTools")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse.getDefaultInstance())) + .setSchemaDescriptor(new ToolServiceMethodDescriptorSupplier("ListAvailableTools")) + .build(); + } + } + } + return getListAvailableToolsMethod; + } + private static volatile io.grpc.MethodDescriptor getSetToolDefaultMethod; @@ -301,6 +332,13 @@ default void listScopedTools(com.scalekit.grpc.scalekit.v1.tools.ListScopedTools io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListScopedToolsMethod(), responseObserver); } + /** + */ + default void listAvailableTools(com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListAvailableToolsMethod(), responseObserver); + } + /** */ default void setToolDefault(com.scalekit.grpc.scalekit.v1.tools.SetToolDefaultRequest request, @@ -384,6 +422,14 @@ public void listScopedTools(com.scalekit.grpc.scalekit.v1.tools.ListScopedToolsR getChannel().newCall(getListScopedToolsMethod(), getCallOptions()), request, responseObserver); } + /** + */ + public void listAvailableTools(com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAvailableToolsMethod(), getCallOptions()), request, responseObserver); + } + /** */ public void setToolDefault(com.scalekit.grpc.scalekit.v1.tools.SetToolDefaultRequest request, @@ -457,6 +503,13 @@ public com.scalekit.grpc.scalekit.v1.tools.ListScopedToolsResponse listScopedToo getChannel(), getListScopedToolsMethod(), getCallOptions(), request); } + /** + */ + public com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse listAvailableTools(com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAvailableToolsMethod(), getCallOptions(), request); + } + /** */ public com.scalekit.grpc.scalekit.v1.tools.SetToolDefaultResponse setToolDefault(com.scalekit.grpc.scalekit.v1.tools.SetToolDefaultRequest request) { @@ -529,6 +582,14 @@ public com.google.common.util.concurrent.ListenableFuture listAvailableTools( + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAvailableToolsMethod(), getCallOptions()), request); + } + /** */ public com.google.common.util.concurrent.ListenableFuture setToolDefault( @@ -568,10 +629,11 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -602,6 +664,10 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.listScopedTools((com.scalekit.grpc.scalekit.v1.tools.ListScopedToolsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_AVAILABLE_TOOLS: + serviceImpl.listAvailableTools((com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_SET_TOOL_DEFAULT: serviceImpl.setToolDefault((com.scalekit.grpc.scalekit.v1.tools.SetToolDefaultRequest) request, (io.grpc.stub.StreamObserver) responseObserver); @@ -657,6 +723,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.tools.ListScopedToolsRequest, com.scalekit.grpc.scalekit.v1.tools.ListScopedToolsResponse>( service, METHODID_LIST_SCOPED_TOOLS))) + .addMethod( + getListAvailableToolsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsRequest, + com.scalekit.grpc.scalekit.v1.tools.ListAvailableToolsResponse>( + service, METHODID_LIST_AVAILABLE_TOOLS))) .addMethod( getSetToolDefaultMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -736,6 +809,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateToolMethod()) .addMethod(getListToolsMethod()) .addMethod(getListScopedToolsMethod()) + .addMethod(getListAvailableToolsMethod()) .addMethod(getSetToolDefaultMethod()) .addMethod(getUpdateToolMethod()) .addMethod(getDeleteToolMethod()) diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ToolsProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ToolsProto.java index 7d0bcded..2a025e6b 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ToolsProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/tools/ToolsProto.java @@ -100,6 +100,16 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_tools_ScopedToolFilter_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_tools_ListAvailableToolsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_tools_ListAvailableToolsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_tools_ListAvailableToolsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_tools_ListAvailableToolsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -155,7 +165,7 @@ public static void registerAllExtensions( "R\010pageSize\022p\n\npage_token\030\003 \001(\tBQ\222AN2.Tok" + "en from a previous response for paginati" + "on.J\034eyJwYWdlIjoyLCJsaW1pdCI6MzB9R\tpageT" + - "oken\"\363\003\n\006Filter\022t\n\007summary\030\001 \001(\0132\032.googl" + + "oken\"\205\n\n\006Filter\022t\n\007summary\030\001 \001(\0132\032.googl" + "e.protobuf.BoolValueB>\222A;23Return only t" + "ool names instead of full tool detailsJ\004" + "trueR\007summary\022I\n\010provider\030\002 \001(\tB-\222A#2\027Fi" + @@ -167,181 +177,239 @@ public static void registerAllExtensions( "eJ\022\"gmail_send_email\"R\010toolName\022g\n\005query" + "\030\005 \001(\tBL\222A@2&Filter by connected account" + " identifierJ\026\"gmail get attachment\"\272H\006r\004" + - "\020\003\030dH\000R\005query\210\001\001B\010\n\006_query\"\233\004\n\021ListTools" + - "Response\022v\n\017next_page_token\030\001 \001(\tBN\222AK2)" + - "Token for fetching the next page of tool" + - "sJ\036\"eyJwYWdlIjozLCJsaW1pdCI6MzB9\"R\rnextP" + - "ageToken\022Q\n\ntotal_size\030\002 \001(\rB2\222A/2(Total" + - " number of tools matching the queryJ\003104" + - "R\ttotalSize\022z\n\017prev_page_token\030\003 \001(\tBR\222A" + - "O2-Token for fetching the previous page " + - "of toolsJ\036\"eyJwYWdlIjoxLCJsaW1pdCI6MzB9\"" + - "R\rprevPageToken\022^\n\ntool_names\030\004 \003(\tB?\222A<" + - "2$List of tool names (if summary=true)J\024" + - "[\"gmail_send_email\"]R\ttoolNames\022_\n\005tools" + - "\030\005 \003(\0132\027.scalekit.v1.tools.ToolB0\222A-2+Li" + - "st of tools (if summary=false or omitted" + - ")R\005tools\"\367\014\n\022ExecuteToolRequest\022Q\n\ttool_" + - "name\030\001 \001(\tB4\222A+2\033Name of the tool to exe" + - "cuteJ\014\"send_email\"\272H\003\310\001\001R\010toolName\022\231\002\n\ni" + - "dentifier\030\002 \001(\tB\363\001\222A\357\0012\330\001Optional. The u" + - "nique identifier for the connected accou" + - "nt within the third-party service (e.g.," + - " email address, user ID, workspace ident" + - "ifier). Use this in combination with con" + - "nector to identify the connected account" + - ".J\022\"user@example.com\"H\000R\nidentifier\210\001\001\022\374" + - "\001\n\006params\030\003 \001(\0132\027.google.protobuf.Struct" + - "B\312\001\222A\306\0012}JSON object containing the para" + - "meters required for tool execution. The " + - "structure depends on the specific tool b" + - "eing executed.JE{\"to\": \"user@example.com" + - "\", \"subject\": \"Hello\", \"body\": \"Hello Wo" + - "rld\"}R\006params\022\352\001\n\024connected_account_id\030\004" + - " \001(\tB\262\001\222A\247\0012\232\001Optional. The unique ID of" + - " the connected account. Use this to dire" + - "ctly identify the connected account inst" + - "ead of using identifier + connector comb" + - "ination.J\010\"ca_123\"\272H\004r\002\030dH\001R\022connectedAc" + - "countId\210\001\001\022\354\001\n\tconnector\030\005 \001(\tB\310\001\222A\275\0012\246\001" + - "Optional. The name of the connector/prov" + - "ider (e.g., \'Google Workspace\', \'Slack\'," + - " \'Notion\'). Use this in combination with" + - " identifier to identify the connected ac" + - "count.J\022\"Google Workspace\"\272H\004r\002\030dH\002R\tcon" + - "nector\210\001\001\022\356\001\n\017organization_id\030\006 \001(\tB\277\001\222A" + - "\264\0012\246\001Optional. The organization ID to sc" + - "ope the connected account lookup. Use th" + - "is to narrow down the search when the sa" + - "me identifier exists across multiple org" + - "anizations.J\t\"org_123\"\272H\004r\002\030dH\003R\016organiz" + - "ationId\210\001\001\022\317\001\n\007user_id\030\007 \001(\tB\260\001\222A\245\0012\226\001Op" + - "tional. The user ID to scope the connect" + - "ed account lookup. Use this to narrow do" + - "wn the search when the same identifier e" + - "xists across multiple users.J\n\"user_123\"" + - "\272H\004r\002\030dH\004R\006userId\210\001\001B\r\n\013_identifierB\027\n\025_" + - "connected_account_idB\014\n\n_connectorB\022\n\020_o" + - "rganization_idB\n\n\010_user_id\"\243\002\n\023ExecuteTo" + - "olResponse\022\254\001\n\004data\030\001 \001(\0132\027.google.proto" + - "buf.StructB\177\222A|23Free-flowing JSON param" + - "eters for the tool executionJE{\"to\": \"us" + - "er@example.com\", \"subject\": \"Hello\", \"bo" + - "dy\": \"Hello World\"}R\004data\022]\n\014execution_i" + - "d\030\002 \001(\tB:\222A72(Unique identifier for the " + - "tool executionJ\013\"123456789\"R\013executionId" + - "\"\255\002\n\025SetToolDefaultRequest\022a\n\004name\030\001 \001(\t" + - "BM\222A/2\031Fully qualified tool nameJ\022\"gmail" + - "_send_email\"\272H\030r\023\020\001\030d2\r^[a-z0-9_].*$\310\001\001R" + - "\004name\022W\n\016schema_version\030\002 \001(\tB0\222A!2\032Sche" + - "ma version of the toolJ\003\"1\"\272H\tr\004\020\001\030\n\310\001\001R" + - "\rschemaVersion\022X\n\014tool_version\030\003 \001(\tB5\222A" + - "&2\037Tool version to mark as defaultJ\003\"1\"\272" + - "H\tr\004\020\001\030\n\310\001\001R\013toolVersion\"j\n\026SetToolDefau" + - "ltResponse\022P\n\004tool\030\001 \001(\0132\027.scalekit.v1.t" + - "ools.ToolB#\222A 2\036The tool now marked as d" + - "efaultR\004tool\"^\n\021UpdateToolRequest\022I\n\004too" + - "l\030\001 \001(\0132\027.scalekit.v1.tools.ToolB\034\222A\0232\021U" + - "pdated tool data\272H\003\310\001\001R\004tool\"X\n\022UpdateTo" + - "olResponse\022B\n\004tool\030\001 \001(\0132\027.scalekit.v1.t" + - "ools.ToolB\025\222A\0222\020The updated toolR\004tool\"0" + - "\n\021DeleteToolRequest\022\033\n\002id\030\001 \001(\tB\013\272H\010r\006:\004" + - "tol_R\002id\"\221\003\n\026ListScopedToolsRequest\022z\n\ni" + - "dentifier\030\001 \001(\tBZ\222AM23Identifier of the " + - "connected account to filter toolsJ\026\"app_" + - "google_workspace\"\272H\007r\002\030d\310\001\001R\nidentifier\022" + - "l\n\006filter\030\002 \001(\0132#.scalekit.v1.tools.Scop" + - "edToolFilterB/\222A,2*Filter parameters for" + - " listing scoped toolsR\006filter\022\033\n\tpage_si" + - "ze\030\003 \001(\rR\010pageSize\022p\n\npage_token\030\004 \001(\tBQ" + - "\222AN2.Token from a previous response for " + - "pagination.J\034eyJwYWdlIjoyLCJsaW1pdCI6MzB" + - "9R\tpageToken\"\225\003\n\027ListScopedToolsResponse" + - "\022v\n\017next_page_token\030\001 \001(\tBN\222AK2)Token fo" + - "r fetching the next page of toolsJ\036\"eyJw" + - "YWdlIjozLCJsaW1pdCI6MzB9\"R\rnextPageToken" + - "\022Q\n\ntotal_size\030\002 \001(\rB2\222A/2(Total number " + - "of tools matching the queryJ\003104R\ttotalS" + - "ize\022z\n\017prev_page_token\030\003 \001(\tBR\222AO2-Token" + - " for fetching the previous page of tools" + - "J\036\"eyJwYWdlIjoxLCJsaW1pdCI6MzB9\"R\rprevPa" + - "geToken\0223\n\005tools\030\005 \003(\0132\035.scalekit.v1.too" + - "ls.ScopedToolR\005tools\"z\n\020ScopedToolFilter" + - "\022\034\n\tproviders\030\001 \003(\tR\tproviders\022\035\n\ntool_n" + - "ames\030\002 \003(\tR\ttoolNames\022)\n\020connection_name" + - "s\030\003 \003(\tR\017connectionNames2\341\024\n\013ToolService" + - "\022\362\001\n\nCreateTool\022$.scalekit.v1.tools.Crea" + - "teToolRequest\032%.scalekit.v1.tools.Create" + - "ToolResponse\"\226\001\222Ac\n\005Tools\022\021Create a new " + - "tool\032GRegister a new tool with its schem" + - "a, metadata, and other configuration.\202\265\030" + - "\002\030\004\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\025\"\r/api/v1/tools:" + - "\004tool\022\372\001\n\tListTools\022#.scalekit.v1.tools." + - "ListToolsRequest\032$.scalekit.v1.tools.Lis" + - "tToolsResponse\"\241\001\222At\n\005Tools\022\nList tools\032" + - "_Fetch tools by provider, identifier, an" + - "d connector. If `summary=true`, returns " + - "only tool names.\202\265\030\002\030d\372\322\344\223\002\t\022\007PREVIEW\202\323\344" + - "\223\002\017\022\r/api/v1/tools\022\233\001\n\017ListScopedTools\022)" + - ".scalekit.v1.tools.ListScopedToolsReques" + - "t\032*.scalekit.v1.tools.ListScopedToolsRes" + - "ponse\"1\202\265\030\002\030\004\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\026\022\024/api" + - "/v1/tools/scoped\022\254\002\n\016SetToolDefault\022(.sc" + - "alekit.v1.tools.SetToolDefaultRequest\032)." + - "scalekit.v1.tools.SetToolDefaultResponse" + - "\"\304\001\222A\207\001\n\005Tools\022#Marks a tool as the defa" + - "ult version\032YSet a specific tool (by nam" + - "e, schema version, tool version, and pro" + - "vider) as the default.\202\265\030\002\030\004\372\322\344\223\002\t\022\007PREV" + - "IEW\202\323\344\223\002\036\"\031/api/v1/tools:set_default:\001*\022" + - "\330\001\n\nUpdateTool\022$.scalekit.v1.tools.Updat" + - "eToolRequest\032%.scalekit.v1.tools.UpdateT" + - "oolResponse\"}\222AJ\n\005Tools\022\rUpdate a tool\0322" + - "Update an existing tool by provider and " + - "tool name.\202\265\030\002\030\004\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\025\032\r/" + - "api/v1/tools:\004tool\022\331\001\n\nDeleteTool\022$.scal" + - "ekit.v1.tools.DeleteToolRequest\032\026.google" + - ".protobuf.Empty\"\214\001\222AZ\n\005Tools\022\rDelete a t" + - "ool\032BDelete a tool by name, schema versi" + - "on, tool version, and provider.\202\265\030\002\030\004\372\322\344" + - "\223\002\t\022\007PREVIEW\202\323\344\223\002\024*\022/api/v1/tools/{id}\022\302" + - "\t\n\013ExecuteTool\022%.scalekit.v1.tools.Execu" + - "teToolRequest\032&.scalekit.v1.tools.Execut" + - "eToolResponse\"\343\010\222A\272\010\n\022Connected Accounts" + - "\022(Execute a tool using a connected accou" + - "nt\032\317\003Executes a tool action using authen" + - "tication credentials from a connected ac" + - "count. Specify the tool by name and prov" + - "ide required parameters as JSON. The con" + - "nected account can be identified by ID, " + - "or by combination of organization/user, " + - "connector, and identifier. Returns the e" + - "xecution result data and a unique execut" + - "ion ID for tracking. Use this endpoint t" + - "o perform actions like sending emails, c" + - "reating calendar events, or managing res" + - "ources in external services.Jq\n\003200\022j\nstring id = 1 [json_name = "id", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.AssignRoleRequest.id is deprecated. - * See scalekit/v1/users/users.proto;l=1511 + * See scalekit/v1/users/users.proto;l=1538 * @return The id. */ @java.lang.Override @@ -66,7 +66,7 @@ protected java.lang.Object newInstance( /** * string id = 1 [json_name = "id", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.AssignRoleRequest.id is deprecated. - * See scalekit/v1/users/users.proto;l=1511 + * See scalekit/v1/users/users.proto;l=1538 * @return The bytes for id. */ @java.lang.Override @@ -477,7 +477,7 @@ public Builder mergeFrom( /** * string id = 1 [json_name = "id", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.AssignRoleRequest.id is deprecated. - * See scalekit/v1/users/users.proto;l=1511 + * See scalekit/v1/users/users.proto;l=1538 * @return The id. */ @java.lang.Deprecated public java.lang.String getId() { @@ -495,7 +495,7 @@ public Builder mergeFrom( /** * string id = 1 [json_name = "id", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.AssignRoleRequest.id is deprecated. - * See scalekit/v1/users/users.proto;l=1511 + * See scalekit/v1/users/users.proto;l=1538 * @return The bytes for id. */ @java.lang.Deprecated public com.google.protobuf.ByteString @@ -514,7 +514,7 @@ public Builder mergeFrom( /** * string id = 1 [json_name = "id", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.AssignRoleRequest.id is deprecated. - * See scalekit/v1/users/users.proto;l=1511 + * See scalekit/v1/users/users.proto;l=1538 * @param value The id to set. * @return This builder for chaining. */ @@ -529,7 +529,7 @@ public Builder mergeFrom( /** * string id = 1 [json_name = "id", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.AssignRoleRequest.id is deprecated. - * See scalekit/v1/users/users.proto;l=1511 + * See scalekit/v1/users/users.proto;l=1538 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearId() { @@ -541,7 +541,7 @@ public Builder mergeFrom( /** * string id = 1 [json_name = "id", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.AssignRoleRequest.id is deprecated. - * See scalekit/v1/users/users.proto;l=1511 + * See scalekit/v1/users/users.proto;l=1538 * @param value The bytes for id to set. * @return This builder for chaining. */ diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/users/AssignRoleRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/users/AssignRoleRequestOrBuilder.java index 0a68cb38..a271bef4 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/users/AssignRoleRequestOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/users/AssignRoleRequestOrBuilder.java @@ -11,14 +11,14 @@ public interface AssignRoleRequestOrBuilder extends /** * string id = 1 [json_name = "id", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.AssignRoleRequest.id is deprecated. - * See scalekit/v1/users/users.proto;l=1511 + * See scalekit/v1/users/users.proto;l=1538 * @return The id. */ @java.lang.Deprecated java.lang.String getId(); /** * string id = 1 [json_name = "id", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.AssignRoleRequest.id is deprecated. - * See scalekit/v1/users/users.proto;l=1511 + * See scalekit/v1/users/users.proto;l=1538 * @return The bytes for id. */ @java.lang.Deprecated com.google.protobuf.ByteString diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/users/CreateUserProfile.java b/src/main/java/com/scalekit/grpc/scalekit/v1/users/CreateUserProfile.java index a7560c7f..b1c9bb92 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/users/CreateUserProfile.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/users/CreateUserProfile.java @@ -595,7 +595,7 @@ public java.lang.String getGroups(int index) { /** * string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1232 + * See scalekit/v1/users/users.proto;l=1259 * @return The firstName. */ @java.lang.Override @@ -614,7 +614,7 @@ public java.lang.String getGroups(int index) { /** * string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1232 + * See scalekit/v1/users/users.proto;l=1259 * @return The bytes for firstName. */ @java.lang.Override @@ -638,7 +638,7 @@ public java.lang.String getGroups(int index) { /** * string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1242 + * See scalekit/v1/users/users.proto;l=1269 * @return The lastName. */ @java.lang.Override @@ -657,7 +657,7 @@ public java.lang.String getGroups(int index) { /** * string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1242 + * See scalekit/v1/users/users.proto;l=1269 * @return The bytes for lastName. */ @java.lang.Override @@ -2333,7 +2333,7 @@ public Builder addGroupsBytes( /** * string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1232 + * See scalekit/v1/users/users.proto;l=1259 * @return The firstName. */ @java.lang.Deprecated public java.lang.String getFirstName() { @@ -2351,7 +2351,7 @@ public Builder addGroupsBytes( /** * string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1232 + * See scalekit/v1/users/users.proto;l=1259 * @return The bytes for firstName. */ @java.lang.Deprecated public com.google.protobuf.ByteString @@ -2370,7 +2370,7 @@ public Builder addGroupsBytes( /** * string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1232 + * See scalekit/v1/users/users.proto;l=1259 * @param value The firstName to set. * @return This builder for chaining. */ @@ -2385,7 +2385,7 @@ public Builder addGroupsBytes( /** * string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1232 + * See scalekit/v1/users/users.proto;l=1259 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearFirstName() { @@ -2397,7 +2397,7 @@ public Builder addGroupsBytes( /** * string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1232 + * See scalekit/v1/users/users.proto;l=1259 * @param value The bytes for firstName to set. * @return This builder for chaining. */ @@ -2415,7 +2415,7 @@ public Builder addGroupsBytes( /** * string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1242 + * See scalekit/v1/users/users.proto;l=1269 * @return The lastName. */ @java.lang.Deprecated public java.lang.String getLastName() { @@ -2433,7 +2433,7 @@ public Builder addGroupsBytes( /** * string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1242 + * See scalekit/v1/users/users.proto;l=1269 * @return The bytes for lastName. */ @java.lang.Deprecated public com.google.protobuf.ByteString @@ -2452,7 +2452,7 @@ public Builder addGroupsBytes( /** * string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1242 + * See scalekit/v1/users/users.proto;l=1269 * @param value The lastName to set. * @return This builder for chaining. */ @@ -2467,7 +2467,7 @@ public Builder addGroupsBytes( /** * string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1242 + * See scalekit/v1/users/users.proto;l=1269 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearLastName() { @@ -2479,7 +2479,7 @@ public Builder addGroupsBytes( /** * string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1242 + * See scalekit/v1/users/users.proto;l=1269 * @param value The bytes for lastName to set. * @return This builder for chaining. */ diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/users/CreateUserProfileOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/users/CreateUserProfileOrBuilder.java index a905681a..02547cf5 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/users/CreateUserProfileOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/users/CreateUserProfileOrBuilder.java @@ -210,14 +210,14 @@ java.lang.String getCustomAttributesOrThrow( /** * string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1232 + * See scalekit/v1/users/users.proto;l=1259 * @return The firstName. */ @java.lang.Deprecated java.lang.String getFirstName(); /** * string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1232 + * See scalekit/v1/users/users.proto;l=1259 * @return The bytes for firstName. */ @java.lang.Deprecated com.google.protobuf.ByteString @@ -226,14 +226,14 @@ java.lang.String getCustomAttributesOrThrow( /** * string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1242 + * See scalekit/v1/users/users.proto;l=1269 * @return The lastName. */ @java.lang.Deprecated java.lang.String getLastName(); /** * string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.CreateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1242 + * See scalekit/v1/users/users.proto;l=1269 * @return The bytes for lastName. */ @java.lang.Deprecated com.google.protobuf.ByteString diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/users/UpdateUserProfile.java b/src/main/java/com/scalekit/grpc/scalekit/v1/users/UpdateUserProfile.java index c2ef77dd..d3074e21 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/users/UpdateUserProfile.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/users/UpdateUserProfile.java @@ -465,7 +465,7 @@ public java.lang.String getCustomAttributesOrThrow( /** * optional string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1331 + * See scalekit/v1/users/users.proto;l=1358 * @return Whether the firstName field is set. */ @java.lang.Override @@ -475,7 +475,7 @@ public java.lang.String getCustomAttributesOrThrow( /** * optional string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1331 + * See scalekit/v1/users/users.proto;l=1358 * @return The firstName. */ @java.lang.Override @@ -494,7 +494,7 @@ public java.lang.String getCustomAttributesOrThrow( /** * optional string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1331 + * See scalekit/v1/users/users.proto;l=1358 * @return The bytes for firstName. */ @java.lang.Override @@ -518,7 +518,7 @@ public java.lang.String getCustomAttributesOrThrow( /** * optional string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1340 + * See scalekit/v1/users/users.proto;l=1367 * @return Whether the lastName field is set. */ @java.lang.Override @@ -528,7 +528,7 @@ public java.lang.String getCustomAttributesOrThrow( /** * optional string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1340 + * See scalekit/v1/users/users.proto;l=1367 * @return The lastName. */ @java.lang.Override @@ -547,7 +547,7 @@ public java.lang.String getCustomAttributesOrThrow( /** * optional string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1340 + * See scalekit/v1/users/users.proto;l=1367 * @return The bytes for lastName. */ @java.lang.Override @@ -2143,7 +2143,7 @@ public Builder putAllCustomAttributes( /** * optional string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1331 + * See scalekit/v1/users/users.proto;l=1358 * @return Whether the firstName field is set. */ @java.lang.Deprecated public boolean hasFirstName() { @@ -2152,7 +2152,7 @@ public Builder putAllCustomAttributes( /** * optional string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1331 + * See scalekit/v1/users/users.proto;l=1358 * @return The firstName. */ @java.lang.Deprecated public java.lang.String getFirstName() { @@ -2170,7 +2170,7 @@ public Builder putAllCustomAttributes( /** * optional string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1331 + * See scalekit/v1/users/users.proto;l=1358 * @return The bytes for firstName. */ @java.lang.Deprecated public com.google.protobuf.ByteString @@ -2189,7 +2189,7 @@ public Builder putAllCustomAttributes( /** * optional string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1331 + * See scalekit/v1/users/users.proto;l=1358 * @param value The firstName to set. * @return This builder for chaining. */ @@ -2204,7 +2204,7 @@ public Builder putAllCustomAttributes( /** * optional string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1331 + * See scalekit/v1/users/users.proto;l=1358 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearFirstName() { @@ -2216,7 +2216,7 @@ public Builder putAllCustomAttributes( /** * optional string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1331 + * See scalekit/v1/users/users.proto;l=1358 * @param value The bytes for firstName to set. * @return This builder for chaining. */ @@ -2234,7 +2234,7 @@ public Builder putAllCustomAttributes( /** * optional string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1340 + * See scalekit/v1/users/users.proto;l=1367 * @return Whether the lastName field is set. */ @java.lang.Deprecated public boolean hasLastName() { @@ -2243,7 +2243,7 @@ public Builder putAllCustomAttributes( /** * optional string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1340 + * See scalekit/v1/users/users.proto;l=1367 * @return The lastName. */ @java.lang.Deprecated public java.lang.String getLastName() { @@ -2261,7 +2261,7 @@ public Builder putAllCustomAttributes( /** * optional string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1340 + * See scalekit/v1/users/users.proto;l=1367 * @return The bytes for lastName. */ @java.lang.Deprecated public com.google.protobuf.ByteString @@ -2280,7 +2280,7 @@ public Builder putAllCustomAttributes( /** * optional string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1340 + * See scalekit/v1/users/users.proto;l=1367 * @param value The lastName to set. * @return This builder for chaining. */ @@ -2295,7 +2295,7 @@ public Builder putAllCustomAttributes( /** * optional string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1340 + * See scalekit/v1/users/users.proto;l=1367 * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearLastName() { @@ -2307,7 +2307,7 @@ public Builder putAllCustomAttributes( /** * optional string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1340 + * See scalekit/v1/users/users.proto;l=1367 * @param value The bytes for lastName to set. * @return This builder for chaining. */ diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/users/UpdateUserProfileOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/users/UpdateUserProfileOrBuilder.java index 6f80f55b..96ab6aea 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/users/UpdateUserProfileOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/users/UpdateUserProfileOrBuilder.java @@ -164,21 +164,21 @@ java.lang.String getCustomAttributesOrThrow( /** * optional string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1331 + * See scalekit/v1/users/users.proto;l=1358 * @return Whether the firstName field is set. */ @java.lang.Deprecated boolean hasFirstName(); /** * optional string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1331 + * See scalekit/v1/users/users.proto;l=1358 * @return The firstName. */ @java.lang.Deprecated java.lang.String getFirstName(); /** * optional string first_name = 21 [json_name = "firstName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.first_name is deprecated. - * See scalekit/v1/users/users.proto;l=1331 + * See scalekit/v1/users/users.proto;l=1358 * @return The bytes for firstName. */ @java.lang.Deprecated com.google.protobuf.ByteString @@ -187,21 +187,21 @@ java.lang.String getCustomAttributesOrThrow( /** * optional string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1340 + * See scalekit/v1/users/users.proto;l=1367 * @return Whether the lastName field is set. */ @java.lang.Deprecated boolean hasLastName(); /** * optional string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1340 + * See scalekit/v1/users/users.proto;l=1367 * @return The lastName. */ @java.lang.Deprecated java.lang.String getLastName(); /** * optional string last_name = 22 [json_name = "lastName", deprecated = true, (.grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = { ... } * @deprecated scalekit.v1.users.UpdateUserProfile.last_name is deprecated. - * See scalekit/v1/users/users.proto;l=1340 + * See scalekit/v1/users/users.proto;l=1367 * @return The bytes for lastName. */ @java.lang.Deprecated com.google.protobuf.ByteString diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/users/UsersProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/users/UsersProto.java index a4065c9a..7fba0870 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/users/UsersProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/users/UsersProto.java @@ -384,835 +384,853 @@ public static void registerAllExtensions( " link Scalekit with your system.J\r\"ext_7" + "890xyz\"H\000R\nexternalIdB\014\n\nidentities\">\n\017G" + "etUserResponse\022+\n\004user\030\001 \001(\0132\027.scalekit." + - "v1.users.UserR\004user\"\331\001\n\026GetCurrentUserRe" + + "v1.users.UserR\004user\"\330\001\n\026GetCurrentUserRe" + "sponse\022+\n\004user\030\001 \001(\0132\027.scalekit.v1.users" + - ".UserR\004user\022\221\001\n\022current_session_id\030\002 \001(\t" + - "Bc\222A`2EThe ID of the current session ass" + - "ociated with the authenticated user.J\027\"s" + - "ess_1234abcd5678efgh\"R\020currentSessionId\"" + - "\027\n\025GetCurrentUserRequest\"\364\004\n\034ListOrganiz" + - "ationUsersRequest\022\311\001\n\017organization_id\030\001 " + - "\001(\tB\237\001\222A\214\0012rUnique identifier of the org" + - "anization for which to list users. Must " + - "start with \'org_\' and be 1-32 characters" + - " long.J\026\"org_1234abcd5678efgh\"\272H\014r\n\020\001\030 :" + - "\004org_R\016organizationId\022\251\001\n\tpage_size\030\002 \001(" + - "\rB\213\001\222A\1772yMaximum number of users to retu" + - "rn in a single response. Valid range: 1-" + - "100. Server may return fewer users than " + - "specified.J\00250\272H\006*\004\030d(\000R\010pageSize\022\333\001\n\npa" + - "ge_token\030\003 \001(\tB\273\001\222A\267\0012\200\001Pagination token" + - " from a previous ListUserResponse. Used " + - "to retrieve the next page of results. Le" + - "ave empty for the first request.J2\"eyJwY" + - "WdlIjogMiwgImxhc3RfaWQiOiAidXNyXzEyMzQ1I" + - "n0=\"R\tpageToken\"\244\005\n\035ListOrganizationUser" + - "sResponse\022\272\001\n\017next_page_token\030\001 \001(\tB\221\001\222A" + - "\215\0012WOpaque token for retrieving the next" + - " page of results. Empty if there are no " + - "more pages.J2\"eyJwYWdlIjogMiwgImxhc3RfaW" + - "QiOiAidXNyXzEyMzQ1In0=\"R\rnextPageToken\022x" + - "\n\ntotal_size\030\002 \001(\rBY\222AV2NTotal number of" + - " users matching the request criteria, re" + - "gardless of pagination.J\0041042R\ttotalSize" + - "\022\222\001\n\005users\030\003 \003(\0132\027.scalekit.v1.users.Use" + - "rBc\222A`2^List of user objects for the cur" + - "rent page. May contain fewer entries tha" + - "n requested page_size.R\005users\022\266\001\n\017prev_p" + - "age_token\030\004 \001(\tB\215\001\222A\211\0012SOpaque token for" + + ".UserR\004user\022\220\001\n\022current_session_id\030\002 \001(\t" + + "Bb\222A_2EThe ID of the current session ass" + + "ociated with the authenticated user.J\026\"s" + + "es_1234567890123456\"R\020currentSessionId\"\027" + + "\n\025GetCurrentUserRequest\"\364\004\n\034ListOrganiza" + + "tionUsersRequest\022\311\001\n\017organization_id\030\001 \001" + + "(\tB\237\001\222A\214\0012rUnique identifier of the orga" + + "nization for which to list users. Must s" + + "tart with \'org_\' and be 1-32 characters " + + "long.J\026\"org_1234abcd5678efgh\"\272H\014r\n\020\001\030 :\004" + + "org_R\016organizationId\022\251\001\n\tpage_size\030\002 \001(\r" + + "B\213\001\222A\1772yMaximum number of users to retur" + + "n in a single response. Valid range: 1-1" + + "00. Server may return fewer users than s" + + "pecified.J\00250\272H\006*\004\030d(\000R\010pageSize\022\333\001\n\npag" + + "e_token\030\003 \001(\tB\273\001\222A\267\0012\200\001Pagination token " + + "from a previous ListUserResponse. Used t" + + "o retrieve the next page of results. Lea" + + "ve empty for the first request.J2\"eyJwYW" + + "dlIjogMiwgImxhc3RfaWQiOiAidXNyXzEyMzQ1In" + + "0=\"R\tpageToken\"\244\005\n\035ListOrganizationUsers" + + "Response\022\272\001\n\017next_page_token\030\001 \001(\tB\221\001\222A\215" + + "\0012WOpaque token for retrieving the next " + + "page of results. Empty if there are no m" + + "ore pages.J2\"eyJwYWdlIjogMiwgImxhc3RfaWQ" + + "iOiAidXNyXzEyMzQ1In0=\"R\rnextPageToken\022x\n" + + "\ntotal_size\030\002 \001(\rBY\222AV2NTotal number of " + + "users matching the request criteria, reg" + + "ardless of pagination.J\0041042R\ttotalSize\022" + + "\222\001\n\005users\030\003 \003(\0132\027.scalekit.v1.users.User" + + "Bc\222A`2^List of user objects for the curr" + + "ent page. May contain fewer entries than" + + " requested page_size.R\005users\022\266\001\n\017prev_pa" + + "ge_token\030\004 \001(\tB\215\001\222A\211\0012SOpaque token for " + + "retrieving the previous page of results." + + " Empty for the first page.J2\"eyJwYWdlIjo" + + "gMCwgImZpcnN0X2lkIjogInVzcl85ODc2NSJ9\"R\r" + + "prevPageToken\"\375\004\n\027DeleteMembershipReques" + + "t\022\247\001\n\017organization_id\030\001 \001(\tB~\222Al2RUnique" + + " organization identifier. Must start wit" + + "h \'org_\' and be 1-32 characters longJ\026\"o" + + "rg_1234abcd5678efgh\"\272H\014r\n\020\001\030 :\004org_R\016org" + + "anizationId\022\201\001\n\002id\030\002 \001(\tBo\222A]2CSystem-ge" + + "nerated user ID. Must start with \'usr_\' " + + "(19-25 characters)J\026\"usr_1234abcd5678efg" + + "h\"\272H\014r\n\020\023\030\031:\004usr_H\000R\002id\022\211\001\n\013external_id\030" + + "\003 \001(\tBf\222Ac2RExternal system identifier f" + + "rom connected directories. Must match ex" + + "isting recordsJ\r\"ext_7890xyz\"H\000R\nexterna" + + "lId\022\215\001\n\007cascade\030\005 \001(\010Bn\222A\\2SIf true, if " + + "user has no memberships left the user is" + + " also deleted. defaults to trueJ\005false\372\322" + + "\344\223\002\t\022\007PREVIEWH\001R\007cascade\210\001\001B\014\n\nidentitie" + + "sB\n\n\010_cascade\"\275\006\n\027CreateMembershipReques" + + "t\022\267\001\n\017organization_id\030\001 \001(\tB\215\001\222A{2aUniqu" + + "e identifier of the target organization." + + " Must start with \'org_\' and be 1-32 char" + + "acters long.J\026\"org_1234abcd5678efgh\"\272H\014r" + + "\n\020\001\030 :\004org_R\016organizationId\022\242\001\n\nmembersh" + + "ip\030\002 \001(\0132#.scalekit.v1.users.CreateMembe" + + "rshipB]\222AQ2?Membership details to create" + + ". Required fields must be provided.\312>\r\372\002" + + "\nmembership\340A\002\272H\003\310\001\001R\nmembership\022\201\001\n\002id\030" + + "\003 \001(\tBo\222A]2CSystem-generated user ID. Mu" + + "st start with \'usr_\' (19-25 characters)J" + + "\026\"usr_1234abcd5678efgh\"\272H\014r\n\020\023\030\031:\004usr_H\000" + + "R\002id\022\216\001\n\013external_id\030\004 \001(\tBk\222Ah2WExterna" + + "l system identifier from connected direc" + + "tories. Must be unique across the system" + + "J\r\"ext_7890xyz\"H\000R\nexternalId\022\205\001\n\025send_i" + + "nvitation_email\030\005 \001(\010BL\222AI2AIf true, sen" + + "ds an activation email to the user. Defa" + + "ults to true.J\004trueH\001R\023sendInvitationEma" + + "il\210\001\001B\014\n\nidentitiesB\030\n\026_send_invitation_" + + "email\"G\n\030CreateMembershipResponse\022+\n\004use" + + "r\030\001 \001(\0132\027.scalekit.v1.users.UserR\004user\"\232" + + "\002\n\020ListUsersRequest\022t\n\tpage_size\030\001 \001(\rBW" + + "\222AT2NMaximum number of organizations to " + + "return per page. Must be between 10 and " + + "100J\00230R\010pageSize\022\217\001\n\npage_token\030\002 \001(\tBp" + + "\222Am2[Pagination token from the previous " + + "response. Use to retrieve the next page " + + "of organizationsJ\016\"\"R\tpageTo" + + "ken\"\300\004\n\021ListUsersResponse\022B\n\005users\030\001 \003(\013" + + "2\027.scalekit.v1.users.UserB\023\222A\0202\016List of " + + "users.R\005users\022\263\001\n\017next_page_token\030\002 \001(\tB" + + "\212\001\222A\206\0012PToken for retrieving the next pa" + + "ge of results. Empty if there are no mor" + + "e pages.J2\"eyJwYWdlIjogMiwgImxhc3RfaWQiO" + + "iAidXNyXzEyMzQ1In0=\"R\rnextPageToken\022x\n\nt" + + "otal_size\030\003 \001(\rBY\222AV2NTotal number of us" + + "ers matching the request criteria, regar" + + "dless of pagination.J\0041042R\ttotalSize\022\266\001" + + "\n\017prev_page_token\030\004 \001(\tB\215\001\222A\211\0012SToken fo" + + "r retrieving the previous page of result" + + "s. Empty if this is the first page.J2\"ey" + + "JwYWdlIjogMCwgImZpcnN0X2lkIjogInVzcl85OD" + + "c2NSJ9\"R\rprevPageToken\"\373\003\n\022SearchUsersRe" + + "quest\022\257\001\n\005query\030\001 \001(\tB\230\001\222A\210\0012oSearch ter" + + "m to match against user email, IDs, or e" + + "xternal IDs. Must be at least 3 characte" + + "rs. Case insensitive.J\020john@example.comx" + + "d\200\001\003\272H\tr\004\020\003\030d\310\001\001R\005query\022\212\001\n\tpage_size\030\002 " + + "\001(\rBm\222Ac2KMaximum number of users to ret" + + "urn per page. Value must be between 1 an" + + "d 30.J\00230Y\000\000\000\000\000\000>@i\000\000\000\000\000\000\360?\272H\004*\002\030\036R\010page" + + "Size\022\245\001\n\npage_token\030\003 \001(\tB\205\001\222A\201\0012aToken " + + "from a previous response for pagination." + + " Provide this to retrieve the next page " + + "of results.J\034eyJwYWdlIjoyLCJsaW1pdCI6MzB" + + "9R\tpageToken\"\313\004\n\023SearchUsersResponse\022\263\001\n" + + "\017next_page_token\030\001 \001(\tB\212\001\222A\206\0012PToken for" + + " retrieving the next page of results. Em" + + "pty if there are no more pages.J2\"eyJwYW" + + "dlIjogMiwgImxhc3RfaWQiOiAidXNyXzEyMzQ1In" + + "0=\"R\rnextPageToken\022x\n\ntotal_size\030\002 \001(\rBY" + + "\222AV2NTotal number of users matching the " + + "request criteria, regardless of paginati" + + "on.J\0041042R\ttotalSize\022K\n\005users\030\003 \003(\0132\027.sc" + + "alekit.v1.users.UserB\034\222A\0312\027List of match" + + "ing users.R\005users\022\266\001\n\017prev_page_token\030\004 " + + "\001(\tB\215\001\222A\211\0012SToken for retrieving the pre" + + "vious page of results. Empty if this is " + + "the first page.J2\"eyJwYWdlIjogMCwgImZpcn" + + "N0X2lkIjogInVzcl85ODc2NSJ9\"R\rprevPageTok" + + "en\"\261\002\n\021DeleteUserRequest\022\201\001\n\002id\030\001 \001(\tBo\222" + + "A]2CSystem-generated user ID. Must start" + + " with \'usr_\' (19-25 characters)J\026\"usr_12" + + "34abcd5678efgh\"\272H\014r\n\020\023\030\031:\004usr_H\000R\002id\022\211\001\n" + + "\013external_id\030\002 \001(\tBf\222Ac2RExternal system" + + " identifier from connected directories. " + + "Must match existing recordsJ\r\"ext_7890xy" + + "z\"H\000R\nexternalIdB\014\n\nidentities\"\232\005\n\027Updat" + + "eMembershipRequest\022\313\001\n\017organization_id\030\001" + + " \001(\tB\241\001\222A\216\0012tUnique identifier of the or" + + "ganization containing the membership. Mu" + + "st start with \'org_\' and be 1-32 charact" + + "ers long.J\026\"org_1234abcd5678efgh\"\272H\014r\n\020\001" + + "\030 :\004org_R\016organizationId\022\214\001\n\002id\030\002 \001(\tBz\222" + + "Ah2NSystem-generated user ID. Must start" + + " with \'usr_\' and be 19-25 characters lon" + + "g.J\026\"usr_1234abcd5678efgh\"\272H\014r\n\020\023\030\031:\004usr" + + "_H\000R\002id\022j\n\013external_id\030\003 \001(\tBG\222AD23Your " + + "application\'s unique identifier for this" + + " user.J\r\"ext_7890xyz\"H\000R\nexternalId\022\247\001\n\n" + + "membership\030\005 \001(\0132#.scalekit.v1.users.Upd" + + "ateMembershipBb\222AY2DMembership fields to" + + " update. Only specified fields will be m" + + "odified.J\021{\"role\": \"admin\"}\272H\003\310\001\001R\nmembe" + + "rshipB\014\n\nidentities\"\373\003\n\020UpdateMembership" + + "\022}\n\005roles\030\004 \003(\0132\031.scalekit.v1.commons.Ro" + + "leBL\222AI22Role to assign to the user with" + + "in the organizationJ\023[{\"name\": \"admin\"}]" + + "R\005roles\022\214\002\n\010metadata\030\007 \003(\01321.scalekit.v1" + + ".users.UpdateMembership.MetadataEntryB\274\001" + + "\222A\237\0012dCustom key-value pairs for storing" + + " additional user context. Keys (3-25 cha" + + "rs), values (1-256 chars).J7{\"department" + + "\": \"engineering\", \"location\": \"nyc-offic" + + "e\"}\272H\026\232\001\023\020\024\"\006r\004\020\003\030\031*\007r\005\020\001\030\200\002R\010metadata\032;" + + "\n\rMetadataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005val" + + "ue\030\002 \001(\tR\005value:\0028\001J\004\010\001\020\002J\004\010\002\020\003J\004\010\003\020\004J\004\010" + + "\005\020\006J\004\010\006\020\007\"\264\005\n\020CreateMembership\022}\n\005roles\030" + + "\004 \003(\0132\031.scalekit.v1.commons.RoleBL\222AI22R" + + "ole to assign to the user within the org" + + "anizationJ\023[{\"name\": \"admin\"}]R\005roles\022\214\002" + + "\n\010metadata\030\007 \003(\01321.scalekit.v1.users.Cre" + + "ateMembership.MetadataEntryB\274\001\222A\237\0012dCust" + + "om key-value pairs for storing additiona" + + "l user context. Keys (3-25 chars), value" + + "s (1-256 chars).J7{\"department\": \"engine" + + "ering\", \"location\": \"nyc-office\"}\272H\026\232\001\023\020" + + "\024\"\006r\004\020\003\030\031*\007r\005\020\001\030\200\002R\010metadata\022\244\001\n\rinviter" + + "_email\030\010 \001(\tBz\222Ak2QEmail address of the " + + "user who invited this member. Must be a " + + "valid email address.J\026\"john.doe@example." + + "com\"\272H\tr\007\020\005\030\376\001`\001H\000R\014inviterEmail\210\001\001\032;\n\rM" + + "etadataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030" + + "\002 \001(\tR\005value:\0028\001B\020\n\016_inviter_emailJ\004\010\001\020\002" + + "J\004\010\002\020\003J\004\010\003\020\004J\004\010\005\020\006J\004\010\006\020\007\"G\n\030UpdateMember" + + "shipResponse\022+\n\004user\030\001 \001(\0132\027.scalekit.v1" + + ".users.UserR\004user\"\317\005\n\036SearchOrganization" + + "UsersRequest\022\305\001\n\017organization_id\030\001 \001(\tB\233" + + "\001\222A\205\0012kUnique identifier of the organiza" + + "tion to search within. Must start with \'" + + "org_\' and be 1-32 characters long.J\026\"org" + + "_1234abcd5678efgh\"\272H\017r\n\020\001\030 :\004org_\310\001\001R\016or" + + "ganizationId\022\257\001\n\005query\030\002 \001(\tB\230\001\222A\210\0012oSea" + + "rch term to match against user email, ID" + + "s, or external IDs. Must be at least 3 c" + + "haracters. Case insensitive.J\020john@examp" + + "le.comxd\200\001\003\272H\tr\004\020\003\030d\310\001\001R\005query\022\212\001\n\tpage_" + + "size\030\003 \001(\rBm\222Ac2KMaximum number of users" + + " to return per page. Value must be betwe" + + "en 1 and 30.J\00230Y\000\000\000\000\000\000>@i\000\000\000\000\000\000\360?\272H\004*\002\030" + + "\036R\010pageSize\022\245\001\n\npage_token\030\004 \001(\tB\205\001\222A\201\0012" + + "aToken from a previous response for pagi" + + "nation. Provide this to retrieve the nex" + + "t page of results.J\034eyJwYWdlIjoyLCJsaW1p" + + "dCI6MzB9R\tpageToken\"\327\004\n\037SearchOrganizati" + + "onUsersResponse\022\263\001\n\017next_page_token\030\001 \001(" + + "\tB\212\001\222A\206\0012PToken for retrieving the next " + + "page of results. Empty if there are no m" + + "ore pages.J2\"eyJwYWdlIjogMiwgImxhc3RfaWQ" + + "iOiAidXNyXzEyMzQ1In0=\"R\rnextPageToken\022x\n" + + "\ntotal_size\030\002 \001(\rBY\222AV2NTotal number of " + + "users matching the request criteria, reg" + + "ardless of pagination.J\0041042R\ttotalSize\022" + + "K\n\005users\030\003 \003(\0132\027.scalekit.v1.users.UserB" + + "\034\222A\0312\027List of matching users.R\005users\022\266\001\n" + + "\017prev_page_token\030\004 \001(\tB\215\001\222A\211\0012SToken for" + " retrieving the previous page of results" + - ". Empty for the first page.J2\"eyJwYWdlIj" + - "ogMCwgImZpcnN0X2lkIjogInVzcl85ODc2NSJ9\"R" + - "\rprevPageToken\"\375\004\n\027DeleteMembershipReque" + - "st\022\247\001\n\017organization_id\030\001 \001(\tB~\222Al2RUniqu" + - "e organization identifier. Must start wi" + - "th \'org_\' and be 1-32 characters longJ\026\"" + - "org_1234abcd5678efgh\"\272H\014r\n\020\001\030 :\004org_R\016or" + - "ganizationId\022\201\001\n\002id\030\002 \001(\tBo\222A]2CSystem-g" + - "enerated user ID. Must start with \'usr_\'" + - " (19-25 characters)J\026\"usr_1234abcd5678ef" + - "gh\"\272H\014r\n\020\023\030\031:\004usr_H\000R\002id\022\211\001\n\013external_id" + - "\030\003 \001(\tBf\222Ac2RExternal system identifier " + - "from connected directories. Must match e" + - "xisting recordsJ\r\"ext_7890xyz\"H\000R\nextern" + - "alId\022\215\001\n\007cascade\030\005 \001(\010Bn\222A\\2SIf true, if" + - " user has no memberships left the user i" + - "s also deleted. defaults to trueJ\005false\372" + - "\322\344\223\002\t\022\007PREVIEWH\001R\007cascade\210\001\001B\014\n\nidentiti" + - "esB\n\n\010_cascade\"\252\006\n\027CreateMembershipReque" + - "st\022\267\001\n\017organization_id\030\001 \001(\tB\215\001\222A{2aUniq" + - "ue identifier of the target organization" + - ". Must start with \'org_\' and be 1-32 cha" + - "racters long.J\026\"org_1234abcd5678efgh\"\272H\014" + - "r\n\020\001\030 :\004org_R\016organizationId\022\217\001\n\nmembers" + - "hip\030\002 \001(\0132#.scalekit.v1.users.CreateMemb" + - "ershipBJ\222AA2?Membership details to creat" + - "e. Required fields must be provided.\272H\003\310" + - "\001\001R\nmembership\022\201\001\n\002id\030\003 \001(\tBo\222A]2CSystem" + - "-generated user ID. Must start with \'usr" + - "_\' (19-25 characters)J\026\"usr_1234abcd5678" + - "efgh\"\272H\014r\n\020\023\030\031:\004usr_H\000R\002id\022\216\001\n\013external_" + - "id\030\004 \001(\tBk\222Ah2WExternal system identifie" + - "r from connected directories. Must be un" + - "ique across the systemJ\r\"ext_7890xyz\"H\000R" + - "\nexternalId\022\205\001\n\025send_invitation_email\030\005 " + - "\001(\010BL\222AI2AIf true, sends an activation e" + - "mail to the user. Defaults to true.J\004tru" + - "eH\001R\023sendInvitationEmail\210\001\001B\014\n\nidentitie" + - "sB\030\n\026_send_invitation_email\"G\n\030CreateMem" + - "bershipResponse\022+\n\004user\030\001 \001(\0132\027.scalekit" + - ".v1.users.UserR\004user\"\232\002\n\020ListUsersReques" + - "t\022t\n\tpage_size\030\001 \001(\rBW\222AT2NMaximum numbe" + - "r of organizations to return per page. M" + - "ust be between 10 and 100J\00230R\010pageSize\022" + - "\217\001\n\npage_token\030\002 \001(\tBp\222Am2[Pagination to" + - "ken from the previous response. Use to r" + - "etrieve the next page of organizationsJ\016" + - "\"\"R\tpageToken\"\300\004\n\021ListUsersR" + - "esponse\022B\n\005users\030\001 \003(\0132\027.scalekit.v1.use" + - "rs.UserB\023\222A\0202\016List of users.R\005users\022\263\001\n\017" + - "next_page_token\030\002 \001(\tB\212\001\222A\206\0012PToken for " + - "retrieving the next page of results. Emp" + - "ty if there are no more pages.J2\"eyJwYWd" + - "lIjogMiwgImxhc3RfaWQiOiAidXNyXzEyMzQ1In0" + - "=\"R\rnextPageToken\022x\n\ntotal_size\030\003 \001(\rBY\222" + - "AV2NTotal number of users matching the r" + - "equest criteria, regardless of paginatio" + - "n.J\0041042R\ttotalSize\022\266\001\n\017prev_page_token\030" + - "\004 \001(\tB\215\001\222A\211\0012SToken for retrieving the p" + - "revious page of results. Empty if this i" + - "s the first page.J2\"eyJwYWdlIjogMCwgImZp" + - "cnN0X2lkIjogInVzcl85ODc2NSJ9\"R\rprevPageT" + - "oken\"\343\003\n\022SearchUsersRequest\022\252\001\n\005query\030\001 " + - "\001(\tB\223\001\222A\203\0012oSearch term to match against" + - " user email, IDs, or external IDs. Must " + - "be at least 3 characters. Case insensiti" + - "ve.J\020john@example.com\272H\tr\004\020\003\030d\310\001\001R\005query" + - "\022x\n\tpage_size\030\002 \001(\rB[\222AQ2KMaximum number" + - " of users to return per page. Value must" + - " be between 1 and 30.J\00230\272H\004*\002\030\036R\010pageSi" + - "ze\022\245\001\n\npage_token\030\003 \001(\tB\205\001\222A\201\0012aToken fr" + - "om a previous response for pagination. P" + - "rovide this to retrieve the next page of" + - " results.J\034eyJwYWdlIjoyLCJsaW1pdCI6MzB9R" + - "\tpageToken\"\313\004\n\023SearchUsersResponse\022\263\001\n\017n" + - "ext_page_token\030\001 \001(\tB\212\001\222A\206\0012PToken for r" + - "etrieving the next page of results. Empt" + - "y if there are no more pages.J2\"eyJwYWdl" + - "IjogMiwgImxhc3RfaWQiOiAidXNyXzEyMzQ1In0=" + - "\"R\rnextPageToken\022x\n\ntotal_size\030\002 \001(\rBY\222A" + - "V2NTotal number of users matching the re" + - "quest criteria, regardless of pagination" + - ".J\0041042R\ttotalSize\022K\n\005users\030\003 \003(\0132\027.scal" + - "ekit.v1.users.UserB\034\222A\0312\027List of matchin" + - "g users.R\005users\022\266\001\n\017prev_page_token\030\004 \001(" + - "\tB\215\001\222A\211\0012SToken for retrieving the previ" + - "ous page of results. Empty if this is th" + - "e first page.J2\"eyJwYWdlIjogMCwgImZpcnN0" + - "X2lkIjogInVzcl85ODc2NSJ9\"R\rprevPageToken" + - "\"\261\002\n\021DeleteUserRequest\022\201\001\n\002id\030\001 \001(\tBo\222A]" + - "2CSystem-generated user ID. Must start w" + - "ith \'usr_\' (19-25 characters)J\026\"usr_1234" + - "abcd5678efgh\"\272H\014r\n\020\023\030\031:\004usr_H\000R\002id\022\211\001\n\013e" + - "xternal_id\030\002 \001(\tBf\222Ac2RExternal system i" + - "dentifier from connected directories. Mu" + - "st match existing recordsJ\r\"ext_7890xyz\"" + - "H\000R\nexternalIdB\014\n\nidentities\"\232\005\n\027UpdateM" + - "embershipRequest\022\313\001\n\017organization_id\030\001 \001" + - "(\tB\241\001\222A\216\0012tUnique identifier of the orga" + - "nization containing the membership. Must" + - " start with \'org_\' and be 1-32 character" + - "s long.J\026\"org_1234abcd5678efgh\"\272H\014r\n\020\001\030 " + - ":\004org_R\016organizationId\022\214\001\n\002id\030\002 \001(\tBz\222Ah" + - "2NSystem-generated user ID. Must start w" + - "ith \'usr_\' and be 19-25 characters long." + - "J\026\"usr_1234abcd5678efgh\"\272H\014r\n\020\023\030\031:\004usr_H" + - "\000R\002id\022j\n\013external_id\030\003 \001(\tBG\222AD23Your ap" + - "plication\'s unique identifier for this u" + - "ser.J\r\"ext_7890xyz\"H\000R\nexternalId\022\247\001\n\nme" + - "mbership\030\005 \001(\0132#.scalekit.v1.users.Updat" + - "eMembershipBb\222AY2DMembership fields to u" + - "pdate. Only specified fields will be mod" + - "ified.J\021{\"role\": \"admin\"}\272H\003\310\001\001R\nmembers" + - "hipB\014\n\nidentities\"\373\003\n\020UpdateMembership\022}" + - "\n\005roles\030\004 \003(\0132\031.scalekit.v1.commons.Role" + - "BL\222AI22Role to assign to the user within" + - " the organizationJ\023[{\"name\": \"admin\"}]R\005" + - "roles\022\214\002\n\010metadata\030\007 \003(\01321.scalekit.v1.u" + - "sers.UpdateMembership.MetadataEntryB\274\001\222A" + - "\237\0012dCustom key-value pairs for storing a" + - "dditional user context. Keys (3-25 chars" + - "), values (1-256 chars).J7{\"department\":" + - " \"engineering\", \"location\": \"nyc-office\"" + - "}\272H\026\232\001\023\020\024\"\006r\004\020\003\030\031*\007r\005\020\001\030\200\002R\010metadata\032;\n\r" + - "MetadataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value" + - "\030\002 \001(\tR\005value:\0028\001J\004\010\001\020\002J\004\010\002\020\003J\004\010\003\020\004J\004\010\005\020" + - "\006J\004\010\006\020\007\"\264\005\n\020CreateMembership\022}\n\005roles\030\004 " + - "\003(\0132\031.scalekit.v1.commons.RoleBL\222AI22Rol" + - "e to assign to the user within the organ" + - "izationJ\023[{\"name\": \"admin\"}]R\005roles\022\214\002\n\010" + - "metadata\030\007 \003(\01321.scalekit.v1.users.Creat" + - "eMembership.MetadataEntryB\274\001\222A\237\0012dCustom" + + ". Empty if this is the first page.J2\"eyJ" + + "wYWdlIjogMCwgImZpcnN0X2lkIjogInVzcl85ODc" + + "2NSJ9\"R\rprevPageToken\"\205\010\n\nCreateUser\022\230\001\n" + + "\005email\030\005 \001(\tB\201\001\222Aw2aPrimary email addres" + + "s for the user. Must be unique across th" + + "e environment and valid per RFC 5322.J\022\"" + + "user@example.com\"\272H\004r\002`\001R\005email\022\242\001\n\013exte" + + "rnal_id\030\006 \001(\tB|\222Ay2cYour application\'s u" + + "nique identifier for this organization, " + + "used to link Scalekit with your system.J" + + "\022\"ext_12345a67b89c\"H\000R\nexternalId\210\001\001\022\237\001\n" + + "\nmembership\030\007 \001(\0132#.scalekit.v1.users.Cr" + + "eateMembershipBZ\222AW2UList of organizatio" + + "n memberships. Automatically populated b" + + "ased on group assignments.R\nmembership\022\240" + + "\001\n\014user_profile\030\010 \001(\0132$.scalekit.v1.user" + + "s.CreateUserProfileBW\222AT2RUser\'s persona" + + "l information including name, address, a" + + "nd other profile attributes.R\013userProfil" + + "e\022\206\002\n\010metadata\030\t \003(\0132+.scalekit.v1.users" + + ".CreateUser.MetadataEntryB\274\001\222A\237\0012dCustom" + " key-value pairs for storing additional " + "user context. Keys (3-25 chars), values " + "(1-256 chars).J7{\"department\": \"engineer" + "ing\", \"location\": \"nyc-office\"}\272H\026\232\001\023\020\024\"" + - "\006r\004\020\003\030\031*\007r\005\020\001\030\200\002R\010metadata\022\244\001\n\rinviter_e" + - "mail\030\010 \001(\tBz\222Ak2QEmail address of the us" + - "er who invited this member. Must be a va" + - "lid email address.J\026\"john.doe@example.co" + - "m\"\272H\tr\007\020\005\030\376\001`\001H\000R\014inviterEmail\210\001\001\032;\n\rMet" + - "adataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 " + - "\001(\tR\005value:\0028\001B\020\n\016_inviter_emailJ\004\010\001\020\002J\004" + - "\010\002\020\003J\004\010\003\020\004J\004\010\005\020\006J\004\010\006\020\007\"G\n\030UpdateMembersh" + - "ipResponse\022+\n\004user\030\001 \001(\0132\027.scalekit.v1.u" + - "sers.UserR\004user\"\267\005\n\036SearchOrganizationUs" + - "ersRequest\022\305\001\n\017organization_id\030\001 \001(\tB\233\001\222" + - "A\205\0012kUnique identifier of the organizati" + - "on to search within. Must start with \'or" + - "g_\' and be 1-32 characters long.J\026\"org_1" + - "234abcd5678efgh\"\272H\017r\n\020\001\030 :\004org_\310\001\001R\016orga" + - "nizationId\022\252\001\n\005query\030\002 \001(\tB\223\001\222A\203\0012oSearc" + - "h term to match against user email, IDs," + - " or external IDs. Must be at least 3 cha" + - "racters. Case insensitive.J\020john@example" + - ".com\272H\tr\004\020\003\030d\310\001\001R\005query\022x\n\tpage_size\030\003 \001" + - "(\rB[\222AQ2KMaximum number of users to retu" + - "rn per page. Value must be between 1 and" + - " 30.J\00230\272H\004*\002\030\036R\010pageSize\022\245\001\n\npage_token" + - "\030\004 \001(\tB\205\001\222A\201\0012aToken from a previous res" + - "ponse for pagination. Provide this to re" + - "trieve the next page of results.J\034eyJwYW" + - "dlIjoyLCJsaW1pdCI6MzB9R\tpageToken\"\327\004\n\037Se" + - "archOrganizationUsersResponse\022\263\001\n\017next_p" + - "age_token\030\001 \001(\tB\212\001\222A\206\0012PToken for retrie" + - "ving the next page of results. Empty if " + - "there are no more pages.J2\"eyJwYWdlIjogM" + - "iwgImxhc3RfaWQiOiAidXNyXzEyMzQ1In0=\"R\rne" + - "xtPageToken\022x\n\ntotal_size\030\002 \001(\rBY\222AV2NTo" + - "tal number of users matching the request" + - " criteria, regardless of pagination.J\00410" + - "42R\ttotalSize\022K\n\005users\030\003 \003(\0132\027.scalekit." + - "v1.users.UserB\034\222A\0312\027List of matching use" + - "rs.R\005users\022\266\001\n\017prev_page_token\030\004 \001(\tB\215\001\222" + - "A\211\0012SToken for retrieving the previous p" + - "age of results. Empty if this is the fir" + - "st page.J2\"eyJwYWdlIjogMCwgImZpcnN0X2lkI" + - "jogInVzcl85ODc2NSJ9\"R\rprevPageToken\"\205\010\n\n" + - "CreateUser\022\230\001\n\005email\030\005 \001(\tB\201\001\222Aw2aPrimar" + - "y email address for the user. Must be un" + - "ique across the environment and valid pe" + - "r RFC 5322.J\022\"user@example.com\"\272H\004r\002`\001R\005" + - "email\022\242\001\n\013external_id\030\006 \001(\tB|\222Ay2cYour a" + - "pplication\'s unique identifier for this " + - "organization, used to link Scalekit with" + - " your system.J\022\"ext_12345a67b89c\"H\000R\next" + - "ernalId\210\001\001\022\237\001\n\nmembership\030\007 \001(\0132#.scalek" + - "it.v1.users.CreateMembershipBZ\222AW2UList " + - "of organization memberships. Automatical" + - "ly populated based on group assignments." + - "R\nmembership\022\240\001\n\014user_profile\030\010 \001(\0132$.sc" + - "alekit.v1.users.CreateUserProfileBW\222AT2R" + - "User\'s personal information including na" + - "me, address, and other profile attribute" + - "s.R\013userProfile\022\206\002\n\010metadata\030\t \003(\0132+.sca" + - "lekit.v1.users.CreateUser.MetadataEntryB" + - "\274\001\222A\237\0012dCustom key-value pairs for stori" + - "ng additional user context. Keys (3-25 c" + - "hars), values (1-256 chars).J7{\"departme" + - "nt\": \"engineering\", \"location\": \"nyc-off" + - "ice\"}\272H\026\232\001\023\020\024\"\006r\004\020\003\030\031*\007r\005\020\001\030\200\002R\010metadata" + - "\032;\n\rMetadataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005v" + - "alue\030\002 \001(\tR\005value:\0028\001B\016\n\014_external_idJ\004\010" + - "\001\020\002J\004\010\002\020\003J\004\010\003\020\004J\004\010\004\020\005J\004\010\n\020\013\"\276\020\n\021CreateUs" + - "erProfile\022^\n\ngiven_name\030\002 \001(\tB?\222A42*User" + - "\'s given name. Maximum 255 characters.J\006" + - "\"John\"\272H\005r\003\030\377\001R\tgivenName\022`\n\013family_name" + - "\030\003 \001(\tB?\222A42+User\'s family name. Maximum" + - " 255 characters.J\005\"Doe\"\272H\005r\003\030\377\001R\nfamilyN" + - "ame\022v\n\004name\030\004 \001(\tBb\222A_2IFull name in dis" + - "play format. Typically combines first_na" + - "me and last_name.J\022\"John Michael Doe\"R\004n" + - "ame\022y\n\006locale\030\005 \001(\tBa\222A^2SUser\'s localiz" + - "ation preference in BCP-47 format. Defau" + - "lts to organization settings.J\007\"en-US\"R\006" + - "locale\022\212\001\n\014phone_number\030\007 \001(\tBg\222Ad2RPhon" + - "e number in E.164 international format. " + - "Required for SMS-based authentication.J\016" + - "\"+14155552671\"R\013phoneNumber\022\213\002\n\010metadata" + - "\030\010 \003(\01322.scalekit.v1.users.CreateUserPro" + - "file.MetadataEntryB\272\001\222A\235\0012^System-manage" + - "d key-value pairs for internal tracking." + - " Keys (3-25 chars), values (1-256 chars)" + - ".J;{\"account_status\": \"active\", \"signup_" + - "source\": \"mobile_app\"}\272H\026\232\001\023\020\024\"\006r\004\020\003\030\031*\007" + - "r\005\020\001\030\200\002R\010metadata\022\242\002\n\021custom_attributes\030" + - "\t \003(\0132:.scalekit.v1.users.CreateUserProf" + - "ile.CustomAttributesEntryB\270\001\222A\233\0012ZCustom" + - " attributes for extended user profile da" + - "ta. Keys (3-25 chars), values (1-256 cha" + - "rs).J={\"department\": \"engineering\", \"sec" + - "urity_clearance\": \"level2\"}\272H\026\232\001\023\020\024\"\006r\004\020" + - "\003\030\031*\007r\005\020\001\030\200\002R\020customAttributes\022\177\n\022prefer" + - "red_username\030\n \001(\tBP\222AE2/User\'s preferre" + - "d username for display purposes.J\022\"John " + - "Michael Doe\"\272H\005r\003\030\200\004R\021preferredUsername\022" + - "z\n\007picture\030\013 \001(\tB[\222AP2,URL to the user\'s" + - " profile picture or avatar.J \"https://ex" + - "ample.com/avatar.jpg\"\272H\005r\003\030\200\020H\000R\007picture" + - "\210\001\001\022A\n\006gender\030\014 \001(\tB$\222A!2\027User\'s gender " + - "identity.J\006\"male\"H\001R\006gender\210\001\001\022\241\001\n\006group" + - "s\030\r \003(\tB\210\001\222Ap2QList of group names the u" + - "ser belongs to. Each group name must be " + - "1-250 charactersJ\033[\"engineering\", \"manag" + - "ers\"]\272H\022\222\001\017\010\000\0202\030\001\"\007r\005\020\001\030\372\001R\006groups\022\224\001\n\nf" + - "irst_name\030\025 \001(\tBu\030\001\222AY2O[DEPRECATED] Use" + - " given_name instead. User\'s given name. " + - "Maximum 200 characters.J\006\"John\"\272H\005r\003\030\310\001\372" + - "\322\344\223\002\t\022\007PREVIEWR\tfirstName\022\223\001\n\tlast_name\030" + - "\026 \001(\tBv\030\001\222AZ2Q[DEPRECATED] Use family_na" + - "me instead. User\'s family name. Maximum " + - "200 characters.J\005\"Doe\"\272H\005r\003\030\310\001\372\322\344\223\002\t\022\007PR" + - "EVIEWR\010lastName\032;\n\rMetadataEntry\022\020\n\003key\030" + - "\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005value:\0028\001\032C\n\025" + - "CustomAttributesEntry\022\020\n\003key\030\001 \001(\tR\003key\022" + - "\024\n\005value\030\002 \001(\tR\005value:\0028\001B\n\n\010_pictureB\t\n" + - "\007_genderJ\004\010\001\020\002J\004\010\006\020\007\"\345(\n\021UpdateUserProfi" + - "le\022\345\001\n\ngiven_name\030\002 \001(\tB\300\001\222A\264\0012\251\001Updates", - " the user\'s given name (first name). Use" + - " this field to modify how the user\'s fir" + - "st name appears in the system and user i" + - "nterfaces. Maximum 255 characters allowe" + - "d.J\006\"John\"\272H\005r\003\030\377\001H\000R\tgivenName\210\001\001\022\344\001\n\013f" + - "amily_name\030\003 \001(\tB\275\001\222A\261\0012\247\001Updates the us" + - "er\'s family name (last name or surname)." + - " Use this field to modify how the user\'s" + - " last name appears throughout the system" + - ". Maximum 255 characters allowed.J\005\"Doe\"" + - "\272H\005r\003\030\377\001H\001R\nfamilyName\210\001\001\022\256\002\n\004name\030\004 \001(\t" + - "B\224\002\222A\220\0022\201\002Updates the user\'s complete di" + - "splay name. Use this field when you want" + - " to set the full name as a single string" + - " rather than using separate given and fa" + - "mily names. This name appears in user in" + - "terfaces, reports, and anywhere a format" + - "ted display name is needed.J\n\"John Doe\"H" + - "\002R\004name\210\001\001\022\227\003\n\006locale\030\005 \001(\tB\371\002\222A\365\0022\351\002Upd" + - "ates the user\'s preferred language and r" + - "egion settings using BCP-47 format codes" + - ". Use this field to customize the user\'s" + - " experience with localized content, date" + - " formats, number formatting, and UI lang" + - "uage. When not specified, the user inher" + - "its the organization\'s default locale se" + - "ttings. Common values include `en-US`, `" + - "en-GB`, `fr-FR`, `de-DE`, and `es-ES`.J\007" + - "\"en-US\"H\003R\006locale\210\001\001\022\261\003\n\014phone_number\030\007 " + - "\001(\tB\210\003\222A\204\0032\361\002Updates the user\'s phone nu" + - "mber in E.164 international format. Use " + - "this field to enable SMS-based authentic" + - "ation methods, two-factor authentication" + - ", or phone-based account recovery. The p" + - "hone number must include the country cod" + - "e and be formatted according to E.164 st" + - "andards (e.g., `+1` for US numbers). Thi" + - "s field is required when enabling SMS au" + - "thentication features.J\016\"+14155552671\"H\004" + - "R\013phoneNumber\210\001\001\022\321\004\n\010metadata\030\010 \003(\01322.sc" + - "alekit.v1.users.UpdateUserProfile.Metada" + - "taEntryB\200\004\222A\343\0032\243\003Updates system-managed " + - "key-value pairs for internal tracking an" + - "d operational data. Use this field to st" + - "ore system-generated metadata like accou" + - "nt status, signup source, last activity " + - "tracking, or integration-specific identi" + - "fiers. These fields are typically manage" + - "d by automated processes rather than dir" + - "ect user input. Keys must be 3-25 charac" + - "ters, values must be 1-256 characters, w" + - "ith a maximum of 20 key-value pairs.J;{\"" + - "account_status\": \"active\", \"signup_sourc" + - "e\": \"mobile_app\"}\272H\026\232\001\023\020\024\"\006r\004\020\003\030\031*\007r\005\020\001\030" + - "\200\002R\010metadata\022\307\005\n\021custom_attributes\030\t \003(\013" + - "2:.scalekit.v1.users.UpdateUserProfile.C" + - "ustomAttributesEntryB\335\004\222A\300\0042\376\003Updates cu" + - "stom attributes for extended user profil" + - "e data and application-specific informat" + - "ion. Use this field to store business-sp" + - "ecific user data like department, job ti" + - "tle, security clearances, project assign" + - "ments, or any other organizational attri" + - "butes your application requires. Unlike " + - "system metadata, these attributes are ty" + - "pically managed by administrators or app" + - "lications and are visible to end users. " + - "Keys must be 3-25 characters, values mus" + - "t be 1-256 characters, with a maximum of" + - " 20 key-value pairs.J={\"department\": \"en" + - "gineering\", \"security_clearance\": \"level" + - "2\"}\272H\026\232\001\023\020\024\"\006r\004\020\003\030\031*\007r\005\020\001\030\200\002R\020customAttr" + - "ibutes\022\212\001\n\nfirst_name\030\025 \001(\tBf\030\001\222AY2O[DEP" + - "RECATED] Use given_name instead. User\'s " + - "given name. Maximum 200 characters.J\006\"Jo" + - "hn\"\272H\005r\003\030\310\001H\005R\tfirstName\210\001\001\022\211\001\n\tlast_nam" + - "e\030\026 \001(\tBg\030\001\222AZ2Q[DEPRECATED] Use family_" + - "name instead. User\'s family name. Maximu" + - "m 200 characters.J\005\"Doe\"\272H\005r\003\030\310\001H\006R\010last" + - "Name\210\001\001\022\227\003\n\022preferred_username\030\n \001(\tB\342\002\222" + - "A\326\0022\277\002Updates the user\'s preferred usern" + - "ame for display and identification purpo" + - "ses. Use this field to set a custom user" + - "name that the user prefers to be known b" + - "y, which may differ from their email or " + - "formal name. This username appears in us" + - "er interfaces, mentions, and informal co" + - "mmunications. Maximum 512 characters all" + - "owed.J\022\"John Michael Doe\"\272H\005r\003\030\200\004H\007R\021pre" + - "ferredUsername\210\001\001\022\262\003\n\007picture\030\013 \001(\tB\222\003\222A" + - "\206\0032\341\002Updates the URL to the user\'s profi" + - "le picture or avatar image. Use this fie" + - "ld to set or change the user\'s profile p" + - "hoto that appears in user interfaces, di" + - "rectory listings, and collaborative feat" + - "ures. The URL should point to a publicly" + - " accessible image file. Supported format" + - "s typically include JPEG, PNG, and GIF. " + - "Maximum URL length is 2048 characters.J " + - "\"https://example.com/avatar.jpg\"\272H\005r\003\030\200\020" + - "H\010R\007picture\210\001\001\022\376\002\n\006gender\030\014 \001(\tB\340\002\222A\334\0022\321" + - "\002Updates the user\'s gender identity info" + - "rmation. Use this field to store the use" + - "r\'s gender identity for personalization," + - " compliance, or reporting purposes. This" + - " field supports any string value to acco" + - "mmodate diverse gender identities and sh" + - "ould be handled with appropriate privacy" + - " considerations according to your organi" + - "zation\'s policies.J\006\"male\"H\tR\006gender\210\001\001\022" + - "\335\003\n\006groups\030\r \003(\tB\304\003\222A\253\0032\213\003Updates the li" + - "st of group names the user belongs to wi" + - "thin the organization. Use this field to" + - " manage the user\'s group memberships for" + - " role-based access control, team assignm" + - "ents, or organizational structure. Group" + - "s are typically used for permission mana" + - "gement and collaborative access. Each gr" + - "oup name must be unique within the list," + - " 1-250 characters long, with a maximum o" + - "f 50 groups per user.J\033[\"engineering\", \"" + - "managers\"]\272H\022\222\001\017\010\000\0202\030\001\"\007r\005\020\001\030\372\001R\006groups\032" + - ";\n\rMetadataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005va" + - "lue\030\002 \001(\tR\005value:\0028\001\032C\n\025CustomAttributes" + - "Entry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005" + - "value:\0028\001B\r\n\013_given_nameB\016\n\014_family_name" + - "B\007\n\005_nameB\t\n\007_localeB\017\n\r_phone_numberB\r\n" + - "\013_first_nameB\014\n\n_last_nameB\025\n\023_preferred" + - "_usernameB\n\n\010_pictureB\t\n\007_genderJ\004\010\001\020\002J\004" + - "\010\006\020\007\"\371\007\n\006Invite\022l\n\017organization_id\030\001 \001(\t" + - "BC\222A@2-The organization to which the inv" + - "ite belongs.J\017\"org_987654321\"R\016organizat" + - "ionId\022\177\n\007user_id\030\002 \001(\tBf\222Ac2SUser ID to " + - "whom the invite is sent. May be empty if" + - " the user has not signed up yet.J\014\"usr_1" + - "23456\"R\006userId\022\177\n\rinviter_email\030\003 \001(\tBU\222" + - "AR2;Identifier of the user or system tha" + - "t initiated the invite.J\023\"admin@example." + - "com\"H\000R\014inviterEmail\210\001\001\022x\n\006status\030\004 \001(\tB" + - "`\222A]2ICurrent status of the invite (e.g." + - ", pending, accepted, expired, revoked).J" + - "\020\"pending_invite\"R\006status\022\211\001\n\ncreated_at" + - "\030\005 \001(\0132\032.google.protobuf.TimestampBN\222AK2" + - "1Timestamp when the invite was originall" + - "y created.J\026\"2025-07-10T08:00:00Z\"R\tcrea" + - "tedAt\022}\n\nexpires_at\030\006 \001(\0132\032.google.proto" + - "buf.TimestampBB\222A?2%The time at which th" + - "e invite expires.J\026\"2025-12-31T23:59:59Z" + - "\"R\texpiresAt\022\217\001\n\tresent_at\030\007 \001(\0132\032.googl" + - "e.protobuf.TimestampBV\222AS29Timestamp whe" + - "n the invite was last resent, if applica" + - "ble.J\026\"2025-07-15T09:30:00Z\"R\010resentAt\022V" + - "\n\014resent_count\030\010 \001(\005B3\222A02+Number of tim" + - "es the invite has been resent.J\0012R\013resen" + - "tCountB\020\n\016_inviter_email\"\243\003\n\023ResendInvit" + - "eRequest\022\323\001\n\017organization_id\030\001 \001(\tB\251\001\222A\226" + - "\0012|Unique identifier of the organization" + - " containing the pending invitation. Must" + - " start with \'org_\' and be 1-32 character" + - "s long.J\026\"org_1234abcd5678efgh\"\272H\014r\n\020\001\030 " + - ":\004org_R\016organizationId\022\265\001\n\002id\030\002 \001(\tB\244\001\222A" + - "\221\0012wSystem-generated user ID of the user" + - " who has a pending invitation. Must star" + - "t with \'usr_\' and be 19-25 characters lo" + - "ng.J\026\"usr_1234abcd5678efgh\"\272H\014r\n\020\023\030\031:\004us" + - "r_R\002id\"\341\002\n\024ResendInviteResponse\022\310\002\n\006invi" + - "te\030\001 \001(\0132\031.scalekit.v1.users.InviteB\224\002\222A" + - "\220\0022\201\001Updated invitation object containin" + - "g the resent invitation details, includi" + - "ng new expiration time and incremented r" + - "esend counter.J\211\001{\"organization_id\": \"or" + - "g_123\", \"user_id\": \"usr_456\", \"status\": " + - "\"pending_invite\", \"expires_at\": \"2025-12" + - "-31T23:59:59Z\", \"resent_count\": 2}R\006invi" + - "te\"\360\001\n\024ListUserRolesRequest\022w\n\017organizat" + - "ion_id\030\001 \001(\tBN\222A@2&Unique identifier for" + - " the organizationJ\026\"org_1234abcd5678efgh" + - "\"\272H\010r\006:\004org_R\016organizationId\022_\n\007user_id\030" + - "\002 \001(\tBF\222A82\036Unique identifier for the us" + - "erJ\026\"usr_1234abcd5678efgh\"\272H\010r\006:\004usr_R\006u" + - "serId\"q\n\025ListUserRolesResponse\022X\n\005roles\030" + - "\001 \003(\0132\031.scalekit.v1.commons.RoleB\'\222A$2\"L" + - "ist of roles assigned to the userR\005roles" + - "\"\336\002\n\026AssignUserRolesRequest\022w\n\017organizat" + - "ion_id\030\001 \001(\tBN\222A@2&Unique identifier for" + - " the organizationJ\026\"org_1234abcd5678efgh" + - "\"\272H\010r\006:\004org_R\016organizationId\022_\n\007user_id\030" + - "\002 \001(\tBF\222A82\036Unique identifier for the us" + - "erJ\026\"usr_1234abcd5678efgh\"\272H\010r\006:\004usr_R\006u" + - "serId\022j\n\005roles\030\003 \003(\0132$.scalekit.v1.users" + - ".AssignRoleRequestB.\222A%2#List of roles t" + - "o assign to the user\272H\003\310\001\001R\005roles\"\262\001\n\021As" + - "signRoleRequest\022N\n\002id\030\001 \001(\tB>\030\001\222A92\036Uniq" + - "ue identifier for the roleJ\027\"role_1234ab" + - "cd5678efgh\"R\002id\022M\n\trole_name\030\002 \001(\tB0\222A$2" + - "\030Unique name for the roleJ\010\"viewer\"\272H\006r\004" + - "\020\000\030dR\010roleName\"\201\001\n\027AssignUserRolesRespon" + - "se\022f\n\005roles\030\001 \003(\0132\031.scalekit.v1.commons." + - "RoleB5\222A220List of all roles currently a" + - "ssigned to the userR\005roles\"\326\002\n\025RemoveUse" + - "rRoleRequest\022w\n\017organization_id\030\001 \001(\tBN\222" + - "A@2&Unique identifier for the organizati" + - "onJ\026\"org_1234abcd5678efgh\"\272H\010r\006:\004org_R\016o" + - "rganizationId\022_\n\007user_id\030\002 \001(\tBF\222A82\036Uni" + - "que identifier for the userJ\026\"usr_1234ab" + - "cd5678efgh\"\272H\010r\006:\004usr_R\006userId\022c\n\trole_n" + - "ame\030\003 \001(\tBF\222AC2(Unique identifier for th" + - "e role to removeJ\027\"role_1234abcd5678efgh" + - "\"R\010roleName\"\366\001\n\032ListUserPermissionsReque" + - "st\022w\n\017organization_id\030\001 \001(\tBN\222A@2&Unique" + - " identifier for the organizationJ\026\"org_1" + - "234abcd5678efgh\"\272H\010r\006:\004org_R\016organizatio" + - "nId\022_\n\007user_id\030\002 \001(\tBF\222A82\036Unique identi" + - "fier for the userJ\026\"usr_1234abcd5678efgh" + - "\"\272H\010r\006:\004usr_R\006userId\"\227\003\n\nPermission\022U\n\002i" + - "d\030\001 \001(\tBE\222A?2$Unique identifier for the " + - "permissionJ\027\"perm_1234abcd5678efgh\"\340A\003R\002" + - "id\022R\n\004name\030\002 \001(\tB>\222A;2)Unique name ident" + - "ifier for the permissionJ\016\"users:create\"" + - "R\004name\022u\n\013description\030\003 \001(\tBS\222AP2)Descri" + - "ption of what the permission allowsJ#\"Al" + - "lows creating new user accounts\"R\013descri" + - "ption\022g\n\004tags\030\004 \003(\tBS\222AA2!Tags for categ" + - "orizing permissionsJ\034[\"user-management\"," + - " \"admin\"]\372\322\344\223\002\t\022\007PREVIEWR\004tags\";\n\026GetSup" + - "portHashResponse\022!\n\014support_hash\030\001 \001(\tR\013" + - "supportHash\"\217\001\n\033ListUserPermissionsRespo" + - "nse\022p\n\013permissions\030\001 \003(\0132\035.scalekit.v1.u" + - "sers.PermissionB/\222A,2*List of permission" + - "s the user has access toR\013permissions2\227]" + - "\n\013UserService\022\270\003\n\007GetUser\022!.scalekit.v1." + - "users.GetUserRequest\032\".scalekit.v1.users" + - ".GetUserResponse\"\345\002\222A\301\002\n\005Users\022\010Get user" + - "\032\216\001Retrieves all details for a user by s" + - "ystem-generated user ID or external ID. " + - "The response includes organization membe" + - "rships and user metadata.J\234\001\n\003200\022\224\001\njUs" + - "er details retrieved successfully. Retur" + - "ns full user object with system-generate" + - "d fields and timestamps.\022&\n$\032\".scalekit." + - "v1.users.GetUserResponse\202\265\030\002\030T\202\323\344\223\002\024\022\022/a" + - "pi/v1/users/{id}\022\272\003\n\016GetCurrentUser\022(.sc" + - "alekit.v1.users.GetCurrentUserRequest\032)." + - "scalekit.v1.users.GetCurrentUserResponse" + - "\"\322\002\222A\237\002\n\005Users\022\026Get authenticated user\032\236" + - "\001Retrieves details for the currently aut" + - "henticated user. Returns the same user o" + - "bject as GetUser but uses the authentica" + - "ted user\'s ID from the session context.J" + - "]\n\003200\022V\n,Current user details retrieved" + - " successfully.\022&\n$\032\".scalekit.v1.users.G" + - "etUserResponse\202\265\030\002\030\020\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002" + - "\024\022\022/api/v1/users:this\022\341\002\n\016GetSupportHash" + - "\022\026.google.protobuf.Empty\032).scalekit.v1.u" + - "sers.GetSupportHashResponse\"\213\002\222A\337\001\n\005User" + - "s\022\020Get support hash\032fRetrieves the suppo" + - "rt email hash for the current logged in " + - "user, used for the Scalekit support syst" + - "em.J\\\n\003200\022U\n$Support hash retrieved suc" + - "cessfully.\022-\n+\032).scalekit.v1.users.GetSu" + - "pportHashResponse\202\265\030\002\030P\202\323\344\223\002\034\022\032/api/v1/u" + - "sers/support-hash\022\240\004\n\tListUsers\022#.scalek" + - "it.v1.users.ListUsersRequest\032$.scalekit." + - "v1.users.ListUsersResponse\"\307\003\222A\250\003\n\005Users" + - "\022\035List all users in environment\032\274\002Retrie" + - "ves a paginated list of all users across" + - " your entire environment. Use this endpo" + - "int to view all users regardless of thei" + - "r organization memberships. This is usef" + - "ul for administrative purposes, user aud" + - "its, or when you need to see all users i" + - "n your Scalekit environment. Supports pa" + - "gination for large user bases.JA\n\003200\022:\n" + - "\016List of users.\022(\n&\032$.scalekit.v1.users." + - "ListUsersResponse\202\265\030\002\030D\202\323\344\223\002\017\022\r/api/v1/u" + - "sers\022\313\003\n\013SearchUsers\022%.scalekit.v1.users" + - ".SearchUsersRequest\032&.scalekit.v1.users." + - "SearchUsersResponse\"\354\002\222A\267\002\n\005Users\022\014Searc" + - "h users\032\205\001Searches for users in the envi" + - "ronment by email, user ID, or external I" + - "D. Returns all users that match the quer" + - "y. Supports pagination.J\227\001\n\003200\022\217\001\naRetu" + - "rns a list of matching users and a page " + - "token for pagination if there are additi" + - "onal results.\022*\n(\032&.scalekit.v1.users.Se" + - "archUsersResponse\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323" + - "\344\223\002\026\022\024/api/v1/users:search\022\340\004\n\027SearchOrg" + - "anizationUsers\0221.scalekit.v1.users.Searc" + - "hOrganizationUsersRequest\0322.scalekit.v1." + - "users.SearchOrganizationUsersResponse\"\335\003" + - "\222A\210\003\n\005Users\022\031Search organization users\032\245" + - "\001Searches for users within a specific or" + - "ganization by email, user ID, or externa" + - "l ID. Returns all users in the organizat" + - "ion that match the query. Supports pagin" + - "ation.J\273\001\n\003200\022\263\001\nyReturns a list of mat" + - "ching users within the organization and " + - "a page token for pagination if there are" + - " additional results.\0226\n4\0322.scalekit.v1.u" + - "sers.SearchOrganizationUsersResponse\202\265\030\002" + - "\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0026\0224/api/v1/organiz" + - "ations/{organization_id}/users:search\022\226\005" + - "\n\nUpdateUser\022$.scalekit.v1.users.UpdateU" + - "serRequest\032%.scalekit.v1.users.UpdateUse" + - "rResponse\"\272\004\222A\220\004\n\005Users\022\027Update user inf" + - "ormation\032\341\002Modifies user account informa" + - "tion including profile details, metadata" + - ", and external ID. Use this endpoint to " + - "update a user\'s personal information, co" + - "ntact details, or custom metadata. You c" + - "an update the user\'s profile, phone numb" + - "er, and metadata fields. Note that field" + - "s like user ID, email address, environme" + - "nt ID, and creation time cannot be modif" + - "ied.J\211\001\n\003200\022\201\001\nTUser updated successful" + - "ly. Returns the modified user object wit" + - "h updated timestamps.\022)\n\'\032%.scalekit.v1." + - "users.UpdateUserResponse\202\265\030\002\030T\202\323\344\223\002\0322\022/a" + - "pi/v1/users/{id}:\004user\022\375\003\n\nDeleteUser\022$." + - "scalekit.v1.users.DeleteUserRequest\032\026.go" + - "ogle.protobuf.Empty\"\260\003\222A\214\003\n\005Users\022\027Delet" + - "e user permanently\032\260\002Permanently removes" + - " a user from your environment and delete" + - "s all associated data. Use this endpoint" + - " when you need to completely remove a us" + - "er account. This action deletes the user" + - "\'s profile, memberships, and all related" + - " data across all organizations. This ope" + - "ration cannot be undone, so use with cau" + - "tion.J7\n\003200\0220\n.User successfully delete" + - "d. No content returned\202\265\030\002\030D\202\323\344\223\002\024*\022/api" + - "/v1/users/{id}\022\304\005\n\020CreateMembership\022*.sc" + - "alekit.v1.users.CreateMembershipRequest\032" + - "+.scalekit.v1.users.CreateMembershipResp" + - "onse\"\326\004\222A\336\003\n\005Users\022!Add existing user to" + - " organization\032\225\002Adds an existing user to" + - " an organization and assigns them specif" + - "ic roles and permissions. Use this endpo" + - "int when you want to grant an existing u" + - "ser access to a particular organization." + - " You can specify roles, metadata, and ot" + - "her membership details during the invita" + - "tion process.J\231\001\n\003201\022\221\001\n^User successfu" + - "lly added to the organization. Returns d" + - "etails of the updated membership details" + - "\022/\n-\032+.scalekit.v1.users.CreateMembershi" + - "pResponse\202\265\030\036\n\032organizations_users_invit" + - "e\030T\202\323\344\223\002L\">/api/v1/memberships/organizat" + - "ions/{organization_id}/users/{id}:\nmembe" + - "rship\022\231\004\n\020DeleteMembership\022*.scalekit.v1" + - ".users.DeleteMembershipRequest\032\026.google." + - "protobuf.Empty\"\300\003\222A\324\002\n\005Users\022\'Delete org" + - "anization membership for user\032\334\001Removes " + - "a user from an organization by user ID o" + - "r external ID. If the user has no member" + - "ships left and cascade is true, the user" + - " is also deleted. This action is irrever" + - "sible and may also remove related group " + - "memberships.JC\n\003200\022<\n:User successfully" + - " marked for deletion. No content returne" + - "d\202\265\030\036\n\032organizations_users_remove\030T\202\323\344\223\002" + - "@*>/api/v1/memberships/organizations/{or" + - "ganization_id}/users/{id}\022\236\004\n\020UpdateMemb" + - "ership\022*.scalekit.v1.users.UpdateMembers" + - "hipRequest\032+.scalekit.v1.users.UpdateMem" + - "bershipResponse\"\260\003\222A\263\002\n\005Users\022\'Update or" + - "ganization membership for user\032\203\001Updates" + - " a user\'s membership details within an o" + - "rganization by user ID or external ID. Y" + - "ou can update roles and membership metad" + - "ata.J{\n\003200\022t\nAMembership updated succes" + - "sfully. Returns the updated user object." + - "\022/\n-\032+.scalekit.v1.users.UpdateMembershi" + - "pResponse\202\265\030#\n\037organizations_users_role_" + - "update\030T\202\323\344\223\002L2>/api/v1/memberships/orga" + - "nizations/{organization_id}/users/{id}:\n" + - "membership\022\310\006\n\027CreateUserAndMembership\0221" + - ".scalekit.v1.users.CreateUserAndMembersh" + - "ipRequest\0322.scalekit.v1.users.CreateUser" + - "AndMembershipResponse\"\305\005\222A\344\004\n\005Users\022\037Cre" + - "ate new user in organization\032\203\003Creates a" + - " new user account and immediately adds t" + - "hem to the specified organization. Use t" + - "his endpoint when you want to create a u" + - "ser and grant them access to an organiza" + - "tion in a single operation. You can prov" + - "ide user profile information, assign rol" + - "es, and configure membership metadata. T" + - "he user receives an activation email unl" + - "ess this feature is disabled in the orga" + - "nization settings.J\263\001\n\003201\022\253\001\nqUser crea" + - "ted successfully. Returns the created us" + - "er object, including system-generated id" + - "entifiers and timestamps\0226\n4\0322.scalekit." + - "v1.users.CreateUserAndMembershipResponse" + - "\202\265\030\036\n\032organizations_users_invite\030T\202\323\344\223\0025" + - "\"-/api/v1/organizations/{organization_id" + - "}/users:\004user\022\375\004\n\025ListOrganizationUsers\022" + - "/.scalekit.v1.users.ListOrganizationUser" + - "sRequest\0320.scalekit.v1.users.ListOrganiz", - "ationUsersResponse\"\200\004\222A\247\003\n\005Users\022\027List o" + - "rganization users\032\207\002Retrieves a paginate" + - "d list of all users who are members of t" + - "he specified organization. Use this endp" + - "oint to view all users with access to a " + - "particular organization, including their" + - " roles, metadata, and membership details" + - ". Supports pagination for large user lis" + - "ts.J{\n\003200\022t\n\030\001\222A92\036Unique identifier " + + "for the roleJ\027\"role_1234abcd5678efgh\"R\002i" + + "d\022M\n\trole_name\030\002 \001(\tB0\222A$2\030Unique name f" + + "or the roleJ\010\"viewer\"\272H\006r\004\020\000\030dR\010roleName" + + "\"\201\001\n\027AssignUserRolesResponse\022f\n\005roles\030\001 " + + "\003(\0132\031.scalekit.v1.commons.RoleB5\222A220Lis" + + "t of all roles currently assigned to the" + + " userR\005roles\"\326\002\n\025RemoveUserRoleRequest\022w" + + "\n\017organization_id\030\001 \001(\tBN\222A@2&Unique ide" + + "ntifier for the organizationJ\026\"org_1234a" + + "bcd5678efgh\"\272H\010r\006:\004org_R\016organizationId\022" + + "_\n\007user_id\030\002 \001(\tBF\222A82\036Unique identifier" + + " for the userJ\026\"usr_1234abcd5678efgh\"\272H\010" + + "r\006:\004usr_R\006userId\022c\n\trole_name\030\003 \001(\tBF\222AC" + + "2(Unique identifier for the role to remo" + + "veJ\027\"role_1234abcd5678efgh\"R\010roleName\"\366\001" + + "\n\032ListUserPermissionsRequest\022w\n\017organiza" + + "tion_id\030\001 \001(\tBN\222A@2&Unique identifier fo" + + "r the organizationJ\026\"org_1234abcd5678efg" + + "h\"\272H\010r\006:\004org_R\016organizationId\022_\n\007user_id" + + "\030\002 \001(\tBF\222A82\036Unique identifier for the u" + + "serJ\026\"usr_1234abcd5678efgh\"\272H\010r\006:\004usr_R\006" + + "userId\"\227\003\n\nPermission\022U\n\002id\030\001 \001(\tBE\222A?2$" + + "Unique identifier for the permissionJ\027\"p" + + "erm_1234abcd5678efgh\"\340A\003R\002id\022R\n\004name\030\002 \001" + + "(\tB>\222A;2)Unique name identifier for the " + + "permissionJ\016\"users:create\"R\004name\022u\n\013desc" + + "ription\030\003 \001(\tBS\222AP2)Description of what " + + "the permission allowsJ#\"Allows creating " + + "new user accounts\"R\013description\022g\n\004tags\030" + + "\004 \003(\tBS\222AA2!Tags for categorizing permis" + + "sionsJ\034[\"user-management\", \"admin\"]\372\322\344\223\002" + + "\t\022\007PREVIEWR\004tags\";\n\026GetSupportHashRespon" + + "se\022!\n\014support_hash\030\001 \001(\tR\013supportHash\"\217\001" + + "\n\033ListUserPermissionsResponse\022p\n\013permiss" + + "ions\030\001 \003(\0132\035.scalekit.v1.users.Permissio" + + "nB/\222A,2*List of permissions the user has" + + " access toR\013permissions2\236b\n\013UserService\022" + + "\270\003\n\007GetUser\022!.scalekit.v1.users.GetUserR" + + "equest\032\".scalekit.v1.users.GetUserRespon" + + "se\"\345\002\222A\301\002\n\005Users\022\010Get user\032\216\001Retrieves a" + + "ll details for a user by system-generate" + + "d user ID or external ID. The response i" + + "ncludes organization memberships and use" + + "r metadata.J\234\001\n\003200\022\224\001\njUser details ret" + + "rieved successfully. Returns full user o" + + "bject with system-generated fields and t" + + "imestamps.\022&\n$\032\".scalekit.v1.users.GetUs" + + "erResponse\202\265\030\002\030T\202\323\344\223\002\024\022\022/api/v1/users/{i" + + "d}\022\325\003\n\016GetCurrentUser\022(.scalekit.v1.user" + + "s.GetCurrentUserRequest\032).scalekit.v1.us" + + "ers.GetCurrentUserResponse\"\355\002\222A\246\002\n\005Users" + + "\022\026Get authenticated user\032\236\001Retrieves det" + + "ails for the currently authenticated use" + + "r. Returns the same user object as GetUs" + + "er but uses the authenticated user\'s ID " + + "from the session context.Jd\n\003200\022]\n,Curr" + + "ent user details retrieved successfully." + + "\022-\n+\032).scalekit.v1.users.GetCurrentUserR" + + "esponse\202\265\030\002\030\030\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002(\022\022/api" + + "/v1/users:thisZ\022\022\020/api/v1/users/me\022\360\002\n\016G" + + "etSupportHash\022\026.google.protobuf.Empty\032)." + + "scalekit.v1.users.GetSupportHashResponse" + + "\"\232\002\222A\337\001\n\005Users\022\020Get support hash\032fRetrie" + + "ves the support email hash for the curre" + + "nt logged in user, used for the Scalekit" + + " support system.J\\\n\003200\022U\n$Support hash " + + "retrieved successfully.\022-\n+\032).scalekit.v" + + "1.users.GetSupportHashResponse\202\265\030\002\030P\372\322\344\223" + + "\002\t\022\007PREVIEW\202\323\344\223\002\034\022\032/api/v1/users/support" + + "-hash\022\240\004\n\tListUsers\022#.scalekit.v1.users." + + "ListUsersRequest\032$.scalekit.v1.users.Lis" + + "tUsersResponse\"\307\003\222A\250\003\n\005Users\022\035List all u" + + "sers in environment\032\274\002Retrieves a pagina" + + "ted list of all users across your entire" + + " environment. Use this endpoint to view " + + "all users regardless of their organizati" + + "on memberships. This is useful for admin" + + "istrative purposes, user audits, or when" + + " you need to see all users in your Scale" + + "kit environment. Supports pagination for" + + " large user bases.JA\n\003200\022:\n\016List of use" + + "rs.\022(\n&\032$.scalekit.v1.users.ListUsersRes" + + "ponse\202\265\030\002\030D\202\323\344\223\002\017\022\r/api/v1/users\022\270\005\n\013Sea" + + "rchUsers\022%.scalekit.v1.users.SearchUsers" + + "Request\032&.scalekit.v1.users.SearchUsersR" + + "esponse\"\331\004\222A\263\004\n\005Users\022\014Search users\032\257\002Se" + + "arches for users across the entire envir" + + "onment by email address, user ID, or ext" + + "ernal ID. The query must be at least 3 c" + + "haracters and is case-insensitive. Retur" + + "ns a paginated list of matching users wi" + + "th up to 30 results per page. Use the ne" + + "xt_page_token from the response to retri" + + "eve subsequent pages.J\214\001\n\003200\022\204\001\nVMatchi" + + "ng users returned; includes pagination c" + + "ursors for navigating large result sets." + + "\022*\n(\032&.scalekit.v1.users.SearchUsersResp" + + "onseJ[\n\003400\022T\nRBad Request - query must " + + "be at least 3 characters and no more tha" + + "n 100 characters.\202\265\030\002\030D\202\323\344\223\002\026\022\024/api/v1/u" + + "sers:search\022\320\007\n\027SearchOrganizationUsers\022" + + "1.scalekit.v1.users.SearchOrganizationUs" + + "ersRequest\0322.scalekit.v1.users.SearchOrg" + + "anizationUsersResponse\"\315\006\222A\207\006\n\005Users\022\031Se" + + "arch organization users\032\343\002Searches for u" + + "sers within a specific organization by e" + + "mail address, user ID, or external ID. T" + + "he query must be at least 3 characters a" + + "nd is case-insensitive. Scopes results s" + + "trictly to the given organization. Retur" + + "ns a paginated list of matching users wi" + + "th up to 30 results per page. Use the ne" + + "xt_page_token from the response to retri" + + "eve subsequent pages.J\260\001\n\003200\022\250\001\nnMatchi" + + "ng users within the organization returne" + + "d; includes pagination cursors for navig" + + "ating large result sets.\0226\n4\0322.scalekit." + + "v1.users.SearchOrganizationUsersResponse" + + "J\233\001\n\003400\022\223\001\n\220\001Bad Request - query must b" + + "e at least 3 characters and no more than" + + " 100 characters, and organization_id mus" + + "t be a valid org_ prefixed identifier.J," + + "\n\003404\022%\n#Not Found - organization not fo" + + "und.\202\265\030\002\030D\202\323\344\223\0026\0224/api/v1/organizations/" + + "{organization_id}/users:search\022\226\005\n\nUpdat" + + "eUser\022$.scalekit.v1.users.UpdateUserRequ" + + "est\032%.scalekit.v1.users.UpdateUserRespon" + + "se\"\272\004\222A\220\004\n\005Users\022\027Update user informatio" + + "n\032\341\002Modifies user account information in" + + "cluding profile details, metadata, and e" + + "xternal ID. Use this endpoint to update " + + "a user\'s personal information, contact d" + + "etails, or custom metadata. You can upda" + + "te the user\'s profile, phone number, and" + + " metadata fields. Note that fields like " + + "user ID, email address, environment ID, " + + "and creation time cannot be modified.J\211\001" + + "\n\003200\022\201\001\nTUser updated successfully. Ret" + + "urns the modified user object with updat" + + "ed timestamps.\022)\n\'\032%.scalekit.v1.users.U" + + "pdateUserResponse\202\265\030\002\030T\202\323\344\223\002\0322\022/api/v1/u" + + "sers/{id}:\004user\022\375\003\n\nDeleteUser\022$.scaleki" + + "t.v1.users.DeleteUserRequest\032\026.google.pr" + + "otobuf.Empty\"\260\003\222A\214\003\n\005Users\022\027Delete user " + + "permanently\032\260\002Permanently removes a user" + + " from your environment and deletes all a" + + "ssociated data. Use this endpoint when y" + + "ou need to completely remove a user acco" + + "unt. This action deletes the user\'s prof" + + "ile, memberships, and all related data a" + + "cross all organizations. This operation " + + "cannot be undone, so use with caution.J7" + + "\n\003200\0220\n.User successfully deleted. No c" + + "ontent returned\202\265\030\002\030D\202\323\344\223\002\024*\022/api/v1/use" + + "rs/{id}\022\304\005\n\020CreateMembership\022*.scalekit." + + "v1.users.CreateMembershipRequest\032+.scale" + + "kit.v1.users.CreateMembershipResponse\"\326\004" + + "\222A\336\003\n\005Users\022!Add existing user to organi" + + "zation\032\225\002Adds an existing user to an org" + + "anization and assigns them specific role" + + "s and permissions. Use this endpoint whe" + + "n you want to grant an existing user acc" + + "ess to a particular organization. You ca" + + "n specify roles, metadata, and other mem" + + "bership details during the invitation pr" + + "ocess.J\231\001\n\003201\022\221\001\n^User successfully add" + + "ed to the organization. Returns details " + + "of the updated membership details\022/\n-\032+." + + "scalekit.v1.users.CreateMembershipRespon" + + "se\202\265\030\036\n\032organizations_users_invite\030T\202\323\344\223" + + "\002L\">/api/v1/memberships/organizations/{o" + + "rganization_id}/users/{id}:\nmembership\022\231" + + "\004\n\020DeleteMembership\022*.scalekit.v1.users." + + "DeleteMembershipRequest\032\026.google.protobu" + + "f.Empty\"\300\003\222A\324\002\n\005Users\022\'Delete organizati" + + "on membership for user\032\334\001Removes a user " + + "from an organization by user ID or exter" + + "nal ID. If the user has no memberships l" + + "eft and cascade is true, the user is als" + + "o deleted. This action is irreversible a" + + "nd may also remove related group members" + + "hips.JC\n\003200\022<\n:User successfully marked" + + " for deletion. No content returned\202\265\030\036\n\032" + + "organizations_users_remove\030T\202\323\344\223\002@*>/api" + + "/v1/memberships/organizations/{organizat" + + "ion_id}/users/{id}\022\236\004\n\020UpdateMembership\022" + + "*.scalekit.v1.users.UpdateMembershipRequ" + + "est\032+.scalekit.v1.users.UpdateMembership" + + "Response\"\260\003\222A\263\002\n\005Users\022\'Update organizat" + + "ion membership for user\032\203\001Updates a user" + + "\'s membership details within an organiza" + + "tion by user ID or external ID. You can " + + "update roles and membership metadata.J{\n" + + "\003200\022t\nAMembership updated successfully." + + " Returns the updated user object.\022/\n-\032+." + + "scalekit.v1.users.UpdateMembershipRespon" + + "se\202\265\030#\n\037organizations_users_role_update\030" + + "T\202\323\344\223\002L2>/api/v1/memberships/organizatio" + + "ns/{organization_id}/users/{id}:\nmembers" + + "hip\022\310\006\n\027CreateUserAndMembership\0221.scalek" + + "it.v1.users.CreateUserAndMembershipReque" + + "st\0322.scalekit.v1.users.CreateUserAndMemb" + + "ershipResponse\"\305\005\222A\344\004\n\005Users\022\037Create new" + + " user in organization\032\203\003Creates a new us" + + "er account and immediately adds them to ", + "the specified organization. Use this end" + + "point when you want to create a user and" + + " grant them access to an organization in" + + " a single operation. You can provide use" + + "r profile information, assign roles, and" + + " configure membership metadata. The user" + + " receives an activation email unless thi" + + "s feature is disabled in the organizatio" + + "n settings.J\263\001\n\003201\022\253\001\nqUser created suc" + + "cessfully. Returns the created user obje" + + "ct, including system-generated identifie" + + "rs and timestamps\0226\n4\0322.scalekit.v1.user" + + "s.CreateUserAndMembershipResponse\202\265\030\036\n\032o" + + "rganizations_users_invite\030T\202\323\344\223\0025\"-/api/" + + "v1/organizations/{organization_id}/users" + + ":\004user\022\375\004\n\025ListOrganizationUsers\022/.scale" + + "kit.v1.users.ListOrganizationUsersReques" + + "t\0320.scalekit.v1.users.ListOrganizationUs" + + "ersResponse\"\200\004\222A\247\003\n\005Users\022\027List organiza" + + "tion users\032\207\002Retrieves a paginated list " + + "of all users who are members of the spec" + + "ified organization. Use this endpoint to" + + " view all users with access to a particu" + + "lar organization, including their roles," + + " metadata, and membership details. Suppo" + + "rts pagination for large user lists.J{\n\003" + + "200\022t\n builder) { + super(builder); + } + private CreateWorkspaceDomainRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateWorkspaceDomainRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest.class, com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest.Builder.class); + } + + private int bitField0_; + public static final int DOMAIN_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.domains.CreateDomain domain_; + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + * @return Whether the domain field is set. + */ + @java.lang.Override + public boolean hasDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + * @return The domain. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.domains.CreateDomain getDomain() { + return domain_ == null ? com.scalekit.grpc.scalekit.v1.domains.CreateDomain.getDefaultInstance() : domain_; + } + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.domains.CreateDomainOrBuilder getDomainOrBuilder() { + return domain_ == null ? com.scalekit.grpc.scalekit.v1.domains.CreateDomain.getDefaultInstance() : domain_; + } + + 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, getDomain()); + } + 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, getDomain()); + } + 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.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest other = (com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest) obj; + + if (hasDomain() != other.hasDomain()) return false; + if (hasDomain()) { + if (!getDomain() + .equals(other.getDomain())) 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 (hasDomain()) { + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.workspaces.CreateWorkspaceDomainRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.workspaces.CreateWorkspaceDomainRequest) + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest.class, com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDomainFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + domain_ = null; + if (domainBuilder_ != null) { + domainBuilder_.dispose(); + domainBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest build() { + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest result = new com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.domain_ = domainBuilder_ == null + ? domain_ + : domainBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest.getDefaultInstance()) return this; + if (other.hasDomain()) { + mergeDomain(other.getDomain()); + } + 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( + getDomainFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.domains.CreateDomain domain_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.domains.CreateDomain, com.scalekit.grpc.scalekit.v1.domains.CreateDomain.Builder, com.scalekit.grpc.scalekit.v1.domains.CreateDomainOrBuilder> domainBuilder_; + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + * @return Whether the domain field is set. + */ + public boolean hasDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + * @return The domain. + */ + public com.scalekit.grpc.scalekit.v1.domains.CreateDomain getDomain() { + if (domainBuilder_ == null) { + return domain_ == null ? com.scalekit.grpc.scalekit.v1.domains.CreateDomain.getDefaultInstance() : domain_; + } else { + return domainBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + */ + public Builder setDomain(com.scalekit.grpc.scalekit.v1.domains.CreateDomain value) { + if (domainBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + domain_ = value; + } else { + domainBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + */ + public Builder setDomain( + com.scalekit.grpc.scalekit.v1.domains.CreateDomain.Builder builderForValue) { + if (domainBuilder_ == null) { + domain_ = builderForValue.build(); + } else { + domainBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + */ + public Builder mergeDomain(com.scalekit.grpc.scalekit.v1.domains.CreateDomain value) { + if (domainBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + domain_ != null && + domain_ != com.scalekit.grpc.scalekit.v1.domains.CreateDomain.getDefaultInstance()) { + getDomainBuilder().mergeFrom(value); + } else { + domain_ = value; + } + } else { + domainBuilder_.mergeFrom(value); + } + if (domain_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + */ + public Builder clearDomain() { + bitField0_ = (bitField0_ & ~0x00000001); + domain_ = null; + if (domainBuilder_ != null) { + domainBuilder_.dispose(); + domainBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.domains.CreateDomain.Builder getDomainBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDomainFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + */ + public com.scalekit.grpc.scalekit.v1.domains.CreateDomainOrBuilder getDomainOrBuilder() { + if (domainBuilder_ != null) { + return domainBuilder_.getMessageOrBuilder(); + } else { + return domain_ == null ? + com.scalekit.grpc.scalekit.v1.domains.CreateDomain.getDefaultInstance() : domain_; + } + } + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.domains.CreateDomain, com.scalekit.grpc.scalekit.v1.domains.CreateDomain.Builder, com.scalekit.grpc.scalekit.v1.domains.CreateDomainOrBuilder> + getDomainFieldBuilder() { + if (domainBuilder_ == null) { + domainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.domains.CreateDomain, com.scalekit.grpc.scalekit.v1.domains.CreateDomain.Builder, com.scalekit.grpc.scalekit.v1.domains.CreateDomainOrBuilder>( + getDomain(), + getParentForChildren(), + isClean()); + domain_ = null; + } + return domainBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.workspaces.CreateWorkspaceDomainRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.workspaces.CreateWorkspaceDomainRequest) + private static final com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkspaceDomainRequest 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.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainRequestOrBuilder.java new file mode 100644 index 00000000..d82cab76 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainRequestOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/workspaces/workspaces.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.workspaces; + +public interface CreateWorkspaceDomainRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.workspaces.CreateWorkspaceDomainRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + * @return Whether the domain field is set. + */ + boolean hasDomain(); + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + * @return The domain. + */ + com.scalekit.grpc.scalekit.v1.domains.CreateDomain getDomain(); + /** + * .scalekit.v1.domains.CreateDomain domain = 1 [json_name = "domain", (.buf.validate.field) = { ... } + */ + com.scalekit.grpc.scalekit.v1.domains.CreateDomainOrBuilder getDomainOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainResponse.java new file mode 100644 index 00000000..5e00305a --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainResponse.java @@ -0,0 +1,599 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/workspaces/workspaces.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.workspaces; + +/** + * Protobuf type {@code scalekit.v1.workspaces.CreateWorkspaceDomainResponse} + */ +public final class CreateWorkspaceDomainResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.workspaces.CreateWorkspaceDomainResponse) + CreateWorkspaceDomainResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use CreateWorkspaceDomainResponse.newBuilder() to construct. + private CreateWorkspaceDomainResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private CreateWorkspaceDomainResponse() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new CreateWorkspaceDomainResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse.class, com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse.Builder.class); + } + + private int bitField0_; + public static final int DOMAIN_FIELD_NUMBER = 1; + private com.scalekit.grpc.scalekit.v1.domains.Domain domain_; + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + * @return Whether the domain field is set. + */ + @java.lang.Override + public boolean hasDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + * @return The domain. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.domains.Domain getDomain() { + return domain_ == null ? com.scalekit.grpc.scalekit.v1.domains.Domain.getDefaultInstance() : domain_; + } + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder getDomainOrBuilder() { + return domain_ == null ? com.scalekit.grpc.scalekit.v1.domains.Domain.getDefaultInstance() : domain_; + } + + 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, getDomain()); + } + 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, getDomain()); + } + 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.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse other = (com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse) obj; + + if (hasDomain() != other.hasDomain()) return false; + if (hasDomain()) { + if (!getDomain() + .equals(other.getDomain())) 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 (hasDomain()) { + hash = (37 * hash) + DOMAIN_FIELD_NUMBER; + hash = (53 * hash) + getDomain().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.workspaces.CreateWorkspaceDomainResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.workspaces.CreateWorkspaceDomainResponse) + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse.class, com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getDomainFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + domain_ = null; + if (domainBuilder_ != null) { + domainBuilder_.dispose(); + domainBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse build() { + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse result = new com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.domain_ = domainBuilder_ == null + ? domain_ + : domainBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse.getDefaultInstance()) return this; + if (other.hasDomain()) { + mergeDomain(other.getDomain()); + } + 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( + getDomainFieldBuilder().getBuilder(), + extensionRegistry); + 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 com.scalekit.grpc.scalekit.v1.domains.Domain domain_; + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.domains.Domain, com.scalekit.grpc.scalekit.v1.domains.Domain.Builder, com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder> domainBuilder_; + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + * @return Whether the domain field is set. + */ + public boolean hasDomain() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + * @return The domain. + */ + public com.scalekit.grpc.scalekit.v1.domains.Domain getDomain() { + if (domainBuilder_ == null) { + return domain_ == null ? com.scalekit.grpc.scalekit.v1.domains.Domain.getDefaultInstance() : domain_; + } else { + return domainBuilder_.getMessage(); + } + } + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + */ + public Builder setDomain(com.scalekit.grpc.scalekit.v1.domains.Domain value) { + if (domainBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + domain_ = value; + } else { + domainBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + */ + public Builder setDomain( + com.scalekit.grpc.scalekit.v1.domains.Domain.Builder builderForValue) { + if (domainBuilder_ == null) { + domain_ = builderForValue.build(); + } else { + domainBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + */ + public Builder mergeDomain(com.scalekit.grpc.scalekit.v1.domains.Domain value) { + if (domainBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + domain_ != null && + domain_ != com.scalekit.grpc.scalekit.v1.domains.Domain.getDefaultInstance()) { + getDomainBuilder().mergeFrom(value); + } else { + domain_ = value; + } + } else { + domainBuilder_.mergeFrom(value); + } + if (domain_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + */ + public Builder clearDomain() { + bitField0_ = (bitField0_ & ~0x00000001); + domain_ = null; + if (domainBuilder_ != null) { + domainBuilder_.dispose(); + domainBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + */ + public com.scalekit.grpc.scalekit.v1.domains.Domain.Builder getDomainBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getDomainFieldBuilder().getBuilder(); + } + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + */ + public com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder getDomainOrBuilder() { + if (domainBuilder_ != null) { + return domainBuilder_.getMessageOrBuilder(); + } else { + return domain_ == null ? + com.scalekit.grpc.scalekit.v1.domains.Domain.getDefaultInstance() : domain_; + } + } + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.domains.Domain, com.scalekit.grpc.scalekit.v1.domains.Domain.Builder, com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder> + getDomainFieldBuilder() { + if (domainBuilder_ == null) { + domainBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.domains.Domain, com.scalekit.grpc.scalekit.v1.domains.Domain.Builder, com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder>( + getDomain(), + getParentForChildren(), + isClean()); + domain_ = null; + } + return domainBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.workspaces.CreateWorkspaceDomainResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.workspaces.CreateWorkspaceDomainResponse) + private static final com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateWorkspaceDomainResponse 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.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainResponseOrBuilder.java new file mode 100644 index 00000000..83fd99c2 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/CreateWorkspaceDomainResponseOrBuilder.java @@ -0,0 +1,25 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/workspaces/workspaces.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.workspaces; + +public interface CreateWorkspaceDomainResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.workspaces.CreateWorkspaceDomainResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + * @return Whether the domain field is set. + */ + boolean hasDomain(); + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + * @return The domain. + */ + com.scalekit.grpc.scalekit.v1.domains.Domain getDomain(); + /** + * .scalekit.v1.domains.Domain domain = 1 [json_name = "domain"]; + */ + com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder getDomainOrBuilder(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/DeleteWorkspaceDomainRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/DeleteWorkspaceDomainRequest.java new file mode 100644 index 00000000..ab3330c3 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/DeleteWorkspaceDomainRequest.java @@ -0,0 +1,542 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/workspaces/workspaces.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.workspaces; + +/** + * Protobuf type {@code scalekit.v1.workspaces.DeleteWorkspaceDomainRequest} + */ +public final class DeleteWorkspaceDomainRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.workspaces.DeleteWorkspaceDomainRequest) + DeleteWorkspaceDomainRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use DeleteWorkspaceDomainRequest.newBuilder() to construct. + private DeleteWorkspaceDomainRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private DeleteWorkspaceDomainRequest() { + id_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new DeleteWorkspaceDomainRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_DeleteWorkspaceDomainRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_DeleteWorkspaceDomainRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest.class, com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + 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(); + id_ = s; + return s; + } + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + 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.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest other = (com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest) obj; + + if (!getId() + .equals(other.getId())) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.workspaces.DeleteWorkspaceDomainRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.workspaces.DeleteWorkspaceDomainRequest) + com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_DeleteWorkspaceDomainRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_DeleteWorkspaceDomainRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest.class, com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_DeleteWorkspaceDomainRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest build() { + com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest result = new com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest.getDefaultInstance()) return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + 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: { + id_ = 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 id_ = ""; + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + public com.google.protobuf.ByteString + getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId( + java.lang.String value) { + if (value == null) { throw new NullPointerException(); } + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes( + com.google.protobuf.ByteString value) { + if (value == null) { throw new NullPointerException(); } + checkByteStringIsUtf8(value); + id_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.workspaces.DeleteWorkspaceDomainRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.workspaces.DeleteWorkspaceDomainRequest) + private static final com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteWorkspaceDomainRequest 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.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/DeleteWorkspaceDomainRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/DeleteWorkspaceDomainRequestOrBuilder.java new file mode 100644 index 00000000..f53527df --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/DeleteWorkspaceDomainRequestOrBuilder.java @@ -0,0 +1,22 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/workspaces/workspaces.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.workspaces; + +public interface DeleteWorkspaceDomainRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.workspaces.DeleteWorkspaceDomainRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The id. + */ + java.lang.String getId(); + /** + * string id = 1 [json_name = "id", (.buf.validate.field) = { ... } + * @return The bytes for id. + */ + com.google.protobuf.ByteString + getIdBytes(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsRequest.java new file mode 100644 index 00000000..491b3a68 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsRequest.java @@ -0,0 +1,878 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/workspaces/workspaces.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.workspaces; + +/** + * Protobuf type {@code scalekit.v1.workspaces.ListWorkspaceDomainsRequest} + */ +public final class ListWorkspaceDomainsRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.workspaces.ListWorkspaceDomainsRequest) + ListWorkspaceDomainsRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListWorkspaceDomainsRequest.newBuilder() to construct. + private ListWorkspaceDomainsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListWorkspaceDomainsRequest() { + domainType_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListWorkspaceDomainsRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest.class, com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest.Builder.class); + } + + private int bitField0_; + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private com.google.protobuf.Int32Value pageSize_; + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + * @return Whether the pageSize field is set. + */ + @java.lang.Override + public boolean hasPageSize() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + * @return The pageSize. + */ + @java.lang.Override + public com.google.protobuf.Int32Value getPageSize() { + return pageSize_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : pageSize_; + } + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + */ + @java.lang.Override + public com.google.protobuf.Int32ValueOrBuilder getPageSizeOrBuilder() { + return pageSize_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : pageSize_; + } + + public static final int PAGE_NUMBER_FIELD_NUMBER = 2; + private com.google.protobuf.Int32Value pageNumber_; + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + * @return Whether the pageNumber field is set. + */ + @java.lang.Override + public boolean hasPageNumber() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + * @return The pageNumber. + */ + @java.lang.Override + public com.google.protobuf.Int32Value getPageNumber() { + return pageNumber_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : pageNumber_; + } + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + */ + @java.lang.Override + public com.google.protobuf.Int32ValueOrBuilder getPageNumberOrBuilder() { + return pageNumber_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : pageNumber_; + } + + public static final int DOMAIN_TYPE_FIELD_NUMBER = 3; + private int domainType_ = 0; + /** + * .scalekit.v1.domains.DomainType domain_type = 3 [json_name = "domainType"]; + * @return The enum numeric value on the wire for domainType. + */ + @java.lang.Override public int getDomainTypeValue() { + return domainType_; + } + /** + * .scalekit.v1.domains.DomainType domain_type = 3 [json_name = "domainType"]; + * @return The domainType. + */ + @java.lang.Override public com.scalekit.grpc.scalekit.v1.domains.DomainType getDomainType() { + com.scalekit.grpc.scalekit.v1.domains.DomainType result = com.scalekit.grpc.scalekit.v1.domains.DomainType.forNumber(domainType_); + return result == null ? com.scalekit.grpc.scalekit.v1.domains.DomainType.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getPageSize()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getPageNumber()); + } + if (domainType_ != com.scalekit.grpc.scalekit.v1.domains.DomainType.DOMAIN_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, domainType_); + } + 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, getPageSize()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, getPageNumber()); + } + if (domainType_ != com.scalekit.grpc.scalekit.v1.domains.DomainType.DOMAIN_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream + .computeEnumSize(3, domainType_); + } + 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.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest other = (com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest) obj; + + if (hasPageSize() != other.hasPageSize()) return false; + if (hasPageSize()) { + if (!getPageSize() + .equals(other.getPageSize())) return false; + } + if (hasPageNumber() != other.hasPageNumber()) return false; + if (hasPageNumber()) { + if (!getPageNumber() + .equals(other.getPageNumber())) return false; + } + if (domainType_ != other.domainType_) 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 (hasPageSize()) { + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize().hashCode(); + } + if (hasPageNumber()) { + hash = (37 * hash) + PAGE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPageNumber().hashCode(); + } + hash = (37 * hash) + DOMAIN_TYPE_FIELD_NUMBER; + hash = (53 * hash) + domainType_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.workspaces.ListWorkspaceDomainsRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.workspaces.ListWorkspaceDomainsRequest) + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest.class, com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3 + .alwaysUseFieldBuilders) { + getPageSizeFieldBuilder(); + getPageNumberFieldBuilder(); + } + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageSize_ = null; + if (pageSizeBuilder_ != null) { + pageSizeBuilder_.dispose(); + pageSizeBuilder_ = null; + } + pageNumber_ = null; + if (pageNumberBuilder_ != null) { + pageNumberBuilder_.dispose(); + pageNumberBuilder_ = null; + } + domainType_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest build() { + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest result = new com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest(this); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageSize_ = pageSizeBuilder_ == null + ? pageSize_ + : pageSizeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageNumber_ = pageNumberBuilder_ == null + ? pageNumber_ + : pageNumberBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.domainType_ = domainType_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest.getDefaultInstance()) return this; + if (other.hasPageSize()) { + mergePageSize(other.getPageSize()); + } + if (other.hasPageNumber()) { + mergePageNumber(other.getPageNumber()); + } + if (other.domainType_ != 0) { + setDomainTypeValue(other.getDomainTypeValue()); + } + 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( + getPageSizeFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: { + input.readMessage( + getPageNumberFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: { + domainType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + 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.Int32Value pageSize_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> pageSizeBuilder_; + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + * @return Whether the pageSize field is set. + */ + public boolean hasPageSize() { + return ((bitField0_ & 0x00000001) != 0); + } + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + * @return The pageSize. + */ + public com.google.protobuf.Int32Value getPageSize() { + if (pageSizeBuilder_ == null) { + return pageSize_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : pageSize_; + } else { + return pageSizeBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + */ + public Builder setPageSize(com.google.protobuf.Int32Value value) { + if (pageSizeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pageSize_ = value; + } else { + pageSizeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + */ + public Builder setPageSize( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (pageSizeBuilder_ == null) { + pageSize_ = builderForValue.build(); + } else { + pageSizeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + */ + public Builder mergePageSize(com.google.protobuf.Int32Value value) { + if (pageSizeBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) && + pageSize_ != null && + pageSize_ != com.google.protobuf.Int32Value.getDefaultInstance()) { + getPageSizeBuilder().mergeFrom(value); + } else { + pageSize_ = value; + } + } else { + pageSizeBuilder_.mergeFrom(value); + } + if (pageSize_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000001); + pageSize_ = null; + if (pageSizeBuilder_ != null) { + pageSizeBuilder_.dispose(); + pageSizeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + */ + public com.google.protobuf.Int32Value.Builder getPageSizeBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return getPageSizeFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + */ + public com.google.protobuf.Int32ValueOrBuilder getPageSizeOrBuilder() { + if (pageSizeBuilder_ != null) { + return pageSizeBuilder_.getMessageOrBuilder(); + } else { + return pageSize_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : pageSize_; + } + } + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getPageSizeFieldBuilder() { + if (pageSizeBuilder_ == null) { + pageSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getPageSize(), + getParentForChildren(), + isClean()); + pageSize_ = null; + } + return pageSizeBuilder_; + } + + private com.google.protobuf.Int32Value pageNumber_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> pageNumberBuilder_; + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + * @return Whether the pageNumber field is set. + */ + public boolean hasPageNumber() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + * @return The pageNumber. + */ + public com.google.protobuf.Int32Value getPageNumber() { + if (pageNumberBuilder_ == null) { + return pageNumber_ == null ? com.google.protobuf.Int32Value.getDefaultInstance() : pageNumber_; + } else { + return pageNumberBuilder_.getMessage(); + } + } + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + */ + public Builder setPageNumber(com.google.protobuf.Int32Value value) { + if (pageNumberBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + pageNumber_ = value; + } else { + pageNumberBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + */ + public Builder setPageNumber( + com.google.protobuf.Int32Value.Builder builderForValue) { + if (pageNumberBuilder_ == null) { + pageNumber_ = builderForValue.build(); + } else { + pageNumberBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + */ + public Builder mergePageNumber(com.google.protobuf.Int32Value value) { + if (pageNumberBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) && + pageNumber_ != null && + pageNumber_ != com.google.protobuf.Int32Value.getDefaultInstance()) { + getPageNumberBuilder().mergeFrom(value); + } else { + pageNumber_ = value; + } + } else { + pageNumberBuilder_.mergeFrom(value); + } + if (pageNumber_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + */ + public Builder clearPageNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + pageNumber_ = null; + if (pageNumberBuilder_ != null) { + pageNumberBuilder_.dispose(); + pageNumberBuilder_ = null; + } + onChanged(); + return this; + } + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + */ + public com.google.protobuf.Int32Value.Builder getPageNumberBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getPageNumberFieldBuilder().getBuilder(); + } + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + */ + public com.google.protobuf.Int32ValueOrBuilder getPageNumberOrBuilder() { + if (pageNumberBuilder_ != null) { + return pageNumberBuilder_.getMessageOrBuilder(); + } else { + return pageNumber_ == null ? + com.google.protobuf.Int32Value.getDefaultInstance() : pageNumber_; + } + } + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder> + getPageNumberFieldBuilder() { + if (pageNumberBuilder_ == null) { + pageNumberBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Int32Value, com.google.protobuf.Int32Value.Builder, com.google.protobuf.Int32ValueOrBuilder>( + getPageNumber(), + getParentForChildren(), + isClean()); + pageNumber_ = null; + } + return pageNumberBuilder_; + } + + private int domainType_ = 0; + /** + * .scalekit.v1.domains.DomainType domain_type = 3 [json_name = "domainType"]; + * @return The enum numeric value on the wire for domainType. + */ + @java.lang.Override public int getDomainTypeValue() { + return domainType_; + } + /** + * .scalekit.v1.domains.DomainType domain_type = 3 [json_name = "domainType"]; + * @param value The enum numeric value on the wire for domainType to set. + * @return This builder for chaining. + */ + public Builder setDomainTypeValue(int value) { + domainType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * .scalekit.v1.domains.DomainType domain_type = 3 [json_name = "domainType"]; + * @return The domainType. + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.domains.DomainType getDomainType() { + com.scalekit.grpc.scalekit.v1.domains.DomainType result = com.scalekit.grpc.scalekit.v1.domains.DomainType.forNumber(domainType_); + return result == null ? com.scalekit.grpc.scalekit.v1.domains.DomainType.UNRECOGNIZED : result; + } + /** + * .scalekit.v1.domains.DomainType domain_type = 3 [json_name = "domainType"]; + * @param value The domainType to set. + * @return This builder for chaining. + */ + public Builder setDomainType(com.scalekit.grpc.scalekit.v1.domains.DomainType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + domainType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * .scalekit.v1.domains.DomainType domain_type = 3 [json_name = "domainType"]; + * @return This builder for chaining. + */ + public Builder clearDomainType() { + bitField0_ = (bitField0_ & ~0x00000004); + domainType_ = 0; + onChanged(); + return this; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.workspaces.ListWorkspaceDomainsRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.workspaces.ListWorkspaceDomainsRequest) + private static final com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkspaceDomainsRequest 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.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsRequestOrBuilder.java new file mode 100644 index 00000000..95d0f067 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsRequestOrBuilder.java @@ -0,0 +1,51 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/workspaces/workspaces.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.workspaces; + +public interface ListWorkspaceDomainsRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.workspaces.ListWorkspaceDomainsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + * @return Whether the pageSize field is set. + */ + boolean hasPageSize(); + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + * @return The pageSize. + */ + com.google.protobuf.Int32Value getPageSize(); + /** + * .google.protobuf.Int32Value page_size = 1 [json_name = "pageSize"]; + */ + com.google.protobuf.Int32ValueOrBuilder getPageSizeOrBuilder(); + + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + * @return Whether the pageNumber field is set. + */ + boolean hasPageNumber(); + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + * @return The pageNumber. + */ + com.google.protobuf.Int32Value getPageNumber(); + /** + * .google.protobuf.Int32Value page_number = 2 [json_name = "pageNumber"]; + */ + com.google.protobuf.Int32ValueOrBuilder getPageNumberOrBuilder(); + + /** + * .scalekit.v1.domains.DomainType domain_type = 3 [json_name = "domainType"]; + * @return The enum numeric value on the wire for domainType. + */ + int getDomainTypeValue(); + /** + * .scalekit.v1.domains.DomainType domain_type = 3 [json_name = "domainType"]; + * @return The domainType. + */ + com.scalekit.grpc.scalekit.v1.domains.DomainType getDomainType(); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsResponse.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsResponse.java new file mode 100644 index 00000000..41164cf6 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsResponse.java @@ -0,0 +1,892 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/workspaces/workspaces.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.workspaces; + +/** + * Protobuf type {@code scalekit.v1.workspaces.ListWorkspaceDomainsResponse} + */ +public final class ListWorkspaceDomainsResponse extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.workspaces.ListWorkspaceDomainsResponse) + ListWorkspaceDomainsResponseOrBuilder { +private static final long serialVersionUID = 0L; + // Use ListWorkspaceDomainsResponse.newBuilder() to construct. + private ListWorkspaceDomainsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ListWorkspaceDomainsResponse() { + domains_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ListWorkspaceDomainsResponse(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse.class, com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse.Builder.class); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 1; + private int pageSize_ = 0; + /** + * int32 page_size = 1 [json_name = "pageSize"]; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_NUMBER_FIELD_NUMBER = 2; + private int pageNumber_ = 0; + /** + * int32 page_number = 2 [json_name = "pageNumber"]; + * @return The pageNumber. + */ + @java.lang.Override + public int getPageNumber() { + return pageNumber_; + } + + public static final int DOMAINS_FIELD_NUMBER = 3; + @SuppressWarnings("serial") + private java.util.List domains_; + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + @java.lang.Override + public java.util.List getDomainsList() { + return domains_; + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + @java.lang.Override + public java.util.List + getDomainsOrBuilderList() { + return domains_; + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + @java.lang.Override + public int getDomainsCount() { + return domains_.size(); + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.domains.Domain getDomains(int index) { + return domains_.get(index); + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder getDomainsOrBuilder( + int index) { + return domains_.get(index); + } + + private byte memoizedIsInitialized = -1; + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (pageSize_ != 0) { + output.writeInt32(1, pageSize_); + } + if (pageNumber_ != 0) { + output.writeInt32(2, pageNumber_); + } + for (int i = 0; i < domains_.size(); i++) { + output.writeMessage(3, domains_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(1, pageSize_); + } + if (pageNumber_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, pageNumber_); + } + for (int i = 0; i < domains_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(3, domains_.get(i)); + } + 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.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse other = (com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse) obj; + + if (getPageSize() + != other.getPageSize()) return false; + if (getPageNumber() + != other.getPageNumber()) return false; + if (!getDomainsList() + .equals(other.getDomainsList())) 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) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + getPageNumber(); + if (getDomainsCount() > 0) { + hash = (37 * hash) + DOMAINS_FIELD_NUMBER; + hash = (53 * hash) + getDomainsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.workspaces.ListWorkspaceDomainsResponse} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.workspaces.ListWorkspaceDomainsResponse) + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse.class, com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pageSize_ = 0; + pageNumber_ = 0; + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + } else { + domains_ = null; + domainsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsResponse_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse build() { + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse buildPartial() { + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse result = new com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { buildPartial0(result); } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse result) { + if (domainsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + domains_ = java.util.Collections.unmodifiableList(domains_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.domains_ = domains_; + } else { + result.domains_ = domainsBuilder_.build(); + } + } + + private void buildPartial0(com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageNumber_ = pageNumber_; + } + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse other) { + if (other == com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse.getDefaultInstance()) return this; + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (other.getPageNumber() != 0) { + setPageNumber(other.getPageNumber()); + } + if (domainsBuilder_ == null) { + if (!other.domains_.isEmpty()) { + if (domains_.isEmpty()) { + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureDomainsIsMutable(); + domains_.addAll(other.domains_); + } + onChanged(); + } + } else { + if (!other.domains_.isEmpty()) { + if (domainsBuilder_.isEmpty()) { + domainsBuilder_.dispose(); + domainsBuilder_ = null; + domains_ = other.domains_; + bitField0_ = (bitField0_ & ~0x00000004); + domainsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? + getDomainsFieldBuilder() : null; + } else { + domainsBuilder_.addAllMessages(other.domains_); + } + } + } + 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 8: { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: { + pageNumber_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: { + com.scalekit.grpc.scalekit.v1.domains.Domain m = + input.readMessage( + com.scalekit.grpc.scalekit.v1.domains.Domain.parser(), + extensionRegistry); + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(m); + } else { + domainsBuilder_.addMessage(m); + } + 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 int pageSize_ ; + /** + * int32 page_size = 1 [json_name = "pageSize"]; + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * int32 page_size = 1 [json_name = "pageSize"]; + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * int32 page_size = 1 [json_name = "pageSize"]; + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000001); + pageSize_ = 0; + onChanged(); + return this; + } + + private int pageNumber_ ; + /** + * int32 page_number = 2 [json_name = "pageNumber"]; + * @return The pageNumber. + */ + @java.lang.Override + public int getPageNumber() { + return pageNumber_; + } + /** + * int32 page_number = 2 [json_name = "pageNumber"]; + * @param value The pageNumber to set. + * @return This builder for chaining. + */ + public Builder setPageNumber(int value) { + + pageNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * int32 page_number = 2 [json_name = "pageNumber"]; + * @return This builder for chaining. + */ + public Builder clearPageNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + pageNumber_ = 0; + onChanged(); + return this; + } + + private java.util.List domains_ = + java.util.Collections.emptyList(); + private void ensureDomainsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + domains_ = new java.util.ArrayList(domains_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.domains.Domain, com.scalekit.grpc.scalekit.v1.domains.Domain.Builder, com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder> domainsBuilder_; + + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public java.util.List getDomainsList() { + if (domainsBuilder_ == null) { + return java.util.Collections.unmodifiableList(domains_); + } else { + return domainsBuilder_.getMessageList(); + } + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public int getDomainsCount() { + if (domainsBuilder_ == null) { + return domains_.size(); + } else { + return domainsBuilder_.getCount(); + } + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public com.scalekit.grpc.scalekit.v1.domains.Domain getDomains(int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); + } else { + return domainsBuilder_.getMessage(index); + } + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public Builder setDomains( + int index, com.scalekit.grpc.scalekit.v1.domains.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.set(index, value); + onChanged(); + } else { + domainsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public Builder setDomains( + int index, com.scalekit.grpc.scalekit.v1.domains.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.set(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public Builder addDomains(com.scalekit.grpc.scalekit.v1.domains.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(value); + onChanged(); + } else { + domainsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public Builder addDomains( + int index, com.scalekit.grpc.scalekit.v1.domains.Domain value) { + if (domainsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDomainsIsMutable(); + domains_.add(index, value); + onChanged(); + } else { + domainsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public Builder addDomains( + com.scalekit.grpc.scalekit.v1.domains.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public Builder addDomains( + int index, com.scalekit.grpc.scalekit.v1.domains.Domain.Builder builderForValue) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.add(index, builderForValue.build()); + onChanged(); + } else { + domainsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public Builder addAllDomains( + java.lang.Iterable values) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, domains_); + onChanged(); + } else { + domainsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public Builder clearDomains() { + if (domainsBuilder_ == null) { + domains_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + domainsBuilder_.clear(); + } + return this; + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public Builder removeDomains(int index) { + if (domainsBuilder_ == null) { + ensureDomainsIsMutable(); + domains_.remove(index); + onChanged(); + } else { + domainsBuilder_.remove(index); + } + return this; + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public com.scalekit.grpc.scalekit.v1.domains.Domain.Builder getDomainsBuilder( + int index) { + return getDomainsFieldBuilder().getBuilder(index); + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder getDomainsOrBuilder( + int index) { + if (domainsBuilder_ == null) { + return domains_.get(index); } else { + return domainsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public java.util.List + getDomainsOrBuilderList() { + if (domainsBuilder_ != null) { + return domainsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(domains_); + } + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public com.scalekit.grpc.scalekit.v1.domains.Domain.Builder addDomainsBuilder() { + return getDomainsFieldBuilder().addBuilder( + com.scalekit.grpc.scalekit.v1.domains.Domain.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public com.scalekit.grpc.scalekit.v1.domains.Domain.Builder addDomainsBuilder( + int index) { + return getDomainsFieldBuilder().addBuilder( + index, com.scalekit.grpc.scalekit.v1.domains.Domain.getDefaultInstance()); + } + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + public java.util.List + getDomainsBuilderList() { + return getDomainsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.domains.Domain, com.scalekit.grpc.scalekit.v1.domains.Domain.Builder, com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder> + getDomainsFieldBuilder() { + if (domainsBuilder_ == null) { + domainsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< + com.scalekit.grpc.scalekit.v1.domains.Domain, com.scalekit.grpc.scalekit.v1.domains.Domain.Builder, com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder>( + domains_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + domains_ = null; + } + return domainsBuilder_; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.workspaces.ListWorkspaceDomainsResponse) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.workspaces.ListWorkspaceDomainsResponse) + private static final com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse(); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListWorkspaceDomainsResponse 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.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsResponseOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsResponseOrBuilder.java new file mode 100644 index 00000000..7d039204 --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ListWorkspaceDomainsResponseOrBuilder.java @@ -0,0 +1,46 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/workspaces/workspaces.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.workspaces; + +public interface ListWorkspaceDomainsResponseOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.workspaces.ListWorkspaceDomainsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * int32 page_size = 1 [json_name = "pageSize"]; + * @return The pageSize. + */ + int getPageSize(); + + /** + * int32 page_number = 2 [json_name = "pageNumber"]; + * @return The pageNumber. + */ + int getPageNumber(); + + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + java.util.List + getDomainsList(); + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + com.scalekit.grpc.scalekit.v1.domains.Domain getDomains(int index); + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + int getDomainsCount(); + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + java.util.List + getDomainsOrBuilderList(); + /** + * repeated .scalekit.v1.domains.Domain domains = 3 [json_name = "domains"]; + */ + com.scalekit.grpc.scalekit.v1.domains.DomainOrBuilder getDomainsOrBuilder( + int index); +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/OnboardWorkspace.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/OnboardWorkspace.java index c37ec5dc..6835d364 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/OnboardWorkspace.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/OnboardWorkspace.java @@ -178,6 +178,17 @@ public java.lang.String getUserFamilyName() { return result == null ? com.scalekit.grpc.scalekit.v1.commons.AuthenticationMode.UNRECOGNIZED : result; } + public static final int ENABLE_ALLOWED_DOMAIN_JOIN_FIELD_NUMBER = 5; + private boolean enableAllowedDomainJoin_ = false; + /** + * bool enable_allowed_domain_join = 5 [json_name = "enableAllowedDomainJoin"]; + * @return The enableAllowedDomainJoin. + */ + @java.lang.Override + public boolean getEnableAllowedDomainJoin() { + return enableAllowedDomainJoin_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { @@ -204,6 +215,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) if (authenticationMode_ != com.scalekit.grpc.scalekit.v1.commons.AuthenticationMode.AUTHENTICATION_MODE_UNSPECIFIED.getNumber()) { output.writeEnum(4, authenticationMode_); } + if (enableAllowedDomainJoin_ != false) { + output.writeBool(5, enableAllowedDomainJoin_); + } getUnknownFields().writeTo(output); } @@ -226,6 +240,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, authenticationMode_); } + if (enableAllowedDomainJoin_ != false) { + size += com.google.protobuf.CodedOutputStream + .computeBoolSize(5, enableAllowedDomainJoin_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -248,6 +266,8 @@ public boolean equals(final java.lang.Object obj) { if (!getUserFamilyName() .equals(other.getUserFamilyName())) return false; if (authenticationMode_ != other.authenticationMode_) return false; + if (getEnableAllowedDomainJoin() + != other.getEnableAllowedDomainJoin()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -267,6 +287,9 @@ public int hashCode() { hash = (53 * hash) + getUserFamilyName().hashCode(); hash = (37 * hash) + AUTHENTICATION_MODE_FIELD_NUMBER; hash = (53 * hash) + authenticationMode_; + hash = (37 * hash) + ENABLE_ALLOWED_DOMAIN_JOIN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( + getEnableAllowedDomainJoin()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -402,6 +425,7 @@ public Builder clear() { userGivenName_ = ""; userFamilyName_ = ""; authenticationMode_ = 0; + enableAllowedDomainJoin_ = false; return this; } @@ -447,6 +471,9 @@ private void buildPartial0(com.scalekit.grpc.scalekit.v1.workspaces.OnboardWorks if (((from_bitField0_ & 0x00000008) != 0)) { result.authenticationMode_ = authenticationMode_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.enableAllowedDomainJoin_ = enableAllowedDomainJoin_; + } } @java.lang.Override @@ -511,6 +538,9 @@ public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.workspaces.OnboardWorkspa if (other.authenticationMode_ != 0) { setAuthenticationModeValue(other.getAuthenticationModeValue()); } + if (other.getEnableAllowedDomainJoin() != false) { + setEnableAllowedDomainJoin(other.getEnableAllowedDomainJoin()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -557,6 +587,11 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 40: { + enableAllowedDomainJoin_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag @@ -842,6 +877,38 @@ public Builder clearAuthenticationMode() { onChanged(); return this; } + + private boolean enableAllowedDomainJoin_ ; + /** + * bool enable_allowed_domain_join = 5 [json_name = "enableAllowedDomainJoin"]; + * @return The enableAllowedDomainJoin. + */ + @java.lang.Override + public boolean getEnableAllowedDomainJoin() { + return enableAllowedDomainJoin_; + } + /** + * bool enable_allowed_domain_join = 5 [json_name = "enableAllowedDomainJoin"]; + * @param value The enableAllowedDomainJoin to set. + * @return This builder for chaining. + */ + public Builder setEnableAllowedDomainJoin(boolean value) { + + enableAllowedDomainJoin_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * bool enable_allowed_domain_join = 5 [json_name = "enableAllowedDomainJoin"]; + * @return This builder for chaining. + */ + public Builder clearEnableAllowedDomainJoin() { + bitField0_ = (bitField0_ & ~0x00000010); + enableAllowedDomainJoin_ = false; + onChanged(); + return this; + } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/OnboardWorkspaceOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/OnboardWorkspaceOrBuilder.java index 84aa3ab6..9687bb94 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/OnboardWorkspaceOrBuilder.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/OnboardWorkspaceOrBuilder.java @@ -54,4 +54,10 @@ public interface OnboardWorkspaceOrBuilder extends * @return The authenticationMode. */ com.scalekit.grpc.scalekit.v1.commons.AuthenticationMode getAuthenticationMode(); + + /** + * bool enable_allowed_domain_join = 5 [json_name = "enableAllowedDomainJoin"]; + * @return The enableAllowedDomainJoin. + */ + boolean getEnableAllowedDomainJoin(); } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ValidateWorkspaceDomainRequest.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ValidateWorkspaceDomainRequest.java new file mode 100644 index 00000000..1946a01e --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ValidateWorkspaceDomainRequest.java @@ -0,0 +1,399 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/workspaces/workspaces.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.workspaces; + +/** + * Protobuf type {@code scalekit.v1.workspaces.ValidateWorkspaceDomainRequest} + */ +public final class ValidateWorkspaceDomainRequest extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:scalekit.v1.workspaces.ValidateWorkspaceDomainRequest) + ValidateWorkspaceDomainRequestOrBuilder { +private static final long serialVersionUID = 0L; + // Use ValidateWorkspaceDomainRequest.newBuilder() to construct. + private ValidateWorkspaceDomainRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + private ValidateWorkspaceDomainRequest() { + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new ValidateWorkspaceDomainRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ValidateWorkspaceDomainRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ValidateWorkspaceDomainRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest.class, com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest.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.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest)) { + return super.equals(obj); + } + com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest other = (com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest) 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.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + public static com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + public static Builder newBuilder(com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code scalekit.v1.workspaces.ValidateWorkspaceDomainRequest} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:scalekit.v1.workspaces.ValidateWorkspaceDomainRequest) + com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ValidateWorkspaceDomainRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ValidateWorkspaceDomainRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest.class, com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest.Builder.class); + } + + // Construct using com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.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.scalekit.grpc.scalekit.v1.workspaces.WorkspacesProto.internal_static_scalekit_v1_workspaces_ValidateWorkspaceDomainRequest_descriptor; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest getDefaultInstanceForType() { + return com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest build() { + com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest buildPartial() { + com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest result = new com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest) { + return mergeFrom((com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest other) { + if (other == com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest.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; + } + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + + // @@protoc_insertion_point(builder_scope:scalekit.v1.workspaces.ValidateWorkspaceDomainRequest) + } + + // @@protoc_insertion_point(class_scope:scalekit.v1.workspaces.ValidateWorkspaceDomainRequest) + private static final com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest DEFAULT_INSTANCE; + static { + DEFAULT_INSTANCE = new com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest(); + } + + public static com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ValidateWorkspaceDomainRequest 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.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + +} + diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ValidateWorkspaceDomainRequestOrBuilder.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ValidateWorkspaceDomainRequestOrBuilder.java new file mode 100644 index 00000000..4848407b --- /dev/null +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/ValidateWorkspaceDomainRequestOrBuilder.java @@ -0,0 +1,10 @@ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: scalekit/v1/workspaces/workspaces.proto + +// Protobuf Java Version: 3.25.3 +package com.scalekit.grpc.scalekit.v1.workspaces; + +public interface ValidateWorkspaceDomainRequestOrBuilder extends + // @@protoc_insertion_point(interface_extends:scalekit.v1.workspaces.ValidateWorkspaceDomainRequest) + com.google.protobuf.MessageOrBuilder { +} diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/WorkspaceServiceGrpc.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/WorkspaceServiceGrpc.java index 80da77ee..edee359c 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/WorkspaceServiceGrpc.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/WorkspaceServiceGrpc.java @@ -480,6 +480,130 @@ com.scalekit.grpc.scalekit.v1.workspaces.UpdateWorkspaceContextResponse> getUpda return getUpdateWorkspaceContextMethod; } + private static volatile io.grpc.MethodDescriptor getListWorkspaceDomainsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListWorkspaceDomains", + requestType = com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getListWorkspaceDomainsMethod() { + io.grpc.MethodDescriptor getListWorkspaceDomainsMethod; + if ((getListWorkspaceDomainsMethod = WorkspaceServiceGrpc.getListWorkspaceDomainsMethod) == null) { + synchronized (WorkspaceServiceGrpc.class) { + if ((getListWorkspaceDomainsMethod = WorkspaceServiceGrpc.getListWorkspaceDomainsMethod) == null) { + WorkspaceServiceGrpc.getListWorkspaceDomainsMethod = getListWorkspaceDomainsMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWorkspaceDomains")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkspaceServiceMethodDescriptorSupplier("ListWorkspaceDomains")) + .build(); + } + } + } + return getListWorkspaceDomainsMethod; + } + + private static volatile io.grpc.MethodDescriptor getCreateWorkspaceDomainMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateWorkspaceDomain", + requestType = com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest.class, + responseType = com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getCreateWorkspaceDomainMethod() { + io.grpc.MethodDescriptor getCreateWorkspaceDomainMethod; + if ((getCreateWorkspaceDomainMethod = WorkspaceServiceGrpc.getCreateWorkspaceDomainMethod) == null) { + synchronized (WorkspaceServiceGrpc.class) { + if ((getCreateWorkspaceDomainMethod = WorkspaceServiceGrpc.getCreateWorkspaceDomainMethod) == null) { + WorkspaceServiceGrpc.getCreateWorkspaceDomainMethod = getCreateWorkspaceDomainMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateWorkspaceDomain")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse.getDefaultInstance())) + .setSchemaDescriptor(new WorkspaceServiceMethodDescriptorSupplier("CreateWorkspaceDomain")) + .build(); + } + } + } + return getCreateWorkspaceDomainMethod; + } + + private static volatile io.grpc.MethodDescriptor getDeleteWorkspaceDomainMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteWorkspaceDomain", + requestType = com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getDeleteWorkspaceDomainMethod() { + io.grpc.MethodDescriptor getDeleteWorkspaceDomainMethod; + if ((getDeleteWorkspaceDomainMethod = WorkspaceServiceGrpc.getDeleteWorkspaceDomainMethod) == null) { + synchronized (WorkspaceServiceGrpc.class) { + if ((getDeleteWorkspaceDomainMethod = WorkspaceServiceGrpc.getDeleteWorkspaceDomainMethod) == null) { + WorkspaceServiceGrpc.getDeleteWorkspaceDomainMethod = getDeleteWorkspaceDomainMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWorkspaceDomain")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor(new WorkspaceServiceMethodDescriptorSupplier("DeleteWorkspaceDomain")) + .build(); + } + } + } + return getDeleteWorkspaceDomainMethod; + } + + private static volatile io.grpc.MethodDescriptor getValidateWorkspaceDomainMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ValidateWorkspaceDomain", + requestType = com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest.class, + responseType = com.google.protobuf.BoolValue.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor getValidateWorkspaceDomainMethod() { + io.grpc.MethodDescriptor getValidateWorkspaceDomainMethod; + if ((getValidateWorkspaceDomainMethod = WorkspaceServiceGrpc.getValidateWorkspaceDomainMethod) == null) { + synchronized (WorkspaceServiceGrpc.class) { + if ((getValidateWorkspaceDomainMethod = WorkspaceServiceGrpc.getValidateWorkspaceDomainMethod) == null) { + WorkspaceServiceGrpc.getValidateWorkspaceDomainMethod = getValidateWorkspaceDomainMethod = + io.grpc.MethodDescriptor.newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ValidateWorkspaceDomain")) + .setSampledToLocalTracing(true) + .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest.getDefaultInstance())) + .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.BoolValue.getDefaultInstance())) + .setSchemaDescriptor(new WorkspaceServiceMethodDescriptorSupplier("ValidateWorkspaceDomain")) + .build(); + } + } + } + return getValidateWorkspaceDomainMethod; + } + /** * Creates a new async stub that supports all call types for the service */ @@ -695,6 +819,34 @@ default void updateWorkspaceContext(com.scalekit.grpc.scalekit.v1.workspaces.Upd io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateWorkspaceContextMethod(), responseObserver); } + + /** + */ + default void listWorkspaceDomains(com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWorkspaceDomainsMethod(), responseObserver); + } + + /** + */ + default void createWorkspaceDomain(com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateWorkspaceDomainMethod(), responseObserver); + } + + /** + */ + default void deleteWorkspaceDomain(com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWorkspaceDomainMethod(), responseObserver); + } + + /** + */ + default void validateWorkspaceDomain(com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getValidateWorkspaceDomainMethod(), responseObserver); + } } /** @@ -906,6 +1058,38 @@ public void updateWorkspaceContext(com.scalekit.grpc.scalekit.v1.workspaces.Upda io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateWorkspaceContextMethod(), getCallOptions()), request, responseObserver); } + + /** + */ + public void listWorkspaceDomains(com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWorkspaceDomainsMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void createWorkspaceDomain(com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWorkspaceDomainMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void deleteWorkspaceDomain(com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWorkspaceDomainMethod(), getCallOptions()), request, responseObserver); + } + + /** + */ + public void validateWorkspaceDomain(com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getValidateWorkspaceDomainMethod(), getCallOptions()), request, responseObserver); + } } /** @@ -1091,6 +1275,34 @@ public com.scalekit.grpc.scalekit.v1.workspaces.UpdateWorkspaceContextResponse u return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateWorkspaceContextMethod(), getCallOptions(), request); } + + /** + */ + public com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse listWorkspaceDomains(com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWorkspaceDomainsMethod(), getCallOptions(), request); + } + + /** + */ + public com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse createWorkspaceDomain(com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWorkspaceDomainMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.Empty deleteWorkspaceDomain(com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWorkspaceDomainMethod(), getCallOptions(), request); + } + + /** + */ + public com.google.protobuf.BoolValue validateWorkspaceDomain(com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getValidateWorkspaceDomainMethod(), getCallOptions(), request); + } } /** @@ -1291,6 +1503,38 @@ public com.google.common.util.concurrent.ListenableFuture listWorkspaceDomains( + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListWorkspaceDomainsMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture createWorkspaceDomain( + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateWorkspaceDomainMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture deleteWorkspaceDomain( + com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteWorkspaceDomainMethod(), getCallOptions()), request); + } + + /** + */ + public com.google.common.util.concurrent.ListenableFuture validateWorkspaceDomain( + com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getValidateWorkspaceDomainMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_WORKSPACE = 0; @@ -1308,6 +1552,10 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1386,6 +1634,22 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv serviceImpl.updateWorkspaceContext((com.scalekit.grpc.scalekit.v1.workspaces.UpdateWorkspaceContextRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_LIST_WORKSPACE_DOMAINS: + serviceImpl.listWorkspaceDomains((com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_CREATE_WORKSPACE_DOMAIN: + serviceImpl.createWorkspaceDomain((com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_WORKSPACE_DOMAIN: + serviceImpl.deleteWorkspaceDomain((com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_VALIDATE_WORKSPACE_DOMAIN: + serviceImpl.validateWorkspaceDomain((com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -1509,6 +1773,34 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.scalekit.grpc.scalekit.v1.workspaces.UpdateWorkspaceContextRequest, com.scalekit.grpc.scalekit.v1.workspaces.UpdateWorkspaceContextResponse>( service, METHODID_UPDATE_WORKSPACE_CONTEXT))) + .addMethod( + getListWorkspaceDomainsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsRequest, + com.scalekit.grpc.scalekit.v1.workspaces.ListWorkspaceDomainsResponse>( + service, METHODID_LIST_WORKSPACE_DOMAINS))) + .addMethod( + getCreateWorkspaceDomainMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainRequest, + com.scalekit.grpc.scalekit.v1.workspaces.CreateWorkspaceDomainResponse>( + service, METHODID_CREATE_WORKSPACE_DOMAIN))) + .addMethod( + getDeleteWorkspaceDomainMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.workspaces.DeleteWorkspaceDomainRequest, + com.google.protobuf.Empty>( + service, METHODID_DELETE_WORKSPACE_DOMAIN))) + .addMethod( + getValidateWorkspaceDomainMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.scalekit.grpc.scalekit.v1.workspaces.ValidateWorkspaceDomainRequest, + com.google.protobuf.BoolValue>( + service, METHODID_VALIDATE_WORKSPACE_DOMAIN))) .build(); } @@ -1572,6 +1864,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getAddSubscriptionMethod()) .addMethod(getCreateCheckoutSessionMethod()) .addMethod(getUpdateWorkspaceContextMethod()) + .addMethod(getListWorkspaceDomainsMethod()) + .addMethod(getCreateWorkspaceDomainMethod()) + .addMethod(getDeleteWorkspaceDomainMethod()) + .addMethod(getValidateWorkspaceDomainMethod()) .build(); } } diff --git a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/WorkspacesProto.java b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/WorkspacesProto.java index 7a71d074..d9c4b91e 100644 --- a/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/WorkspacesProto.java +++ b/src/main/java/com/scalekit/grpc/scalekit/v1/workspaces/WorkspacesProto.java @@ -275,6 +275,36 @@ public static void registerAllExtensions( static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_scalekit_v1_workspaces_UpdateWorkspaceContextResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_workspaces_ValidateWorkspaceDomainRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_workspaces_ValidateWorkspaceDomainRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsResponse_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_scalekit_v1_workspaces_DeleteWorkspaceDomainRequest_descriptor; + static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_scalekit_v1_workspaces_DeleteWorkspaceDomainRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { @@ -292,333 +322,371 @@ public static void registerAllExtensions( "buf/any.proto\032\036google/protobuf/duration." + "proto\032\033google/protobuf/empty.proto\032\034goog" + "le/protobuf/struct.proto\032\037google/protobu" + - "f/timestamp.proto\032.protoc-gen-openapiv2/" + - "options/annotations.proto\032!scalekit/v1/c" + - "ommons/commons.proto\032!scalekit/v1/option" + - "s/options.proto\"\246\001\n\025WorkspaceExtendedInf" + - "o\022\'\n\017payment_overdue\030\001 \001(\010R\016paymentOverd" + - "ue\0224\n\026payment_method_present\030\002 \001(\010R\024paym" + - "entMethodPresent\022.\n\023free_quota_exceeded\030" + - "\003 \001(\010R\021freeQuotaExceeded\"\314\005\n\tWorkspace\022\036" + - "\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003envR\002id\022;\n\013create" + - "_time\030\002 \001(\0132\032.google.protobuf.TimestampR" + - "\ncreateTime\022;\n\013update_time\030\003 \001(\0132\032.googl" + - "e.protobuf.TimestampR\nupdateTime\022-\n\014disp" + - "lay_name\030\004 \001(\tB\n\272H\007r\005\020\001\030\310\001R\013displayName\022" + - "@\n\013region_code\030\006 \001(\0162\037.scalekit.v1.commo" + - "ns.RegionCodeR\nregionCode\022R\n\rextended_in" + - "fo\030\007 \001(\0132-.scalekit.v1.workspaces.Worksp" + - "aceExtendedInfoR\014extendedInfo\022.\n\023billing" + - "_customer_id\030\010 \001(\tR\021billingCustomerId\0226\n" + - "\027billing_subscription_id\030\t \001(\tR\025billingS" + - "ubscriptionId\022]\n\013auth_domain\030\n \001(\tB<\222A62" + - " Auth Domain of current workspaceJ\022\"auth" + - ".example.com\"\340A\003R\nauthDomain\022\230\001\n\ndeploym" + - "ent\030\013 \001(\tBx\222Ar2hSystem-generated deploym" + - "ent environment (staging or prod). Read-" + - "only; clients should not set this field." + - "J\006\"prod\"\340A\003R\ndeployment\"\240\001\n\017CreateWorksp" + - "ace\022V\n\005email\030\001 \001(\tB@\272H=\272\001:\n\013valid_email\022" + - "\033email must be a valid email\032\016this.isEma" + - "il()R\005email\022)\n\007company\030\002 \001(\tB\n\272H\007r\005\020\001\030\200\002" + - "H\000R\007company\210\001\001B\n\n\010_company\"@\n\017UpdateWork" + - "space\022-\n\014display_name\030\001 \001(\tB\n\272H\007r\005\020\001\030\200\002R" + - "\013displayName\"\337\002\n\020OnboardWorkspace\022@\n\026wor" + - "kspace_display_name\030\001 \001(\tB\n\272H\007r\005\020\001\030\200\002R\024w" + - "orkspaceDisplayName\0222\n\017user_given_name\030\002" + - " \001(\tB\n\272H\007r\005\020\001\030\200\002R\ruserGivenName\022(\n\020user_" + - "family_name\030\003 \001(\tR\016userFamilyName\022\252\001\n\023au" + - "thentication_mode\030\004 \001(\0162\'.scalekit.v1.co" + - "mmons.AuthenticationModeBP\222AM2KThe authe" + - "ntication mode for the environment. The " + - "default is FULL_STACK_AUTHR\022authenticati" + - "onMode\"g\n\026CreateWorkspaceRequest\022M\n\twork" + - "space\030\001 \001(\0132\'.scalekit.v1.workspaces.Cre" + - "ateWorkspaceB\006\272H\003\310\001\001R\tworkspace\"n\n\027Creat" + - "eWorkspaceResponse\022?\n\tworkspace\030\001 \001(\0132!." + - "scalekit.v1.workspaces.WorkspaceR\tworksp" + - "ace\022\022\n\004link\030\002 \001(\tR\004link\"\207\001\n\026UpdateWorksp" + - "aceRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003wksR\002" + - "id\022M\n\tworkspace\030\002 \001(\0132\'.scalekit.v1.work" + - "spaces.UpdateWorkspaceB\006\272H\003\310\001\001R\tworkspac" + - "e\"i\n\027OnboardWorkspaceRequest\022N\n\tworkspac" + - "e\030\002 \001(\0132(.scalekit.v1.workspaces.Onboard" + - "WorkspaceB\006\272H\003\310\001\001R\tworkspace\"n\n\035UpdateCu" + - "rrentWorkspaceRequest\022M\n\tworkspace\030\001 \001(\013" + - "2\'.scalekit.v1.workspaces.UpdateWorkspac" + - "eB\006\272H\003\310\001\001R\tworkspace\"Z\n\027UpdateWorkspaceR" + - "esponse\022?\n\tworkspace\030\001 \001(\0132!.scalekit.v1" + - ".workspaces.WorkspaceR\tworkspace\"5\n\023GetW" + - "orkspaceRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003" + - "wksR\002id\"\034\n\032GetCurrentWorkspaceRequest\"\217\001" + - "\n\024GetWorkspaceResponse\022?\n\tworkspace\030\001 \001(" + - "\0132!.scalekit.v1.workspaces.WorkspaceR\two" + - "rkspace\0226\n\007context\030\002 \001(\0132\027.google.protob" + - "uf.StructB\003\340A\003R\007context\"d\n\027GetBillingPor" + - "talRequest\022\031\n\002id\030\001 \001(\tB\t\272H\006r\004\020\000\030 R\002id\022 \n" + - "\tflow_type\030\002 \001(\tH\000R\010flowType\210\001\001B\014\n\n_flow" + - "_type\"<\n\030GetBillingPortalResponse\022\020\n\003url" + - "\030\001 \001(\tR\003url\022\016\n\002id\030\002 \001(\tR\002id\"A\n\037GetWorksp" + - "acePricingTableRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r" + - "\t\020\001\030 :\003wksR\002id\"\202\002\n GetWorkspacePricingTa" + - "bleResponse\022\016\n\002id\030\001 \001(\tR\002id\022(\n\020pricing_t" + - "able_id\030\002 \001(\tR\016pricingTableId\022+\n\021publish" + - "able_token\030\003 \001(\tR\020publishableToken\022C\n\036cu" + - "stomer_session_client_secret\030\004 \001(\tR\033cust" + - "omerSessionClientSecret\0222\n\006expiry\030\005 \001(\0132" + - "\032.google.protobuf.TimestampR\006expiry\"B\n G" + - "etWorkspaceSubscriptionsRequest\022\036\n\002id\030\001 " + - "\001(\tB\016\272H\013r\t\020\001\030 :\003wksR\002id\"\217\001\n!GetWorkspace" + - "SubscriptionsResponse\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t" + - "\020\001\030 :\003wksR\002id\022J\n\rsubscriptions\030\002 \003(\0132$.s" + - "calekit.v1.workspaces.SubscriptionR\rsubs" + - "criptions\"6\n\014Subscription\022\016\n\002id\030\002 \001(\tR\002i" + - "d\022\026\n\006status\030\007 \001(\tR\006status\"8\n\025GetBillingI" + - "nfoRequest\022\037\n\013only_addons\030\001 \001(\010R\nonlyAdd" + - "ons\"`\n\026GetBillingInfoResponse\022F\n\014billing" + - "_info\030\001 \001(\0132#.scalekit.v1.workspaces.Bil" + - "lingInfoR\013billingInfo\"\336\003\n\013BillingInfo\022\033\n" + - "\tplan_name\030\001 \001(\tR\010planName\022O\n\017current_in" + - "voice\030\003 \001(\0132&.scalekit.v1.workspaces.Cur" + - "rentInvoiceR\016currentInvoice\022L\n\016payment_m" + - "ethod\030\004 \001(\0132%.scalekit.v1.workspaces.Pay" + - "mentMethodR\rpaymentMethod\022\\\n\024billing_con" + - "tact_info\030\005 \001(\0132*.scalekit.v1.workspaces" + - ".BillingContactInfoR\022billingContactInfo\022" + - "5\n\006addons\030\006 \003(\0132\035.scalekit.v1.workspaces" + - ".AddonR\006addons\022F\n\014last_invoice\030\007 \001(\0132#.s" + - "calekit.v1.workspaces.LastInvoiceR\013lastI" + - "nvoice\0220\n\021publishable_token\030\010 \001(\tB\003\340A\003R\020" + - "publishableTokenJ\004\010\002\020\003\"\326\002\n\023BillingSubscr" + - "iption\022\016\n\002id\030\001 \001(\tR\002id\022I\n\006status\030\003 \001(\01621" + - ".scalekit.v1.workspaces.BillingSubscript" + - "ionStatusR\006status\0229\n\nstart_date\030\004 \001(\0132\032." + - "google.protobuf.TimestampR\tstartDate\0225\n\010" + - "end_date\030\005 \001(\0132\032.google.protobuf.Timesta" + - "mpR\007endDate\022\026\n\006amount\030\006 \001(\001R\006amount\022\032\n\010c" + - "urrency\030\007 \001(\tR\010currency\022>\n\005items\030\010 \003(\0132(" + - ".scalekit.v1.workspaces.SubscriptionItem" + - "R\005items\"\341\001\n\020SubscriptionItem\022\016\n\002id\030\001 \001(\t" + - "R\002id\022\031\n\010price_id\030\002 \001(\tR\007priceId\022\032\n\010quant" + - "ity\030\003 \001(\003R\010quantity\022E\n\007product\030\004 \001(\0132+.s" + - "calekit.v1.workspaces.SubscriptionProduc" + - "tR\007product\022?\n\005price\030\005 \001(\0132).scalekit.v1." + - "workspaces.SubscriptionPriceR\005price\"s\n\023S" + - "ubscriptionProduct\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004na" + - "me\030\002 \001(\tR\004name\022 \n\013description\030\003 \001(\tR\013des" + - "cription\022\026\n\006active\030\004 \001(\010R\006active\"\272\002\n\021Sub" + - "scriptionPrice\022\016\n\002id\030\001 \001(\tR\002id\022\026\n\006amount" + - "\030\002 \001(\001R\006amount\022\022\n\004type\030\003 \001(\tR\004type\022\032\n\010in" + - "terval\030\004 \001(\tR\010interval\022%\n\016billing_scheme" + - "\030\005 \001(\tR\rbillingScheme\022\035\n\nusage_type\030\006 \001(" + - "\tR\tusageType\0227\n\005tiers\030\007 \003(\0132!.scalekit.v" + - "1.workspaces.PriceTierR\005tiers\022\037\n\013total_u" + - "sage\030\010 \001(\003R\ntotalUsage\022-\n\022aggregation_me" + - "thod\030\t \001(\tR\021aggregationMethod\"8\n\tPriceTi" + - "er\022\023\n\005up_to\030\001 \001(\003R\004upTo\022\026\n\006amount\030\002 \001(\001R" + - "\006amount\"\227\003\n\016CurrentInvoice\022\016\n\002id\030\001 \001(\tR\002" + - "id\022\026\n\006amount\030\002 \001(\001R\006amount\022\032\n\010currency\030\003" + - " \001(\tR\010currency\022=\n\006status\030\004 \001(\0162%.scaleki" + - "t.v1.workspaces.InvoiceStatusR\006status\0225\n" + - "\010due_date\030\005 \001(\0132\032.google.protobuf.Timest" + - "ampR\007dueDate\022;\n\013issued_date\030\006 \001(\0132\032.goog" + - "le.protobuf.TimestampR\nissuedDate\022H\n\022bil" + - "ling_start_date\030\007 \001(\0132\032.google.protobuf." + - "TimestampR\020billingStartDate\022D\n\020billing_e" + - "nd_date\030\010 \001(\0132\032.google.protobuf.Timestam" + - "pR\016billingEndDate\"\204\002\n\013LastInvoice\022\016\n\002id\030" + - "\001 \001(\tR\002id\022\026\n\006amount\030\002 \001(\001R\006amount\022\032\n\010cur" + - "rency\030\003 \001(\tR\010currency\022=\n\006status\030\004 \001(\0162%." + - "scalekit.v1.workspaces.InvoiceStatusR\006st" + - "atus\0225\n\010due_date\030\005 \001(\0132\032.google.protobuf" + - ".TimestampR\007dueDate\022;\n\013issued_date\030\006 \001(\013" + - "2\032.google.protobuf.TimestampR\nissuedDate" + - "\"\346\003\n\rPaymentMethod\022\016\n\002id\030\001 \001(\tR\002id\0227\n\004ty" + - "pe\030\002 \001(\0162#.scalekit.v1.workspaces.Paymen" + - "tTypeR\004type\022%\n\016account_number\030\003 \001(\tR\racc" + - "ountNumber\022!\n\014account_type\030\004 \001(\tR\013accoun" + - "tType\022C\n\006status\030\005 \001(\0162+.scalekit.v1.work" + - "spaces.PaymentMethodStatusR\006status\022!\n\014ac" + - "count_name\030\006 \001(\tR\013accountName\022\231\001\n\014paymen" + - "t_info\030\007 \003(\01326.scalekit.v1.workspaces.Pa" + - "ymentMethod.PaymentInfoEntryB>\272H;\232\0018\020\005\"," + - "r*R\005brandR\005last4R\texp_monthR\010exp_yearR\005e" + - "mail*\006r\004\020\001\030@R\013paymentInfo\032>\n\020PaymentInfo" + - "Entry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005" + - "value:\0028\001\"\317\001\n\022BillingContactInfo\022\022\n\004name" + - "\030\001 \001(\tR\004name\022\024\n\005email\030\002 \001(\tR\005email\022\024\n\005li" + - "ne1\030\003 \001(\tR\005line1\022\024\n\005line2\030\004 \001(\tR\005line2\022\022" + - "\n\004city\030\005 \001(\tR\004city\022\024\n\005state\030\006 \001(\tR\005state" + - "\022\037\n\013postal_code\030\007 \001(\tR\npostalCode\022\030\n\007cou" + - "ntry\030\010 \001(\tR\007country\"\231\001\n\005Addon\022\016\n\002id\030\001 \001(" + - "\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\032\n\010features\030\004 " + - "\003(\tR\010features\022\030\n\007enabled\030\005 \001(\010R\007enabled\022" + - "\024\n\005price\030\006 \001(\001R\005price\022\032\n\010currency\030\007 \001(\tR" + - "\010currencyJ\004\010\003\020\004\"\030\n\026GetProductUsageReques" + - "t\"\232\001\n\027GetProductUsageResponse\022@\n\010product" + - "s\030\001 \003(\0132$.scalekit.v1.workspaces.Product" + - "UsageR\010products\022!\n\014total_amount\030\002 \001(\001R\013t" + - "otalAmount\022\032\n\010currency\030\003 \001(\tR\010currency\"\272" + - "\002\n\014ProductUsage\022\035\n\nproduct_id\030\001 \001(\tR\tpro" + - "ductId\022!\n\014product_name\030\002 \001(\tR\013productNam" + - "e\022 \n\013description\030\003 \001(\tR\013description\0227\n\005t" + - "iers\030\004 \003(\0132!.scalekit.v1.workspaces.Usag" + - "eTierR\005tiers\022!\n\014total_amount\030\005 \001(\001R\013tota" + - "lAmount\022\037\n\013total_count\030\006 \001(\001R\ntotalCount" + - "\022\032\n\010currency\030\007 \001(\tR\010currency\022-\n\022aggregat" + - "ion_method\030\010 \001(\tR\021aggregationMethod\"\364\001\n\t" + - "UsageTier\022\033\n\ttier_name\030\001 \001(\tR\010tierName\022#" + - "\n\rcurrent_count\030\002 \001(\003R\014currentCount\0222\n\025t" + - "otal_available_count\030\003 \001(\003R\023totalAvailab" + - "leCount\0223\n\026price_for_current_tier\030\004 \001(\001R" + - "\023priceForCurrentTier\022\032\n\010currency\030\005 \001(\tR\010" + - "currency\022 \n\014is_free_tier\030\006 \001(\010R\nisFreeTi" + - "er\"\032\n\030GetProductCatalogRequest\"]\n\031GetPro" + - "ductCatalogResponse\022@\n\007catalog\030\001 \001(\0132&.s" + - "calekit.v1.workspaces.ProductCatalogR\007ca" + - "talog\"X\n\016ProductCatalog\022F\n\010products\030\001 \003(" + - "\0132*.scalekit.v1.workspaces.ProductCatalo" + - "gItemR\010products\"\267\001\n\022ProductCatalogItem\022@" + - "\n\007product\030\001 \001(\0132&.scalekit.v1.workspaces" + - ".CatalogProductR\007product\022<\n\006prices\030\002 \003(\013" + - "2$.scalekit.v1.workspaces.CatalogPriceR\006" + - "prices\022!\n\014billing_type\030\003 \001(\tR\013billingTyp" + - "e\"\302\002\n\016CatalogProduct\022\016\n\002id\030\001 \001(\tR\002id\022\022\n\004" + - "name\030\002 \001(\tR\004name\022 \n\013description\030\003 \001(\tR\013d" + - "escription\022\026\n\006active\030\004 \001(\010R\006active\022k\n\010me" + - "tadata\030\005 \003(\01324.scalekit.v1.workspaces.Ca" + - "talogProduct.MetadataEntryB\031\272H\026\232\001\023\020\024\"\006r\004" + - "\020\003\030\031*\007r\005\020\001\030\200\002R\010metadata\022(\n\020default_price" + - "_id\030\006 \001(\tR\016defaultPriceId\032;\n\rMetadataEnt" + - "ry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 \001(\tR\005val" + - "ue:\0028\001\"\201\002\n\014CatalogPrice\022\016\n\002id\030\001 \001(\tR\002id\022" + - "\026\n\006amount\030\002 \001(\001R\006amount\022\032\n\010currency\030\003 \001(" + - "\tR\010currency\022\022\n\004type\030\004 \001(\tR\004type\022\032\n\010inter" + - "val\030\005 \001(\tR\010interval\022%\n\016billing_scheme\030\006 " + - "\001(\tR\rbillingScheme\022\035\n\nusage_type\030\007 \001(\tR\t" + - "usageType\0227\n\005tiers\030\010 \003(\0132!.scalekit.v1.w" + - "orkspaces.PriceTierR\005tiers\"\333\001\n\026AddSubscr" + - "iptionRequest\022!\n\014product_name\030\001 \001(\tR\013pro" + - "ductName\022\035\n\nproduct_id\030\002 \001(\tR\tproductId:" + - "\177\272H|\032z\n\022product_name_or_id\0222either produ" + - "ct_id or product_name must be provided\0320" + - "this.product_id != \'\' || this.product_na" + - "me != \'\'\"}\n\027AddSubscriptionResponse\022\'\n\017s" + - "ubscription_id\030\001 \001(\tR\016subscriptionId\022\035\n\n" + - "product_id\030\002 \001(\tR\tproductId\022\032\n\010quantity\030" + - "\003 \001(\003R\010quantity\"\345\002\n\034CreateCheckoutSessio" + - "nRequest\022?\n\004mode\030\001 \001(\0162+.scalekit.v1.wor" + - "kspaces.CheckoutSessionModeR\004mode\022\"\n\nret" + - "urn_url\030\002 \001(\tH\000R\treturnUrl\210\001\001\022$\n\013success" + - "_url\030\003 \001(\tH\001R\nsuccessUrl\210\001\001\0227\n\007ui_mode\030\004" + - " \001(\0162\036.scalekit.v1.workspaces.UiModeR\006ui" + - "Mode\022b\n\026redirect_on_completion\030\005 \001(\0162,.s" + - "calekit.v1.workspaces.RedirectOnCompleti" + - "onR\024redirectOnCompletionB\r\n\013_return_urlB" + - "\016\n\014_success_url\"s\n\035CreateCheckoutSession" + - "Response\022\016\n\002id\030\001 \001(\tR\002id\022#\n\rclient_secre" + - "t\030\002 \001(\tR\014clientSecret\022\025\n\003url\030\003 \001(\tH\000R\003ur" + - "l\210\001\001B\006\n\004_url\"Z\n\035UpdateWorkspaceContextRe" + - "quest\0229\n\007context\030\001 \001(\0132\027.google.protobuf" + - ".StructB\006\272H\003\310\001\001R\007context\"S\n\036UpdateWorksp" + - "aceContextResponse\0221\n\007context\030\001 \001(\0132\027.go" + - "ogle.protobuf.StructR\007context*\257\001\n\031Billin" + - "gSubscriptionStatus\022+\n\'BILLING_SUBSCRIPT" + - "ION_STATUS_UNSPECIFIED\020\000\022\037\n\033BILLING_SUBS" + - "CRIPTION_ACTIVE\020\001\022!\n\035BILLING_SUBSCRIPTIO" + - "N_CANCELED\020\002\022!\n\035BILLING_SUBSCRIPTION_PAS" + - "T_DUE\020\003*y\n\rInvoiceStatus\022\036\n\032INVOICE_STAT" + - "US_UNSPECIFIED\020\000\022\020\n\014INVOICE_PAID\020\001\022\017\n\013IN" + - "VOICE_DUE\020\002\022\023\n\017INVOICE_OVERDUE\020\003\022\020\n\014INVO" + - "ICE_VOID\020\004*j\n\013PaymentType\022\034\n\030PAYMENT_TYP" + - "E_UNSPECIFIED\020\000\022\010\n\004CARD\020\001\022\020\n\014BANK_ACCOUN" + - "T\020\002\022\013\n\007OFFLINE\020\003\022\010\n\004LINK\020\004\022\n\n\006PAYPAL\020\005*\216" + - "\001\n\023PaymentMethodStatus\022%\n!PAYMENT_METHOD" + - "_STATUS_UNSPECIFIED\020\000\022\031\n\025PAYMENT_METHOD_" + - "ACTIVE\020\001\022\032\n\026PAYMENT_METHOD_EXPIRED\020\002\022\031\n\025" + - "PAYMENT_METHOD_FAILED\020\003*f\n\024RedirectOnCom" + - "pletion\022&\n\"REDIRECT_ON_COMPLETION_UNSPEC" + - "IFIED\020\000\022\t\n\005never\020\001\022\n\n\006always\020\002\022\017\n\013if_req" + - "uired\020\003*G\n\006UiMode\022\027\n\023UI_MODE_UNSPECIFIED" + - "\020\000\022\014\n\010embedded\020\001\022\n\n\006hosted\020\002\022\n\n\006custom\020\003" + - "*f\n\023CheckoutSessionMode\022%\n!CHECKOUT_SESS" + - "ION_MODE_UNSPECIFIED\020\000\022\t\n\005setup\020\001\022\020\n\014sub" + - "scription\020\002\022\013\n\007payment\020\0032\311\025\n\020WorkspaceSe" + - "rvice\022\233\001\n\017CreateWorkspace\022..scalekit.v1." + - "workspaces.CreateWorkspaceRequest\032/.scal" + - "ekit.v1.workspaces.CreateWorkspaceRespon" + - "se\"\'\202\265\030\002\030\001\202\323\344\223\002\033\"\016/api/v1/signup:\tworksp" + - "ace\022\220\001\n\014GetWorkspace\022+.scalekit.v1.works" + - "paces.GetWorkspaceRequest\032,.scalekit.v1." + - "workspaces.GetWorkspaceResponse\"%\202\265\030\002\030@\202" + - "\323\344\223\002\031\022\027/api/v1/workspaces/{id}\022\236\001\n\023GetCu" + - "rrentWorkspace\0222.scalekit.v1.workspaces." + - "GetCurrentWorkspaceRequest\032,.scalekit.v1" + - ".workspaces.GetWorkspaceResponse\"%\202\265\030\002\030D" + - "\202\323\344\223\002\031\022\027/api/v1/workspaces:this\022\244\001\n\017Upda" + - "teWorkspace\022..scalekit.v1.workspaces.Upd" + - "ateWorkspaceRequest\032/.scalekit.v1.worksp" + - "aces.UpdateWorkspaceResponse\"0\202\265\030\002\030@\202\323\344\223" + - "\002$2\027/api/v1/workspaces/{id}:\tworkspace\022\220" + - "\001\n\020OnboardWorkspace\022/.scalekit.v1.worksp" + - "aces.OnboardWorkspaceRequest\032\026.google.pr" + - "otobuf.Empty\"3\202\265\030\002\030@\202\323\344\223\002\'2\032/api/v1/work" + - "spaces:onboard:\tworkspace\022\262\001\n\026UpdateCurr" + - "entWorkspace\0225.scalekit.v1.workspaces.Up" + - "dateCurrentWorkspaceRequest\032/.scalekit.v" + - "1.workspaces.UpdateWorkspaceResponse\"0\202\265" + - "\030\002\030@\202\323\344\223\002$2\027/api/v1/workspaces:this:\twor" + - "kspace\022\315\001\n\031GetWorkspaceSubscriptions\0228.s" + - "calekit.v1.workspaces.GetWorkspaceSubscr" + - "iptionsRequest\0329.scalekit.v1.workspaces." + - "GetWorkspaceSubscriptionsResponse\";\202\265\030\002\030" + - "@\202\323\344\223\002/\022-/api/v1/workspaces/{id}/billing" + - "/subscriptions\022\312\001\n\030GetWorkspacePricingTa" + - "ble\0227.scalekit.v1.workspaces.GetWorkspac" + - "ePricingTableRequest\0328.scalekit.v1.works" + - "paces.GetWorkspacePricingTableResponse\";" + - "\202\265\030\002\030@\202\323\344\223\002/\022-/api/v1/workspaces/{id}/bi" + - "lling/pricing-table\022\303\001\n\020GetBillingPortal" + - "\022/.scalekit.v1.workspaces.GetBillingPort" + - "alRequest\0320.scalekit.v1.workspaces.GetBi" + - "llingPortalResponse\"L\202\265\030\002\030@\372\322\344\223\002\t\022\007PREVI" + - "EW\202\323\344\223\0021\022//api/v1/workspaces:this/billin" + - "g/customer-portal\022\262\001\n\016GetBillingInfo\022-.s" + - "calekit.v1.workspaces.GetBillingInfoRequ" + - "est\032..scalekit.v1.workspaces.GetBillingI" + - "nfoResponse\"A\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002&" + - "\022$/api/v1/workspaces:this/billing:info\022\276" + - "\001\n\017GetProductUsage\022..scalekit.v1.workspa" + - "ces.GetProductUsageRequest\032/.scalekit.v1" + - ".workspaces.GetProductUsageResponse\"J\202\265\030" + - "\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002/\022-/api/v1/worksp" + - "aces:this/billing:product-usage\022\265\001\n\021GetP" + - "roductCatalog\0220.scalekit.v1.workspaces.G" + - "etProductCatalogRequest\0321.scalekit.v1.wo" + - "rkspaces.GetProductCatalogResponse\";\202\265\030\002" + - "\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002 \022\036/api/v1/billing" + - "/productcatalog\022\305\001\n\017AddSubscription\022..sc" + - "alekit.v1.workspaces.AddSubscriptionRequ" + - "est\032/.scalekit.v1.workspaces.AddSubscrip" + - "tionResponse\"Q\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002" + - "6\"1/api/v1/workspaces:this/billing/subsc" + - "riptions:add:\001*\022\327\001\n\025CreateCheckoutSessio" + - "n\0224.scalekit.v1.workspaces.CreateCheckou" + - "tSessionRequest\0325.scalekit.v1.workspaces" + - ".CreateCheckoutSessionResponse\"Q\202\265\030\002\030D\372\322" + - "\344\223\002\t\022\007PREVIEW\202\323\344\223\0026\"1/api/v1/workspaces:" + - "this/billing/checkout_sessions:\001*\022\300\001\n\026Up" + - "dateWorkspaceContext\0225.scalekit.v1.works" + - "paces.UpdateWorkspaceContextRequest\0326.sc" + - "alekit.v1.workspaces.UpdateWorkspaceCont" + - "extResponse\"7\202\265\030\002\030D\202\323\344\223\002+\" /api/v1/works" + - "paces:this/contexts:\007contextB\353\001\n(com.sca" + - "lekit.grpc.scalekit.v1.workspacesB\017Works" + - "pacesProtoP\001Z4github.com/scalekit-inc/sc" + - "alekit/pkg/grpc/workspaces\242\002\003SVW\252\002\026Scale" + - "kit.V1.Workspaces\312\002\026Scalekit\\V1\\Workspac" + - "es\342\002\"Scalekit\\V1\\Workspaces\\GPBMetadata\352" + - "\002\030Scalekit::V1::Workspacesb\006proto3" + "f/timestamp.proto\032\036google/protobuf/wrapp" + + "ers.proto\032.protoc-gen-openapiv2/options/" + + "annotations.proto\032!scalekit/v1/commons/c" + + "ommons.proto\032!scalekit/v1/domains/domain" + + "s.proto\032!scalekit/v1/options/options.pro" + + "to\"\246\001\n\025WorkspaceExtendedInfo\022\'\n\017payment_" + + "overdue\030\001 \001(\010R\016paymentOverdue\0224\n\026payment" + + "_method_present\030\002 \001(\010R\024paymentMethodPres" + + "ent\022.\n\023free_quota_exceeded\030\003 \001(\010R\021freeQu" + + "otaExceeded\"\314\005\n\tWorkspace\022\036\n\002id\030\001 \001(\tB\016\272" + + "H\013r\t\020\001\030 :\003envR\002id\022;\n\013create_time\030\002 \001(\0132\032" + + ".google.protobuf.TimestampR\ncreateTime\022;" + + "\n\013update_time\030\003 \001(\0132\032.google.protobuf.Ti" + + "mestampR\nupdateTime\022-\n\014display_name\030\004 \001(" + + "\tB\n\272H\007r\005\020\001\030\310\001R\013displayName\022@\n\013region_cod" + + "e\030\006 \001(\0162\037.scalekit.v1.commons.RegionCode" + + "R\nregionCode\022R\n\rextended_info\030\007 \001(\0132-.sc" + + "alekit.v1.workspaces.WorkspaceExtendedIn" + + "foR\014extendedInfo\022.\n\023billing_customer_id\030" + + "\010 \001(\tR\021billingCustomerId\0226\n\027billing_subs" + + "cription_id\030\t \001(\tR\025billingSubscriptionId" + + "\022]\n\013auth_domain\030\n \001(\tB<\222A62 Auth Domain " + + "of current workspaceJ\022\"auth.example.com\"" + + "\340A\003R\nauthDomain\022\230\001\n\ndeployment\030\013 \001(\tBx\222A" + + "r2hSystem-generated deployment environme" + + "nt (staging or prod). Read-only; clients" + + " should not set this field.J\006\"prod\"\340A\003R\n" + + "deployment\"\240\001\n\017CreateWorkspace\022V\n\005email\030" + + "\001 \001(\tB@\272H=\272\001:\n\013valid_email\022\033email must b" + + "e a valid email\032\016this.isEmail()R\005email\022)" + + "\n\007company\030\002 \001(\tB\n\272H\007r\005\020\001\030\200\002H\000R\007company\210\001" + + "\001B\n\n\010_company\"@\n\017UpdateWorkspace\022-\n\014disp" + + "lay_name\030\001 \001(\tB\n\272H\007r\005\020\001\030\200\002R\013displayName\"" + + "\234\003\n\020OnboardWorkspace\022@\n\026workspace_displa" + + "y_name\030\001 \001(\tB\n\272H\007r\005\020\001\030\200\002R\024workspaceDispl" + + "ayName\0222\n\017user_given_name\030\002 \001(\tB\n\272H\007r\005\020\001" + + "\030\200\002R\ruserGivenName\022(\n\020user_family_name\030\003" + + " \001(\tR\016userFamilyName\022\252\001\n\023authentication_" + + "mode\030\004 \001(\0162\'.scalekit.v1.commons.Authent" + + "icationModeBP\222AM2KThe authentication mod" + + "e for the environment. The default is FU" + + "LL_STACK_AUTHR\022authenticationMode\022;\n\032ena" + + "ble_allowed_domain_join\030\005 \001(\010R\027enableAll" + + "owedDomainJoin\"g\n\026CreateWorkspaceRequest" + + "\022M\n\tworkspace\030\001 \001(\0132\'.scalekit.v1.worksp" + + "aces.CreateWorkspaceB\006\272H\003\310\001\001R\tworkspace\"" + + "n\n\027CreateWorkspaceResponse\022?\n\tworkspace\030" + + "\001 \001(\0132!.scalekit.v1.workspaces.Workspace" + + "R\tworkspace\022\022\n\004link\030\002 \001(\tR\004link\"\207\001\n\026Upda" + + "teWorkspaceRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030" + + " :\003wksR\002id\022M\n\tworkspace\030\002 \001(\0132\'.scalekit" + + ".v1.workspaces.UpdateWorkspaceB\006\272H\003\310\001\001R\t" + + "workspace\"i\n\027OnboardWorkspaceRequest\022N\n\t" + + "workspace\030\002 \001(\0132(.scalekit.v1.workspaces" + + ".OnboardWorkspaceB\006\272H\003\310\001\001R\tworkspace\"n\n\035" + + "UpdateCurrentWorkspaceRequest\022M\n\tworkspa" + + "ce\030\001 \001(\0132\'.scalekit.v1.workspaces.Update" + + "WorkspaceB\006\272H\003\310\001\001R\tworkspace\"Z\n\027UpdateWo" + + "rkspaceResponse\022?\n\tworkspace\030\001 \001(\0132!.sca" + + "lekit.v1.workspaces.WorkspaceR\tworkspace" + + "\"5\n\023GetWorkspaceRequest\022\036\n\002id\030\001 \001(\tB\016\272H\013" + + "r\t\020\001\030 :\003wksR\002id\"\034\n\032GetCurrentWorkspaceRe" + + "quest\"\217\001\n\024GetWorkspaceResponse\022?\n\tworksp" + + "ace\030\001 \001(\0132!.scalekit.v1.workspaces.Works" + + "paceR\tworkspace\0226\n\007context\030\002 \001(\0132\027.googl" + + "e.protobuf.StructB\003\340A\003R\007context\"d\n\027GetBi" + + "llingPortalRequest\022\031\n\002id\030\001 \001(\tB\t\272H\006r\004\020\000\030" + + " R\002id\022 \n\tflow_type\030\002 \001(\tH\000R\010flowType\210\001\001B" + + "\014\n\n_flow_type\"<\n\030GetBillingPortalRespons" + + "e\022\020\n\003url\030\001 \001(\tR\003url\022\016\n\002id\030\002 \001(\tR\002id\"A\n\037G" + + "etWorkspacePricingTableRequest\022\036\n\002id\030\001 \001" + + "(\tB\016\272H\013r\t\020\001\030 :\003wksR\002id\"\202\002\n GetWorkspaceP" + + "ricingTableResponse\022\016\n\002id\030\001 \001(\tR\002id\022(\n\020p" + + "ricing_table_id\030\002 \001(\tR\016pricingTableId\022+\n" + + "\021publishable_token\030\003 \001(\tR\020publishableTok" + + "en\022C\n\036customer_session_client_secret\030\004 \001" + + "(\tR\033customerSessionClientSecret\0222\n\006expir" + + "y\030\005 \001(\0132\032.google.protobuf.TimestampR\006exp" + + "iry\"B\n GetWorkspaceSubscriptionsRequest\022" + + "\036\n\002id\030\001 \001(\tB\016\272H\013r\t\020\001\030 :\003wksR\002id\"\217\001\n!GetW" + + "orkspaceSubscriptionsResponse\022\036\n\002id\030\001 \001(" + + "\tB\016\272H\013r\t\020\001\030 :\003wksR\002id\022J\n\rsubscriptions\030\002" + + " \003(\0132$.scalekit.v1.workspaces.Subscripti" + + "onR\rsubscriptions\"6\n\014Subscription\022\016\n\002id\030" + + "\002 \001(\tR\002id\022\026\n\006status\030\007 \001(\tR\006status\"8\n\025Get" + + "BillingInfoRequest\022\037\n\013only_addons\030\001 \001(\010R" + + "\nonlyAddons\"`\n\026GetBillingInfoResponse\022F\n" + + "\014billing_info\030\001 \001(\0132#.scalekit.v1.worksp" + + "aces.BillingInfoR\013billingInfo\"\336\003\n\013Billin" + + "gInfo\022\033\n\tplan_name\030\001 \001(\tR\010planName\022O\n\017cu" + + "rrent_invoice\030\003 \001(\0132&.scalekit.v1.worksp" + + "aces.CurrentInvoiceR\016currentInvoice\022L\n\016p" + + "ayment_method\030\004 \001(\0132%.scalekit.v1.worksp" + + "aces.PaymentMethodR\rpaymentMethod\022\\\n\024bil" + + "ling_contact_info\030\005 \001(\0132*.scalekit.v1.wo" + + "rkspaces.BillingContactInfoR\022billingCont" + + "actInfo\0225\n\006addons\030\006 \003(\0132\035.scalekit.v1.wo" + + "rkspaces.AddonR\006addons\022F\n\014last_invoice\030\007" + + " \001(\0132#.scalekit.v1.workspaces.LastInvoic" + + "eR\013lastInvoice\0220\n\021publishable_token\030\010 \001(" + + "\tB\003\340A\003R\020publishableTokenJ\004\010\002\020\003\"\326\002\n\023Billi" + + "ngSubscription\022\016\n\002id\030\001 \001(\tR\002id\022I\n\006status" + + "\030\003 \001(\01621.scalekit.v1.workspaces.BillingS" + + "ubscriptionStatusR\006status\0229\n\nstart_date\030" + + "\004 \001(\0132\032.google.protobuf.TimestampR\tstart" + + "Date\0225\n\010end_date\030\005 \001(\0132\032.google.protobuf" + + ".TimestampR\007endDate\022\026\n\006amount\030\006 \001(\001R\006amo" + + "unt\022\032\n\010currency\030\007 \001(\tR\010currency\022>\n\005items" + + "\030\010 \003(\0132(.scalekit.v1.workspaces.Subscrip" + + "tionItemR\005items\"\341\001\n\020SubscriptionItem\022\016\n\002" + + "id\030\001 \001(\tR\002id\022\031\n\010price_id\030\002 \001(\tR\007priceId\022" + + "\032\n\010quantity\030\003 \001(\003R\010quantity\022E\n\007product\030\004" + + " \001(\0132+.scalekit.v1.workspaces.Subscripti" + + "onProductR\007product\022?\n\005price\030\005 \001(\0132).scal" + + "ekit.v1.workspaces.SubscriptionPriceR\005pr" + + "ice\"s\n\023SubscriptionProduct\022\016\n\002id\030\001 \001(\tR\002" + + "id\022\022\n\004name\030\002 \001(\tR\004name\022 \n\013description\030\003 " + + "\001(\tR\013description\022\026\n\006active\030\004 \001(\010R\006active" + + "\"\272\002\n\021SubscriptionPrice\022\016\n\002id\030\001 \001(\tR\002id\022\026" + + "\n\006amount\030\002 \001(\001R\006amount\022\022\n\004type\030\003 \001(\tR\004ty" + + "pe\022\032\n\010interval\030\004 \001(\tR\010interval\022%\n\016billin" + + "g_scheme\030\005 \001(\tR\rbillingScheme\022\035\n\nusage_t" + + "ype\030\006 \001(\tR\tusageType\0227\n\005tiers\030\007 \003(\0132!.sc" + + "alekit.v1.workspaces.PriceTierR\005tiers\022\037\n" + + "\013total_usage\030\010 \001(\003R\ntotalUsage\022-\n\022aggreg" + + "ation_method\030\t \001(\tR\021aggregationMethod\"8\n" + + "\tPriceTier\022\023\n\005up_to\030\001 \001(\003R\004upTo\022\026\n\006amoun" + + "t\030\002 \001(\001R\006amount\"\227\003\n\016CurrentInvoice\022\016\n\002id" + + "\030\001 \001(\tR\002id\022\026\n\006amount\030\002 \001(\001R\006amount\022\032\n\010cu" + + "rrency\030\003 \001(\tR\010currency\022=\n\006status\030\004 \001(\0162%" + + ".scalekit.v1.workspaces.InvoiceStatusR\006s" + + "tatus\0225\n\010due_date\030\005 \001(\0132\032.google.protobu" + + "f.TimestampR\007dueDate\022;\n\013issued_date\030\006 \001(" + + "\0132\032.google.protobuf.TimestampR\nissuedDat" + + "e\022H\n\022billing_start_date\030\007 \001(\0132\032.google.p" + + "rotobuf.TimestampR\020billingStartDate\022D\n\020b" + + "illing_end_date\030\010 \001(\0132\032.google.protobuf." + + "TimestampR\016billingEndDate\"\204\002\n\013LastInvoic" + + "e\022\016\n\002id\030\001 \001(\tR\002id\022\026\n\006amount\030\002 \001(\001R\006amoun" + + "t\022\032\n\010currency\030\003 \001(\tR\010currency\022=\n\006status\030" + + "\004 \001(\0162%.scalekit.v1.workspaces.InvoiceSt" + + "atusR\006status\0225\n\010due_date\030\005 \001(\0132\032.google." + + "protobuf.TimestampR\007dueDate\022;\n\013issued_da" + + "te\030\006 \001(\0132\032.google.protobuf.TimestampR\nis" + + "suedDate\"\346\003\n\rPaymentMethod\022\016\n\002id\030\001 \001(\tR\002" + + "id\0227\n\004type\030\002 \001(\0162#.scalekit.v1.workspace" + + "s.PaymentTypeR\004type\022%\n\016account_number\030\003 " + + "\001(\tR\raccountNumber\022!\n\014account_type\030\004 \001(\t" + + "R\013accountType\022C\n\006status\030\005 \001(\0162+.scalekit" + + ".v1.workspaces.PaymentMethodStatusR\006stat" + + "us\022!\n\014account_name\030\006 \001(\tR\013accountName\022\231\001" + + "\n\014payment_info\030\007 \003(\01326.scalekit.v1.works" + + "paces.PaymentMethod.PaymentInfoEntryB>\272H" + + ";\232\0018\020\005\",r*R\005brandR\005last4R\texp_monthR\010exp" + + "_yearR\005email*\006r\004\020\001\030@R\013paymentInfo\032>\n\020Pay" + + "mentInfoEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value" + + "\030\002 \001(\tR\005value:\0028\001\"\317\001\n\022BillingContactInfo" + + "\022\022\n\004name\030\001 \001(\tR\004name\022\024\n\005email\030\002 \001(\tR\005ema" + + "il\022\024\n\005line1\030\003 \001(\tR\005line1\022\024\n\005line2\030\004 \001(\tR" + + "\005line2\022\022\n\004city\030\005 \001(\tR\004city\022\024\n\005state\030\006 \001(" + + "\tR\005state\022\037\n\013postal_code\030\007 \001(\tR\npostalCod" + + "e\022\030\n\007country\030\010 \001(\tR\007country\"\231\001\n\005Addon\022\016\n" + + "\002id\030\001 \001(\tR\002id\022\022\n\004name\030\002 \001(\tR\004name\022\032\n\010fea" + + "tures\030\004 \003(\tR\010features\022\030\n\007enabled\030\005 \001(\010R\007" + + "enabled\022\024\n\005price\030\006 \001(\001R\005price\022\032\n\010currenc" + + "y\030\007 \001(\tR\010currencyJ\004\010\003\020\004\"\030\n\026GetProductUsa" + + "geRequest\"\232\001\n\027GetProductUsageResponse\022@\n" + + "\010products\030\001 \003(\0132$.scalekit.v1.workspaces" + + ".ProductUsageR\010products\022!\n\014total_amount\030" + + "\002 \001(\001R\013totalAmount\022\032\n\010currency\030\003 \001(\tR\010cu" + + "rrency\"\272\002\n\014ProductUsage\022\035\n\nproduct_id\030\001 " + + "\001(\tR\tproductId\022!\n\014product_name\030\002 \001(\tR\013pr" + + "oductName\022 \n\013description\030\003 \001(\tR\013descript" + + "ion\0227\n\005tiers\030\004 \003(\0132!.scalekit.v1.workspa" + + "ces.UsageTierR\005tiers\022!\n\014total_amount\030\005 \001" + + "(\001R\013totalAmount\022\037\n\013total_count\030\006 \001(\001R\nto" + + "talCount\022\032\n\010currency\030\007 \001(\tR\010currency\022-\n\022" + + "aggregation_method\030\010 \001(\tR\021aggregationMet" + + "hod\"\364\001\n\tUsageTier\022\033\n\ttier_name\030\001 \001(\tR\010ti" + + "erName\022#\n\rcurrent_count\030\002 \001(\003R\014currentCo" + + "unt\0222\n\025total_available_count\030\003 \001(\003R\023tota" + + "lAvailableCount\0223\n\026price_for_current_tie" + + "r\030\004 \001(\001R\023priceForCurrentTier\022\032\n\010currency" + + "\030\005 \001(\tR\010currency\022 \n\014is_free_tier\030\006 \001(\010R\n" + + "isFreeTier\"\032\n\030GetProductCatalogRequest\"]" + + "\n\031GetProductCatalogResponse\022@\n\007catalog\030\001" + + " \001(\0132&.scalekit.v1.workspaces.ProductCat" + + "alogR\007catalog\"X\n\016ProductCatalog\022F\n\010produ" + + "cts\030\001 \003(\0132*.scalekit.v1.workspaces.Produ" + + "ctCatalogItemR\010products\"\267\001\n\022ProductCatal" + + "ogItem\022@\n\007product\030\001 \001(\0132&.scalekit.v1.wo" + + "rkspaces.CatalogProductR\007product\022<\n\006pric" + + "es\030\002 \003(\0132$.scalekit.v1.workspaces.Catalo" + + "gPriceR\006prices\022!\n\014billing_type\030\003 \001(\tR\013bi" + + "llingType\"\302\002\n\016CatalogProduct\022\016\n\002id\030\001 \001(\t" + + "R\002id\022\022\n\004name\030\002 \001(\tR\004name\022 \n\013description\030" + + "\003 \001(\tR\013description\022\026\n\006active\030\004 \001(\010R\006acti" + + "ve\022k\n\010metadata\030\005 \003(\01324.scalekit.v1.works" + + "paces.CatalogProduct.MetadataEntryB\031\272H\026\232" + + "\001\023\020\024\"\006r\004\020\003\030\031*\007r\005\020\001\030\200\002R\010metadata\022(\n\020defau" + + "lt_price_id\030\006 \001(\tR\016defaultPriceId\032;\n\rMet" + + "adataEntry\022\020\n\003key\030\001 \001(\tR\003key\022\024\n\005value\030\002 " + + "\001(\tR\005value:\0028\001\"\201\002\n\014CatalogPrice\022\016\n\002id\030\001 " + + "\001(\tR\002id\022\026\n\006amount\030\002 \001(\001R\006amount\022\032\n\010curre" + + "ncy\030\003 \001(\tR\010currency\022\022\n\004type\030\004 \001(\tR\004type\022" + + "\032\n\010interval\030\005 \001(\tR\010interval\022%\n\016billing_s" + + "cheme\030\006 \001(\tR\rbillingScheme\022\035\n\nusage_type" + + "\030\007 \001(\tR\tusageType\0227\n\005tiers\030\010 \003(\0132!.scale" + + "kit.v1.workspaces.PriceTierR\005tiers\"\333\001\n\026A" + + "ddSubscriptionRequest\022!\n\014product_name\030\001 " + + "\001(\tR\013productName\022\035\n\nproduct_id\030\002 \001(\tR\tpr" + + "oductId:\177\272H|\032z\n\022product_name_or_id\0222eith" + + "er product_id or product_name must be pr" + + "ovided\0320this.product_id != \'\' || this.pr" + + "oduct_name != \'\'\"}\n\027AddSubscriptionRespo" + + "nse\022\'\n\017subscription_id\030\001 \001(\tR\016subscripti" + + "onId\022\035\n\nproduct_id\030\002 \001(\tR\tproductId\022\032\n\010q" + + "uantity\030\003 \001(\003R\010quantity\"\345\002\n\034CreateChecko" + + "utSessionRequest\022?\n\004mode\030\001 \001(\0162+.scaleki" + + "t.v1.workspaces.CheckoutSessionModeR\004mod" + + "e\022\"\n\nreturn_url\030\002 \001(\tH\000R\treturnUrl\210\001\001\022$\n" + + "\013success_url\030\003 \001(\tH\001R\nsuccessUrl\210\001\001\0227\n\007u" + + "i_mode\030\004 \001(\0162\036.scalekit.v1.workspaces.Ui" + + "ModeR\006uiMode\022b\n\026redirect_on_completion\030\005" + + " \001(\0162,.scalekit.v1.workspaces.RedirectOn" + + "CompletionR\024redirectOnCompletionB\r\n\013_ret" + + "urn_urlB\016\n\014_success_url\"s\n\035CreateCheckou" + + "tSessionResponse\022\016\n\002id\030\001 \001(\tR\002id\022#\n\rclie" + + "nt_secret\030\002 \001(\tR\014clientSecret\022\025\n\003url\030\003 \001" + + "(\tH\000R\003url\210\001\001B\006\n\004_url\"Z\n\035UpdateWorkspaceC" + + "ontextRequest\0229\n\007context\030\001 \001(\0132\027.google." + + "protobuf.StructB\006\272H\003\310\001\001R\007context\"S\n\036Upda" + + "teWorkspaceContextResponse\0221\n\007context\030\001 " + + "\001(\0132\027.google.protobuf.StructR\007context\" \n" + + "\036ValidateWorkspaceDomainRequest\"a\n\034Creat" + + "eWorkspaceDomainRequest\022A\n\006domain\030\001 \001(\0132" + + "!.scalekit.v1.domains.CreateDomainB\006\272H\003\310" + + "\001\001R\006domain\"T\n\035CreateWorkspaceDomainRespo" + + "nse\0223\n\006domain\030\001 \001(\0132\033.scalekit.v1.domain" + + "s.DomainR\006domain\"\327\001\n\033ListWorkspaceDomain" + + "sRequest\0228\n\tpage_size\030\001 \001(\0132\033.google.pro" + + "tobuf.Int32ValueR\010pageSize\022<\n\013page_numbe" + + "r\030\002 \001(\0132\033.google.protobuf.Int32ValueR\npa" + + "geNumber\022@\n\013domain_type\030\003 \001(\0162\037.scalekit" + + ".v1.domains.DomainTypeR\ndomainType\"\223\001\n\034L" + + "istWorkspaceDomainsResponse\022\033\n\tpage_size" + + "\030\001 \001(\005R\010pageSize\022\037\n\013page_number\030\002 \001(\005R\np" + + "ageNumber\0225\n\007domains\030\003 \003(\0132\033.scalekit.v1" + + ".domains.DomainR\007domains\":\n\034DeleteWorksp" + + "aceDomainRequest\022\032\n\002id\030\001 \001(\tB\n\272H\007r\005\020\001\030\200\001" + + "R\002id*\257\001\n\031BillingSubscriptionStatus\022+\n\'BI" + + "LLING_SUBSCRIPTION_STATUS_UNSPECIFIED\020\000\022" + + "\037\n\033BILLING_SUBSCRIPTION_ACTIVE\020\001\022!\n\035BILL" + + "ING_SUBSCRIPTION_CANCELED\020\002\022!\n\035BILLING_S" + + "UBSCRIPTION_PAST_DUE\020\003*y\n\rInvoiceStatus\022" + + "\036\n\032INVOICE_STATUS_UNSPECIFIED\020\000\022\020\n\014INVOI" + + "CE_PAID\020\001\022\017\n\013INVOICE_DUE\020\002\022\023\n\017INVOICE_OV" + + "ERDUE\020\003\022\020\n\014INVOICE_VOID\020\004*j\n\013PaymentType" + + "\022\034\n\030PAYMENT_TYPE_UNSPECIFIED\020\000\022\010\n\004CARD\020\001" + + "\022\020\n\014BANK_ACCOUNT\020\002\022\013\n\007OFFLINE\020\003\022\010\n\004LINK\020" + + "\004\022\n\n\006PAYPAL\020\005*\216\001\n\023PaymentMethodStatus\022%\n" + + "!PAYMENT_METHOD_STATUS_UNSPECIFIED\020\000\022\031\n\025" + + "PAYMENT_METHOD_ACTIVE\020\001\022\032\n\026PAYMENT_METHO" + + "D_EXPIRED\020\002\022\031\n\025PAYMENT_METHOD_FAILED\020\003*f" + + "\n\024RedirectOnCompletion\022&\n\"REDIRECT_ON_CO" + + "MPLETION_UNSPECIFIED\020\000\022\t\n\005never\020\001\022\n\n\006alw" + + "ays\020\002\022\017\n\013if_required\020\003*G\n\006UiMode\022\027\n\023UI_M" + + "ODE_UNSPECIFIED\020\000\022\014\n\010embedded\020\001\022\n\n\006hoste" + + "d\020\002\022\n\n\006custom\020\003*f\n\023CheckoutSessionMode\022%" + + "\n!CHECKOUT_SESSION_MODE_UNSPECIFIED\020\000\022\t\n" + + "\005setup\020\001\022\020\n\014subscription\020\002\022\013\n\007payment\020\0032" + + "\226\033\n\020WorkspaceService\022\233\001\n\017CreateWorkspace" + + "\022..scalekit.v1.workspaces.CreateWorkspac" + + "eRequest\032/.scalekit.v1.workspaces.Create" + + "WorkspaceResponse\"\'\202\265\030\002\030\001\202\323\344\223\002\033\"\016/api/v1" + + "/signup:\tworkspace\022\220\001\n\014GetWorkspace\022+.sc" + + "alekit.v1.workspaces.GetWorkspaceRequest" + + "\032,.scalekit.v1.workspaces.GetWorkspaceRe" + + "sponse\"%\202\265\030\002\030@\202\323\344\223\002\031\022\027/api/v1/workspaces" + + "/{id}\022\255\001\n\023GetCurrentWorkspace\0222.scalekit" + + ".v1.workspaces.GetCurrentWorkspaceReques" + + "t\032,.scalekit.v1.workspaces.GetWorkspaceR" + + "esponse\"4\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002\031\022\027/a" + + "pi/v1/workspaces:this\022\244\001\n\017UpdateWorkspac" + + "e\022..scalekit.v1.workspaces.UpdateWorkspa" + + "ceRequest\032/.scalekit.v1.workspaces.Updat" + + "eWorkspaceResponse\"0\202\265\030\002\030@\202\323\344\223\002$2\027/api/v" + + "1/workspaces/{id}:\tworkspace\022\220\001\n\020Onboard" + + "Workspace\022/.scalekit.v1.workspaces.Onboa" + + "rdWorkspaceRequest\032\026.google.protobuf.Emp" + + "ty\"3\202\265\030\002\030@\202\323\344\223\002\'2\032/api/v1/workspaces:onb" + + "oard:\tworkspace\022\262\001\n\026UpdateCurrentWorkspa" + + "ce\0225.scalekit.v1.workspaces.UpdateCurren" + + "tWorkspaceRequest\032/.scalekit.v1.workspac" + + "es.UpdateWorkspaceResponse\"0\202\265\030\002\030@\202\323\344\223\002$" + + "2\027/api/v1/workspaces:this:\tworkspace\022\315\001\n" + + "\031GetWorkspaceSubscriptions\0228.scalekit.v1" + + ".workspaces.GetWorkspaceSubscriptionsReq" + + "uest\0329.scalekit.v1.workspaces.GetWorkspa" + + "ceSubscriptionsResponse\";\202\265\030\002\030@\202\323\344\223\002/\022-/" + + "api/v1/workspaces/{id}/billing/subscript" + + "ions\022\312\001\n\030GetWorkspacePricingTable\0227.scal" + + "ekit.v1.workspaces.GetWorkspacePricingTa" + + "bleRequest\0328.scalekit.v1.workspaces.GetW" + + "orkspacePricingTableResponse\";\202\265\030\002\030@\202\323\344\223" + + "\002/\022-/api/v1/workspaces/{id}/billing/pric" + + "ing-table\022\303\001\n\020GetBillingPortal\022/.scaleki" + + "t.v1.workspaces.GetBillingPortalRequest\032" + + "0.scalekit.v1.workspaces.GetBillingPorta" + + "lResponse\"L\202\265\030\002\030@\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0021\022/" + + "/api/v1/workspaces:this/billing/customer" + + "-portal\022\262\001\n\016GetBillingInfo\022-.scalekit.v1" + + ".workspaces.GetBillingInfoRequest\032..scal" + + "ekit.v1.workspaces.GetBillingInfoRespons" + + "e\"A\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002&\022$/api/v1/" + + "workspaces:this/billing:info\022\276\001\n\017GetProd" + + "uctUsage\022..scalekit.v1.workspaces.GetPro" + + "ductUsageRequest\032/.scalekit.v1.workspace" + + "s.GetProductUsageResponse\"J\202\265\030\002\030D\372\322\344\223\002\t\022" + + "\007PREVIEW\202\323\344\223\002/\022-/api/v1/workspaces:this/" + + "billing:product-usage\022\265\001\n\021GetProductCata" + + "log\0220.scalekit.v1.workspaces.GetProductC" + + "atalogRequest\0321.scalekit.v1.workspaces.G" + + "etProductCatalogResponse\";\202\265\030\002\030D\372\322\344\223\002\t\022\007" + + "PREVIEW\202\323\344\223\002 \022\036/api/v1/billing/productca" + + "talog\022\305\001\n\017AddSubscription\022..scalekit.v1." + + "workspaces.AddSubscriptionRequest\032/.scal" + + "ekit.v1.workspaces.AddSubscriptionRespon" + + "se\"Q\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\0026\"1/api/v1" + + "/workspaces:this/billing/subscriptions:a" + + "dd:\001*\022\327\001\n\025CreateCheckoutSession\0224.scalek" + + "it.v1.workspaces.CreateCheckoutSessionRe" + + "quest\0325.scalekit.v1.workspaces.CreateChe" + + "ckoutSessionResponse\"Q\202\265\030\002\030D\372\322\344\223\002\t\022\007PREV" + + "IEW\202\323\344\223\0026\"1/api/v1/workspaces:this/billi" + + "ng/checkout_sessions:\001*\022\317\001\n\026UpdateWorksp" + + "aceContext\0225.scalekit.v1.workspaces.Upda" + + "teWorkspaceContextRequest\0326.scalekit.v1." + + "workspaces.UpdateWorkspaceContextRespons" + + "e\"F\202\265\030\002\030D\372\322\344\223\002\t\022\007PREVIEW\202\323\344\223\002+\" /api/v1/" + + "workspaces:this/contexts:\007context\022\260\001\n\024Li" + + "stWorkspaceDomains\0223.scalekit.v1.workspa" + + "ces.ListWorkspaceDomainsRequest\0324.scalek" + + "it.v1.workspaces.ListWorkspaceDomainsRes" + + "ponse\"-\202\265\030\002\030@\202\323\344\223\002!\022\037/api/v1/workspaces:" + + "this/domains\022\273\001\n\025CreateWorkspaceDomain\0224" + + ".scalekit.v1.workspaces.CreateWorkspaceD" + + "omainRequest\0325.scalekit.v1.workspaces.Cr" + + "eateWorkspaceDomainResponse\"5\202\265\030\002\030@\202\323\344\223\002" + + ")\"\037/api/v1/workspaces:this/domains:\006doma" + + "in\022\231\001\n\025DeleteWorkspaceDomain\0224.scalekit." + + "v1.workspaces.DeleteWorkspaceDomainReque" + + "st\032\026.google.protobuf.Empty\"2\202\265\030\002\030@\202\323\344\223\002&" + + "*$/api/v1/workspaces:this/domains/{id}\022\237" + + "\001\n\027ValidateWorkspaceDomain\0226.scalekit.v1" + + ".workspaces.ValidateWorkspaceDomainReque" + + "st\032\032.google.protobuf.BoolValue\"0\202\265\030\002\030@\202\323" + + "\344\223\002$\022\"/api/v1/workspaces:validate_domain" + + "B\353\001\n(com.scalekit.grpc.scalekit.v1.works" + + "pacesB\017WorkspacesProtoP\001Z4github.com/sca" + + "lekit-inc/scalekit/pkg/grpc/workspaces\242\002" + + "\003SVW\252\002\026Scalekit.V1.Workspaces\312\002\026Scalekit" + + "\\V1\\Workspaces\342\002\"Scalekit\\V1\\Workspaces\\" + + "GPBMetadata\352\002\030Scalekit::V1::Workspacesb\006" + + "proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, @@ -632,8 +700,10 @@ public static void registerAllExtensions( com.google.protobuf.EmptyProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), + com.google.protobuf.WrappersProto.getDescriptor(), com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(), com.scalekit.grpc.scalekit.v1.commons.CommonsProto.getDescriptor(), + com.scalekit.grpc.scalekit.v1.domains.DomainsProto.getDescriptor(), com.scalekit.grpc.scalekit.v1.options.OptionsProto.getDescriptor(), }); internal_static_scalekit_v1_workspaces_WorkspaceExtendedInfo_descriptor = @@ -665,7 +735,7 @@ public static void registerAllExtensions( internal_static_scalekit_v1_workspaces_OnboardWorkspace_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_workspaces_OnboardWorkspace_descriptor, - new java.lang.String[] { "WorkspaceDisplayName", "UserGivenName", "UserFamilyName", "AuthenticationMode", }); + new java.lang.String[] { "WorkspaceDisplayName", "UserGivenName", "UserFamilyName", "AuthenticationMode", "EnableAllowedDomainJoin", }); internal_static_scalekit_v1_workspaces_CreateWorkspaceRequest_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_scalekit_v1_workspaces_CreateWorkspaceRequest_fieldAccessorTable = new @@ -948,6 +1018,42 @@ public static void registerAllExtensions( com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_scalekit_v1_workspaces_UpdateWorkspaceContextResponse_descriptor, new java.lang.String[] { "Context", }); + internal_static_scalekit_v1_workspaces_ValidateWorkspaceDomainRequest_descriptor = + getDescriptor().getMessageTypes().get(50); + internal_static_scalekit_v1_workspaces_ValidateWorkspaceDomainRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_workspaces_ValidateWorkspaceDomainRequest_descriptor, + new java.lang.String[] { }); + internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainRequest_descriptor = + getDescriptor().getMessageTypes().get(51); + internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainRequest_descriptor, + new java.lang.String[] { "Domain", }); + internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainResponse_descriptor = + getDescriptor().getMessageTypes().get(52); + internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_workspaces_CreateWorkspaceDomainResponse_descriptor, + new java.lang.String[] { "Domain", }); + internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsRequest_descriptor = + getDescriptor().getMessageTypes().get(53); + internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsRequest_descriptor, + new java.lang.String[] { "PageSize", "PageNumber", "DomainType", }); + internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsResponse_descriptor = + getDescriptor().getMessageTypes().get(54); + internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsResponse_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_workspaces_ListWorkspaceDomainsResponse_descriptor, + new java.lang.String[] { "PageSize", "PageNumber", "Domains", }); + internal_static_scalekit_v1_workspaces_DeleteWorkspaceDomainRequest_descriptor = + getDescriptor().getMessageTypes().get(55); + internal_static_scalekit_v1_workspaces_DeleteWorkspaceDomainRequest_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_scalekit_v1_workspaces_DeleteWorkspaceDomainRequest_descriptor, + new java.lang.String[] { "Id", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.scalekit.grpc.buf.validate.ValidateProto.field); @@ -968,8 +1074,10 @@ public static void registerAllExtensions( com.google.protobuf.EmptyProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.WrappersProto.getDescriptor(); com.scalekit.grpc.grpc.gateway.protoc_gen_openapiv2.options.AnnotationsProto.getDescriptor(); com.scalekit.grpc.scalekit.v1.commons.CommonsProto.getDescriptor(); + com.scalekit.grpc.scalekit.v1.domains.DomainsProto.getDescriptor(); com.scalekit.grpc.scalekit.v1.options.OptionsProto.getDescriptor(); } From b64bb9eb11bcd1966e84764c00692134603c5543 Mon Sep 17 00:00:00 2001 From: Ravi Madabhushi Date: Tue, 12 May 2026 14:29:16 +0530 Subject: [PATCH 2/4] test: add integration tests for new wrapper methods - searchOrganizations, updateOrganizationSessionPolicy - getOrganizationSessionPolicy, getApplicationSessionPolicy, getOrganizationUserManagementSetting - assignUserRoles, removeUserRole Co-Authored-By: Claude Sonnet 4.6 --- src/test/java/OrganizationTests.java | 128 +++++++++++++++++++++++++++ src/test/java/UserTests.java | 58 ++++++++++++ 2 files changed, 186 insertions(+) diff --git a/src/test/java/OrganizationTests.java b/src/test/java/OrganizationTests.java index b00ff893..6f417c7f 100644 --- a/src/test/java/OrganizationTests.java +++ b/src/test/java/OrganizationTests.java @@ -253,4 +253,132 @@ void UpsertUserManagementSettingsTest() { assertEquals(75, response.getMaxAllowedUsers().getValue()); } + @Test + void SearchOrganizationsTest() { + // First ensure there is at least one organization to search for + ListOrganizationsResponse organizations = client.organizations().listOrganizations(1, null); + assertNotNull(organizations); + if (organizations.getOrganizationsCount() == 0) { + log.warn("No organizations available to test searchOrganizations"); + return; + } + + String displayName = organizations.getOrganizationsList().get(0).getDisplayName(); + + // Search with a query matching the first org's display name + SearchOrganizationsRequest searchRequest = SearchOrganizationsRequest.newBuilder() + .setQuery(displayName) + .setPageSize(10) + .build(); + + SearchOrganizationsResponse searchResponse = client.organizations().searchOrganizations(searchRequest); + assertNotNull(searchResponse); + assertTrue(searchResponse.getOrganizationsCount() > 0); + + // Search with a query that should return no results + SearchOrganizationsRequest emptyRequest = SearchOrganizationsRequest.newBuilder() + .setQuery("no_match_xyz_" + System.currentTimeMillis()) + .setPageSize(10) + .build(); + + SearchOrganizationsResponse emptyResponse = client.organizations().searchOrganizations(emptyRequest); + assertNotNull(emptyResponse); + assertEquals(0, emptyResponse.getOrganizationsCount()); + } + + @Test + void UpdateOrganizationSessionPolicyTest() { + ListOrganizationsResponse organizations = client.organizations().listOrganizations(1, null); + assertNotNull(organizations); + if (organizations.getOrganizationsCount() == 0) { + log.warn("No organizations available to test session policy"); + return; + } + + String organizationId = organizations.getOrganizationsList().get(0).getId(); + + UpdateOrganizationSessionPolicyRequest request = UpdateOrganizationSessionPolicyRequest.newBuilder() + .setPolicySource(SessionPolicyType.APPLICATION) + .build(); + + UpdateOrganizationSessionPolicyResponse response; + try { + response = client.organizations().updateOrganizationSessionPolicy(organizationId, request); + } catch (APIException e) { + log.warn("Skipping UpdateOrganizationSessionPolicyTest — feature may not be enabled: {}", e.getMessage()); + return; + } + + assertNotNull(response); + } + + @Test + void GetOrganizationSessionPolicyTest() { + ListOrganizationsResponse organizations = client.organizations().listOrganizations(1, null); + assertNotNull(organizations); + if (organizations.getOrganizationsCount() == 0) { + log.warn("No organizations available to test getOrganizationSessionPolicy"); + return; + } + + String organizationId = organizations.getOrganizationsList().get(0).getId(); + + GetOrganizationSessionPolicyResponse response; + try { + response = client.organizations().getOrganizationSessionPolicy(organizationId); + } catch (APIException e) { + log.warn("Skipping GetOrganizationSessionPolicyTest — feature may not be enabled: {}", e.getMessage()); + return; + } + + assertNotNull(response); + assertNotNull(response.getPolicy()); + } + + @Test + void GetApplicationSessionPolicyTest() { + ListOrganizationsResponse organizations = client.organizations().listOrganizations(1, null); + assertNotNull(organizations); + if (organizations.getOrganizationsCount() == 0) { + log.warn("No organizations available to test getApplicationSessionPolicy"); + return; + } + + String organizationId = organizations.getOrganizationsList().get(0).getId(); + + GetApplicationSessionPolicyResponse response; + try { + response = client.organizations().getApplicationSessionPolicy(organizationId); + } catch (APIException e) { + log.warn("Skipping GetApplicationSessionPolicyTest — feature may not be enabled: {}", e.getMessage()); + return; + } + + assertNotNull(response); + assertNotNull(response.getApplicationPolicy()); + } + + @Test + void GetOrganizationUserManagementSettingTest() { + ListOrganizationsResponse organizations = client.organizations().listOrganizations(1, null); + assertNotNull(organizations); + if (organizations.getOrganizationsCount() == 0) { + log.warn("No organizations available to test getOrganizationUserManagementSetting"); + return; + } + + String organizationId = organizations.getOrganizationsList().get(0).getId(); + + GetOrganizationUserManagementSettingsResponse response; + try { + response = client.organizations().getOrganizationUserManagementSetting(organizationId); + } catch (APIException e) { + log.warn("Skipping GetOrganizationUserManagementSettingTest — feature may not be enabled: {}", e.getMessage()); + return; + } + + assertNotNull(response); + assertNotNull(response.getSettings()); + } + } diff --git a/src/test/java/UserTests.java b/src/test/java/UserTests.java index a95404f5..9bce06d0 100644 --- a/src/test/java/UserTests.java +++ b/src/test/java/UserTests.java @@ -3,12 +3,15 @@ import com.scalekit.grpc.scalekit.v1.organizations.CreateOrganization; import com.scalekit.grpc.scalekit.v1.organizations.ListOrganizationsResponse; import com.scalekit.grpc.scalekit.v1.organizations.Organization; +import com.scalekit.grpc.scalekit.v1.roles.ListRolesResponse; import com.scalekit.grpc.scalekit.v1.users.*; +import lombok.extern.slf4j.Slf4j; import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*; +@Slf4j public class UserTests { private static ScalekitClient client; @@ -308,4 +311,59 @@ public void testResendInvite() { // Cleanup client.users().deleteUser(userId); } + + @Test + public void testAssignAndRemoveUserRole() { + // Fetch available environment-level roles to find one we can assign + ListRolesResponse rolesResponse = client.roles().listRoles(); + assertNotNull(rolesResponse); + if (rolesResponse.getRolesCount() == 0) { + log.warn("No roles available to test assignUserRoles/removeUserRole"); + return; + } + + String roleName = rolesResponse.getRoles(0).getName(); + String roleId = rolesResponse.getRoles(0).getId(); + + // Create a user in testOrg + String userEmail = "role.test" + System.currentTimeMillis() + "@example.com"; + CreateUser user = CreateUser.newBuilder() + .setEmail(userEmail) + .build(); + + CreateUserAndMembershipRequest createRequest = CreateUserAndMembershipRequest.newBuilder() + .setOrganizationId(testOrg) + .setSendInvitationEmail(false) + .setUser(user) + .build(); + + CreateUserAndMembershipResponse createdUser = client.users().createUserAndMembership(testOrg, createRequest); + assertNotNull(createdUser); + String userId = createdUser.getUser().getId(); + + try { + // Assign the role to the user + AssignRoleRequest assignRoleRequest = AssignRoleRequest.newBuilder() + .setId(roleId) + .setRoleName(roleName) + .build(); + + AssignUserRolesRequest assignRequest = AssignUserRolesRequest.newBuilder() + .addRoles(assignRoleRequest) + .build(); + + AssignUserRolesResponse assignResponse = client.users().assignUserRoles(testOrg, userId, assignRequest); + assertNotNull(assignResponse); + + // Remove the role from the user + RemoveUserRoleRequest removeRequest = RemoveUserRoleRequest.newBuilder() + .setRoleName(roleName) + .build(); + + // removeUserRole returns void; just verify it does not throw + client.users().removeUserRole(testOrg, userId, removeRequest); + } finally { + client.users().deleteUser(userId); + } + } } \ No newline at end of file From a6b6d86396bfdcb90e3a717065544299d0b72c19 Mon Sep 17 00:00:00 2001 From: Ravi Madabhushi Date: Mon, 18 May 2026 15:47:06 +0530 Subject: [PATCH 3/4] fix: resolve stale connection resets and unretried DEADLINE_EXCEEDED errors MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Two bugs surfaced from Rocketlane production logs over 3 days: 1. ScalekitAuthClient: HttpClient connection pool was reusing stale TCP connections that the server had already closed. This caused 'Connection reset' errors on token refresh, which only fires once per token TTL (~1h), giving the pool plenty of time to go stale. Fixed by enabling evictExpiredConnections() and evictIdleConnections(30s). 2. RetryExecuter: DEADLINE_EXCEEDED was not retried — it fell through to the else branch and threw immediately. UNAUTHENTICATED and UNAVAILABLE were already retried; DEADLINE_EXCEEDED is equally transient and now gets one retry on the same pattern. Co-Authored-By: Claude Sonnet 4.6 --- .../java/com/scalekit/api/impl/ScalekitAuthClient.java | 10 ++++++++-- src/main/java/com/scalekit/internal/RetryExecuter.java | 6 ++++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/scalekit/api/impl/ScalekitAuthClient.java b/src/main/java/com/scalekit/api/impl/ScalekitAuthClient.java index 8b93206e..1fe1ba9d 100644 --- a/src/main/java/com/scalekit/api/impl/ScalekitAuthClient.java +++ b/src/main/java/com/scalekit/api/impl/ScalekitAuthClient.java @@ -27,6 +27,7 @@ import java.io.IOException; import java.io.UnsupportedEncodingException; import java.net.*; +import java.util.concurrent.TimeUnit; import java.nio.charset.StandardCharsets; import java.util.*; @@ -48,9 +49,14 @@ public ScalekitAuthClient() { .setConnectionRequestTimeout(5000) .build(); - // Create an HttpClient with the custom request configuration - this.httpClient = HttpClients.custom() + // Create an HttpClient with the custom request configuration. + // evictExpiredConnections + evictIdleConnections prevent stale pooled connections + // from being reused after the server has closed them (manifests as Connection reset + // on token refresh when the access token has been valid for a long time). + this.httpClient = HttpClients.custom() .setDefaultRequestConfig(requestConfig) + .evictExpiredConnections() + .evictIdleConnections(30, TimeUnit.SECONDS) .build(); this.objectMapper = new ObjectMapper(); diff --git a/src/main/java/com/scalekit/internal/RetryExecuter.java b/src/main/java/com/scalekit/internal/RetryExecuter.java index adb4831a..31d37dbc 100644 --- a/src/main/java/com/scalekit/internal/RetryExecuter.java +++ b/src/main/java/com/scalekit/internal/RetryExecuter.java @@ -25,6 +25,12 @@ public static T executeWithRetry(Callable callable, ScalekitCredentials } catch (Exception ex) { throw new APIException(ex.getMessage()); } + } else if (e.getStatus().getCode() == Status.Code.DEADLINE_EXCEEDED) { + try { + return callable.call(); + } catch (Exception ex) { + throw new APIException(ex.getMessage()); + } } else { throw new APIException(e); } From 62e2b40f08068b105a9227689b6a3bf7f47e78a3 Mon Sep 17 00:00:00 2001 From: Ravi Madabhushi Date: Mon, 18 May 2026 16:05:20 +0530 Subject: [PATCH 4/4] revert: remove DEADLINE_EXCEEDED retry from RetryExecuter MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Retrying DEADLINE_EXCEEDED is unsafe for non-idempotent write operations — if the call reached the server before the deadline fired, a retry duplicates the request. Reverting until server-side idempotency keys are in place. Co-Authored-By: Claude Sonnet 4.6 --- src/main/java/com/scalekit/internal/RetryExecuter.java | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/main/java/com/scalekit/internal/RetryExecuter.java b/src/main/java/com/scalekit/internal/RetryExecuter.java index 31d37dbc..adb4831a 100644 --- a/src/main/java/com/scalekit/internal/RetryExecuter.java +++ b/src/main/java/com/scalekit/internal/RetryExecuter.java @@ -25,12 +25,6 @@ public static T executeWithRetry(Callable callable, ScalekitCredentials } catch (Exception ex) { throw new APIException(ex.getMessage()); } - } else if (e.getStatus().getCode() == Status.Code.DEADLINE_EXCEEDED) { - try { - return callable.call(); - } catch (Exception ex) { - throw new APIException(ex.getMessage()); - } } else { throw new APIException(e); }